|
@@ -0,0 +1,48 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.kernel.util.RedisUtil;
|
|
|
+import com.lantone.qc.kernel.util.SpringContextUtil;
|
|
|
+import com.lantone.qc.pub.model.InputInfo;
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.entity.Diag;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : BEH0494
|
|
|
+ * @Description : 入院记录由非执业医师填写
|
|
|
+ * @Author : Mark
|
|
|
+ * @Date: 2020-04-07 10:36
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class BEH0494 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status.set("0");
|
|
|
+
|
|
|
+ String sign = inputInfo.getBeHospitalizedDoc().getStructureMap().get("签名");
|
|
|
+ sign = (null==sign)?"":sign.trim();
|
|
|
+
|
|
|
+ if(sign.length() > 0 || true) {
|
|
|
+ RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
|
+ int cnt = 0;
|
|
|
+
|
|
|
+ Map<String, String> surgeon;
|
|
|
+
|
|
|
+ if (null != redisUtil.get(sign)) {
|
|
|
+ surgeon = (Map)redisUtil.get(sign);
|
|
|
+ String prof = surgeon.get("职称").trim();
|
|
|
+ if (null != prof && surgeon.equals(prof)) {
|
|
|
+ cnt += 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (cnt == 0) {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|