|
@@ -8,7 +8,6 @@ import com.lantone.qc.kernel.structure.ai.model.EntityEnum;
|
|
|
import com.lantone.qc.kernel.structure.ai.model.Lemma;
|
|
|
import com.lantone.qc.kernel.structure.ai.process.*;
|
|
|
import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
-import com.lantone.qc.kernel.util.DiagEnhancer;
|
|
|
import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
@@ -82,11 +81,14 @@ public class BeHospitalizedAI {
|
|
|
putContent(crfContent, medicalTextType.get(2), personal_text, Content.personal);
|
|
|
//月经史
|
|
|
String concatMenstrual = "";
|
|
|
- if (personal_text.length() > 30) {
|
|
|
- concatMenstrual = personal_text.substring(personal_text.length() - 30);
|
|
|
- } else {
|
|
|
- concatMenstrual = personal_text;
|
|
|
+ if(personal_text != null){
|
|
|
+ if (personal_text.length() > 30) {
|
|
|
+ concatMenstrual = personal_text.substring(personal_text.length() - 30);
|
|
|
+ } else {
|
|
|
+ concatMenstrual = personal_text;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
putContent(crfContent, medicalTextType.get(2), concatMenstrual, menstrual_text, Content.menses);
|
|
|
//婚育史
|
|
|
putContent(crfContent, medicalTextType.get(2), marital_text, Content.marriage);
|
|
@@ -157,7 +159,8 @@ public class BeHospitalizedAI {
|
|
|
PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();
|
|
|
presentLabel.setClinicals(loadClinicals(aiOut));
|
|
|
presentLabel.setGenerals(loadGeneralDes(aiOut));
|
|
|
- presentLabel.setPacses(loadpacses(aiOut));
|
|
|
+ presentLabel.setPacses(loadPacses(aiOut));
|
|
|
+ presentLabel.setDiags(loadDiags(aiOut));
|
|
|
|
|
|
EntityProcess entityProcess = new EntityProcess();
|
|
|
List<Lemma> entityTree = entityProcess.createEntityTree(aiOut, EntityEnum.CURE.toString());
|
|
@@ -169,6 +172,7 @@ public class BeHospitalizedAI {
|
|
|
}
|
|
|
presentLabel.setTreats(treats);
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -352,7 +356,7 @@ public class BeHospitalizedAI {
|
|
|
JSONObject aiOut = jsonObject.getJSONObject(entityRelationObject).getJSONObject(BeHospitalizedAI.outputs);
|
|
|
//放置入inputinfo
|
|
|
PacsLabel pacsLabel = inputInfo.getBeHospitalizedDoc().getPacsLabel();
|
|
|
- pacsLabel.setPacses(loadpacses(aiOut));
|
|
|
+ pacsLabel.setPacses(loadPacses(aiOut));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -400,7 +404,7 @@ public class BeHospitalizedAI {
|
|
|
* @param aiOut
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<Pacs> loadpacses(JSONObject aiOut) {
|
|
|
+ public List<Pacs> loadPacses(JSONObject aiOut) {
|
|
|
//辅检信息
|
|
|
EntityProcessPacs entityProcessLis = new EntityProcessPacs();
|
|
|
List<Pacs> pacses = entityProcessLis.extractEntity(aiOut);
|