Package open.dolphin.infomodel

Examples of open.dolphin.infomodel.ClaimItem


    /**
     * tbl_inputset の inputcd から ClaimItem を作る
     * @return
     */
    public ClaimItem getClaimItem() {
        ClaimItem ret = new ClaimItem();
        ret.setCode(getInputCd());
        ret.setNumber(String.valueOf(getSuryo1()));
        return ret;
    }
View Full Code Here


            String key = MASTER[i];
            JRadioButton button = buttonMap.get(key);
       
            if (button != null && button.isSelected()) {               
                // 部位をリストの最後に加える
                ClaimItem c = new ClaimItem();
                c.setClassCode("2");
                c.setClassCodeSystem("Claim003");
                c.setCode(key);
                c.setName(nameMap.get(key));
                c.setNumber(".");
                c.setNumberCode("10");
                c.setNumberCodeSystem("Claim004");
                list.add(c);
            }
        }
        return list;
    }
View Full Code Here

                if (!src.getCode().startsWith("810000001") || options[0].equals(ans)) {
                    list.add(createClaimItem(src));
                }
            }
            // あらたな ClaimItem を作る
            ClaimItem newComment = new ClaimItem();
            newComment.setClassCode("2");
            newComment.setClassCodeSystem("Claim003");
            newComment.setCode("810000001");
            newComment.setName(tf.getText());
            newComment.setNumber(".");
            newComment.setNumberCode(ClaimConst.YAKUZAI_TOYORYO); // = "10"
            newComment.setNumberCodeSystem("Claim004");
           
            // コメントを登録,ただしコメントに何も入力されていなければリストに追加しない
            if (!tf.getText().trim().equals("")) {
                list.add(newComment);
            }
View Full Code Here

        }
       
        @Override
        public void actionPerformed(ActionEvent e) {
            // 一般名処方 ClaimItem を作る
            ClaimItem generic = new ClaimItem();
            generic.setClassCode("2");
            generic.setClassCodeSystem("Claim003");
            generic.setCode("099209908");
            generic.setName("一般名記載");
            generic.setNumber(".");
            generic.setNumberCode(ClaimConst.YAKUZAI_TOYORYO); // = "10"
            generic.setNumberCodeSystem("Claim004");
           
            // 新たなスタンプ作成
            BundleMed srcBundle = (BundleMed)ctx.getStamp().getModel();
            ModuleModel stamp = createModuleModel(ctx.getStamp());
            BundleMed bundle = (BundleMed) stamp.getModel();
View Full Code Here

     * ClaimItem を複製して返す
     * @param src
     * @return
     */
    private ClaimItem createClaimItem(ClaimItem src) {
        ClaimItem dist = new ClaimItem();
        dist.setClassCode(src.getClassCode());
        dist.setClassCodeSystem(src.getClassCodeSystem());
        dist.setCode(src.getCode());
        dist.setName(src.getName());
        dist.setNumber(src.getNumber());
        dist.setNumberCode(src.getNumberCode());
        dist.setNumberCodeSystem(src.getNumberCodeSystem());      
        dist.setUnit(src.getUnit());
        return dist;
    }
View Full Code Here

            double factor = (srcTimes==0)? 1 : (double)distTimes/srcTimes;
           
            ArrayList<ClaimItem> list = new ArrayList<ClaimItem>();
            // ClaimItem をチェックしながらコピー
            for(ClaimItem src : srcBundle.getClaimItem()) {
                ClaimItem dist = createClaimItem(src);
                String str = dist.getName();
                // 1日量文字列がある場合は,投与量を調節する
                if (str.contains("日量")) {
                    double dose = DailyDoseStringTool.getDose(str) * factor;
                    dist.setName(DailyDoseStringTool.getString(str, dose));                   
                }
                list.add(dist);
            }
            // できた list を srcBundle に登録
            bundle.setClaimItem(list.toArray(new ClaimItem[list.size()]));
View Full Code Here

            // ClaimItem をチェックしながらコピー
            boolean changed = false;
            String num = String.valueOf(value);
           
            for(ClaimItem src : srcBundle.getClaimItem()) {
                ClaimItem dist = createClaimItem(src);
                if (src.getCode().startsWith("6") && !src.getNumber().equals(num)) {
                    dist.setNumber(num);
                    changed = true;
                }
                list.add(dist);
            }
View Full Code Here

           
            // あらたな ClaimItem を作る
            ArrayList<ClaimItem> list = new ArrayList<ClaimItem>();
           
            for (ClaimItem src : srcBundle.getClaimItem()) {
                ClaimItem dist = createClaimItem(src);
               
                // 薬剤コードがあれば,その量を調整
                if (src.getCode().startsWith("6")) {
                    double num = Double.valueOf(src.getNumber());
                    String s = DailyDoseStringTool.doubleToString(num*value, src.getUnit());
                    dist.setNumber(String.valueOf(s));
                }
               
                // 1日量文字列があれば,その量を調節
                String str = src.getName();
                if (str.contains("日量")) {
                    double dose = DailyDoseStringTool.getDose(str);
                    dose *= value;
                    dist.setName(DailyDoseStringTool.getString(str, dose));
                }
                list.add(dist);
            }           
            // できた list を srcBundle に登録
            bundle.setClaimItem(list.toArray(new ClaimItem[list.size()]));
View Full Code Here

TOP

Related Classes of open.dolphin.infomodel.ClaimItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.