Browse Source

非医嘱离院要填原因

lighter 3 days ago
parent
commit
051552de31

+ 3 - 2
src/main/java/thyyxxk/webserver/dao/his/inpatient/casefrontsheet/CaseFrontSheetDao.java

@@ -164,7 +164,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "tumorLevelT=rtrim(a.tumor_level_t)," +
             "tumorLevelN=rtrim(a.tumor_level_n)," +
             "tumorLevelM=rtrim(a.tumor_level_m)," +
-            "a.tumor_level," +
+            "a.tumor_level,a.fyzlyyy," +
             "xxeApgar=rtrim(a.apgar) " +
             "from batj_ba2 a with(nolock), zy_actpatient b with(nolock) where " +
             "b.inpatient_no=a.bah and " +
@@ -233,7 +233,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "tumorLevelT=rtrim(a.tumor_level_t)," +
             "tumorLevelN=rtrim(a.tumor_level_n)," +
             "tumorLevelM=rtrim(a.tumor_level_m)," +
-            "a.tumor_level," +
+            "a.tumor_level,a.fyzlyyy," +
             "xxeApgar=rtrim(a.apgar) " +
             "from batj_ba2 a with(nolock), zy_inactpatient b with(nolock) where " +
             "b.inpatient_no=a.bah and b.admiss_times=a.zycs and " +
@@ -402,6 +402,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "zkhs=#{qualityControlNurse}," +
             "barq=#{qualityControlDate}," +
             "lyfs=#{zyDismissWay}," +
+            "fyzlyyy=#{fyzlyyy}, " +
             "jsjg=#{dismissDestination}," +
             "zzy_flag=#{admissAgainInOneMonth}," +
             "zzy_md=#{admissAgainPurpose}," +

+ 3 - 0
src/main/java/thyyxxk/webserver/entity/casefrontsheet/CaseFrontsheetMain.java

@@ -486,6 +486,9 @@ public class CaseFrontsheetMain implements Serializable {
      */
     private String zyDismissWay;
 
+    // 非医嘱离院原因
+    private String fyzlyyy;
+
     /**
      * 拟接收医疗机构名称
      */

+ 7 - 0
src/main/java/thyyxxk/webserver/service/inpatient/casefrontsheet/VerifyCaseFrontSheet.java

@@ -349,6 +349,13 @@ public class VerifyCaseFrontSheet {
                     array.add(new CodeName("dismissDestination","患者转入医疗机构不能为空!"));
                 }
             }
+            if ("3".equals(info.getZyDismissWay())) {
+                if (StringUtil.invalidValue(info.getFyzlyyy())) {
+                    array.add(new CodeName("fyzlyyy", "非医嘱离院原因不能为空!"));
+                }
+            } else {
+                info.setFyzlyyy(null);
+            }
         }
         if (StringUtil.notBlank(info.getHasSurgery())  && "0".equals(info.getHasSurgery()) && !"0".equals(info.getDiagConform3())) {
             array.add(new CodeName("diagConform3","无手术时,诊断符合情况中的术前与术后需要为【未做】!"));

+ 4 - 0
update/2025-08-14.md

@@ -0,0 +1,4 @@
+```sql
+alter table batj_ba2 add fyzlyyy nvarchar(128)
+alter table t_case_frontsheet_main add fyzlyyy nvarchar(128)
+```