Bläddra i källkod

1.长兴添加入院记录\首次病程记录中监测生命体征书写不规范

hujing 5 år sedan
förälder
incheckning
2643bf284f

+ 38 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH02969.java

@@ -0,0 +1,38 @@
+package com.lantone.qc.kernel.catalogue.behospitalized;
+
+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.util.StringUtil;
+import org.springframework.stereotype.Component;
+
+import java.util.Map;
+
+/**
+ * @ClassName : BEH02969
+ * @Description :  入院记录中监测生命体征书写不规范
+ * @Author : 胡敬
+ * @Date: 2020-06-16 13:15
+ */
+@Component
+public class BEH02969 extends QCCatalogue {
+    @Override
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        status.set("0");
+        if (inputInfo.getBeHospitalizedDoc() == null) {
+            return;
+        }
+        Map<String, String> beHospitalStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        String treatPlan = beHospitalStructureMap.get("诊疗计划");
+        String treatmentMonitoringPlan = beHospitalStructureMap.get("治疗监测计划");
+        if (StringUtil.isBlank(treatPlan) && StringUtil.isBlank(treatmentMonitoringPlan)) {
+            return;
+        }
+        treatPlan = StringUtil.isBlank(treatPlan) ? "" : treatPlan;
+        treatmentMonitoringPlan = StringUtil.isBlank(treatmentMonitoringPlan) ? "" : treatPlan;
+        String text = treatPlan + "," + treatmentMonitoringPlan;
+        if (text.contains("生命体征") && (!text.contains("测") || !text.contains("血压") || !text.contains("心率"))) {
+            status.set("-1");
+        }
+    }
+}

+ 39 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstcourserecord/FIRC02970.java

@@ -0,0 +1,39 @@
+package com.lantone.qc.kernel.catalogue.firstcourserecord;
+
+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.util.StringUtil;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Component;
+
+import java.util.Map;
+
+/**
+ * @ClassName : FIRC02970
+ * @Description : 首次病程记录中监测生命体征书写不规范
+ * @Author : 胡敬
+ * @Date: 2020-06-16 17:36
+ */
+@Component
+public class FIRC02970 extends QCCatalogue {
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        status.set("0");
+        if (inputInfo.getBeHospitalizedDoc() == null) {
+            return;
+        }
+        Map<String, String> beHospitalStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        String treatPlan = beHospitalStructureMap.get("诊疗计划");
+        String treatmentMonitoringPlan = beHospitalStructureMap.get("治疗监测计划");
+        if (StringUtil.isBlank(treatPlan) && StringUtil.isBlank(treatmentMonitoringPlan)) {
+            return;
+        }
+        treatPlan = StringUtil.isBlank(treatPlan) ? "" : treatPlan;
+        treatmentMonitoringPlan = StringUtil.isBlank(treatmentMonitoringPlan) ? "" : treatPlan;
+        String text = treatPlan + "," + treatmentMonitoringPlan;
+        if (text.contains("生命体征") && (!text.contains("测") || !text.contains("血压") || !text.contains("心率"))) {
+            status.set("-1");
+        }
+    }
+}