Package beans.doctor.diagnosis

Examples of beans.doctor.diagnosis.Diagnosis


            entity.setComment(d.comment);
            entity.setSerrenClosed(d.serrenCloseID == 0 ? null : findEntity(ServiceRender.class, d.serrenCloseID));
      if (d.diagCloseID == 0){
        throw new EDataIntegrity("не установлен диагноз закрытия.");
      }
      Diagnosis    diagnosis = findEntity(Diagnosis.class, d.diagCloseID);
      checkValidSicklistDiagnosis(entity, diagnosis);
      if (entity.getDiagOpen().getServiceRender().getDisease().getEmc().getId() != diagnosis.getServiceRender().getDisease().getEmc().getId()){
        throw new EDataIntegrity("Диагнозы открытия и закрытия находятся в разных медицинских картах");
      }
            entity.setDiagClose(diagnosis);
            if (d.serrenCloseID == 0) {
                throw new EDataIntegrity("Не установлен талон или услуга закрытия.");
View Full Code Here




        List list = q.getResultList();
        if (!list.isEmpty()){
            Diagnosis finalDiag = (Diagnosis) list.get(0);

            info.mainFollowStage = getFollowupStage(finalDiag);
            if (info.mainFollowStage == Followup.FOLLOWUP_GET_OUT){
                info.mainFollowDownReason = getDownReasonExtKey(finalDiag);
            }

            List<Diagnosis> diagnosises = findEntityList(Diagnosis.class, "referenced", finalDiag);

            if (diagnosises.size() > 0){
                Diagnosis d = diagnosises.get(0);
                info.attendant0DiagnosisMkbID = d.getMkb10().getId();
                info.attendant0FollowStage = getFollowupStage(d);
                if (d.getEncounter() == null) {
                    info.attendant0DiagnosisEncounter = 1;
                } else {
                    info.attendant0DiagnosisEncounter = d.getEncounter().isPlus() ? 1 : 2;
                }
                if (info.attendant0FollowStage != 0){
                    if (info.attendant0FollowStage == Followup.FOLLOWUP_GET_OUT){
                        info.attendant0FollowDownReason = getDownReasonExtKey(d);
                    }                   
                }
            }
            if (diagnosises.size() > 1){
                Diagnosis d = diagnosises.get(1);
                info.attendant1DiagnosisMkbID = d.getMkb10().getId();
                info.attendant1FollowStage = getFollowupStage(d);
                if (d.getEncounter() == null) {
                    info.attendant1DiagnosisEncounter = 1;
                } else {
                    info.attendant1DiagnosisEncounter = d.getEncounter().isPlus() ? 1 : 2;
                }
                if (info.attendant1FollowStage == 0){
                    if (info.attendant1FollowStage == Followup.FOLLOWUP_GET_OUT){
                        info.attendant1FollowDownReason = getDownReasonExtKey(d);
                    }                   
View Full Code Here

TOP

Related Classes of beans.doctor.diagnosis.Diagnosis

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.