فهرست منبع

病案首页填写主要手术时做分值推荐。

lighter 3 سال پیش
والد
کامیت
a1503048ea

+ 1 - 1
src/main/java/thyyxxk/webserver/config/exception/ExceptionEnum.java

@@ -30,7 +30,7 @@ public enum ExceptionEnum {
     INVALID_PASSWORD(3003, "密码错误,请重新登录!"),
     BAD_REQUEST(3004, "无法转换请求,请用正确的方式访问!"),
     // 以下是不需要提示的错误
-    SLIGHTLY_ERROR(4001, "未知错误!");
+    SLIGHTLY_ERROR(4001, "无需提示的返回。");
 
     private final int code;
     private String message;

+ 7 - 0
src/main/java/thyyxxk/webserver/controller/casefrontsheet/SheetSearchController.java

@@ -25,9 +25,16 @@ public class SheetSearchController {
         return service.sheetSearch(param);
     }
 
+    @GetMapping("/getSsfzSurgeriesByIcd")
+    public ResultVo<List<PureCodeName>> getSsfzSurgeriesByIcd(@RequestParam("icd") String icd) {
+        return service.getSsfzSurgeriesByIcd(icd);
+    }
+
     @PassToken
     @GetMapping("/fetchStatisticsBySeason")
     public void fetchStatisticsBySeason(HttpServletResponse response, @RequestParam("season") String season) {
         service.fetchStatisticsBySeason(response, season);
     }
+
+
 }

+ 7 - 1
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/SheetSearchDao.java

@@ -3,7 +3,6 @@ package thyyxxk.webserver.dao.his.casefrontsheet;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
-import org.apache.ibatis.annotations.Update;
 import thyyxxk.webserver.entity.casefrontsheet.StatisticsBySeason;
 import thyyxxk.webserver.entity.dictionary.PureCodeName;
 
@@ -50,6 +49,13 @@ public interface SheetSearchDao {
     @Select("select rtrim(code) code, rtrim(name) name from zd_cm3_new with(nolock)")
     List<PureCodeName> getAllItem();
 
+    @Select("select top 1 disefamily_code from t_si_disefamily_diagnose with(nolock) where dise_code=#{code} or disefamily_code=#{code}")
+    String selectDisefamilyCode(@Param("code") String code);
+
+    @Select("select oprn_code as code, oprn_name as name, oprn_grade as ssfz from " +
+            "t_si_operation_disefamily with(nolock) where disefamily_code=#{code} order by oprn_grade desc")
+    List<PureCodeName> selectOperationDisefamilies(@Param("code") String code);
+
     @Select("select " +
             "rtrim(a.inpatient_no) as AKC190,AKB020='H43010500370',USERNAME='长沙泰和医院',ZFY=a.total_charge, " +
             "a.admiss_times as ZYCS,rtrim(a.inpatient_no) as BAH,rtrim(a.name) as XM,a.sex AS XB, " +

+ 1 - 0
src/main/java/thyyxxk/webserver/entity/dictionary/PureCodeName.java

@@ -9,6 +9,7 @@ import lombok.Data;
 public class PureCodeName {
     private String code;
     private String name;
+    private String ssfz;
 
     public PureCodeName() {
     }

+ 14 - 0
src/main/java/thyyxxk/webserver/service/casefrontsheet/SheetSearchService.java

@@ -3,6 +3,7 @@ package thyyxxk.webserver.service.casefrontsheet;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.dao.his.casefrontsheet.SheetSearchDao;
 import thyyxxk.webserver.entity.ResultVo;
 import thyyxxk.webserver.entity.casefrontsheet.StatisticsBySeason;
@@ -105,6 +106,19 @@ public class SheetSearchService {
         return dao.searchEmployee(method, content, page);
     }
 
+    public ResultVo<List<PureCodeName>> getSsfzSurgeriesByIcd(String icd) {
+        String disefamilyCode = dao.selectDisefamilyCode(icd);
+        if (StringUtil.isBlank(disefamilyCode)) {
+            return ResultVoUtil.fail(ExceptionEnum.SLIGHTLY_ERROR);
+        }
+        List<PureCodeName> result = dao.selectOperationDisefamilies(disefamilyCode);
+        if (null == result || result.isEmpty()) {
+            return ResultVoUtil.fail(ExceptionEnum.SLIGHTLY_ERROR);
+        }
+        return ResultVoUtil.success(result);
+    }
+
+
     /**
      * 1.	报送范围为出院日期在2019年1月1日—2021年12月31日,包括城镇职工、城乡居民基本医疗保险病人的住院数据(排除全自费、异地就医、工伤、生育保险类住院数据);
      * 2.	NO41表以CSV文件格式提取,并按季度上传数据。单个上传文件上限为5万条病例数,如果数据量过大,也可按月度上传数据。(文件命名格式:“医疗机构名称_201901.csv”);