Procházet zdrojové kódy

抢救成功次数填写错误逻辑更新

huj před 4 roky
rodič
revize
6bf271d0aa

+ 6 - 2
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP0250.java

@@ -38,6 +38,10 @@ public class FIRP0250 extends QCCatalogue {
             if (rescueNum == successfulRescueTimesTZ) {
                 match = true;
             }
+            String saveNum = firstpageStructureMap.get("病人抢救次数");
+            if (successfulRescueTimes == saveNum) {
+                match = true;
+            }
             String name = firstpageStructureMap.get(Content.rescue_condition);
             if (StringUtil.isNotBlank(name)) {
                 String[] split = name.split("\\s+");
@@ -56,7 +60,7 @@ public class FIRP0250 extends QCCatalogue {
                 }
             }
 
-            if (!match){
+            if (!match) {
                 status.set("-1");
             }
         }
@@ -67,7 +71,7 @@ public class FIRP0250 extends QCCatalogue {
         for (RescueDoc re : rescueDocs) {
             Map<String, String> structureMap = re.getStructureMap();
             // 跟医学部确认,从抢救措施中读取数据
-            String qjgc = structureMap.get("抢救措施");
+            String qjgc = structureMap.get("抢救内容");
             if (StringUtil.isNotBlank(qjgc) && !qjgc.contains("死亡")) {
                 i++;
             }