|
@@ -72,7 +72,12 @@ public class XyLeaveHospitalHtmlAnalysis implements XyHtmlAnalysis {
|
|
|
if (diagString.contains("。")) {
|
|
|
Integer index = diagString.indexOf("。");
|
|
|
structureMap.put("入院诊断", diagString.substring(0, index));
|
|
|
- structureMap.put("基本信息", diagString.substring(index, diagString.length()));
|
|
|
+ if(diagString.contains("因") && diagString.contains("入院")) {
|
|
|
+ if(diagString.indexOf("入院")>(diagString.lastIndexOf("因") + 1)) {
|
|
|
+ structureMap.put("主诉", diagString.substring(diagString.lastIndexOf("因") + 1, diagString.indexOf("入院")));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ structureMap.put("基本信息",diagString.substring(index, diagString.length()));
|
|
|
}
|
|
|
}
|
|
|
XyHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
|