|
@@ -242,7 +242,7 @@ public interface DrgDipDao {
|
|
|
|
|
|
@Select("select " +
|
|
|
"mdtrt_id,psn_no,psn_type,cvlserv_flag,medfee_sumamt, " +
|
|
|
- "setlTime=convert(varchar(19), a.setl_time, 21), " +
|
|
|
+ "setlTime=convert(varchar(19), a.setl_time, 21),insutype, " +
|
|
|
"fulamt_ownpay_amt,overlmt_selfpay,preselfpay_amt,inscp_scp_amt, " +
|
|
|
"act_pay_dedc,hifp_pay,pool_prop_selfpay,cvlserv_pay,hifes_pay, " +
|
|
|
"hifmi_pay,hifob_pay,maf_pay,oth_pay,fund_pay_sumamt,psn_part_amt, " +
|
|
@@ -277,21 +277,16 @@ public interface DrgDipDao {
|
|
|
List<Yibao5204> selectYibao5204(String visitId);
|
|
|
|
|
|
@Select("select " +
|
|
|
- "b.mdtrt_id as visitId, " +
|
|
|
- "dagnsCategory=1, " +
|
|
|
- "a.diag_no as disDiagNo, " +
|
|
|
+ "b.mdtrt_id as visitId,dagnsCategory=1, " +
|
|
|
"dagnsTypeId=case when diag_no=1 then 1 else 2 end, " +
|
|
|
- "dagnsWayId=1, " +
|
|
|
- "icd_text as diseaseName, " +
|
|
|
- "icd_code " +
|
|
|
- "from zy_in_diag_yb a, t_si_setlinfo b " +
|
|
|
+ "dagnsWayId=1,icd_text as diseaseName, " +
|
|
|
+ "icd_code from zy_in_diag_yb a, t_si_setlinfo b " +
|
|
|
"where b.mdtrt_id=#{visitId} and b.pat_no=a.inpatient_no " +
|
|
|
"and b.times=a.admiss_times " +
|
|
|
"union " +
|
|
|
"select " +
|
|
|
"b.mdtrt_id as visitId, " +
|
|
|
"dagnsCategory=case when si_diag_type in ('1','2') then 1 else 2 end, " +
|
|
|
- "a.dis_diag_no, " +
|
|
|
"dagnsTypeId=case when dis_diag_no=1 then 1 else 2 end, " +
|
|
|
"dagnsWayId=2, " +
|
|
|
"rtrim(dis_diag_comment) as diseaseName, " +
|