kwzbigdata 5 лет назад
Родитель
Сommit
bd0edd6440

+ 11 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0069.java

@@ -4,8 +4,11 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
 import com.lantone.qc.kernel.util.CatalogueUtil;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 /**
  * @ClassName : BEH0069
  * @Description : 家族史未填写
@@ -16,6 +19,14 @@ import org.springframework.stereotype.Component;
 public class BEH0069 extends QCCatalogue {
     @Override
     protected void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        //台州结构化
+        if(inputInfo.getBeHospitalizedDoc() != null){
+            Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+            if(StringUtils.isNotEmpty(structureMap.get("家庭成员类似病史"))){
+                status.set("0");
+            }
+        }
+
         if (inputInfo.getBeHospitalizedDoc() != null && inputInfo.getBeHospitalizedDoc().getFamilyLabel() != null) {
             if (!CatalogueUtil.isEmpty(inputInfo.getBeHospitalizedDoc().getFamilyLabel().getText())) {
                 status.set("0");