|
@@ -30,7 +30,6 @@ import java.util.Map;
|
|
|
public class TaiZhouBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
* @param medrecVo
|
|
|
* @return
|
|
|
*/
|
|
@@ -38,7 +37,7 @@ public class TaiZhouBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
public BeHospitalizedDoc extract(MedrecVo medrecVo) {
|
|
|
String content = ((List<String>) medrecVo.getContent().get("content")).get(0);
|
|
|
|
|
|
- Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZWithReplace(content); // xml原始数据给华卓
|
|
|
+ Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZ(content); // xml原始数据给华卓
|
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
|
//如果有入院时间,优先使用
|
|
|
if (StringUtils.isEmpty(structureMap.get("入院时间")) && StringUtils.isNotEmpty(structureMap.get("入病房时间"))) {
|
|
@@ -46,7 +45,7 @@ public class TaiZhouBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
}
|
|
|
|
|
|
BeHospitalizedDoc beHospitalizedDoc = beHospitalizedDocGen(structureMap); // 不走共用
|
|
|
- beHospitalizedDoc.setPageData((Map)sourceMap);
|
|
|
+ beHospitalizedDoc.setPageData((Map) structureMap);
|
|
|
return beHospitalizedDoc;
|
|
|
}
|
|
|
|
|
@@ -57,9 +56,10 @@ public class TaiZhouBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
"民族=民族",
|
|
|
"职业=职业",
|
|
|
"出生地址=出生地",
|
|
|
- "出生、生长史=居住地",
|
|
|
-// "婚姻状况=婚姻",
|
|
|
+ "出生、生长史=出生生长史",
|
|
|
+ // "婚姻状况=婚姻",
|
|
|
"地址=联系地址",
|
|
|
+ "工作场所=工作单位",
|
|
|
"信息来源=病史陈述者",
|
|
|
"生日=出生日期",
|
|
|
"病人出生日期=出生日期",
|
|
@@ -75,15 +75,15 @@ public class TaiZhouBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
"婚姻家庭关系和睦=夫妻关系",
|
|
|
"体格检查=体格检查",
|
|
|
"专科检查=专科体格检查",
|
|
|
- "影像学检查=辅助检查",
|
|
|
"初步诊断=初步诊断",
|
|
|
"修正诊断=修正诊断",
|
|
|
"医生=医师签名",
|
|
|
"补充诊断=补充诊断",
|
|
|
"户口地址=联系地址",
|
|
|
"家属提供的信息可信吗=病史可靠性",
|
|
|
- "关系=病史陈述者"
|
|
|
- );
|
|
|
+ "入院诊断(中医疾病)=中医诊断",
|
|
|
+ "体温(口)=体温"
|
|
|
+ );
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -99,80 +99,80 @@ public class TaiZhouBeHospitalizedDocTrans extends ModelDocTrans {
|
|
|
ChiefLabel chiefLabel = new ChiefLabel();
|
|
|
chiefLabel.setText(structureMap.get("主诉"));
|
|
|
beHospitalizedDoc.setChiefLabel(chiefLabel);
|
|
|
-// structureMap.remove("主诉");
|
|
|
+ // structureMap.remove("主诉");
|
|
|
|
|
|
// 走模型
|
|
|
PresentLabel presentLabel = new PresentLabel();
|
|
|
presentLabel.setText(structureMap.get("现病史"));
|
|
|
beHospitalizedDoc.setPresentLabel(presentLabel);
|
|
|
-// structureMap.remove("现病史");
|
|
|
+ // structureMap.remove("现病史");
|
|
|
|
|
|
PastLabel pastLabel = new PastLabel();
|
|
|
pastLabel.setCrfLabel(false);
|
|
|
pastLabel.setText(structureMap.get("既往史"));
|
|
|
beHospitalizedDoc.setPastLabel(pastLabel);
|
|
|
-// structureMap.remove("既往史");
|
|
|
+ // structureMap.remove("既往史");
|
|
|
|
|
|
PersonalLabel personalLabel = new PersonalLabel();
|
|
|
personalLabel.setCrfLabel(false);
|
|
|
personalLabel.setText(structureMap.get("个人史"));
|
|
|
beHospitalizedDoc.setPersonalLabel(personalLabel);
|
|
|
-// structureMap.remove("个人史");
|
|
|
+ // structureMap.remove("个人史");
|
|
|
|
|
|
MaritalLabel maritalLabel = new MaritalLabel();
|
|
|
maritalLabel.setCrfLabel(false);
|
|
|
maritalLabel.setText("婚育史: " + structureMap.get("婚育史"));
|
|
|
beHospitalizedDoc.setMaritalLabel(maritalLabel);
|
|
|
-// structureMap.remove("婚育史");
|
|
|
+ // structureMap.remove("婚育史");
|
|
|
|
|
|
MenstrualLabel menstrualLabel = new MenstrualLabel();
|
|
|
menstrualLabel.setCrfLabel(false);
|
|
|
menstrualLabel.setText("月经史:" + structureMap.get("月经史"));
|
|
|
beHospitalizedDoc.setMenstrualLabel(menstrualLabel);
|
|
|
-// structureMap.remove("月经史");
|
|
|
+ // structureMap.remove("月经史");
|
|
|
|
|
|
FamilyLabel familyLabel = new FamilyLabel();
|
|
|
familyLabel.setCrfLabel(false);
|
|
|
familyLabel.setText(structureMap.get("家族史"));
|
|
|
beHospitalizedDoc.setFamilyLabel(familyLabel);
|
|
|
-// structureMap.remove("家族史");
|
|
|
+ // structureMap.remove("家族史");
|
|
|
|
|
|
VitalLabel vitalLabel = new VitalLabel();
|
|
|
vitalLabel.setCrfLabel(false);
|
|
|
vitalLabel.setText(structureMap.get("体格检查"));
|
|
|
beHospitalizedDoc.setVitalLabel(vitalLabel);
|
|
|
-// structureMap.remove("体格检查");
|
|
|
+ // structureMap.remove("体格检查");
|
|
|
|
|
|
VitalLabelSpecial vitalLabelSpecial = new VitalLabelSpecial();
|
|
|
vitalLabelSpecial.setCrfLabel(false);
|
|
|
vitalLabelSpecial.setText(structureMap.get("专科体格检查"));
|
|
|
beHospitalizedDoc.setVitalLabelSpecial(vitalLabelSpecial);
|
|
|
-// structureMap.remove("专科体格检查");
|
|
|
+ // structureMap.remove("专科体格检查");
|
|
|
|
|
|
// 走模型
|
|
|
PacsLabel pacsLabel = new PacsLabel();
|
|
|
pacsLabel.setCrfLabel(false);
|
|
|
pacsLabel.setText(structureMap.get("辅助检查"));
|
|
|
beHospitalizedDoc.setPacsLabel(pacsLabel);
|
|
|
-// structureMap.remove("辅助检查");
|
|
|
+ // structureMap.remove("辅助检查");
|
|
|
|
|
|
// 走模型
|
|
|
DiagLabel initialDiagLabel = new DiagLabel();
|
|
|
initialDiagLabel.setText(structureMap.get("初步诊断"));
|
|
|
beHospitalizedDoc.setInitialDiagLabel(initialDiagLabel);
|
|
|
-// structureMap.remove("初步诊断");
|
|
|
+ // structureMap.remove("初步诊断");
|
|
|
|
|
|
// 走模型
|
|
|
DiagLabel revisedDiagLabel = new DiagLabel();
|
|
|
revisedDiagLabel.setText(structureMap.get("修正诊断"));
|
|
|
beHospitalizedDoc.setRevisedDiagLabel(revisedDiagLabel);
|
|
|
-// structureMap.remove("修正诊断");
|
|
|
+ // structureMap.remove("修正诊断");
|
|
|
|
|
|
// 走模型
|
|
|
DiagLabel suppleDiagLabel = new DiagLabel();
|
|
|
suppleDiagLabel.setText(structureMap.get("补充诊断"));
|
|
|
beHospitalizedDoc.setSuppleDiagLabel(suppleDiagLabel);
|
|
|
-// structureMap.remove("补充诊断");
|
|
|
+ // structureMap.remove("补充诊断");
|
|
|
|
|
|
beHospitalizedDoc.setStructureMap(structureMap);
|
|
|
|