|
@@ -146,76 +146,79 @@ public class ModelDocGenerate {
|
|
ChiefLabel chiefLabel = new ChiefLabel();
|
|
ChiefLabel chiefLabel = new ChiefLabel();
|
|
chiefLabel.setText(structureMap.get("主诉"));
|
|
chiefLabel.setText(structureMap.get("主诉"));
|
|
beHospitalizedDoc.setChiefLabel(chiefLabel);
|
|
beHospitalizedDoc.setChiefLabel(chiefLabel);
|
|
- structureMap.remove("主诉");
|
|
|
|
|
|
+// structureMap.remove("主诉");
|
|
|
|
|
|
PresentLabel presentLabel = new PresentLabel();
|
|
PresentLabel presentLabel = new PresentLabel();
|
|
presentLabel.setText(structureMap.get("现病史"));
|
|
presentLabel.setText(structureMap.get("现病史"));
|
|
beHospitalizedDoc.setPresentLabel(presentLabel);
|
|
beHospitalizedDoc.setPresentLabel(presentLabel);
|
|
- structureMap.remove("现病史");
|
|
|
|
|
|
+// structureMap.remove("现病史");
|
|
|
|
|
|
PastLabel pastLabel = new PastLabel();
|
|
PastLabel pastLabel = new PastLabel();
|
|
pastLabel.setText(structureMap.get("既往史"));
|
|
pastLabel.setText(structureMap.get("既往史"));
|
|
beHospitalizedDoc.setPastLabel(pastLabel);
|
|
beHospitalizedDoc.setPastLabel(pastLabel);
|
|
- structureMap.remove("既往史");
|
|
|
|
|
|
+// structureMap.remove("既往史");
|
|
|
|
|
|
PersonalLabel personalLabel = new PersonalLabel();
|
|
PersonalLabel personalLabel = new PersonalLabel();
|
|
personalLabel.setText(structureMap.get("个人史"));
|
|
personalLabel.setText(structureMap.get("个人史"));
|
|
beHospitalizedDoc.setPersonalLabel(personalLabel);
|
|
beHospitalizedDoc.setPersonalLabel(personalLabel);
|
|
- structureMap.remove("个人史");
|
|
|
|
|
|
+// structureMap.remove("个人史");
|
|
|
|
|
|
MaritalLabel maritalLabel = new MaritalLabel();
|
|
MaritalLabel maritalLabel = new MaritalLabel();
|
|
if (structureMap.get("婚育史") != null) {
|
|
if (structureMap.get("婚育史") != null) {
|
|
maritalLabel.setText("婚育史:" + structureMap.get("婚育史"));
|
|
maritalLabel.setText("婚育史:" + structureMap.get("婚育史"));
|
|
}
|
|
}
|
|
beHospitalizedDoc.setMaritalLabel(maritalLabel);
|
|
beHospitalizedDoc.setMaritalLabel(maritalLabel);
|
|
- structureMap.remove("婚育史");
|
|
|
|
|
|
+// structureMap.remove("婚育史");
|
|
|
|
|
|
MenstrualLabel menstrualLabel = new MenstrualLabel();
|
|
MenstrualLabel menstrualLabel = new MenstrualLabel();
|
|
- if(structureMap != null && structureMap.get("月经史") != null){
|
|
|
|
|
|
+ if(structureMap.get("月经史") != null){
|
|
if(structureMap.get("月经史").contains("月 经 史")){
|
|
if(structureMap.get("月经史").contains("月 经 史")){
|
|
- String text = structureMap.get("月经史");
|
|
|
|
- structureMap.put("月经史",text.replace("月 经 史","").replace(":","").replace(":",""));
|
|
|
|
|
|
+ String text = structureMap.get("月经史").replaceAll("月 经 史|:|:","");
|
|
|
|
+ if (text.startsWith(",")){
|
|
|
|
+ text = text.substring(1);
|
|
|
|
+ }
|
|
|
|
+ structureMap.put("月经史",text);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
menstrualLabel.setText("月经史:" + structureMap.get("月经史"));
|
|
menstrualLabel.setText("月经史:" + structureMap.get("月经史"));
|
|
beHospitalizedDoc.setMenstrualLabel(menstrualLabel);
|
|
beHospitalizedDoc.setMenstrualLabel(menstrualLabel);
|
|
- structureMap.remove("月经史");
|
|
|
|
|
|
+// structureMap.remove("月经史");
|
|
|
|
|
|
FamilyLabel familyLabel = new FamilyLabel();
|
|
FamilyLabel familyLabel = new FamilyLabel();
|
|
familyLabel.setText(structureMap.get("家族史"));
|
|
familyLabel.setText(structureMap.get("家族史"));
|
|
beHospitalizedDoc.setFamilyLabel(familyLabel);
|
|
beHospitalizedDoc.setFamilyLabel(familyLabel);
|
|
- structureMap.remove("家族史");
|
|
|
|
|
|
+// structureMap.remove("家族史");
|
|
|
|
|
|
VitalLabel vitalLabel = new VitalLabel();
|
|
VitalLabel vitalLabel = new VitalLabel();
|
|
vitalLabel.setText(structureMap.get("体格检查"));
|
|
vitalLabel.setText(structureMap.get("体格检查"));
|
|
beHospitalizedDoc.setVitalLabel(vitalLabel);
|
|
beHospitalizedDoc.setVitalLabel(vitalLabel);
|
|
- structureMap.remove("体格检查");
|
|
|
|
|
|
+// structureMap.remove("体格检查");
|
|
|
|
|
|
VitalLabelSpecial vitalLabelSpecial = new VitalLabelSpecial();
|
|
VitalLabelSpecial vitalLabelSpecial = new VitalLabelSpecial();
|
|
vitalLabelSpecial.setText(structureMap.get("专科体格检查"));
|
|
vitalLabelSpecial.setText(structureMap.get("专科体格检查"));
|
|
beHospitalizedDoc.setVitalLabelSpecial(vitalLabelSpecial);
|
|
beHospitalizedDoc.setVitalLabelSpecial(vitalLabelSpecial);
|
|
- structureMap.remove("专科体格检查");
|
|
|
|
|
|
+// structureMap.remove("专科体格检查");
|
|
|
|
|
|
PacsLabel pacsLabel = new PacsLabel();
|
|
PacsLabel pacsLabel = new PacsLabel();
|
|
pacsLabel.setText(structureMap.get("辅助检查"));
|
|
pacsLabel.setText(structureMap.get("辅助检查"));
|
|
beHospitalizedDoc.setPacsLabel(pacsLabel);
|
|
beHospitalizedDoc.setPacsLabel(pacsLabel);
|
|
- structureMap.remove("辅助检查");
|
|
|
|
|
|
+// structureMap.remove("辅助检查");
|
|
|
|
|
|
DiagLabel initialDiagLabel = new DiagLabel();
|
|
DiagLabel initialDiagLabel = new DiagLabel();
|
|
initialDiagLabel.setText(structureMap.get("初步诊断"));
|
|
initialDiagLabel.setText(structureMap.get("初步诊断"));
|
|
beHospitalizedDoc.setInitialDiagLabel(initialDiagLabel);
|
|
beHospitalizedDoc.setInitialDiagLabel(initialDiagLabel);
|
|
- structureMap.remove("初步诊断");
|
|
|
|
|
|
+// structureMap.remove("初步诊断");
|
|
|
|
|
|
DiagLabel revisedDiagLabel = new DiagLabel();
|
|
DiagLabel revisedDiagLabel = new DiagLabel();
|
|
revisedDiagLabel.setText(structureMap.get("修正诊断"));
|
|
revisedDiagLabel.setText(structureMap.get("修正诊断"));
|
|
beHospitalizedDoc.setRevisedDiagLabel(revisedDiagLabel);
|
|
beHospitalizedDoc.setRevisedDiagLabel(revisedDiagLabel);
|
|
- structureMap.remove("修正诊断");
|
|
|
|
|
|
+// structureMap.remove("修正诊断");
|
|
|
|
|
|
DiagLabel suppleDiagLabel = new DiagLabel();
|
|
DiagLabel suppleDiagLabel = new DiagLabel();
|
|
suppleDiagLabel.setText(structureMap.get("补充诊断"));
|
|
suppleDiagLabel.setText(structureMap.get("补充诊断"));
|
|
beHospitalizedDoc.setSuppleDiagLabel(suppleDiagLabel);
|
|
beHospitalizedDoc.setSuppleDiagLabel(suppleDiagLabel);
|
|
- structureMap.remove("补充诊断");
|
|
|
|
|
|
+// structureMap.remove("补充诊断");
|
|
|
|
|
|
beHospitalizedDoc.setStructureMap(structureMap);
|
|
beHospitalizedDoc.setStructureMap(structureMap);
|
|
|
|
|