Parcourir la source

省外异地的患者入院登记要读卡

lighter il y a 3 ans
Parent
commit
81c52b3e5f

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>web-server</artifactId>
-    <version>1</version>
+    <version>2</version>
     <name>web-server</name>
     <description>server for yibao-web</description>
     <properties>

+ 3 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiZyService.java

@@ -89,6 +89,9 @@ public class SiZyService {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请填写医保入院诊断!");
         }
         ReadCardBizType readCardBizType = ReadCardBizType.get(p.getReadCardBizType());
+        if (readCardBizType != ReadCardBizType.ADMISSION && !p.getInsuplcAdmdvs().startsWith("43")) {
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "省外异地的患者请读社保卡登记!");
+        }
         if (readCardBizType == ReadCardBizType.ADMISSION) {
             MdtrtCertType mdtrtCertType = MdtrtCertType.getByLabel(p.getMdtrtCertType());
             admMdtrtinfo.setMdtrtCertType(mdtrtCertType.getCode());