Package beans.directory.simple.entities

Examples of beans.directory.simple.entities.DiagnosisEncounter


            Integer disID = (Integer) line[0];
            Diagnosis referced = (Diagnosis) line[1];
            Integer typeID = (Integer) line[2];
            String mkbCode = (String) line[3];
            mkbCode = fixMkbCode(mkbCode);
            DiagnosisEncounter encounter = (DiagnosisEncounter) line[4];
            DiagInfo diagInfo = target.get(disID);
            if (diagInfo == null) {
                diagInfo = new DiagInfo();
                target.put(disID, diagInfo);
            }
            if (referced != null) {
                //Сопутствующий
                diagInfo.referList.add(mkbCode);
            } else if (typeID == DiagnosisType.DIAGNOSIS_TYPE_FINAL) {
                //заключительный
                if (diagInfo.diag != null) {
                    throw new EDataIntegrity("Повторный заключительный диагноз в заболевании id = " + disID);
                }
                diagInfo.diag = mkbCode;
                diagInfo.diagEncID = encounter == null ? 0 : encounter.getId();
            }
           
        }
        System.out.println("Запрос диагнозов завершен + " + resultList.size());
        manager.clear();
View Full Code Here


        for (Object[] line : list) {
            Integer disID = (Integer) line[0];
            Integer diagType = (Integer) line[1];
            String code = (String) line[2];
            Integer refID = (Integer) line[3];
            DiagnosisEncounter enc = (DiagnosisEncounter) line[4];
            Integer diagEncID = enc == null ? 0 : enc.getId();
            DiagInfo diagInfo = target.get(disID);
            if (diagInfo != null) {
                if (refID != null && refID != 0) {
                    //Сопутствующий
                    diagInfo.referList.add(code);
View Full Code Here

TOP

Related Classes of beans.directory.simple.entities.DiagnosisEncounter

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.