Examples of DiagnosisLocal


Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

   
    public CertTagDiagnosysDate(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            if (diseaseLocal != null) {
                DiagnosisLocal sd = diseaseLocal.getSpecificDiagnosis();
                if (sd != null) {
                    setDate(sd.getDate(), true);
                }
            }
        }
    }
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

                toStr += "Приход по диспансерному учёту";
            } else if (isMedexam()){
                toStr += "Медосмотр";
            } else {
                if (serrenCache.inCache()){
                    DiagnosisLocal sd = getSpecificDiagnosis();
                    if (sd != null) {
                        toStr += "МКБ:" + sd.getMkb().getDiseaseCode();
                    }
                }else if (mKB10Item != null){
                    toStr += "МКБ:" + mKB10Item.getDiseaseCode();
                }
            }
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

        }
        return serRens;
    }

    public DiagnosisLocal getDiagsByType(ArrayList<SerRenLocal> serrens, int diagType) throws ClipsException {
        DiagnosisLocal res = null;
        for (int i = 0; i < serrens.size(); i++) {
            for (DiagnosisLocal diag : serrens.get(i).getDiagnosisList()) {
                if (diag.getType().getID() == diagType) {
                    if (res == null || res.getDate().before(diag.getDate())) {
                        res = diag;
                    }
                }
            }
        }
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

        data.put("service_dates", serDates);
        data.put("service_titles", serTitles);
        data.put("service_UKL", serUKLs);
        data.put("service_uet", serUets);

        DiagnosisLocal preliminary = getDiagsByType(serrensInTap, DiagnosisType.DIAGNOSIS_TYPE_PRELIMINARY);
        if (preliminary != null) {
            data.put("diagnosis_presumptive_code", preliminary.getMkb().getDiseaseCode());
            data.put("diagnosis_presumptive_date", Converter.dateToString(preliminary.getDate(), "dd.MM.yy"));
        }

        DiagnosisLocal specDiag = getSpecificDiagnosis();
        if (specDiag != null) { //&& finalD.getSerrenLocal().getCollaboratorFunctions().getID() == collab.getID()) {
            data.put("diagnosis_final_code", specDiag.getMkb().getDiseaseCode());
            data.put("diagnosis_final_date", Converter.dateToString(specDiag.getDate(), "dd.MM.yy"));
            data.put("diagnosis_final_encounter", specDiag.getEncounter().getID());

            data.put("followup_final", printInfo.mainFollowStage);
            data.put("followup_down_final", printInfo.mainFollowDownReason);

            if ((specDiag.getTrauma()!=null
                    && specDiag.getTrauma().getExtKey() != null)
                    && !specDiag.getTrauma().getExtKey().isEmpty()){
                data.put("trauma_type",  specDiag.getTrauma().getID());
            }

            data.put("diagnosis_associated_code_0", mKB10.getItemFromID(printInfo.attendant0DiagnosisMkbID).getDiseaseCode());
            data.put("diagnosis_associated_encounter_0", printInfo.attendant0DiagnosisEncounter);
            data.put("followup_associated_0", printInfo.attendant0FollowStage);
            data.put("followup_down_associated_0", printInfo.attendant0FollowDownReason);

            data.put("diagnosis_associated_code_1", mKB10.getItemFromID(printInfo.attendant1DiagnosisMkbID).getDiseaseCode());
            data.put("diagnosis_associated_encounter_1", printInfo.attendant1DiagnosisEncounter);
            data.put("followup_associated_1", printInfo.attendant1FollowStage);
            data.put("followup_down_associated_1", printInfo.attendant1FollowDownReason);

            DirectoryMKB10Item compl = specDiag.getComplication();
            if (compl != null && compl.getID() != 0) {
                data.put("diagnosis_complication_code", compl.getDiseaseCode());
                data.put("diagnosis_complication_encounter", client.getDiagnosisCharacter(compl, specDiag.getDate()));
            }
        }

        SicklistLocal sicklist = getSickListState(serrensInTap);
        if (sicklist != null) {
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

    @Override
    protected DiagnosisLocal init() throws Exception {
      switch (type){
        case open:
          return getDetails().diagOpenID == 0? null: new DiagnosisLocal(getDetails().diagOpenID, getAuditListener());
        case close:
          return getDetails().diagCloseID == 0? null: new DiagnosisLocal(getDetails().diagCloseID, getAuditListener());
        default:
          throw new RuntimeException();
      }
    }
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

   
    public ArrayList<DiagnosisLocal> getDiagnosisIn() throws ClipsException {
        ArrayList<DiagnosisLocal> res = new ArrayList<DiagnosisLocal>();
        try {
            for(DiagnosisDetails d: getBean().getDiagnosisIn()) {
                res.add(new DiagnosisLocal(d.id, getAuditListener()));
            }
            return res;
        } catch (ClipsServerException ex) {
            throw new ClipsException("Не удалось получить диагнозы, поставленные в рамках ДУ", ex);
        }
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

        List<DiagnosisLocal> diagnosisLocals = new ArrayList<DiagnosisLocal>();
        try {
            List<DiagnosisDetails> list = getBean().getDiagnosisList();
            for(DiagnosisDetails d : list) {
                SerRenLocal serRen = new SerRenLocal(d.serviceRenderID, getAuditListener());
                DiagnosisLocal diagnosisLocal = new DiagnosisLocal(d, serRen, getAuditListener());
                diagnosisLocals.add(diagnosisLocal);
            }
        } catch (Exception ex) {          
            clearBean();
            throw new ClipsException("Не удалось загрузить список диагнозов",ex);
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

        try {
            List<DiagnosisDetails> list = getBean().getFullDiagnosisList(diseaseID);
            for (int i = 0; i < list.size(); i++) {
                DiagnosisDetails dd = list.get(i);
                SerRenLocal serren = new SerRenLocal(dd.serviceRenderID, getAuditListener());
                DiagnosisLocal diagnosisLocal = new DiagnosisLocal(dd, serren, getAuditListener());
                res.add(diagnosisLocal);
            }
        } catch (ClipsServerException ex) {
            clearBean();
            throw new ClipsException("Не удалось загрузить список диагнозов",ex);
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

    public ArrayList<DiagnosisLocal> getLastDiagnosis() throws ClipsException {
        try {
            ArrayList<DiagnosisDetails> dList = getBean().getLastDiagnosis();
            ArrayList<DiagnosisLocal> target = new ArrayList<DiagnosisLocal>(dList.size());
            for (DiagnosisDetails dd : dList) {
                target.add(new DiagnosisLocal(dd, new SerRenLocal(dd.getServiceRenderID(), getAuditListener()), getAuditListener()));
            }
            return target;
        } catch (Exception ex) {
            clearBean();
            throw new ClipsException("Не удалось получить список диагнозов", ex);
View Full Code Here

Examples of clips.delegate.doctor.diagnosis.DiagnosisLocal

            super(contaner);
        }

        @Override
        protected DiagnosisLocal createDelegate(DiagnosisDetails d) throws Exception {
            return new DiagnosisLocal(d, SerRenLocal.this, getAuditListener());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.