Jelajahi Sumber

长兴新规则添加(患者拒绝治疗,缺少相关告知书)

wangyu 5 tahun lalu
induk
melakukan
4a59de40e7

+ 41 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/noticeinformedconsent/NOT0736.java

@@ -0,0 +1,41 @@
+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.ThreeLevelWardDoc;
+import org.springframework.stereotype.Component;
+
+/**
+ * @author 王宇
+ * @create 2020-05-09 10:12
+ * @desc 患者拒绝治疗,缺少相关告知书
+ **/
+@Component
+public class NOT0736 extends QCCatalogue {
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        status.set("0");
+        Boolean ref = false;
+        if(inputInfo.getBeHospitalizedDoc().getText().contains("拒绝")){//入院记录是否有拒绝
+            ref = true;
+        }
+        if(inputInfo.getLeaveHospitalDoc().getText().contains("拒绝")){//出院记录是否有拒绝
+            ref = true;
+        }
+        for (ThreeLevelWardDoc threeLevelWardDoc : inputInfo.getThreeLevelWardDocs().get(0).getAllDoctorWradDocs()) {//查房记录是否有拒绝
+            if(threeLevelWardDoc.getStructureMap().get("病情记录").contains("拒绝")){
+                ref = true;
+            }
+        }
+        if(inputInfo.getFirstCourseRecordDoc().getText().contains("拒绝")){//首次病程是否有拒绝
+            ref = true;
+        }
+        if(ref){
+            for (String notice: inputInfo.getNoticeOfConversationDoc().getAllNoticeOfConverstartion()) {
+                if(!notice.contains("拒绝")){
+                    status.set("-1");
+                }
+            }
+        }
+    }
+}

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0702.java

@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
 import java.util.List;
 
 /**
- * @ClassName : THR0701
+ * @ClassName : THR0702
  * @Description : 首次主任医师查房中鉴别诊断跟首程一致
  * @Author : 胡敬
  * @Date: 2020-04-20 16:38

+ 8 - 0
public/src/main/java/com/lantone/qc/pub/model/doc/NoticeOfConversationDoc.java

@@ -1,9 +1,17 @@
 package com.lantone.qc.pub.model.doc;
 
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.List;
+
 /**
  * @Description: 谈话告知书
  * @author: wangyu
  * @time: 2020/4/20 18:18
  */
+@Getter
+@Setter
 public class NoticeOfConversationDoc extends ModelDoc {
+    public List<String> allNoticeOfConverstartion;//所有的告知书
 }

+ 5 - 0
trans/src/main/java/com/lantone/qc/trans/changx/ChangxNoticeOfConversationDocTrans.java

@@ -4,6 +4,9 @@ import com.lantone.qc.pub.model.doc.NoticeOfConversationDoc;
 import com.lantone.qc.pub.model.vo.MedrecVo;
 import com.lantone.qc.trans.ModelDocTrans;
 
+import java.util.List;
+import java.util.Map;
+
 /**
  * @Description: 谈话告知书
  * @author: wangyu
@@ -13,6 +16,8 @@ public class ChangxNoticeOfConversationDocTrans extends ModelDocTrans {
     @Override
     public NoticeOfConversationDoc extract(MedrecVo medrecVo) {
         NoticeOfConversationDoc noticeOfConversationDoc = new NoticeOfConversationDoc();
+        List<String> noticeofConverstartons = (List<String>) medrecVo.getContent().get("content");
+        noticeOfConversationDoc.setAllNoticeOfConverstartion(noticeofConverstartons);
         return noticeOfConversationDoc;
     }
 }