|
@@ -33,6 +33,7 @@ public interface SiZyDao {
|
|
|
* @return 入院医保诊断
|
|
|
*/
|
|
|
@Select("select psnNo=(select top 1 psn_no from t_si_pat_info where pat_no=#{patNo} and times=#{times}), " +
|
|
|
+ "psnName=(select top 1 psn_name from t_si_pat_info where pat_no=#{patNo} and times=#{times}), " +
|
|
|
"diag_type as diagType, " +
|
|
|
"maindiagFlag=case when diag_no=1 then '1' else '0' end, " +
|
|
|
"diag_no as diagSrtNo, " +
|
|
@@ -53,7 +54,7 @@ public interface SiZyDao {
|
|
|
* @param ledgerSn 账页号
|
|
|
* @return 入院基本信息
|
|
|
*/
|
|
|
- @Select("select b.psn_no,b.insutype, " +
|
|
|
+ @Select("select b.psn_no,b.insutype,b.psn_name, " +
|
|
|
"isnull(a.yb_register_date,a.admiss_date) as begntime, " +
|
|
|
"mdtrtCertType='02', " +
|
|
|
"b.certno as mdtrtCertNo, " +
|
|
@@ -72,12 +73,6 @@ public interface SiZyDao {
|
|
|
AdmMdtrtinfo selectAdmMdtrtinfo(@Param("inpatientNo") String inpatientNo,
|
|
|
@Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
- @Select("select insuplc_admdvs as code, mdtrt_id as name from t_si_pat_info where " +
|
|
|
- "pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledgerSn}")
|
|
|
- PureCodeName selectMdtrtId(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times,
|
|
|
- @Param("ledgerSn") int ledgerSn);
|
|
|
-
|
|
|
/**
|
|
|
* 获取当前患者最大账页号
|
|
|
*
|