Package clips.delegate.directory.simple.diagnosisEncounter

Examples of clips.delegate.directory.simple.diagnosisEncounter.DirectoryDiagnosisEncounterItem


        //Заполняем комбо повторяемости диагноза
        new DirectorySimpleFilteredComboBoxModel<DiagnosisLocal, DirectoryDiagnosisEncounterItem> (cbEncounter, diagnosisLocal, directoryDE) {

            @Override
            public DirectoryDiagnosisEncounterItem getSelectedDirectoryItem() throws ClipsException {
                DirectoryDiagnosisEncounterItem encounter = getObject().getEncounter();
                return encounter;
            }

            @Override
            public void setSelectedDirectoryItem(DirectoryDiagnosisEncounterItem item) throws ClipsException {
View Full Code Here


    resizeColumn();
    StateSaver.attachTo(this);
    }

    private boolean checkTrauma() throws ClipsException{
        DirectoryDiagnosisEncounterItem item = diagnosisLocal.getEncounter();
        if (item != null){
            if (item.isTrauma()){
                return true;
            }else{
                if (diagnosisLocal.isDirty() && !diagnosisLocal.getTrauma().isNullItem()){
                    diagnosisLocal.setTrauma(directoryTT.getNullItem());
                }
View Full Code Here

    @Deprecated
    private void setAutoEncounter() throws ClipsException {
        //Вычисление повторяемости
        ClientLocal client = diagnosisLocal.getSerrenLocal().getPolisData().getClient();
        DirectoryDiagnosisEncounterItem itemEncounter = client.getAutocalculatedEncounter(diagnosisLocal.getMkb(), diagnosisLocal.getSerrenLocal().getDiseaseLocal().getID());
        diagnosisLocal.setEncounter(itemEncounter);
        cbEncounter.setSelectedItem(itemEncounter);
        //сброс кеша заболевания
        //diagnosisLocal.getSerrenLocal().getDiseaseLocal().clearDiagnosisCache();
    }
View Full Code Here

                if (data.qz == 0) {
                    target.add(id, "Не указан код характера заболевания");
                    lf.qz.put("0");
                } else {
                    try {
                        DirectoryDiagnosisEncounterItem item = dirDiagEnc.getItemFromID(data.qz);
                        int qz = Integer.parseInt(item.getExtKey());
                        /* Не знаю почему, но у них в отчетах характер заболевания
                         * на 1 меньше чем в базе.
                         * К примеру код 1 - здоров в отчет идет как 0
                         * (у них это в ТАЛ2008. У АММовской проги вообще не заполняется)
                         */
                        lf.qz.put(qz - 1);
                    } catch (NumberFormatException ex) {
                        target.add(id, "Код характера заболевания должен быть числом");
                        lf.qz.put("");
                    }
                }

                //VMU
                if (data.vmu == 0) {
                    target.add(id, "Не указан вид первичной медико-санитарной помощи");
                    lf.vmu.put("");
                } else {
                    try {
                        DirectoryMedicalAidTypeItem item = dirVmu.getItemFromID(data.vmu);
                        lf.vmu.put(Integer.parseInt(item.getExtKey()));
                    } catch (NumberFormatException ex) {
                        target.add(id, "Вид первичной медико-санитарной помощи должен быть числом");
                        lf.vmu.put("");
                    }
                }

                //D_LISTIN
                if (data.d_listin == null) {
                    lf.d_listin.put("");
                } else {
                    cal.setTime(data.d_listin);
                    lf.d_listin.put(cal);
                }

                //D_LISTOUT
                if (data.d_listout == null) {
                    lf.d_listout.put("");
                } else {
                    cal.setTime(data.d_listout);
                    lf.d_listout.put(cal);
                }

                //DF_CODES
                //только для диспансеризации
                lf.df_codes.put(id, target, data.df_codes);

                //KOD_IF
                lf.code_if.put(data.cod_if);

                //RESD
                //только для диспансеризации
                if (data.resd == 0) {
                    lf.resd.put("");
                } else {
                    lf.resd.put(data.resd);
                }

                //CODE_GOAL
                if (data.code_goal == 0) {
                    //target.add(id, "Не указан вид первичной медико-санитарной помощи");
                    lf.code_goal.put(id, target, "");
                } else {
                    DirectoryVisitingPurposeItem item = dirVisPurp.getItemFromID(data.code_goal);
                    lf.code_goal.put(id, target, item.getExtKey());
                }

                //OKVED
                //только для диспансеризации
                lf.okved.put(id, target, data.okved);
View Full Code Here

TOP

Related Classes of clips.delegate.directory.simple.diagnosisEncounter.DirectoryDiagnosisEncounterItem

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.