|
|
|
@ -285,14 +285,12 @@
|
|
|
|
|
on m.id=sNurse.archive_detail_id
|
|
|
|
|
LEFT JOIN (select MasterID,COUNT(*) num from archive_printInfo group by MasterID) printTable
|
|
|
|
|
on m.id=printTable.MasterID
|
|
|
|
|
LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext group by zyh,jzh) extDoctor
|
|
|
|
|
LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext where T1!='1801-02-03 00:00:00.000' group by zyh,jzh) extDoctor
|
|
|
|
|
on m.inp_no=extDoctor.zyh
|
|
|
|
|
and m.visit_id=extDoctor.jzh
|
|
|
|
|
and extDoctor.T1!='1801-02-03 00:00:00.000'
|
|
|
|
|
LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext group by zyh,jzh) extNurse
|
|
|
|
|
LEFT JOIN (select zyh,jzh,COUNT(*) num from archive_other_ext where T2!='1801-02-03 00:00:00.000' group by zyh,jzh) extNurse
|
|
|
|
|
on m.inp_no=extNurse.zyh
|
|
|
|
|
and m.visit_id=extNurse.jzh
|
|
|
|
|
and extNurse.T2!='1801-02-03 00:00:00.000'
|
|
|
|
|
where 1=1 and ArchiveState in('归档中','提交','主任退回')
|
|
|
|
|
and patindex('%B%',m.inp_no) = 0
|
|
|
|
|
<if test="emrCmit!=null and emrCmit!=''">
|
|
|
|
|