|
@@ -7,6 +7,8 @@ import com.lantone.qc.pub.model.vo.QueryVo;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.trans.DocTrans;
|
|
import com.lantone.qc.trans.DocTrans;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -48,7 +50,7 @@ public class TaizhouDocTrans extends DocTrans {
|
|
break;
|
|
break;
|
|
case "病危通知书":
|
|
case "病危通知书":
|
|
TaiZhouCriticallyIllNoticeDocTrans criticallyIllNoticeDocTrans = new TaiZhouCriticallyIllNoticeDocTrans();
|
|
TaiZhouCriticallyIllNoticeDocTrans criticallyIllNoticeDocTrans = new TaiZhouCriticallyIllNoticeDocTrans();
|
|
- inputInfo.setCriticallyIllNoticeDocs(criticallyIllNoticeDocTrans.extract(i));
|
|
|
|
|
|
+ inputInfo.setCriticallyIllNoticeDocs(criticallyIllNoticeDocTrans.extract(i));
|
|
break;
|
|
break;
|
|
case "死亡病例讨论记录":
|
|
case "死亡病例讨论记录":
|
|
TaiZhouDeathCaseDiscussDocTrans deathCaseDiscussDocTrans = new TaiZhouDeathCaseDiscussDocTrans();
|
|
TaiZhouDeathCaseDiscussDocTrans deathCaseDiscussDocTrans = new TaiZhouDeathCaseDiscussDocTrans();
|
|
@@ -76,7 +78,7 @@ public class TaizhouDocTrans extends DocTrans {
|
|
break;
|
|
break;
|
|
case "病案首页":
|
|
case "病案首页":
|
|
TaiZhouFirstPageRecordDocTrans firstPageRecordDocTrans = new TaiZhouFirstPageRecordDocTrans();
|
|
TaiZhouFirstPageRecordDocTrans firstPageRecordDocTrans = new TaiZhouFirstPageRecordDocTrans();
|
|
- if(inputInfo.getFirstPageRecordDoc() == null){
|
|
|
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() == null) {
|
|
inputInfo.setFirstPageRecordDoc(firstPageRecordDocTrans.extract(i));
|
|
inputInfo.setFirstPageRecordDoc(firstPageRecordDocTrans.extract(i));
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -141,7 +143,7 @@ public class TaizhouDocTrans extends DocTrans {
|
|
if (inputInfo.getFirstCourseRecordDoc() != null) {
|
|
if (inputInfo.getFirstCourseRecordDoc() != null) {
|
|
inputInfo.getPageData().put("首次病程录", Lists.newArrayList(inputInfo.getFirstCourseRecordDoc().getPageData()));
|
|
inputInfo.getPageData().put("首次病程录", Lists.newArrayList(inputInfo.getFirstCourseRecordDoc().getPageData()));
|
|
}
|
|
}
|
|
- if (inputInfo.getLeaveHospitalDoc() != null) {
|
|
|
|
|
|
+ if (inputInfo.getDeathRecordDoc() == null && inputInfo.getLeaveHospitalDoc() != null) {
|
|
inputInfo.getPageData().put("出院小结", Lists.newArrayList(inputInfo.getLeaveHospitalDoc().getPageData()));
|
|
inputInfo.getPageData().put("出院小结", Lists.newArrayList(inputInfo.getLeaveHospitalDoc().getPageData()));
|
|
}
|
|
}
|
|
// if (inputInfo.getNursingSystemDoc() != null) {
|
|
// if (inputInfo.getNursingSystemDoc() != null) {
|
|
@@ -163,9 +165,9 @@ public class TaizhouDocTrans extends DocTrans {
|
|
if (ListUtil.isNotEmpty(inputInfo.getCriticallyIllNoticeDocs())) {
|
|
if (ListUtil.isNotEmpty(inputInfo.getCriticallyIllNoticeDocs())) {
|
|
inputInfo.getPageData().put("病危通知书", inputInfo.getCriticallyIllNoticeDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
inputInfo.getPageData().put("病危通知书", inputInfo.getCriticallyIllNoticeDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
}
|
|
}
|
|
- if (ListUtil.isNotEmpty(inputInfo.getDifficultCaseDiscussDocs())) {
|
|
|
|
- inputInfo.getPageData().put("疑难病例讨论记录", inputInfo.getDifficultCaseDiscussDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
|
|
- }
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(inputInfo.getDifficultCaseDiscussDocs())) {
|
|
|
|
+ inputInfo.getPageData().put("疑难病例讨论记录", inputInfo.getDifficultCaseDiscussDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
|
|
+ }
|
|
// if (ListUtil.isNotEmpty(inputInfo.getDoctorAdviceDocs())) {
|
|
// if (ListUtil.isNotEmpty(inputInfo.getDoctorAdviceDocs())) {
|
|
// inputInfo.getPageData().put("医嘱信息", inputInfo.getDoctorAdviceDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
// inputInfo.getPageData().put("医嘱信息", inputInfo.getDoctorAdviceDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
// }
|
|
// }
|
|
@@ -182,79 +184,85 @@ public class TaizhouDocTrans extends DocTrans {
|
|
inputInfo.getPageData().put("阶段小结", inputInfo.getStagesSummaryDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
inputInfo.getPageData().put("阶段小结", inputInfo.getStagesSummaryDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
}
|
|
}
|
|
if (ListUtil.isNotEmpty(inputInfo.getThreeLevelWardDocs())) {
|
|
if (ListUtil.isNotEmpty(inputInfo.getThreeLevelWardDocs())) {
|
|
- inputInfo.getPageData().put("查房记录", inputInfo.getThreeLevelWardDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
|
|
|
|
+ inputInfo.getPageData().put("查房记录", inputInfo.getThreeLevelWardDocs().get(0).getAllDoctorWradDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
}
|
|
}
|
|
if (ListUtil.isNotEmpty(inputInfo.getPathologyShipDocs())) {
|
|
if (ListUtil.isNotEmpty(inputInfo.getPathologyShipDocs())) {
|
|
inputInfo.getPageData().put("病理检验送检单", inputInfo.getPathologyShipDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
inputInfo.getPageData().put("病理检验送检单", inputInfo.getPathologyShipDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
}
|
|
}
|
|
|
|
|
|
if (ListUtil.isNotEmpty(inputInfo.getConsultationDocs())) {
|
|
if (ListUtil.isNotEmpty(inputInfo.getConsultationDocs())) {
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "会诊记录",
|
|
|
|
- inputInfo.getConsultationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(consultationDoc -> consultationDoc != null && consultationDoc.getConsultationRecordDoc() != null)
|
|
|
|
- .map(consultationDoc -> consultationDoc.getConsultationRecordDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "会诊申请单",
|
|
|
|
- inputInfo.getConsultationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(consultationDoc -> consultationDoc != null && consultationDoc.getConsultationApplicationDoc() != null)
|
|
|
|
- .map(consultationDoc -> consultationDoc.getConsultationApplicationDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "会诊结果单",
|
|
|
|
- inputInfo.getConsultationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(consultationDoc -> consultationDoc != null && consultationDoc.getConsultationResultsDoc() != null)
|
|
|
|
- .map(consultationDoc -> consultationDoc.getConsultationResultsDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
|
|
+ List<Map<String, Object>> crePageDataList = inputInfo.getConsultationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(consultationDoc -> consultationDoc != null && consultationDoc.getConsultationRecordDoc() != null)
|
|
|
|
+ .map(consultationDoc -> consultationDoc.getConsultationRecordDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(crePageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("会诊记录", crePageDataList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> caPageDataList = inputInfo.getConsultationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(consultationDoc -> consultationDoc != null && consultationDoc.getConsultationApplicationDoc() != null)
|
|
|
|
+ .map(consultationDoc -> consultationDoc.getConsultationApplicationDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(caPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("会诊申请单", caPageDataList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> crsPageDataList = inputInfo.getConsultationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(consultationDoc -> consultationDoc != null && consultationDoc.getConsultationResultsDoc() != null)
|
|
|
|
+ .map(consultationDoc -> consultationDoc.getConsultationResultsDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(crsPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("会诊结果单", crsPageDataList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (ListUtil.isNotEmpty(inputInfo.getOperationDocs())) {
|
|
if (ListUtil.isNotEmpty(inputInfo.getOperationDocs())) {
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "术后首次病程及谈话记录",
|
|
|
|
- inputInfo.getOperationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(operationDoc -> operationDoc != null && operationDoc.getOperationDiscussionDoc() != null)
|
|
|
|
- .map(operationDoc -> operationDoc.getOperationDiscussionDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "手术记录",
|
|
|
|
- inputInfo.getOperationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(operationDoc -> operationDoc != null && operationDoc.getOperationRecordDoc() != null)
|
|
|
|
- .map(operationDoc -> operationDoc.getOperationRecordDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "术前讨论、术前小结",
|
|
|
|
- inputInfo.getOperationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(operationDoc -> operationDoc != null && operationDoc.getPreoperativeDiscussionDoc() != null)
|
|
|
|
- .map(operationDoc -> operationDoc.getPreoperativeDiscussionDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "手术知情同意书",
|
|
|
|
- inputInfo.getOperationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(operationDoc -> operationDoc != null && operationDoc.getOperationInformedConsentDoc() != null)
|
|
|
|
- .map(operationDoc -> operationDoc.getOperationInformedConsentDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
- inputInfo.getPageData().put(
|
|
|
|
- "手术安全核查表",
|
|
|
|
- inputInfo.getOperationDocs()
|
|
|
|
- .stream()
|
|
|
|
- .filter(operationDoc -> operationDoc != null && operationDoc.getOperationSafetyChecklistDoc() != null)
|
|
|
|
- .map(operationDoc -> operationDoc.getOperationSafetyChecklistDoc().getPageData())
|
|
|
|
- .collect(Collectors.toList())
|
|
|
|
- );
|
|
|
|
|
|
+ List<Map<String, Object>> odPageDataList = inputInfo.getOperationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(operationDoc -> operationDoc != null && operationDoc.getOperationDiscussionDoc() != null)
|
|
|
|
+ .map(operationDoc -> operationDoc.getOperationDiscussionDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(odPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("术后首次病程及谈话记录", odPageDataList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> orPageDataList = inputInfo.getOperationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(operationDoc -> operationDoc != null && operationDoc.getOperationRecordDoc() != null)
|
|
|
|
+ .map(operationDoc -> operationDoc.getOperationRecordDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(orPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("手术记录", orPageDataList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> pdPageDataList = inputInfo.getOperationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(operationDoc -> operationDoc != null && operationDoc.getPreoperativeDiscussionDoc() != null)
|
|
|
|
+ .map(operationDoc -> operationDoc.getPreoperativeDiscussionDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(pdPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("术前讨论、术前小结", pdPageDataList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> oicPageDataList = inputInfo.getOperationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(operationDoc -> operationDoc != null && operationDoc.getOperationInformedConsentDoc() != null)
|
|
|
|
+ .map(operationDoc -> operationDoc.getOperationInformedConsentDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(oicPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("手术知情同意书", oicPageDataList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> oscPageDataList = inputInfo.getOperationDocs()
|
|
|
|
+ .stream()
|
|
|
|
+ .filter(operationDoc -> operationDoc != null && operationDoc.getOperationSafetyChecklistDoc() != null)
|
|
|
|
+ .map(operationDoc -> operationDoc.getOperationSafetyChecklistDoc().getPageData())
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
+ if (ListUtil.isNotEmpty(oscPageDataList)) {
|
|
|
|
+ inputInfo.getPageData().put("手术安全核查表", oscPageDataList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|