|
|
@@ -142,9 +142,9 @@ public interface DrgDipDao {
|
|
|
"status='02',rtrim(a.small_dept) as visitDeptId,a.admiss_times as hsptzdCount, " +
|
|
|
"hsptzdTime=convert(varchar(19), a.admiss_date, 21), " +
|
|
|
"rtrim(isnull(a.refer_physician, a.admiss_physician)) as tbDoctorId," +
|
|
|
- "insurAreaId=(select d.insuplc_admdvs from t_si_setlinfo d where d.pat_no=a.inpatient_no and d.times=a.admiss_times and d.ledger_sn=#{ledgerSn} and revoked=0), " +
|
|
|
- "insurType=(select d.insutype from t_si_setlinfo d where d.pat_no=a.inpatient_no and d.times=a.admiss_times and d.ledger_sn=#{ledgerSn} and revoked=0), " +
|
|
|
- "ttmntTypeCode=(select d.med_type from t_si_setlinfo d where d.pat_no=a.inpatient_no and d.times=a.admiss_times and d.ledger_sn=#{ledgerSn} and revoked=0), " +
|
|
|
+ "insurAreaId=(select d.insuplc_admdvs from t_si_pat_info d where d.pat_no=a.inpatient_no and d.times=a.admiss_times and d.ledger_sn=#{ledgerSn}), " +
|
|
|
+ "insurType=(select d.insutype from t_si_pat_info d where d.pat_no=a.inpatient_no and d.times=a.admiss_times and d.ledger_sn=#{ledgerSn}), " +
|
|
|
+ "ttmntTypeCode=(select d.med_type from t_si_pat_info d where d.pat_no=a.inpatient_no and d.times=a.admiss_times and d.ledger_sn=#{ledgerSn}), " +
|
|
|
"disCode=(select d.icd_code from zy_in_diag_yb d where d.inpatient_no=a.inpatient_no and d.admiss_times=a.admiss_times and d.diag_no=1), " +
|
|
|
"disName=(select d.icd_text from zy_in_diag_yb d where d.inpatient_no=a.inpatient_no and d.admiss_times=a.admiss_times and d.diag_no=1) " +
|
|
|
"from zy_actpatient a, a_patient_mi b where a.inpatient_no=#{patNo} and a.admiss_times=#{times} and a.inpatient_no=b.inpatient_no ")
|