|
@@ -21,7 +21,7 @@ public class ChangxDocTrans extends DocTrans {
|
|
|
protected InputInfo extract(QueryVo queryVo) {
|
|
|
InputInfo inputInfo = new InputInfo();
|
|
|
for (MedrecVo i : queryVo.getMedrec()) {
|
|
|
- if (i.getTitle().equals("会诊单")) {
|
|
|
+ if (i.getTitle().equals("会诊单")) {
|
|
|
ChangxConsultationDocTrans consultationDocTrans = new ChangxConsultationDocTrans();
|
|
|
inputInfo.setConsultationDocs(consultationDocTrans.extract(i));
|
|
|
}
|
|
@@ -109,14 +109,14 @@ public class ChangxDocTrans extends DocTrans {
|
|
|
ChangxThreeLevelWardDocTrans threeLevelWardDocTrans = new ChangxThreeLevelWardDocTrans();
|
|
|
inputInfo.setThreeLevelWardDocs(threeLevelWardDocTrans.extract(i));
|
|
|
}
|
|
|
-// if (i.getTitle().equals("知情同意书")) {
|
|
|
-// ChangxInformedConsentDocTrans informedConsentDocTrans = new ChangxInformedConsentDocTrans();
|
|
|
-// inputInfo.setInformedConsentDoc(informedConsentDocTrans.extract(i));
|
|
|
-// }
|
|
|
-// if (i.getTitle().equals("谈话告知书")) {
|
|
|
-// ChangxNoticeOfConversationDocTrans noticeOfConversationDocTrans = new ChangxNoticeOfConversationDocTrans();
|
|
|
-// inputInfo.setNoticeOfConversationDoc(noticeOfConversationDocTrans.extract(i));
|
|
|
-// }
|
|
|
+ // if (i.getTitle().equals("知情同意书")) {
|
|
|
+ // ChangxInformedConsentDocTrans informedConsentDocTrans = new ChangxInformedConsentDocTrans();
|
|
|
+ // inputInfo.setInformedConsentDoc(informedConsentDocTrans.extract(i));
|
|
|
+ // }
|
|
|
+ // if (i.getTitle().equals("谈话告知书")) {
|
|
|
+ // ChangxNoticeOfConversationDocTrans noticeOfConversationDocTrans = new ChangxNoticeOfConversationDocTrans();
|
|
|
+ // inputInfo.setNoticeOfConversationDoc(noticeOfConversationDocTrans.extract(i));
|
|
|
+ // }
|
|
|
}
|
|
|
pageDataHandle(inputInfo);
|
|
|
return inputInfo;
|
|
@@ -173,7 +173,7 @@ public class ChangxDocTrans extends DocTrans {
|
|
|
inputInfo.getPageData().put("阶段小结", inputInfo.getStagesSummaryDocs().stream().map(i -> i.getPageData()).collect(Collectors.toList()));
|
|
|
}
|
|
|
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.getConsultationDocs())) {
|
|
@@ -227,14 +227,14 @@ public class ChangxDocTrans extends DocTrans {
|
|
|
.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.getOperationInformedConsentDoc() != null)
|
|
|
+ // .map(operationDoc -> operationDoc.getOperationInformedConsentDoc().getPageData())
|
|
|
+ // .collect(Collectors.toList())
|
|
|
+ // );
|
|
|
inputInfo.getPageData().put(
|
|
|
"手术安全核查表",
|
|
|
inputInfo.getOperationDocs()
|
|
@@ -244,6 +244,28 @@ public class ChangxDocTrans extends DocTrans {
|
|
|
.collect(Collectors.toList())
|
|
|
);
|
|
|
}
|
|
|
+ if (inputInfo.getTransferRecordDocs() != null) {
|
|
|
+ if (ListUtil.isNotEmpty(inputInfo.getTransferRecordDocs().getTransferIntoDocs())) {
|
|
|
+ inputInfo.getPageData().put(
|
|
|
+ "转入记录",
|
|
|
+ inputInfo.getTransferRecordDocs().getTransferIntoDocs()
|
|
|
+ .stream()
|
|
|
+ .filter(i -> i != null)
|
|
|
+ .map(i -> i.getPageData())
|
|
|
+ .collect(Collectors.toList())
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (ListUtil.isNotEmpty(inputInfo.getTransferRecordDocs().getTransferOutDocs())) {
|
|
|
+ inputInfo.getPageData().put(
|
|
|
+ "转出记录",
|
|
|
+ inputInfo.getTransferRecordDocs().getTransferOutDocs()
|
|
|
+ .stream()
|
|
|
+ .filter(i -> i != null)
|
|
|
+ .map(i -> i.getPageData())
|
|
|
+ .collect(Collectors.toList())
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|