|
@@ -12,6 +12,7 @@ import com.diagbot.entity.*;
|
|
|
import com.diagbot.enums.CheckStatusEnum;
|
|
|
import com.diagbot.enums.CheckerRoleEnum;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
+import com.diagbot.enums.QualityContent;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.BehospitalInfoServiceImpl;
|
|
@@ -1049,6 +1050,8 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
|
|
|
addData("日常病程录", recMap, medrecVoList);
|
|
|
|
|
|
+ lbAddDataHZQY("量表", recMap, medrecVoList,"65", analyzeVO);
|
|
|
+
|
|
|
//DataWithKey("知情同意书", medicalRecordDTOList, medrecVoList);
|
|
|
addDataWithInnerKey("知情同意书", recMap, medrecVoList);
|
|
|
addDataWithInnerKey("谈话告知书", recMap, medrecVoList);
|
|
@@ -1221,6 +1224,45 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 量表拼接数据(杭州七院时效性规则统计)
|
|
|
+ *
|
|
|
+ * @param key
|
|
|
+ * @param medrecVoList
|
|
|
+ */
|
|
|
+ public void lbAddDataHZQY(String key, Map<String, List<RecordContentDTO>> recMap, List<MedrecVo> medrecVoList, String modeId, AnalyzeVO analyzeVO) {
|
|
|
+ List<RecordContentDTO> list = recMap.get(key);
|
|
|
+ List<RecordContentDTO> listCopy = new ArrayList<>();
|
|
|
+ for (String lb:QualityContent.LB) {
|
|
|
+ List<MedicalRecord> recordList = medicalRecordFacade.list(new QueryWrapper<MedicalRecord>()
|
|
|
+ .eq("mode_id", modeId)
|
|
|
+ .eq("rec_title", lb)
|
|
|
+ .eq("hospital_id", analyzeVO.getHospitalId())
|
|
|
+ .eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
|
+ .orderByAsc("rec_date")
|
|
|
+ );
|
|
|
+
|
|
|
+ if (ListUtil.isNotEmpty(list)) {
|
|
|
+ for (RecordContentDTO recordContentDTO : list) {
|
|
|
+ if(lb.equals(recordContentDTO.getRecTitle())){
|
|
|
+ recordContentDTO.setFirstCreateDate(recordList.get(0).getRecDate());
|
|
|
+ recordContentDTO.setRecTitle(recordContentDTO.getRecTitle());
|
|
|
+ listCopy.add(recordContentDTO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (ListUtil.isNotEmpty(listCopy)) {
|
|
|
+ MedrecVo medrecVo = new MedrecVo();
|
|
|
+ Map<String, Object> content = new HashMap<>();
|
|
|
+ content.put("content", listCopy);
|
|
|
+ medrecVo.setTitle(key);
|
|
|
+ medrecVo.setContent(content);
|
|
|
+ medrecVoList.add(medrecVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 1.5.0拼接数据(手术、会诊)
|
|
@@ -1751,10 +1793,17 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
// taskVO.setEndLeaveDate(DateUtil.getLastTimeOfDay(DateUtil.addDay(DateUtil.now(), -1)));
|
|
|
// }
|
|
|
// List<BehospitalInfo> behospitalInfoList = getNoGrade(taskVO);
|
|
|
+ List<BehospitalInfo> behospitalInfoList = new ArrayList<>();
|
|
|
+ if(taskVO.getType() == 1){
|
|
|
+ behospitalInfoList = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
|
+ .le("behospital_date", taskVO.getEndLeaveDate())
|
|
|
+ .ge("behospital_date", taskVO.getStartLeaveDate()));
|
|
|
+ }else if(taskVO.getType() == 2){
|
|
|
+ behospitalInfoList = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
|
+ .le("leave_hospital_date", taskVO.getEndLeaveDate())
|
|
|
+ .ge("leave_hospital_date", taskVO.getStartLeaveDate()));
|
|
|
+ }
|
|
|
|
|
|
- List<BehospitalInfo> behospitalInfoList = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
|
- .le("behospital_date", taskVO.getEndLeaveDate())
|
|
|
- .ge("behospital_date", taskVO.getStartLeaveDate()));
|
|
|
for (BehospitalInfo bean : behospitalInfoList) {
|
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
|
analyzeVO.setIsTask(true);
|