Package beans.doctor.diagnosis

Examples of beans.doctor.diagnosis.DiagnosisBeanRemote


        //На данном этапе заболевание и услуга уже соданы

        int mainDiagId = 0;
        for (DiagnosChunk dc : c.diagList) {
            //записываем диагнозы
            DiagnosisBeanRemote bean = getBean(DiagnosisBean.class);
            bean.initByID(0, getSessionId());
            DiagnosisDetails d = new DiagnosisDetails();
            d.author = null;              //Кто поставил (только если из др клиники)
            d.date = dc.dateDs;           //Дата постановки диагноза
            d.mkbID = dc.mkbID;           //диагноз по мкб
            if (dc.diagTypeID == 0) {
                if (mainDiagId == 0) {
                    if (dc.mkbID == 0) {
                        throw new EDataIntegrity("Отсутствует основной диагноз");
                    } else {
                        throw new EDataIntegrity("Указан сопутствующий диагноз при отсутствии основного");
                    }
                }
                d.type = DiagnosisType.DIAGNOSIS_TYPE_PRELIMINARY;
                d.referenced = mainDiagId;
            } else {
                d.type = dc.diagTypeID;            //тип (предварительный, заключительный)
                d.referenced = 0;
            }
            d.encounter = dc.encounterID;       //установлен впервые, впервые за год, повторно в году
            d.serviceRenderID = serren.getId();
            if (bean.mustHaveStage(d.mkbID)) {
                d.stage = 1;
            } else {
                d.stage = 0;
            }
            d.complicationID = dc.complicationID;
            d.traumaTypeID = dc.trawmaTypeID;
            ModificationInfo info = bean.update(d);
            int id = info.getId();
            auditDetailsList.addAll(info.getAudit());
            manager.flush();
            if (dc.diagTypeID != 0) {
                if (mainDiagId != 0) {
View Full Code Here

TOP

Related Classes of beans.doctor.diagnosis.DiagnosisBeanRemote

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.