|
@@ -43,6 +43,7 @@ public class XiamenClinicBloodEffectDocTrans extends ModelDocTrans {
|
|
|
Map<String, String> structureMap = null;
|
|
|
if (contentMap.get("isParsed") != null && "1".equals(contentMap.get("isParsed").toString())) {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
+ structuredProcessing(structureMap, wordList);
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(structureMap, keyContrasts, "32");
|
|
|
}
|
|
|
if (MapUtils.isNotEmpty(structureMap)) {
|
|
@@ -54,9 +55,30 @@ public class XiamenClinicBloodEffectDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void structuredProcessing(Map<String, String> structureMap, List<String> wordList) {
|
|
|
+ for (String word : wordList) {
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
+ for (Map.Entry<String, String> entity : structureMap.entrySet()) {
|
|
|
+ if (entity.getKey().contains(word)) {
|
|
|
+ sb.append(entity.getKey() + entity.getValue() + ";");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ structureMap.put(word, sb.toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private List<String> wordList = Lists.newArrayList("输血前指征", "输血后指征", "生命体征评估");
|
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
|
"输血诊断=病历内容",
|
|
|
- "评估时间=病历日期"
|
|
|
+ "评估时间=病历日期",
|
|
|
+ "病历内容=临床诊断",
|
|
|
+ "输血后检查|ABO血型=ABO",
|
|
|
+ "输血前指征=输血前实验室检测指征",
|
|
|
+ "输血后指征=输血后实验室检测指征",
|
|
|
+ "生命体征评估=临床症状与生命体征",
|
|
|
+ "生命体征评估|神志=神志状态",
|
|
|
+ "生命体征评估|心肺功能=心肺功能评估",
|
|
|
+ "科别=科室"
|
|
|
);
|
|
|
|
|
|
}
|