Bladeren bron

长兴添加新需求规则:缺少入院病情告知书、缺少授权知情同意书、缺少入院72小时内谈话记录

hujing 5 jaren geleden
bovenliggende
commit
659c26108e

+ 30 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/noticeinformedconsent/NOT0718.java

@@ -0,0 +1,30 @@
+package com.lantone.qc.kernel.catalogue.noticeinformedconsent;
+
+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.NoticeOfConversationDoc;
+import org.springframework.stereotype.Component;
+
+import java.util.Map;
+
+/**
+ * @ClassName : NOT0718
+ * @Description : 缺入院病情告知书
+ * @Author : 胡敬
+ * @Date: 2020-04-21 18:40
+ */
+@Component
+public class NOT0718 extends QCCatalogue {
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        NoticeOfConversationDoc noticeOfConversationDoc = inputInfo.getNoticeOfConversationDoc();
+        if (noticeOfConversationDoc == null){
+            status.set("0");
+            return;
+        }
+        Map<String, String> structureMap = noticeOfConversationDoc.getStructureMap();
+        if (structureMap.containsKey("入院病情告知书")){
+            status.set("0");
+        }
+    }
+}

+ 31 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/noticeinformedconsent/NOT0719.java

@@ -0,0 +1,31 @@
+package com.lantone.qc.kernel.catalogue.noticeinformedconsent;
+
+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.InformedConsentDoc;
+import com.lantone.qc.pub.model.doc.NoticeOfConversationDoc;
+import org.springframework.stereotype.Component;
+
+import java.util.Map;
+
+/**
+ * @ClassName : NOT0719
+ * @Description : 缺授权知情同意书
+ * @Author : 胡敬
+ * @Date: 2020-04-21 18:54
+ */
+@Component
+public class NOT0719 extends QCCatalogue {
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        InformedConsentDoc informedConsentDoc = inputInfo.getInformedConsentDoc();
+        if (informedConsentDoc == null){
+            status.set("0");
+            return;
+        }
+        Map<String, String> structureMap = informedConsentDoc.getStructureMap();
+        if (structureMap.containsKey("授权知情同意书")){
+            status.set("0");
+        }
+    }
+}

+ 34 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/noticeinformedconsent/NOT0720.java

@@ -0,0 +1,34 @@
+package com.lantone.qc.kernel.catalogue.noticeinformedconsent;
+
+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.DoctorAdviceDoc;
+import com.lantone.qc.pub.model.doc.NoticeOfConversationDoc;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+/**
+ * @ClassName : NOT0720
+ * @Description : 缺入院72小时内谈话记录
+ * @Author : 胡敬
+ * @Date: 2020-04-21 18:40
+ */
+@Component
+public class NOT0720 extends QCCatalogue {
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        NoticeOfConversationDoc noticeOfConversationDoc = inputInfo.getNoticeOfConversationDoc();
+        if (noticeOfConversationDoc == null){
+            status.set("0");
+            return;
+        }
+        Map<String, String> structureMap = noticeOfConversationDoc.getStructureMap();
+        if (structureMap.containsKey("入院72小时内谈话记录")){
+            status.set("0");
+        }
+    }
+}