|
@@ -65,7 +65,7 @@ public class THR03077 extends QCCatalogue {
|
|
.filter(Objects::nonNull)
|
|
.filter(Objects::nonNull)
|
|
.map(DoctorAdviceDoc::getStructureMap)
|
|
.map(DoctorAdviceDoc::getStructureMap)
|
|
.filter(x -> StringUtil.isNotBlank(x.get("药品类型")) && x.get("药品类型").contains("抗生素") && StringUtil.isNotBlank(x.get("医嘱单次剂量")))
|
|
.filter(x -> StringUtil.isNotBlank(x.get("药品类型")) && x.get("药品类型").contains("抗生素") && StringUtil.isNotBlank(x.get("医嘱单次剂量")))
|
|
- .filter(x -> StringUtil.isNotBlank(x.get("医嘱状态判别")) && !x.get("医嘱状态判别").contains("已停止"))
|
|
|
|
|
|
+// .filter(x -> StringUtil.isNotBlank(x.get("医嘱状态判别")) && !x.get("医嘱状态判别").contains("已停止"))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
docAdvStruct.removeIf(x -> StringUtil.isNotBlank(x.get("给药方式")) && !filterKey.contains(x.get("给药方式")));
|
|
docAdvStruct.removeIf(x -> StringUtil.isNotBlank(x.get("给药方式")) && !filterKey.contains(x.get("给药方式")));
|
|
|
|
|
|
@@ -106,12 +106,12 @@ public class THR03077 extends QCCatalogue {
|
|
}
|
|
}
|
|
|
|
|
|
//把抗生素使用剂量没变化过的抗生素删除
|
|
//把抗生素使用剂量没变化过的抗生素删除
|
|
- antibioticStatus.forEach((x, y) -> {
|
|
|
|
- if (y == 0) {
|
|
|
|
- antibioticDate.remove(x);
|
|
|
|
- antibioticValue.remove(x);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+// antibioticStatus.forEach((x, y) -> {
|
|
|
|
+// if (y == 0) {
|
|
|
|
+// antibioticDate.remove(x);
|
|
|
|
+// antibioticValue.remove(x);
|
|
|
|
+// }
|
|
|
|
+// });
|
|
//把同一天内同一个抗生素开过多次的抗生素删除
|
|
//把同一天内同一个抗生素开过多次的抗生素删除
|
|
// antibioticDateTimes.forEach((x, y) -> {
|
|
// antibioticDateTimes.forEach((x, y) -> {
|
|
// if (y > 0) {
|
|
// if (y > 0) {
|
|
@@ -130,11 +130,11 @@ public class THR03077 extends QCCatalogue {
|
|
/*********************************************首程治疗计划********************************************************/
|
|
/*********************************************首程治疗计划********************************************************/
|
|
if (firstCourseRecordDoc != null) {
|
|
if (firstCourseRecordDoc != null) {
|
|
DrugLabel drugLabel = firstCourseRecordDoc.getDrugLabel();
|
|
DrugLabel drugLabel = firstCourseRecordDoc.getDrugLabel();
|
|
- dateStr = firstCourseRecordDoc.getStructureMap().get("记录时间");
|
|
|
|
|
|
+ dateStr = firstCourseRecordDoc.getStructureMap().get("病历日期");
|
|
if (drugLabel != null && StringUtil.isNotBlank(dateStr)) {
|
|
if (drugLabel != null && StringUtil.isNotBlank(dateStr)) {
|
|
List<Drug> drugs = drugLabel.getDrugs();
|
|
List<Drug> drugs = drugLabel.getDrugs();
|
|
getCourseDrugInfo(antibioticDateCourse, dateStr, drugs,
|
|
getCourseDrugInfo(antibioticDateCourse, dateStr, drugs,
|
|
- CatalogueUtil.structureMapJoin(firstCourseRecordDoc.getStructureMap(), Lists.newArrayList("治疗计划")));
|
|
|
|
|
|
+ CatalogueUtil.structureMapJoin(firstCourseRecordDoc.getStructureMap(), Lists.newArrayList("诊疗计划")));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/*********************************************查房记录********************************************************/
|
|
/*********************************************查房记录********************************************************/
|
|
@@ -158,18 +158,19 @@ public class THR03077 extends QCCatalogue {
|
|
.stream()
|
|
.stream()
|
|
.map(OperationDoc::getOperationRecordDoc)
|
|
.map(OperationDoc::getOperationRecordDoc)
|
|
.filter(Objects::nonNull)
|
|
.filter(Objects::nonNull)
|
|
- .filter(x -> x.getOperationRecordLabel() != null && StringUtil.isNotBlank(x.getStructureMap().get("病历日期")))
|
|
|
|
|
|
+ .filter(x -> x.getOperationRecordLabel() != null && StringUtil.isNotBlank(x.getStructureMap().get("手术时间")))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
- operationRecordDocs.forEach(x -> getCourseDrugInfo(antibioticDateCourse, x.getStructureMap().get("病历日期"), x.getOperationRecordLabel().getDrugs()
|
|
|
|
- , CatalogueUtil.structureMapJoin(x.getStructureMap(), Lists.newArrayList("手术经过"))));
|
|
|
|
|
|
+ operationRecordDocs.forEach(x -> getCourseDrugInfo(antibioticDateCourse, x.getStructureMap().get("手术时间"), x.getOperationRecordLabel().getDrugs()
|
|
|
|
+ , CatalogueUtil.structureMapJoin(x.getStructureMap(), Lists.newArrayList("手术经过及处理"))));
|
|
|
|
+ //术后首程
|
|
List<OperationDiscussionDoc> operationDiscussionDocs = operationDocs
|
|
List<OperationDiscussionDoc> operationDiscussionDocs = operationDocs
|
|
.stream()
|
|
.stream()
|
|
.map(OperationDoc::getOperationDiscussionDoc)
|
|
.map(OperationDoc::getOperationDiscussionDoc)
|
|
.filter(Objects::nonNull)
|
|
.filter(Objects::nonNull)
|
|
- .filter(x -> x.getOperationDiscussionLabel() != null && StringUtil.isNotBlank(x.getStructureMap().get("记录日期")))
|
|
|
|
|
|
+ .filter(x -> x.getOperationDiscussionLabel().getOperativeFindings() != null && StringUtil.isNotBlank(x.getStructureMap().get("病历日期")))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
- operationDiscussionDocs.forEach(x -> getCourseDrugInfo(antibioticDateCourse, x.getStructureMap().get("记录日期"), x.getOperationDiscussionLabel().getDrugs()
|
|
|
|
- , CatalogueUtil.structureMapJoin(x.getStructureMap(), Lists.newArrayList("手术经过", "治疗计划和措施"))));
|
|
|
|
|
|
+ operationDiscussionDocs.forEach(x -> getCourseDrugInfo(antibioticDateCourse, x.getStructureMap().get("病历日期"), x.getOperationDiscussionLabel().getDrugs()
|
|
|
|
+ , CatalogueUtil.structureMapJoin(x.getStructureMap(), Lists.newArrayList("手术简要经过", "术后处理措施"))));
|
|
}
|
|
}
|
|
/*********************************************会诊结果单********************************************************/
|
|
/*********************************************会诊结果单********************************************************/
|
|
/*if (consultationDocs.size() > 0) {
|
|
/*if (consultationDocs.size() > 0) {
|
|
@@ -185,11 +186,14 @@ public class THR03077 extends QCCatalogue {
|
|
/*********************************************出院小结********************************************************/
|
|
/*********************************************出院小结********************************************************/
|
|
if (leaveHospitalDoc != null) {
|
|
if (leaveHospitalDoc != null) {
|
|
LeaveHospitalLabel leaveHospitalLabel = leaveHospitalDoc.getLeaveHospitalLabel();
|
|
LeaveHospitalLabel leaveHospitalLabel = leaveHospitalDoc.getLeaveHospitalLabel();
|
|
- dateStr = leaveHospitalDoc.getStructureMap().get("出院时间");
|
|
|
|
|
|
+ if (inputInfo.getMedicalRecordInfoDoc() != null) {
|
|
|
|
+ Map<String, String> medicalRecordInfoStructureMap = inputInfo.getMedicalRecordInfoDoc().getStructureMap();
|
|
|
|
+ dateStr = medicalRecordInfoStructureMap.get("leaveHospitalDate");
|
|
|
|
+ }
|
|
if (leaveHospitalLabel != null && StringUtil.isNotBlank(dateStr)) {
|
|
if (leaveHospitalLabel != null && StringUtil.isNotBlank(dateStr)) {
|
|
List<Drug> drugs = leaveHospitalLabel.getDrugs();
|
|
List<Drug> drugs = leaveHospitalLabel.getDrugs();
|
|
getCourseDrugInfo(antibioticDateCourse, dateStr, drugs
|
|
getCourseDrugInfo(antibioticDateCourse, dateStr, drugs
|
|
- , CatalogueUtil.structureMapJoin(leaveHospitalDoc.getStructureMap(), Lists.newArrayList("诊治经过", "出院带药")));
|
|
|
|
|
|
+ , CatalogueUtil.structureMapJoin(leaveHospitalDoc.getStructureMap(), Lists.newArrayList("诊治经过")));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//将病程日期排序
|
|
//将病程日期排序
|
|
@@ -502,6 +506,6 @@ public class THR03077 extends QCCatalogue {
|
|
"关节腔注射", "宫颈注射", "皮下注射", "皮下注射(儿童)", "皮下注射(免费)", "皮下注射(成人)", "皮内", "皮内注射",
|
|
"关节腔注射", "宫颈注射", "皮下注射", "皮下注射(儿童)", "皮下注射(免费)", "皮下注射(成人)", "皮内", "皮内注射",
|
|
"结膜下注射", "肌注", "肌肉注射(儿童)", "肌肉注射(公卫专用)", "肌肉注射(成人)", "胸腔注射", "腹腔内注射", "腹腔注射",
|
|
"结膜下注射", "肌注", "肌肉注射(儿童)", "肌肉注射(公卫专用)", "肌肉注射(成人)", "胸腔注射", "腹腔内注射", "腹腔注射",
|
|
"静滴(儿童)", "静滴(成人)", "静脉注射", "静脉注射(儿童)", "静脉注射(免费)", "静脉注射(成人)", "静脉注射(泵)",
|
|
"静滴(儿童)", "静滴(成人)", "静脉注射", "静脉注射(儿童)", "静脉注射(免费)", "静脉注射(成人)", "静脉注射(泵)",
|
|
- "静脉滴注", "静脉滴注(泵)", "鞘内注射");
|
|
|
|
|
|
+ "静脉滴注", "静脉滴注(泵)", "鞘内注射", "微泵");
|
|
|
|
|
|
}
|
|
}
|