|
@@ -45,6 +45,12 @@ public class BeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
Map<String, String> sourceMap = htmlAnalysis.analysis(content, recTitle, recTypeId);
|
|
|
if (MapUtils.isNotEmpty(sourceMap)) {
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
|
+ if(StringUtils.isNotEmpty(structureMap.get("入院方式")) && StringUtils.isBlank(structureMap.get("主诉"))
|
|
|
+ && structureMap.get("入院方式").contains("主诉")){
|
|
|
+ String[] split = structureMap.get("入院方式").split("主诉");
|
|
|
+ structureMap.put("入院方式",split[0]);
|
|
|
+ structureMap.put("主诉",split[1]);
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(structureMap.get("记录时间"))) {
|
|
|
String date = structureMap.get("记录时间");
|
|
|
structureMap.put("记录时间", date.replace(",", " "));
|