Browse Source

门诊慢特病诊疗信息

xiaochan 3 years ago
parent
commit
c0c3fb78e3

+ 10 - 1
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

@@ -472,6 +472,15 @@ public interface UpIdCollectionDao {
                                                      @Param("times") Integer times,
                                                      @Param("ledgerSn") Integer ledgerSn);
 
+    @Select("select diag_code as diag_code, " +
+            "       diag_name as diag_name, " +
+            "       '00000'   as oprn_oprt_name, " +
+            "       '无手术'  as oprn_oprt_code " +
+            "from t_si_mz_diag\n" +
+            "where pat_no = #{patNo} and times = #{times} ")
+    List<OpspdiseinfoUpld> outpatientDiagnosis(@Param("patNo") String patNo,
+                                               @Param("times") Integer times);
+
     @Select("select rtrim(a.name)                                        as psnName, " +
             "       isnull(nullif(rtrim(b.occupation_code), " +
             "                     ''), " +
@@ -541,4 +550,4 @@ public interface UpIdCollectionDao {
                                    @Param("times") Integer times,
                                    @Param("ledgerSn") Integer ledgerSn);
 
-}
+}

+ 0 - 1
src/main/java/thyyxxk/webserver/service/dictionary/EmrDataMaintenanceServer.java

@@ -99,7 +99,6 @@ public class EmrDataMaintenanceServer {
             }
             if (StringUtil.notBlank(emr.getGroupName())) {
                 String map = String.format("{\"%s\" : %s}", emr.getGroupName(), JSON.toJSONStringWithDateFormat(sqlData, DateUtil.DEFAULT_PATTERN));
-
                 return ResultVoUtil.success(JSON.parseObject(map));
             }
             return ResultVoUtil.success(JSON.parseObject(JSON.toJSONStringWithDateFormat(sqlData, DateUtil.DEFAULT_PATTERN)));

+ 5 - 3
src/main/java/thyyxxk/webserver/service/medicalinsurance/SetlListUpldService.java

@@ -302,8 +302,8 @@ public class SetlListUpldService {
         upldCollection.setSetlinfo(setlinfoUpld);
         //  基金支付信息
         upldCollection.setPayinfo(payinfo);
-        // 门特慢特病诊断信息  住院没有
-        upldCollection.setOpspdiseinfo(new ArrayList<>());
+        // 门特慢特病诊断信息
+        upldCollection.setOpspdiseinfo(dao.diagnosisOfMenterSDisease(patNo, times, ledgerSn));
         // 住院诊断信息
         upldCollection.setDiseinfo(diseinfos);
         //  收费项目信息
@@ -1117,7 +1117,9 @@ public class SetlListUpldService {
         EntityCopy.Copy(dao.mzJieSuanXinXi(patNo, times), mzPatient);
         upldCollection.setSetlinfo(mzPatient);
         mzPatient.setMedcasno(patNo + "_" + times);
-        upldCollection.setOpspdiseinfo(dao.diagnosisOfMenterSDisease(patNo, times, ledgerSn));
+        // 门诊慢特病
+        upldCollection.setOpspdiseinfo(dao.outpatientDiagnosis(patNo, times));
+
         mzPatient.setHsorg("长沙市医疗保障事务中心");
         mzPatient.setHsorgOpter("长沙市医疗保障事务中心");
         GetDropdownBox getDropdownBox = dao.userInfo(TokenUtil.getTokenUserId());