|
@@ -165,6 +165,7 @@ public interface TriageDao {
|
|
|
"phone=rtrim(isnull(b.phone_no,'-')),rtrim(b.social_no) as socialNo, " +
|
|
|
"address=rtrim(isnull(b.adress,'-')), " +
|
|
|
"gender=case when b.sex='1' then N'男' when b.sex='2' then N'女' else N'未知' end, " +
|
|
|
+ "regCount=(select count(1) from t_emergency_reg_info d where d.patient_id=a.patient_id and d.times=a.times), " +
|
|
|
"room_status=(select status_flag from mzfz_zd_dept_room where room_code=a.room_code), " +
|
|
|
"doctor_code,doctor_name=(select name from a_employee_mi where code=doctor_code), " +
|
|
|
"serial_no,gh_no,req_type,reqName=(select rtrim(name) from mzy_zd_charge_type where code=a.req_type), " +
|