|
@@ -50,6 +50,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
for (Lemma lemma : operationLemmas) {
|
|
|
Operation operation = new Operation();
|
|
|
operation.setName(lemma.getText().replaceAll("[“”]",""));
|
|
|
+ operation.setStandName(lemma.getText().replaceAll("[“”]",""));
|
|
|
if (lemma.isHaveChildren()) {
|
|
|
//阴性
|
|
|
operation.setNegative(findNegative(lemma));
|
|
@@ -90,6 +91,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
for (Lemma lemma : woundLemmas) {
|
|
|
Wound wound = new Wound();
|
|
|
wound.setName(lemma.getText());
|
|
|
+ wound.setStandName(lemma.getText());
|
|
|
if (lemma.isHaveChildren()) {
|
|
|
wound.setNegative(findNegative(lemma));//阴性
|
|
|
wound.setPd(findPD(lemma));//时间
|
|
@@ -111,6 +113,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
if (relationLemma.getProperty().equals(EntityEnum.FOOD_ALLERGY.toString())) {
|
|
|
AllergyFood allergyFood = new AllergyFood();
|
|
|
allergyFood.setName(relationLemma.getText());
|
|
|
+ allergyFood.setStandName(relationLemma.getText());
|
|
|
allergyFood.setNegative(findNegative(relationLemma));//阴性
|
|
|
allergyFood.setPd(findPD(relationLemma));//时间
|
|
|
allergyFood.setDegree(findT(relationLemma, new Degree(), EntityEnum.TREND.toString()));//程度
|
|
@@ -121,6 +124,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
if (relationLemma.getProperty().equals(EntityEnum.DRUG_ALLERGY.toString())) {
|
|
|
AllergyMedicine allergyMedicine = new AllergyMedicine();
|
|
|
allergyMedicine.setName(relationLemma.getText());
|
|
|
+ allergyMedicine.setStandName(relationLemma.getText());
|
|
|
allergyMedicine.setNegative(findNegative(relationLemma));//阴性
|
|
|
allergyMedicine.setPd(findPD(relationLemma));//时间
|
|
|
allergyMedicine.setDegree(findT(relationLemma, new Degree(), EntityEnum.TREND.toString()));//程度
|
|
@@ -159,6 +163,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
for (Lemma lemma : bloodTransfusionLemmas) {
|
|
|
BloodTransfusion bloodTransfusion = new BloodTransfusion();
|
|
|
bloodTransfusion.setName(lemma.getText());
|
|
|
+ bloodTransfusion.setStandName(lemma.getText());
|
|
|
if (lemma.isHaveChildren()) {
|
|
|
bloodTransfusion.setNegative(findNegative(lemma));
|
|
|
bloodTransfusion.setQuantity(findT(lemma, new Quantity(), EntityEnum.QUANTITY.toString()));//数量
|
|
@@ -181,6 +186,7 @@ public class EntityProcessPast extends EntityProcess {
|
|
|
for (Lemma lemma : diagInfectiousLemmas) {
|
|
|
DiagInfectious diagInfectious = new DiagInfectious();
|
|
|
diagInfectious.setName(lemma.getText());
|
|
|
+ diagInfectious.setStandName(lemma.getText());
|
|
|
if (lemma.isHaveChildren()) {
|
|
|
diagInfectious.setNegative(findNegative(lemma));
|
|
|
}
|