|
@@ -100,13 +100,23 @@ public class BeHospitalizedTran extends TargetTran {
|
|
|
"联系地址=出院诊断-地址全称(非结构化)"
|
|
|
|
|
|
);
|
|
|
+ public void params(String str,Map<String, String> retMap) {
|
|
|
+ if(StringUtil.isNotEmpty(retMap.get(str))){
|
|
|
+ String caseStr = retMap.get(str);
|
|
|
+ String date = extractDate(caseStr);
|
|
|
+ if(StringUtil.isNotEmpty(date)){
|
|
|
+ retMap.put(str,date);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
public void beHospitalContrast ( BeHospitalizedDoc beHospitalizedDoc,Map<String, String> retMap) {
|
|
|
if(beHospitalizedDoc != null){
|
|
|
String text = beHospitalizedDoc.getText();
|
|
|
String[] firSplit = text.split("\n");
|
|
|
|
|
|
-
|
|
|
+ params("末次月经",retMap);
|
|
|
+ params("预 产 期",retMap);
|
|
|
//年龄
|
|
|
if(StringUtil.isNotEmpty(retMap.get("年 龄")) || StringUtil.isNotEmpty(retMap.get("年龄"))) {
|
|
|
String value = retMap.get("年 龄");
|
|
@@ -1169,9 +1179,7 @@ public class BeHospitalizedTran extends TargetTran {
|
|
|
if(StringUtil.isNotEmpty(rep.get("既往史"))){
|
|
|
rep.remove("既往史");
|
|
|
}
|
|
|
- if(StringUtil.isNotEmpty(rep.get("生长发育史"))){
|
|
|
rep.remove("生长发育史");
|
|
|
- }
|
|
|
if( beHospitalizedDoc != null && beHospitalizedDoc.getPastLabel() != null){
|
|
|
PastLabel pastLabel = beHospitalizedDoc.getPastLabel();
|
|
|
if(pastLabel != null){
|