|
@@ -139,8 +139,8 @@ public class EntityProcessPast extends EntityProcess {
|
|
allergyFood.setAllergyDesc(findT(relationLemma, new AllergyDesc(), EntityEnum.ALLERGY_SYMPTOM.toString()));//过敏表现
|
|
allergyFood.setAllergyDesc(findT(relationLemma, new AllergyDesc(), EntityEnum.ALLERGY_SYMPTOM.toString()));//过敏表现
|
|
allergy.setAllergyFood(allergyFood);
|
|
allergy.setAllergyFood(allergyFood);
|
|
}
|
|
}
|
|
- //药物过敏史
|
|
|
|
- if (relationLemma.getProperty().equals(EntityEnum.DRUG_ALLERGY.toString())) {
|
|
|
|
|
|
+ //药物过敏史 或 其他过敏
|
|
|
|
+ if (relationLemma.getProperty().equals(EntityEnum.DRUG_ALLERGY.toString()) || relationLemma.getProperty().equals(EntityEnum.OTHER_ALLERGY.toString())) {
|
|
AllergyMedicine allergyMedicine = new AllergyMedicine();
|
|
AllergyMedicine allergyMedicine = new AllergyMedicine();
|
|
allergyMedicine.setName(CoreUtil.replaceStartPunctuation(relationLemma.getText()));
|
|
allergyMedicine.setName(CoreUtil.replaceStartPunctuation(relationLemma.getText()));
|
|
allergyMedicine.setStandName(CoreUtil.replaceStartPunctuation(relationLemma.getText()));
|
|
allergyMedicine.setStandName(CoreUtil.replaceStartPunctuation(relationLemma.getText()));
|
|
@@ -178,6 +178,21 @@ public class EntityProcessPast extends EntityProcess {
|
|
}
|
|
}
|
|
pastLabel.addAllergyMedicine(allergyMedicine);
|
|
pastLabel.addAllergyMedicine(allergyMedicine);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //其他过敏史
|
|
|
|
+ List<Lemma> allergyOtherLemmas = createEntityTree(aiOut, EntityEnum.OTHER_ALLERGY.toString());
|
|
|
|
+ for (Lemma lemma : allergyOtherLemmas) {
|
|
|
|
+ AllergyMedicine allergyMedicine = new AllergyMedicine();
|
|
|
|
+ allergyMedicine.setName(CoreUtil.replaceStartPunctuation(lemma.getText()));
|
|
|
|
+ allergyMedicine.setStandName(CoreUtil.replaceStartPunctuation(lemma.getText()));
|
|
|
|
+ if (lemma.isHaveChildren()) {
|
|
|
|
+ allergyMedicine.setNegative(findNegative(lemma));
|
|
|
|
+ allergyMedicine.setPd(findPD(lemma));//时间
|
|
|
|
+ allergyMedicine.setDegree(findT(lemma, new Degree(), EntityEnum.TREND.toString()));//程度
|
|
|
|
+ }
|
|
|
|
+ pastLabel.addAllergyMedicine(allergyMedicine);
|
|
|
|
+ }
|
|
|
|
+
|
|
//输血史
|
|
//输血史
|
|
List<Lemma> bloodTransfusionLemmas = createEntityTree(aiOut, EntityEnum.BLOOD_TRANSFUSION.toString());
|
|
List<Lemma> bloodTransfusionLemmas = createEntityTree(aiOut, EntityEnum.BLOOD_TRANSFUSION.toString());
|
|
for (Lemma lemma : bloodTransfusionLemmas) {
|
|
for (Lemma lemma : bloodTransfusionLemmas) {
|