|
@@ -0,0 +1,55 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.threelevelward;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.pub.Content;
|
|
|
+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.util.ListUtil;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : THR03138
|
|
|
+ * @Description : 缺转出记录
|
|
|
+ * @Author : rengb
|
|
|
+ * @Date: 2020-03-06 17:28
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class THR03138 extends QCCatalogue {
|
|
|
+
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
+ boolean flag=false;
|
|
|
+ //首先判断医嘱中是否包含转科相关信息
|
|
|
+ List<DoctorAdviceDoc> doctorAdviceDocs = inputInfo.getDoctorAdviceDocs();
|
|
|
+ if(ListUtil.isEmpty(doctorAdviceDocs)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
|
|
|
+ //取长期临时医嘱,不为作废医嘱
|
|
|
+ if(doctorAdviceDoc.getStructureMap()!=null){
|
|
|
+ Map<String, String> doctorAdviceDocStructureMap = doctorAdviceDoc.getStructureMap();
|
|
|
+ String adviceType = doctorAdviceDocStructureMap.get(Content.doctorAdviceType);
|
|
|
+ if(StringUtil.isNotEmpty(adviceType)){
|
|
|
+ if(adviceType.equals(Content.standingOrder)||adviceType.equals(Content.statOrder)){
|
|
|
+ String adviceState = doctorAdviceDocStructureMap.get(Content.doctorAdviceState);
|
|
|
+ if(StringUtil.isNotEmpty(adviceState)){
|
|
|
+ if(!adviceState.equals(Content.cancellationOrder)){
|
|
|
+ //医嘱若是包含 转*科/科*转则为一个转科患者
|
|
|
+ flag=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|