Parcourir la source

1.出院记录无执业医师签名修改逻辑

hujing il y a 5 ans
Parent
commit
91a14a6eda

+ 16 - 16
kernel/src/main/java/com/lantone/qc/kernel/catalogue/leavehospital/LEA0508.java

@@ -23,27 +23,27 @@ import java.util.Map;
 public class LEA0508 extends QCCatalogue {
     @Override
     public void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
-        status.set("0");
         LeaveHospitalDoc leaveHospitalDoc = inputInfo.getLeaveHospitalDoc();
         if (leaveHospitalDoc == null) {
+            status.set("0");
             return;
         }
         Map<String, String> structureMap = leaveHospitalDoc.getStructureMap();
-        if (structureMap != null) {
-            String doctorName = structureMap.get("医师签名");
-            if (StringUtils.isEmpty(doctorName)) {
-                return;
-            }
-            RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
-            Map<String, Object> surgeon = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
-            if (surgeon == null) {
-                return;
-            }
-            Map<String, String> doctor = (Map) surgeon.get(doctorName);
-            String occup = doctor.get("occup");
-            if (StringUtils.isNotEmpty(occup) && "1".equals(occup)) {
-                status.set("0");
-            }
+        String doctorName = structureMap.get("医师签名");
+        if (StringUtils.isEmpty(doctorName)) {
+            status.set("0");
+            return;
+        }
+        RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
+        Map<String, Object> surgeon = redisUtil.getJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP);
+        if (surgeon == null) {
+            status.set("0");
+            return;
+        }
+        Map<String, String> doctor = (Map) surgeon.get(doctorName);
+        String occup = doctor.get("occup");
+        if (StringUtils.isNotEmpty(occup) && "1".equals(occup)) {
+            status.set("0");
         }
     }
 }