Parcourir la source

1、既往史解读区分手术和手术史

louhr il y a 5 ans
Parent
commit
5785ca8bf8

+ 12 - 1
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/process/EntityProcessPast.java

@@ -51,7 +51,7 @@ public class EntityProcessPast extends EntityProcess {
                 }
                 pastLabel.addDiag(diag);
             }
-            //手术
+            //手术名称
             List<Lemma> operationLemmas = createEntityTree(aiOut, EntityEnum.OPERATION.toString());
             for (Lemma lemma : operationLemmas) {
                 Operation operation = new Operation();
@@ -79,6 +79,17 @@ public class EntityProcessPast extends EntityProcess {
                 }
                 pastLabel.addOperation(operation);
             }
+            //手术史
+            List<Lemma> operationHistoryLemmas = createEntityTree(aiOut, EntityEnum.OPERATION_KEYWORD.toString());
+            for (Lemma lemma : operationHistoryLemmas) {
+                Operation operation = new Operation();
+                operation.setName(lemma.getText());
+                if (lemma.isHaveChildren()) {
+                    operation.setNegative(findNegative(lemma));//阴性
+                }
+                pastLabel.addOperation(operation);
+            }
+
             //外伤史
             List<Lemma> woundLemmas = createEntityTree(aiOut, EntityEnum.INJURY.toString());
             for (Lemma lemma : woundLemmas) {