Преглед изворни кода

首次病程无诊疗计划/初步诊断不完整规则更新

kongwz пре 5 година
родитељ
комит
4a58ccde4d

+ 8 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstcourserecord/FIRC0089.java

@@ -4,9 +4,13 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
+import com.lantone.qc.pub.model.entity.Diag;
+import com.lantone.qc.pub.model.label.DiagLabel;
+import com.lantone.qc.pub.model.label.TreatPlanLabel;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -21,10 +25,10 @@ public class FIRC0089 extends QCCatalogue {
         status.set("0");
         FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
         if(firstCourseRecordDoc != null){
-            Map<String, String> courseRecordDocStructureMap = firstCourseRecordDoc.getStructureMap();
-            if(courseRecordDocStructureMap != null){
-                String tretment_plan = courseRecordDocStructureMap.get("诊疗计划");
-                if(StringUtils.isEmpty(tretment_plan)){
+            TreatPlanLabel treatPlanLabel = firstCourseRecordDoc.getTreatPlanLabel();
+            if(treatPlanLabel != null){
+                String text = treatPlanLabel.getText();
+                if(StringUtils.isBlank(text)){
                     status.set("-1");
                 }
             }

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/structure/ai/BeHospitalizedAI.java

@@ -147,7 +147,7 @@ public class BeHospitalizedAI extends ModelAI {
             }
             //处理初步诊断
             if (beHospitalizedDoc.getInitialDiagLabel().isCrfLabel()) {
-                putInitialDiagCrfData(midData.getJSONObject(Content.pridiag), inputInfo);
+                putInitialDiagCrfData(midData.getJSONObject(Content.initial_diag), inputInfo);
             }
             if (StringUtils.isNotEmpty(revised_diag_text) && beHospitalizedDoc.getRevisedDiagLabel().isCrfLabel()) {
                 //处理修正诊断