select '' 门诊人次,'' 急诊人次,'' 总挂号人次,'' 挂号预约人次,'' 门诊医疗收入,'' 门诊药品收入,'' 门诊药占比,'' 门诊总收入,'' 门诊次均费用,'' 入院人次,'' 出院人次,'' 在院人次,'' 病床使用率,'' 住院医疗收入,'' 住院药品收入,'' 住院药占比,'' 住院总收入,'' 出院患者次均费用,'' 门诊藏医药品收入,'' 门诊藏医药品人次,'' 门诊藏医药品占比,'' 门诊藏医项目收入,'' 门诊藏医项目人次,'' 门诊藏医项目占比,'' 住院藏医药品收入,'' 住院藏医药品人次,'' 住院藏医药品占比,'' 住院藏医项目收入,'' 住院藏医项目人次,'' 住院藏医项目占比 from dual where 1=2
? and c.SFRQ <= ? )
]]>
12
12
93
93
? and c.SFRQ <= ?
]]>
12
93
93
=? and JJRQ <= ?
]]>
12
93
93
=? and CYRQ <= ?
]]>
12
93
93
=? and CYRQ > ?)))
]]>
12
93
93
? and c.SFRQ <= ? and c.PJZT = 1
union all
select sum(d.SFXSJZFY) fy from HIS_JZ_BASEINFO a left join HIS_SFZD_ZB b on a.pkey=b.jzpkey and a.JGID=b.JGID left join HIS_MZJS_MZFPZB c on b.pkey=c.GLZDBPKEY and b.JGID=c.JGID left join HIS_SFZD_SFXMXB d on b.pkey=d.ZDZBPKEY and b.JGID=d.JGID left join HIS_YZ_MXB e on d.YZMX=e.pkey and d.JGID=e.JGID left join HIS_SFX sfx on d.sfx=sfx.bm and d.JGID=sfx.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFRQ > ? and c.SFRQ <= ? and c.CHPKEY is not null and c.SFZT != 0
)
]]>
12
93
93
12
93
93
? and c.SFRQ <= ? and c.PJZT = 1 and sfx.gllx='Y'
union all
select sum(d.SFXSJZFY) fy from HIS_JZ_BASEINFO a left join HIS_SFZD_ZB b on a.pkey=b.jzpkey and a.JGID=b.JGID left join HIS_MZJS_MZFPZB c on b.pkey=c.GLZDBPKEY and b.JGID=c.JGID left join HIS_SFZD_SFXMXB d on b.pkey=d.ZDZBPKEY and b.JGID=d.JGID left join HIS_YZ_MXB e on d.YZMX=e.pkey and d.JGID=e.JGID left join HIS_SFX sfx on d.sfx=sfx.bm and d.JGID=sfx.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFRQ > ? and c.SFRQ <= ? and c.CHPKEY is not null and c.SFZT != 0 and sfx.gllx='Y'
)
]]>
12
93
93
12
93
93
? and c.SFRQ <= ? and c.PJZT = 1 and sfx.gllx='Y' and sfx.FYZL='27'
union all
select sum(d.SFXSJZFY) fy from HIS_JZ_BASEINFO a left join HIS_SFZD_ZB b on a.pkey=b.jzpkey and a.JGID=b.JGID left join HIS_MZJS_MZFPZB c on b.pkey=c.GLZDBPKEY and b.JGID=c.JGID left join HIS_SFZD_SFXMXB d on b.pkey=d.ZDZBPKEY and b.JGID=d.JGID left join HIS_YZ_MXB e on d.YZMX=e.pkey and d.JGID=e.JGID left join HIS_SFX sfx on d.sfx=sfx.bm and d.JGID=sfx.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFRQ > ? and c.SFRQ <= ? and c.CHPKEY is not null and c.SFZT != 0 and sfx.gllx='Y' and sfx.FYZL='27'
)
]]>
12
93
93
12
93
93
? and c.SFRQ <= ? and c.PJZT = 1 and sfx.gllx='Y' and sfx.FYZL='27'
union all
select distinct a.hzpkey from HIS_JZ_BASEINFO a left join HIS_SFZD_ZB b on a.pkey=b.jzpkey and a.JGID=b.JGID left join HIS_MZJS_MZFPZB c on b.pkey=c.GLZDBPKEY and b.JGID=c.JGID left join HIS_SFZD_SFXMXB d on b.pkey=d.ZDZBPKEY and b.JGID=d.JGID left join HIS_YZ_MXB e on d.YZMX=e.pkey and d.JGID=e.JGID left join HIS_SFX sfx on d.sfx=sfx.bm and d.JGID=sfx.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFRQ > ? and c.SFRQ <= ? and c.CHPKEY is not null and c.SFZT != 0 and sfx.gllx='Y' and sfx.FYZL='27'
)
)
]]>
12
93
93
12
93
93
? and c.SFRQ <= ? and c.PJZT = 1 and (sfx.FYZL='32' or sfx.FYZL='33')
union all
select sum(d.SFXSJZFY) fy from HIS_JZ_BASEINFO a left join HIS_SFZD_ZB b on a.pkey=b.jzpkey and a.JGID=b.JGID left join HIS_MZJS_MZFPZB c on b.pkey=c.GLZDBPKEY and b.JGID=c.JGID left join HIS_SFZD_SFXMXB d on b.pkey=d.ZDZBPKEY and b.JGID=d.JGID left join HIS_YZ_MXB e on d.YZMX=e.pkey and d.JGID=e.JGID left join HIS_SFX sfx on d.sfx=sfx.bm and d.JGID=sfx.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFRQ > ? and c.SFRQ <= ? and c.CHPKEY is not null and c.SFZT != 0 and (sfx.FYZL='32' or sfx.FYZL='33')
)
]]>
12
93
93
12
93
93
? and c.SFRQ <= ? and c.PJZT = 1 and (sfx.FYZL='32' or sfx.FYZL='33')
union all
select distinct a.hzpkey from HIS_JZ_BASEINFO a left join HIS_SFZD_ZB b on a.pkey=b.jzpkey and a.JGID=b.JGID left join HIS_MZJS_MZFPZB c on b.pkey=c.GLZDBPKEY and b.JGID=c.JGID left join HIS_SFZD_SFXMXB d on b.pkey=d.ZDZBPKEY and b.JGID=d.JGID left join HIS_YZ_MXB e on d.YZMX=e.pkey and d.JGID=e.JGID left join HIS_SFX sfx on d.sfx=sfx.bm and d.JGID=sfx.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFRQ > ? and c.SFRQ <= ? and c.CHPKEY is not null and c.SFZT != 0 and (sfx.FYZL='32' or sfx.FYZL='33')
)
)
]]>
12
93
93
12
93
93
=? and a.jjrq <=?
]]>
12
93
93
=? and a.jjrq <=?
]]>
12
93
93
=? and a.jjrq <=?
]]>
12
93
93
=? and a.jjrq <=?
]]>
12
93
93
=? and a.jjrq <=?)
]]>
12
93
93
=? and a.jjrq <=?)
]]>
12
93
93
=? and c.cyrq <=? group by b.JZPKEY)
]]>
12
93
93
select a.PKEY,a.HZPKEY,a.JZPKEY,a.BED,a.ZT,a.SFJS,a.KSSJ,a.JSSJ,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.ssbq,b.ssks from HIS_BQCW_LOG a left join HIS_BQCW b on a.bed=b.pkey and a.JGID=b.JGID where a.JGID=? and a.ZT='1'
12
= ?)
]]>
12
93
93
select '' 挂号科室,'' 门诊人次,'' 急诊人次,'' 总挂号人次,'' 挂号预约人次,'' 挂号费,'' 诊查费,'' 费用合计 from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
? and c.SFRQ <= ? ) group by jjks order by jjks
]]>
12
12
93
93
=? and c.SFRQ <= ? group by a.jjks order by a.jjks
]]>
12
93
93
? and c.SFRQ <= ? ) group by GHLB order by GHLB
]]>
12
93
93
=? and a.SFRQ<=? group by c.jjks
]]>
12
93
93
=? and a.SFRQ<=? group by c.jjks
]]>
12
12
93
93
select '' 挂号医生,'' 门诊人次,'' 急诊人次,'' 总挂号人次,'' 挂号预约人次,'' 挂号费,'' 诊查费,'' 费用合计 from dual where 1=2
select '' name,'' value from dual where 1=2
? and c.SFRQ <= ? ) group by JJYS order by JJYS
]]>
12
12
93
93
=? and c.SFRQ <= ? group by a.JJYS order by a.JJYS
]]>
12
93
93
=? and a.SFRQ<=? group by c.JJYS
]]>
12
12
93
93
select '' 科室,'' 医疗收入,'' 药品收入,'' 总收入,'' 药占比,'' 耗材收入,'' 检查检验收入 from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
=? and fpzb.SFRQ<=? group by jzb.jjks order by jzb.jjks
]]>
12
93
93
=? and fpzb.SFRQ<=? group by jzb.jjks order by jzb.jjks
]]>
12
93
93
=? and fpzb.SFRQ<=? group by jzb.jjks order by jzb.jjks
]]>
12
93
93
=? and fpzb.SFRQ<=? group by jzb.jjks order by jzb.jjks
]]>
12
93
93
=? and b.SFRQ<=? group by a.FYLBBM order by a.FYLBBM
]]>
12
93
93
=? and b.SFRQ<=? group by e.HZLX order by e.HZLX
]]>
12
93
93
select '' 医生,'' 医疗收入,'' 药品收入,'' 总收入,'' 药占比,'' 耗材收入,'' 检查检验收入 from dual where 1=2
select '' name,'' value from dual where 1=2
=? and fpzb.SFRQ<=? group by jzb.jjys order by jzb.jjys
]]>
12
93
93
=? and fpzb.SFRQ<=? group by jzb.jjys order by jzb.jjys
]]>
12
93
93
=? and fpzb.SFRQ<=? group by jzb.jjys order by jzb.jjys
]]>
12
93
93
=? and fpzb.SFRQ<=? group by jzb.jjys order by jzb.jjys
]]>
12
93
93
=? and b.SFRQ<=? group by d.jjys order by d.jjys
]]>
12
93
93
select '' 科室,'' 总挂号人次,'' 门诊收入,'' 次均费用 from dual where 1=2
select '' name,'' value from dual where 1=2
select '' 医生,'' 总挂号人次,'' 门诊收入,'' 次均费用 from dual where 1=2
select '' name,'' value,'' type from dual where 1=2
select '' 病区,'' 入院人数,'' 出院人数,'' 在院人次,'' 固定床位数,'' 病床使用率,'' 实际占床日,'' 实际开放床日 from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
=? and JJRQ <= ? group by ward
]]>
12
93
93
=? and CYRQ <= ? group by ward
]]>
12
93
93
=? and CYRQ > ?)) group by ward
]]>
12
93
93
? group by SSBQ order by SSBQ
]]>
12
93
93
select '' 科室,'' 医疗收入,'' 药品收入,'' 总收入,'' 药占比,'' 耗材收入,'' 检查检验收入 from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
=? and a.JFRQ<=? group by c.JJKS
]]>
12
93
93
=? and a.JFRQ<=? group by c.JJKS
]]>
12
93
93
=? and a.JFRQ<=? group by c.JJKS
]]>
12
93
93
=? and a.JFRQ<=? group by c.JJKS
]]>
12
93
93
=? and a.JFRQ<=? group by a.FYZL
]]>
12
93
93
=? and a.JFRQ<=? group by c.HZLX
]]>
12
93
93
select '' 病区,'' 出院人次,'' 医疗收入,'' 药品收入,'' 总收入,'' 次均费用,'' 药占比 from dual where 1=2
select '' name,'' value from dual where 1=2
select '' name,'' value from dual where 1=2
=? and d.cyrq <=? and b.JSZT !='0' group by d.WARD order by d.WARD
]]>
12
93
93
=? and d.cyrq <=? and e.GLLX='Y' and b.JSZT !='0' group by d.WARD order by d.WARD
]]>
12
93
93
=? and fpzb.SFRQ<=? group by yzmxb.yzzxks order by yzmxb.yzzxks
]]>
12
93
93
=? and fpzb.SFRQ<=? group by yzmxb.yzzxks order by yzmxb.yzzxks
]]>
12
93
93
=? and fpzb.SFRQ<=? group by yzmxb.yzzxks order by yzmxb.yzzxks
]]>
12
93
93
=? and fpzb.SFRQ<=? group by yzmxb.yzzxks order by yzmxb.yzzxks
]]>
12
93
93
=? and a.JFRQ<=? group by b.YZZXKS order by b.YZZXKS
]]>
12
93
93
=? and a.JFRQ<=? group by b.YZZXKS order by b.YZZXKS
]]>
12
93
93
=? and a.JFRQ<=? group by b.YZZXKS order by b.YZZXKS
]]>
12
93
93
=? and a.JFRQ<=? group by b.YZZXKS order by b.YZZXKS
]]>
12
93
93