|
@@ -36,29 +36,29 @@ public class LeaveHospitalAI extends ModelAI {
|
|
if (leaveHospitalDoc != null && StringUtils.isNotEmpty(leaveHospitalDoc.getText())) {
|
|
if (leaveHospitalDoc != null && StringUtils.isNotEmpty(leaveHospitalDoc.getText())) {
|
|
//出院小结全部文本(之后考虑删除传全部文本,改为传相应结构化文本)
|
|
//出院小结全部文本(之后考虑删除传全部文本,改为传相应结构化文本)
|
|
putContent(crfContent, medicalTextType.get(0), leaveHospitalDoc.getText(), Content.discharge);
|
|
putContent(crfContent, medicalTextType.get(0), leaveHospitalDoc.getText(), Content.discharge);
|
|
-
|
|
|
|
- Map<String, String> leaveHospitalStructureMap = leaveHospitalDoc.getStructureMap();
|
|
|
|
- if (leaveHospitalStructureMap != null) {
|
|
|
|
-// //入院情况
|
|
|
|
-// if (leaveHospitalStructureMap.get(Content.inStatus) != null) {
|
|
|
|
-// putContent(crfContent, medicalTextType.get(1), leaveHospitalStructureMap.get(Content.inStatus), Content.inStatus);
|
|
|
|
-// }
|
|
|
|
- //出院诊断
|
|
|
|
- if (leaveHospitalStructureMap.get(Content.dischargeDiag) != null) {
|
|
|
|
- putContent(crfContent, medicalTextType.get(1), leaveHospitalStructureMap.get(Content.dischargeDiag), Content.dischargeDiag);
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ Map<String, String> leaveHospitalStructureMap = leaveHospitalDoc.getStructureMap();
|
|
|
|
+ if (leaveHospitalStructureMap != null) {
|
|
|
|
+ // //入院情况
|
|
|
|
+ // if (leaveHospitalStructureMap.get(Content.inStatus) != null) {
|
|
|
|
+ // putContent(crfContent, medicalTextType.get(1), leaveHospitalStructureMap.get(Content.inStatus), Content.inStatus);
|
|
|
|
+ // }
|
|
|
|
+ //出院诊断
|
|
|
|
+ if (leaveHospitalStructureMap.get(Content.dischargeDiag) != null) {
|
|
|
|
+ putContent(crfContent, medicalTextType.get(1), leaveHospitalStructureMap.get(Content.dischargeDiag), Content.dischargeDiag);
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
|
|
- JSONObject midData = loadAI(crfContent, crfServiceClient);//crf返回数据
|
|
|
|
- if (midData.containsKey(Content.discharge)) {
|
|
|
|
- putDischargeCrfData(midData.getJSONObject(Content.discharge), inputInfo);//出院小结
|
|
|
|
- }
|
|
|
|
- if (midData.containsKey(Content.dischargeDiag)) {
|
|
|
|
- putDischargeCrfData(midData.getJSONObject(Content.dischargeDiag), inputInfo);//出院诊断
|
|
|
|
- }
|
|
|
|
|
|
+ JSONObject midData = loadAI(crfContent, crfServiceClient);//crf返回数据
|
|
|
|
+ if (midData.containsKey(Content.discharge)) {
|
|
|
|
+ putDischargeCrfData(midData.getJSONObject(Content.discharge), inputInfo);//出院小结
|
|
|
|
+ }
|
|
|
|
+ if (midData.containsKey(Content.dischargeDiag)) {
|
|
|
|
+ putDischargeCrfData(midData.getJSONObject(Content.dischargeDiag), inputInfo);//出院诊断
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 病历特点
|
|
* 病历特点
|
|
*
|
|
*
|