|
@@ -85,6 +85,7 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
" a.addr_zip_code as poscode /* 邮编*/,\n" +
|
|
|
" (select wjw_code from zd_nation_code where code = a.nation) as naty/*民族*/,\n" +
|
|
|
" a.contact_name as coner_name/*联系人姓名*/,\n" +
|
|
|
+ "a.birth_date,a.age,"+
|
|
|
" (select rtrim(yb_code)\n" +
|
|
|
" from zy_zd_relative_code\n" +
|
|
|
" where code = a.contact_relation) as patn_rlts /*与患者的关系*/,\n" +
|
|
@@ -120,7 +121,7 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
" when '-' then 0\n" +
|
|
|
" else a.new_born_weight\n" +
|
|
|
" end as nwb_bir_wt/*新生儿体重*/,\n" +
|
|
|
- "a.birth_date brdy , a.age gend,"+
|
|
|
+ " a.birth_date brdy , a.age , a.sex gend,"+
|
|
|
" resp_nurs_code = (select rtrim(yb_code)\n" +
|
|
|
" from a_employee_mi\n" +
|
|
|
" where a_employee_mi.code = isnull(a.duty_nurse,b.job_nurse)) /*责任护士*/,\n" +
|
|
@@ -347,7 +348,7 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
"select " +
|
|
|
"row_number() over (order by setl_time) as rowNumber," +
|
|
|
"rtrim(a.pat_no) pat_no,a.age,a.times,ledger_sn,psn_name,gend,brdy,insutype,psn_type,mdtrt_id,setl_id,setl_time, " +
|
|
|
- " a.med_type,medfee_sumamt,fund_pay_sumamt, b.dis_date," +
|
|
|
+ " a.med_type,medfee_sumamt,fund_pay_sumamt, b.dis_date, a.hi_paymtd," +
|
|
|
" acct_pay,psn_cash_pay,clr_optins,clr_optins_name = (select name from t_region where code=clr_optins), " +
|
|
|
" outDeptName=(select rtrim(name) from zd_unit_code where code=isnull(zk_ward,small_dept))," +
|
|
|
" rtrim(isnull(zk_ward,small_dept)) as out_dept," +
|
|
@@ -992,5 +993,6 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
)
|
|
|
List<SiSetlinfoTemp> getQualityPass(String firstDate);
|
|
|
|
|
|
-
|
|
|
+ @Select(" select count(1) from t_case_frontsheet_main where bah=#{inpatientNo} and admiss_times = #{admissTimes}")
|
|
|
+ Integer queryCountTCaseFrontsheetMain(@Param("inpatientNo") String inpatientNo, @Param("admissTimes") Integer admissTimes);
|
|
|
}
|