|
@@ -7,8 +7,7 @@ import com.lantone.common.util.StringUtil;
|
|
import com.lantone.structure.facade.tran.util.CommonAnalysisUtil;
|
|
import com.lantone.structure.facade.tran.util.CommonAnalysisUtil;
|
|
import com.lantone.structure.model.doc.operation.OperationDoc;
|
|
import com.lantone.structure.model.doc.operation.OperationDoc;
|
|
import com.lantone.structure.model.doc.operation.OperationRecordDoc;
|
|
import com.lantone.structure.model.doc.operation.OperationRecordDoc;
|
|
-import com.lantone.structure.model.entity.Intervention;
|
|
|
|
-import com.lantone.structure.model.entity.OperationIncision;
|
|
|
|
|
|
+import com.lantone.structure.model.entity.*;
|
|
import com.lantone.structure.model.label.OperationRecordLabel;
|
|
import com.lantone.structure.model.label.OperationRecordLabel;
|
|
import com.lantone.structure.util.MapUtil;
|
|
import com.lantone.structure.util.MapUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -55,8 +54,14 @@ public class OperationRecordDocTran extends TargetTran {
|
|
if (operationRecordDoc != null) {
|
|
if (operationRecordDoc != null) {
|
|
int interventionCount = 1;
|
|
int interventionCount = 1;
|
|
int operationIncisionCount = 1;
|
|
int operationIncisionCount = 1;
|
|
|
|
+ int drainageMaterialsNameCount = 1;
|
|
|
|
+ int drainageMaterialsAmountCount = 1;
|
|
|
|
+ int placePositionCount = 1;
|
|
StringBuffer interventionString = new StringBuffer();
|
|
StringBuffer interventionString = new StringBuffer();
|
|
StringBuffer operationIncisionString = new StringBuffer();
|
|
StringBuffer operationIncisionString = new StringBuffer();
|
|
|
|
+ StringBuffer drainageMaterialsNameString = new StringBuffer();
|
|
|
|
+ StringBuffer drainageMaterialsAmountString = new StringBuffer();
|
|
|
|
+ StringBuffer placePositionString = new StringBuffer();
|
|
OperationRecordLabel operationRecordLabel = operationRecordDoc.getOperationRecordLabel();
|
|
OperationRecordLabel operationRecordLabel = operationRecordDoc.getOperationRecordLabel();
|
|
if (operationRecordLabel == null) {
|
|
if (operationRecordLabel == null) {
|
|
return;
|
|
return;
|
|
@@ -111,23 +116,66 @@ public class OperationRecordDocTran extends TargetTran {
|
|
}
|
|
}
|
|
|
|
|
|
//引流材料名称
|
|
//引流材料名称
|
|
- if (operationRecordLabel.getDrainageMaterialsName() != null && StringUtils.isNotEmpty(operationRecordLabel.getDrainageMaterialsName().getName())) {
|
|
|
|
- retMap.put("引流材料名称", operationRecordLabel.getDrainageMaterialsName().getName());
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(operationRecordLabel.getDrainageMaterialsNames())) {
|
|
|
|
+ for (DrainageMaterialsName drainageMaterialsNames : operationRecordLabel.getDrainageMaterialsNames()) {
|
|
|
|
+ if (StringUtils.isNotEmpty(drainageMaterialsNames.getName())) {
|
|
|
|
+ if (operationRecordLabel.getDrainageMaterialsNames().size() > 1) {
|
|
|
|
+ drainageMaterialsNameString.append((drainageMaterialsNameCount++) + ".");
|
|
|
|
+ }
|
|
|
|
+ drainageMaterialsNameString.append(drainageMaterialsNames.getName());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ retMap.put("引流材料名称", drainageMaterialsNameString.toString());
|
|
}
|
|
}
|
|
|
|
+// if (operationRecordLabel.getDrainageMaterialsName() != null && StringUtils.isNotEmpty(operationRecordLabel.getDrainageMaterialsName().getName())) {
|
|
|
|
+// retMap.put("引流材料名称", operationRecordLabel.getDrainageMaterialsName().getName());
|
|
|
|
+// }
|
|
|
|
+ //放置部位
|
|
|
|
+ if (ListUtil.isNotEmpty(operationRecordLabel.getPlacePositions())) {
|
|
|
|
+ for (PlacePosition PlacePositions : operationRecordLabel.getPlacePositions()) {
|
|
|
|
+ if (StringUtils.isNotEmpty(PlacePositions.getName())) {
|
|
|
|
+ if (operationRecordLabel.getPlacePositions().size() > 1) {
|
|
|
|
+ placePositionString.append((placePositionCount++) + ".");
|
|
|
|
+ }
|
|
|
|
+ placePositionString.append(PlacePositions.getName());
|
|
|
|
+ }
|
|
|
|
|
|
- //引流材料数目
|
|
|
|
- if (operationRecordLabel.getDrainageMaterialsAmount() != null && StringUtils.isNotEmpty(operationRecordLabel.getDrainageMaterialsAmount().getName())) {
|
|
|
|
- retMap.put("引流材料数目", operationRecordLabel.getDrainageMaterialsAmount().getName());
|
|
|
|
|
|
+ }
|
|
|
|
+ retMap.put("放置部位", placePositionString.toString());
|
|
}
|
|
}
|
|
|
|
+// if (operationRecordLabel.getPlacePosition() != null && StringUtils.isNotEmpty(operationRecordLabel.getPlacePosition().getName())) {
|
|
|
|
+// retMap.put("放置部位", operationRecordLabel.getPlacePosition().getName());
|
|
|
|
+// }
|
|
|
|
|
|
- //放置部位
|
|
|
|
- if (operationRecordLabel.getPlacePosition() != null && StringUtils.isNotEmpty(operationRecordLabel.getPlacePosition().getName())) {
|
|
|
|
- retMap.put("放置部位", operationRecordLabel.getPlacePosition().getName());
|
|
|
|
|
|
+ //引流材料数目
|
|
|
|
+ if (ListUtil.isNotEmpty(operationRecordLabel.getDrainageMaterialsAmounts())) {
|
|
|
|
+ for (DrainageMaterialsAmount drainageMaterialsAmounts : operationRecordLabel.getDrainageMaterialsAmounts()) {
|
|
|
|
+ if (StringUtils.isNotEmpty(drainageMaterialsAmounts.getName())) {
|
|
|
|
+// if (operationRecordLabel.getDrainageMaterialsAmounts().size() > 1) {
|
|
|
|
+// drainageMaterialsAmountString.append((placePositionCount++) + ".");
|
|
|
|
+// }
|
|
|
|
+ addAmount(drainageMaterialsAmountString, drainageMaterialsAmounts.getName());
|
|
|
|
+ drainageMaterialsAmountString.append(drainageMaterialsAmounts.getName() + "、");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ retMap.put("引流材料数目", drainageMaterialsAmountString.toString());
|
|
}
|
|
}
|
|
|
|
+// if (operationRecordLabel.getDrainageMaterialsAmount() != null && StringUtils.isNotEmpty(operationRecordLabel.getDrainageMaterialsAmount().getName())) {
|
|
|
|
+// retMap.put("引流材料数目", operationRecordLabel.getDrainageMaterialsAmount().getName());
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private String addAmount(StringBuffer drainageMaterialsAmountString ,String str) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+
|
|
private Map<String, String> cutWord(String text) {
|
|
private Map<String, String> cutWord(String text) {
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
text = text.replace("年 月 日 时 分", "").replace("第1次手术", "")
|
|
text = text.replace("年 月 日 时 分", "").replace("第1次手术", "")
|
|
@@ -135,7 +183,7 @@ public class OperationRecordDocTran extends TargetTran {
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
Lists.newArrayList("手术开始时间", "手术结束时间", "术前诊断", "手术名称", "术中诊断", "手 术 者", "手术人员", "助手",
|
|
Lists.newArrayList("手术开始时间", "手术结束时间", "术前诊断", "手术名称", "术中诊断", "手 术 者", "手术人员", "助手",
|
|
"麻醉方法", "麻醉方式", "麻 醉 者", "麻醉医师", "手术标本", "手术切除标本", "术中并发症", "术中失血量", "术中输血量", "手术简要经过(包括“术中所见”)",
|
|
"麻醉方法", "麻醉方式", "麻 醉 者", "麻醉医师", "手术标本", "手术切除标本", "术中并发症", "术中失血量", "术中输血量", "手术简要经过(包括“术中所见”)",
|
|
- "手术经过", "术后情况及诊疗计划", "术后注意事项", "记录者", "主刀医生", "医生签名", "患者或代理人签名", "与病人关系"),
|
|
|
|
|
|
+ "手术经过", "术后情况及诊疗计划", "术后注意事项", "记录者", "主刀医生", "医生签名", "主刀医师签名", "记录时间", "患者或代理人签名", "与病人关系"),
|
|
text
|
|
text
|
|
);
|
|
);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
@@ -162,7 +210,7 @@ public class OperationRecordDocTran extends TargetTran {
|
|
}
|
|
}
|
|
|
|
|
|
CommonAnalysisUtil.removeKey(sourceMap, "术前诊断", "术中诊断", "⒈患者基本情况", "⒉拟实施的输血方案", "手术标本", "手术切除标本", "术中并发症",
|
|
CommonAnalysisUtil.removeKey(sourceMap, "术前诊断", "术中诊断", "⒈患者基本情况", "⒉拟实施的输血方案", "手术标本", "手术切除标本", "术中并发症",
|
|
- "与病人关系", "术后情况及诊疗计划", "术后注意事项", "手术简要经过(包括“术中所见”)");
|
|
|
|
|
|
+ "与病人关系", "术后情况及诊疗计划", "术后注意事项");
|
|
}
|
|
}
|
|
return sourceMap;
|
|
return sourceMap;
|
|
}
|
|
}
|
|
@@ -201,6 +249,7 @@ public class OperationRecordDocTran extends TargetTran {
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
"手术开始时间=手术开始日期时间",
|
|
"手术开始时间=手术开始日期时间",
|
|
"手术结束时间=手术结束日期时间",
|
|
"手术结束时间=手术结束日期时间",
|
|
|
|
+ "手术简要经过(包括“术中所见”)=手术过程描述",
|
|
"手术经过=手术过程描述",
|
|
"手术经过=手术过程描述",
|
|
"手术者=手术者姓名",
|
|
"手术者=手术者姓名",
|
|
"手术人员=手术者姓名",
|
|
"手术人员=手术者姓名",
|
|
@@ -209,6 +258,8 @@ public class OperationRecordDocTran extends TargetTran {
|
|
"医护人员陈述=手术者签名",
|
|
"医护人员陈述=手术者签名",
|
|
"主刀医生=手术者签名",
|
|
"主刀医生=手术者签名",
|
|
"术中失血量=出血量(mL)",
|
|
"术中失血量=出血量(mL)",
|
|
- "术中输血量=输血量(mL)"
|
|
|
|
|
|
+ "术中输血量=输血量(mL)",
|
|
|
|
+ "主刀医师签名=手术者签名",
|
|
|
|
+ "记录时间=签名日期时间"
|
|
);
|
|
);
|
|
}
|
|
}
|