|
|
|
@ -10,6 +10,9 @@ import com.supervision.exception.BusinessException;
|
|
|
|
|
import com.supervision.manage.pojo.vo.MedicalRecInfoVO;
|
|
|
|
|
import com.supervision.manage.pojo.vo.MedicalRecManageVO;
|
|
|
|
|
import com.supervision.manage.pojo.vo.MedicalRecQaVO;
|
|
|
|
|
import com.supervision.manage.service.DiseaseAncillaryManageService;
|
|
|
|
|
import com.supervision.manage.service.DiseasePhysicalManageService;
|
|
|
|
|
import com.supervision.manage.service.DiseaseTreatmentPlanManageService;
|
|
|
|
|
import com.supervision.model.*;
|
|
|
|
|
import com.supervision.service.*;
|
|
|
|
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
|
|
|
@ -42,6 +45,12 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
|
|
|
|
|
|
private final DiseaseQuestionService diseaseQuestionService;
|
|
|
|
|
|
|
|
|
|
private final DiseaseAncillaryManageService diseaseAncillaryManageService;
|
|
|
|
|
|
|
|
|
|
private final DiseasePhysicalManageService diseasePhysicalManageService;
|
|
|
|
|
|
|
|
|
|
private final DiseaseTreatmentPlanManageService diseaseTreatmentPlanManageService;
|
|
|
|
|
|
|
|
|
|
public List<Disease> queryDiseaseListByKeyWord(String keyword) {
|
|
|
|
|
// 注意,这里不支持查询复杂疾病,如果需要支持复杂疾病,这里需要单独进行改造
|
|
|
|
|
return diseaseService.lambdaQuery().eq(Disease::getDiseaseType, 0).like(Disease::getDiseaseName, keyword).list();
|
|
|
|
@ -86,7 +95,7 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
|
public List<MedicalRecQaVO> queryQuestionListByCreat(String diseaseId) {
|
|
|
|
|
// 去vp_disease_question获取
|
|
|
|
|
List<DiseaseQuestion> list = diseaseQuestionService.lambdaQuery().eq(DiseaseQuestion::getDiseaseId, diseaseId).list();
|
|
|
|
|
if (CollUtil.isEmpty(list)){
|
|
|
|
|
if (CollUtil.isEmpty(list)) {
|
|
|
|
|
return new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
// 获取问题
|
|
|
|
@ -162,11 +171,11 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
|
// 病人基本信息
|
|
|
|
|
medicalRecInfoVO.setPatient(patientService.getById(medicalRec.getPatientId()));
|
|
|
|
|
// 辅助检查
|
|
|
|
|
// medicalRecInfoVO.setAncillaryList();
|
|
|
|
|
medicalRecInfoVO.setAncillaryList(diseaseAncillaryManageService.queryListByDiseaseId(medicalRec.getDiseaseId()));
|
|
|
|
|
// 体格检查
|
|
|
|
|
// medicalRecInfoVO.setPhysicalList();
|
|
|
|
|
medicalRecInfoVO.setPhysicalList(diseasePhysicalManageService.queryListByDiseaseId(medicalRec.getDiseaseId()));
|
|
|
|
|
// 处置计划
|
|
|
|
|
// medicalRecInfoVO.setTreatmentPlanList();
|
|
|
|
|
medicalRecInfoVO.setTreatmentPlanList(diseaseTreatmentPlanManageService.queryListByDiseaseId(medicalRec.getDiseaseId()));
|
|
|
|
|
// 问答策略
|
|
|
|
|
medicalRecInfoVO.setQaList(queryMedicalRecQaInfo(id));
|
|
|
|
|
return medicalRecInfoVO;
|
|
|
|
|