소스 검색

会诊申请中添加查看患者的诊断

xiaochan 3 년 전
부모
커밋
a9369d9c36

+ 10 - 5
src/main/java/thyyxxk/webserver/controller/casefrontsheet/HuiZhenShenQingController.java

@@ -8,7 +8,6 @@ import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
 import thyyxxk.webserver.service.casefrontsheet.HuiZhenShenQingService;
 
 import java.util.List;
-import java.util.Map;
 
 /**
  * <p>
@@ -46,8 +45,8 @@ public class HuiZhenShenQingController {
     }
 
     @GetMapping("/chaKanHuiZhenShenQing")
-    public ResultVo<List<YshHzRecord>> chaKanHuiZhenShenQing(String inpatientNo,int admissTimes) {
-        return service.chaKanHuiZhenShenQing(inpatientNo,admissTimes);
+    public ResultVo<List<YshHzRecord>> chaKanHuiZhenShenQing(String inpatientNo, int admissTimes) {
+        return service.chaKanHuiZhenShenQing(inpatientNo, admissTimes);
     }
 
     @GetMapping("/shanChuHuiZhenShenQing")
@@ -55,14 +54,20 @@ public class HuiZhenShenQingController {
                                                     @RequestParam("admissTimes") int admissTimes,
                                                     @RequestParam("actOrderNo") float actOrderNo,
                                                     @RequestParam("reqTimes") int reqTimes) {
-        return service.shanChuHuiZhenShenQing(inpatientNo,admissTimes,actOrderNo,reqTimes);
+        return service.shanChuHuiZhenShenQing(inpatientNo, admissTimes, actOrderNo, reqTimes);
     }
 
     @GetMapping("/huiZhenYiSheng")
     public ResultVo<List<GetDropdownBox>> huiZhenYiSheng(@RequestParam("deptCode") String deptCode,
                                                          @RequestParam("hzType") String hzType) {
-        return service.huiZhenYiSheng(deptCode,hzType);
+        return service.huiZhenYiSheng(deptCode, hzType);
     }
 
+    @GetMapping("/huoQuHuanZheZhuYaoZhenDuan")
+    public ResultVo<List<GetDropdownBox>> huoQuHuanZheZhuYaoZhenDuan(@RequestParam("patNo") String patNo,
+                                                                     @RequestParam("times") Integer times,
+                                                                     @RequestParam("flag") Integer flag) {
+        return service.huoQuHuanZheZhuYaoZhenDuan(patNo, times, flag);
+    }
 
 }

+ 10 - 0
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/HuiZhenShenQingDao.java

@@ -136,4 +136,14 @@ public interface HuiZhenShenQingDao {
     @Select("select code,name from a_employee_mi with(nolock) where dept_code = #{deptCode} and emp_tit_code = #{hzType} and isnull(del_flag,0)=0")
     List<GetDropdownBox> huiZhenYiSheng(@Param("deptCode") String deptCode,
                                         @Param("hzType") String hzType);
+
+    @Select("select rtrim(dis_diag) code, rtrim(dis_diag_comment) name " +
+            "from ${tableName} " +
+            "where inpatient_no = #{patNo} " +
+            "  and admiss_times = #{times} " +
+            "order by dis_diag_no")
+    List<GetDropdownBox> huoQuHuanZheZhuYaoZhenDuan(@Param("patNo") String patNo,
+                                                    @Param("times") Integer times,
+                                                    @Param("tableName") String tableName);
+
 }

+ 12 - 0
src/main/java/thyyxxk/webserver/service/casefrontsheet/HuiZhenShenQingService.java

@@ -122,6 +122,18 @@ public class HuiZhenShenQingService {
         return ResultVoUtil.success(dao.huiZhenYiSheng(deptCode, "00" + hzType));
     }
 
+    /**
+     * 获取患者的主诊断
+     *
+     * @param patNo 住院号
+     * @param times 住院次数
+     * @param flag  1-本院诊断 2-医保诊断
+     * @return 对应数据
+     */
+    public ResultVo<List<GetDropdownBox>> huoQuHuanZheZhuYaoZhenDuan(String patNo, Integer times, Integer flag) {
+        return ResultVoUtil.success(dao.huoQuHuanZheZhuYaoZhenDuan(patNo, times, flag == 1 ? "ba_first_page1" : "zy_dis_diag_yb"));
+    }
+
 
     /**
      * 用来获取 order_code 这个是写死的