瀏覽代碼

添加医保诊断和手术匹配

lighter 2 年之前
父節點
當前提交
28e26a863e

+ 1 - 0
src/main/java/thyyxxk/webserver/controller/dictionary/HisWjwMatchController.java

@@ -55,6 +55,7 @@ public class HisWjwMatchController {
                 entity.setTable("zd_unit_code");
                 break;
             case "diagnose":
+            case "si_diag":
                 entity.setTable("zd_icd_code_new");
                 break;
             case "surgery":

+ 4 - 0
src/main/java/thyyxxk/webserver/dao/his/dictionary/HisWjwMatchDao.java

@@ -22,6 +22,10 @@ public interface HisWjwMatchDao {
     @Select("select code,name,py_code from ${table}")
     List<HisWjwMatchEntity> selectWjwData(@Param("table") String table);
 
+    @Select("select rtrim(code) as code,rtrim(name) as name,rtrim(py_code) as py_code, " +
+            "rtrim(yb_code) as wjwCode,rtrim(yb_name) as wjwName from ${table}")
+    List<HisWjwMatchEntity> selectYbData(@Param("table") String table);
+
     @Select("select rtrim(code) as code, rtrim(name) as name from ${table} where yb_code is null")
     List<HisWjwMatchEntity> selectNationTempData(@Param("table") String table);
 

+ 13 - 0
src/main/java/thyyxxk/webserver/service/dictionary/HisWjwMatchService.java

@@ -45,6 +45,16 @@ public class HisWjwMatchService {
                 wjwtable = "t_si_dl_oprtn";
                 type = 3;
                 break;
+            case "si_diag":
+                histable = "zd_icd_code_new";
+                wjwtable = "zd_icd_code_new";
+                type = 5;
+                break;
+            case "si_surgery":
+                histable = "zd_icd9_cm3";
+                wjwtable = "zd_icd9_cm3";
+                type = 5;
+                break;
             case "surgery_chargeCode":
             default:
                 histable = "zd_icd9_cm3";
@@ -57,6 +67,9 @@ public class HisWjwMatchService {
         if (type == 1) {
             hisList = dao.selectHisData(histable);
             wjwList = dao.selectWjwData(wjwtable);
+        } else if (type == 5) {
+            hisList = dao.selectYbData(histable);
+            wjwList = dao.selectYbData(wjwtable);
         } else if (type == 4) {
             hisList = dao.selectSurgeries();
             wjwList = dao.selectChargeCodes();