Browse Source

入院登记时诊断医师使用管床医生。

lighter 2 năm trước cách đây
mục cha
commit
2749dfd61f

+ 2 - 2
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/SiZyDao.java

@@ -40,8 +40,8 @@ public interface SiZyDao {
             "icd_text as diagName, " +
             "diagDept=(select rtrim(name) from zd_unit_code where code=( " +
             "select small_dept from zy_actpatient where zy_actpatient.inpatient_no=zy_in_diag_yb.inpatient_no)), " +
-            "diseDorNo=(select rtrim(isnull(yb_code,code)) from a_employee_mi where code=oper_id), " +
-            "diseDorName=(select rtrim(name) from a_employee_mi where code=oper_id), " +
+//            "diseDorNo=(select rtrim(isnull(yb_code,code)) from a_employee_mi where code=oper_id), " +
+//            "diseDorName=(select rtrim(name) from a_employee_mi where code=oper_id), " +
             "op_date as diagTime " +
             "from zy_in_diag_yb where inpatient_no=#{patNo} and admiss_times=#{times}")
     List<AdmDiseinfo> selectAdmDiags(@Param("patNo") String patNo, @Param("times") int times);

+ 4 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiZyService.java

@@ -85,6 +85,10 @@ public class SiZyService {
         if (null == admDiseinfos || admDiseinfos.isEmpty()) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请填写医保入院诊断!");
         }
+        admDiseinfos.forEach(item -> {
+            item.setDiseDorNo(admMdtrtinfo.getAtddrNo());
+            item.setDiseDorName(admMdtrtinfo.getChfpdrName());
+        });
         ReadCardBizType readCardBizType = ReadCardBizType.get(p.getReadCardBizType());
         if (readCardBizType != ReadCardBizType.ADMISSION && !p.getInsuplcAdmdvs().startsWith("43")) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "省外异地的患者请读社保卡登记!");