瀏覽代碼

代码修改

LAPTOP-KB9HII50\70708 1 年之前
父節點
當前提交
668bc2a614

+ 10 - 0
common/common-entity/src/main/java/com/yihu/jw/entity/specialist/rehabilitation/PatientRehabilitationPlanDO.java

@ -69,6 +69,7 @@ public class PatientRehabilitationPlanDO extends UuidIdentityEntity implements S
    private String patientInfoCode;//自动下转关联code wlyy_rehabilitation_patient_info 的code
    private List<RehabilitationDetailDO> detailDOList;//康复计划明细
    private PatientMedicalRecordsDO medicalRecordsDO;//病历
    @Column(name = "is_verify")
    public String getIsVerify() {
@ -337,4 +338,13 @@ public class PatientRehabilitationPlanDO extends UuidIdentityEntity implements S
    public void setDetailDOList(List<RehabilitationDetailDO> detailDOList) {
        this.detailDOList = detailDOList;
    }
    @Transient
    public PatientMedicalRecordsDO getMedicalRecordsDO() {
        return medicalRecordsDO;
    }
    public void setMedicalRecordsDO(PatientMedicalRecordsDO medicalRecordsDO) {
        this.medicalRecordsDO = medicalRecordsDO;
    }
}

+ 13 - 2
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/rehabilitation/service/RehabilitationPlanService.java

@ -306,7 +306,19 @@ public class RehabilitationPlanService extends BaseJpaService<RehabilitationPlan
            planDO.setPlanDoctor(list.get(0).get("plan_doctor")+"");
            planDO.setPlanDoctorName(list.get(0).get("plan_doctor_name")+"");
        }
        PatientMedicalRecordsDO recordsDO = planDO.getMedicalRecordsDO();
        String medicalRecordsCode = UUID.randomUUID().toString().replaceAll("-", "");
        recordsDO.setCode(medicalRecordsCode);
        recordsDO.setPatient(planDO.getPatient());
        recordsDO.setPatientName(planDO.getName());
        recordsDO.setCreateUser(planDO.getPlanDoctor());
        recordsDO.setCreateUserName(planDO.getPlanDoctorName());
        recordsDO.setDiseaseCode(planDO.getDisease());
        recordsDO.setDiseaseName(planDO.getDiseaseName());
        recordsDO.setCreateTime(new Date());
        patientMedicalRecordsDao.save(recordsDO);
        planDO.setMedicalRecordsCode(medicalRecordsCode);
        String patientInfoCode = planDO.getPatientInfoCode();
        planDO.setStatus(3);//待分配 执行医生和科室
        planDO.setTitle(planDO.getName()+"的康复计划");
@ -336,7 +348,6 @@ public class RehabilitationPlanService extends BaseJpaService<RehabilitationPlan
        if(StringUtils.isNotBlank(patientInfoCode)){
            RehabilitationPatientInfoDO infoDO = rehabilitationPatientInfoDao.findByCode(patientInfoCode);
            if(StringUtils.isBlank(infoDO.getDiagnosis())){
                PatientMedicalRecordsDO recordsDO = patientMedicalRecordsDao.findByCode(planDO.getMedicalRecordsCode());
                infoDO.setDept(recordsDO.getDept());
                infoDO.setDeptName(recordsDO.getDeptName());
                infoDO.setDiagnosis(recordsDO.getAdmittingDiagnosis());