select '' 门诊人次,'' 急诊人次,'' 总挂号人次,'' 退号人次,'' 退号率,'' 挂号预约人次,'' 预约就诊率,'' 候诊人次,'' 发药金额,'' 入院人次,'' 出院人次,'' 在院人次,'' 退院人次,'' ICU人数,'' 危重人次,'' 死亡人次,'' 病床使用率,'' 计划手术例数 from dual where 1=2 =? and c.SFRQ <= ? ]]>

12

93

93

=? and c.SFRQ <= ? ]]>

12

93

93

=? and JJRQ <= ? ]]>

12

93

93

=? and JJRQ <= ? ]]>

12

93

93

=? and JJRQ <= ? ]]>

12

93

93

=? and JJRQ <= ? ]]>

12

93

93

=? and OPADATETIME <=? ]]>

12

93

93

=? and b.FYRQ <=? ]]>

12

93

93

=? and b.FYTIME <=? ]]>

12

93

93

select '' 挂号科室,'' 门诊人次,'' 急诊人次,'' 总挂号人次,'' 挂号预约人次,'' 退号人次,'' 候诊人次,'' 挂号费,'' 诊查费,'' 费用合计 from dual where 1=2 select '' name,'' value,'' type from dual where 1=2 select '' name,'' value,'' type from dual where 1=2 =? and c.SFRQ <= ? group by a.jjks order by a.jjks ]]>

12

93

93

=? and c.SFRQ <= ? group by a.jjks order by a.jjks ]]>

12

93

93

=? and c.SFRQ <= ? group by a.jjks order by a.jjks ]]>

12

93

93

=? and c.SFRQ <= ? ) group by ghsd order by ghsd ]]>

12

12

93

93

=? and c.SFRQ <= ? )group by ghsd order by ghsd ]]>

12

93

93

select '' 病区,'' 入院人次,'' 出院人次,'' 在院人次,'' 退院人次,'' ICU人次,'' 危重人次,'' 死亡人次 from dual where 1=2 select '' name,'' value,'' type from dual where 1=2 select '' name,'' value from dual where 1=2 =? and JJRQ <= ? group by ward order by ward ]]>

12

93

93

=? and CYRQ <= ? group by ward order by ward ]]>

12

93

93

=? and JJRQ <= ? and (JZZT='Z' or (JZZT='C' and CYRQ > ?)) group by ward order by ward ]]>

12

93

93

93

=? and JJRQ <= ? group by ward order by ward ]]>

12

93

93

=? and JJRQ <= ? group by ward order by ward ]]>

12

93

93

=? and JJRQ <= ? group by ward order by ward ]]>

12

93

93

=? and JJRQ <= ? group by ward order by ward ]]>

12

93

93

=? and JJRQ <= ? ) group by sd order by sd ]]>

12

93

93

=? and CYRQ <= ? ) group by sd order by sd ]]>

12

93

93

=? and JJRQ <= ? ) group by sd order by sd ]]>

12

93

93

? and g.fyrq <=? union all select distinct a.pkey,b.pkey yzmx,b.yzxpkey,b.yzmc,c.gg,a.YZSL,a.TYSL,f.ZHXS,c.JBDW,f.RKDW,d.JJYS,d.JJKS,f.FYZL,e.jbdj,b.YPYZJBJG,f.dwview,e.YXQ,e.PH,c.ZCZH,c.CSXX,rkd.GYS,g.fyrq,'' SFSL,a.FYDW,0 FYJE,tymxb.TYJE,tymxb.STSL,0 FYJJJE,tymxb.TYJJJE,g.FYYF from HIS_YFFY_MZTYMXB tymxb left join HIS_YFFY_MZFYMXB a on tymxb.MZFYMXBPKEY=a.pkey and tymxb.JGID=a.JGID left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_YPXX c on a.YZX=c.BM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzx=f.bm and a.JGID=f.JGID left join HIS_YFFY_MZFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_YFYK_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_YFYK_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID where a.JGID=? and tymxb.CJRQ >? and tymxb.CJRQ <=? ) group by FYYF ORDER BY FYYF ]]>

12

93

93

12

93

93

? and g.FYTIME <=? and a.sfsl>0 union all select distinct a.pkey,b.pkey yzmx,b.yzxpkey,b.yzmc,c.gg,a.YZSL,a.TYSL,f.ZHXS,c.JBDW,f.RKDW,d.JJYS,d.JJKS,f.FYZL,e.jbdj,b.YPYZJBJG,f.dwview,e.YXQ,e.PH,c.ZCZH,c.CSXX,rkd.GYS,g.FYTIME fyrq,'' SFSL,a.FYDW,0 FYJE,tymxb.TYJE,tymxb.STSL,0 FYJJJE,tymxb.TYJJJE,tymxb.CJRQ rq,b.YPYZBZJG,a.PCSJ,a.PCJBSJ,a.SFBZDWFY,a.YPYZZHXS,a.PCDJ,a.PCJBDJ,a.YPFYSJMS,g.FYKS from HIS_YFFY_MZTYMXB tymxb left join HIS_YFFY_ZYFYMXB a on tymxb.MZFYMXBPKEY=a.pkey and tymxb.JGID=a.JGID left join HIS_YZ_MXB b on a.YZMX=b.PKEY and a.JGID=b.JGID left join HIS_YPXX c on a.YZXPKEY=c.BM left join HIS_JZ_BASEINFO d on a.JZPKEY=d.pkey and a.JGID=d.JGID left join HIS_KSKC_PC e on a.KSKCPCPKEY=e.pkey and a.JGID=e.JGID left join HIS_SFX f on a.yzxpkey=f.bm and a.JGID=f.JGID left join HIS_YFFY_ZYFYZB g on a.FYBPKEY=g.pkey and a.JGID=g.JGID left join HIS_YFYK_RKD_MX rkmx on e.pkey=rkmx.KSKC_PC_PKEY and e.JGID=rkmx.JGID left join HIS_YFYK_RKD rkd on rkmx.djh=rkd.djh and rkmx.JGID=rkd.JGID where a.JGID=? and tymxb.CJRQ >? and tymxb.CJRQ <=? and tymxb.stsl >0 ) group by FYKS ORDER BY FYKS ]]>

12

93

93

12

93

93

select '' 科室,'' 发药金额,'' 发药数量,'' 退药金额,'' 退药数量 from dual where 1=2 select '' name,'' value,'' type from dual where 1=2 =? and a.OPADATETIME<=? order by a.OPADATETIME ]]>

12

93

93

select '' 科室,'' 病人姓名,'' 手术类型,'' 住院号,'' 年龄,'' 性别,'' 手术时间,'' 手术名称,'' 手术级别 from dual where 1=2