You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
klintersrv/WEB-INF/conf/sysds_jimureport_normal_ysk...

292 lines
13 KiB

3 months ago
<?xml version="1.0" encoding="UTF-8"?>
<datasource>
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
<dao id="normalYsgzlYsgzlShowDao" log="true" type="1" memo="医生科主任查询-当前医生工作量查询显示dao">
<sql>
select '' 门诊量,'' 总收入,'' 门诊次均费用,'' 出诊次数,'' 药品收入,'' 医疗收入,'' 药占比,'' 预约人次,'' 预约率,'' 出院人数,'' 出院费用,'' 出院次均费用,'' 会诊次数,'' 死亡人数,'' 死亡率 from dual where 1=2
</sql>
<fields>
<f name="门诊量" type="1" />
<f name="总收入" type="1" />
<f name="门诊次均费用" type="1" />
<f name="出诊次数" type="1" />
<f name="药品收入" type="1" />
<f name="医疗收入" type="1" />
<f name="药占比" type="1" />
<f name="预约人次" type="1" />
<f name="预约率" type="1" />
<f name="出院人数" type="1" />
<f name="出院费用" type="1" />
<f name="出院次均费用" type="1" />
<f name="会诊次数" type="1" />
<f name="死亡人数" type="1" />
<f name="死亡率" type="1" />
</fields>
</dao>
<dao id="normalYskzrYsgzlMjzJzrcDao" log="true" type="1" memo="当前医生工作量查询-当前医生门诊人次-dao">
<sql><![CDATA[
select count(*) mzrc 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 where a.JGID=? and (a.JZLX='M' or a.JZLX='J') and a.jjys=? and c.SFZT = 1 and c.SFRQ >=? and c.SFRQ <= ?
]]></sql>
<fields>
<f name="mzrc" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlYyghJzrcDao" log="true" type="1" memo="当前医生工作量查询-查询预约挂号就诊人次dao">
<sql><![CDATA[
select count(*) yyghrc 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 where a.JGID=? and (a.JZLX='M' or a.JZLX='J') and a.jjys=? AND a.ISYYGH='1' and c.SFZT = 1 and c.SFRQ >=? and c.SFRQ <= ?
]]></sql>
<fields>
<f name="yyghrc" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlYsfyDao" log="true" type="1" memo="当前医生工作量查询-门诊医生费用,查询时间按发票结算时间为准">
<sql><![CDATA[
select sum(d.SFXSJZFY) zfy 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 where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and a.jjys like ? and c.SFRQ >=? and c.SFRQ <= ? and c.SFZT =1 and b.JSZT =1
]]></sql>
<fields>
<f name="zfy" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlYsYpfyDao" log="true" type="1" memo="当前医生工作量查询-门诊医生药品费用,查询时间按发票结算时间为准">
<sql><![CDATA[
select sum(d.SFXSJZFY) ypfy 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_SFX e on d.SFX=e.bm and d.JGID=e.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFZT =1 and a.jjys like ? and c.SFRQ >=? and c.SFRQ <= ? and b.JSZT =1 and e.gllx='Y'
]]></sql>
<fields>
<f name="ypfy" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlCyrcDao" log="true" type="1" memo="当前医生工作量查询-查询当前医生出院人次,包括急诊的留观和抢救dao">
<sql><![CDATA[
select count(*) cyrc from HIS_JZ_BASEINFO where JGID=? and JZZT='C' and jjys=? and CYRQ >=? and CYRQ <= ?
]]></sql>
<fields>
<f name="cyrc" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlCyZsrDao" log="true" type="1" memo="当前医生工作量查询-查询当前医生出院患者总费用,包括急诊的留观和抢救dao">
<sql><![CDATA[
select sum(SFXZFY) cyfy from HIS_SFZD_SFXMXB a left join HIS_SFZD_ZB b on a.ZDZBPKEY=b.PKEY and a.JGID=b.JGID left join HIS_YZ_MXB c on a.YZMX=c.pkey and a.JGID=c.JGID left join HIS_JZ_BASEINFO d on c.JZPKEY=d.pkey and c.JGID=d.JGID where a.JGID=? and B.JSZT=1 and d.JZZT='C' and d.jjys=? and d.CYRQ >=? and d.CYRQ <= ?
]]></sql>
<fields>
<f name="cyfy" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlZyDeadrcDao" log="true" type="1" memo="当前医生工作量查询-查询当前医生患者死亡人次,包括急诊的留观和抢救dao">
<sql><![CDATA[
select count(*) deadrc from HIS_JZ_BASEINFO where JGID=? and (JZLX='Z' or (JZLX='J' and (JZZT='Z' or JZZT='C'))) and ISDEAD ='1' and jjys=? and JJRQ >=? and JJRQ <= ?
]]></sql>
<fields>
<f name="deadrc" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlZyzrcDao" log="true" type="1" memo="当前医生工作量查询-查询当前医生住院患者总人次,包括急诊的留观和抢救dao">
<sql><![CDATA[
select count(*) allzyzrc from HIS_JZ_BASEINFO where JGID=? and (JZLX='Z' or (JZLX='J' and (JZZT='Z' or JZZT='C'))) and jjys=?
]]></sql>
<fields>
<f name="allzyzrc" type="4" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
<dao id="normalYsgzlKzrcxShowDao" log="true" type="1" memo="医生科主任查询-科主任查询查询显示dao">
<sql>
select '' 医生,'' 门诊挂号人次,'' 门诊收入,'' 门诊次均费用,'' 门诊出诊次数,'' 门诊药品收入,'' 门诊药占比,'' 住院出院人数,'' 住院出院费用,'' 出院次均费用,'' 会诊次数,'' 死亡人数,'' 死亡率,'' 总住院人数 from dual where 1=2
</sql>
<fields>
<f name="医生" type="1" />
<f name="门诊挂号人次" type="1" />
<f name="门诊收入" type="1" />
<f name="门诊次均费用" type="1" />
<f name="门诊出诊次数" type="1" />
<f name="门诊药品收入" type="1" />
<f name="门诊药占比" type="1" />
<f name="住院出院人数" type="1" />
<f name="住院出院费用" type="1" />
<f name="出院次均费用" type="1" />
<f name="会诊次数" type="1" />
<f name="死亡人数" type="1" />
<f name="死亡率" type="1" />
<f name="总住院人数" type="1" />
</fields>
</dao>
<dao id="normalYsgzlKzrcxMjzJzrcDao" log="true" type="1" memo="医生科主任查询-科主任查询查询-医生门诊人次-dao">
<sql><![CDATA[
select count(*) mzrc,a.jjys 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 where a.JGID=? and (a.JZLX='M' or a.JZLX='J') and a.jjks=? and c.SFZT = 1 and c.SFRQ >=? and c.SFRQ <= ? group by a.jjys order by a.jjys
]]></sql>
<fields>
<f name="mzrc" type="4" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYsgzlKzrcxMzfyDao" log="true" type="1" memo="医生科主任查询-科主任查询查询-门诊医生费用,查询时间按发票结算时间为准">
<sql><![CDATA[
select sum(d.SFXSJZFY) mzzfy,a.jjys 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 where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and a.jjks=? and c.SFRQ >=? and c.SFRQ <= ? and c.SFZT =1 and b.JSZT =1 group by a.jjys order by a.jjys
]]></sql>
<fields>
<f name="mzzfy" type="4" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYsgzlKzrcxMzYpfyDao" log="true" type="1" memo="医生科主任查询-科主任查询查询-门诊医生药品费用,查询时间按发票结算时间为准">
<sql><![CDATA[
select sum(d.SFXSJZFY) mzypfy,a.jjys 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_SFX e on d.SFX=e.bm and d.JGID=e.JGID where a.JGID=? and (c.PJLX='MG' or c.PJLX='MS') and c.SFZT =1 and a.jjks = ? and c.SFRQ >=? and c.SFRQ <= ? and b.JSZT =1 and e.gllx='Y' group by a.jjys order by a.jjys
]]></sql>
<fields>
<f name="mzypfy" type="4" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYsgzlKzrcxCyrcDao" log="true" type="1" memo="医生科主任查询-科主任查询查询-查询当前医生出院人次,包括急诊的留观和抢救dao">
<sql><![CDATA[
select count(*) cyrc,jjys from HIS_JZ_BASEINFO where JGID=? and JZZT='C' and jjks=? and CYRQ >=? and CYRQ <= ? group by jjys order by jjys
]]></sql>
<fields>
<f name="cyrc" type="4" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYskzrYsgzlCyZsrDao" log="true" type="1" memo="当前医生工作量查询-查询当前医生出院患者总费用,包括急诊的留观和抢救dao">
<sql><![CDATA[
select sum(SFXZFY) cyfy,d.jjys from HIS_SFZD_SFXMXB a left join HIS_SFZD_ZB b on a.ZDZBPKEY=b.PKEY and a.JGID=b.JGID left join HIS_YZ_MXB c on a.YZMX=c.pkey and a.JGID=c.JGID left join HIS_JZ_BASEINFO d on c.JZPKEY=d.pkey and c.JGID=d.JGID where a.JGID=? and B.JSZT=1 and d.JZZT='C' and d.jjks=? and d.CYRQ >=? and d.CYRQ <= ? group by d.jjys order by d.jjys
]]></sql>
<fields>
<f name="cyfy" type="12" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYsgzlKzrcxZyDeadrcDao" log="true" type="1" memo="医生科主任查询-科主任查询查询-查询当前医生患者死亡人次,包括急诊的留观和抢救dao">
<sql><![CDATA[
select count(*) deadrc,jjys from HIS_JZ_BASEINFO where JGID=? and (JZLX='Z' or (JZLX='J' and (JZZT='Z' or JZZT='C'))) and ISDEAD ='1' and jjks=? and JJRQ >=? and JJRQ <= ? group by jjys order by jjys
]]></sql>
<fields>
<f name="deadrc" type="4" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
<p>93</p>
<p>93</p>
</parameter>
</dao>
<dao id="normalYsgzlKzrcxZyzrcDao" log="true" type="1" memo="医生科主任查询-科主任查询查询-查询当前医生住院患者总人次,包括急诊的留观和抢救dao">
<sql><![CDATA[
select count(*) allzyzrc,jjys from HIS_JZ_BASEINFO where JGID=? and (JZLX='Z' or (JZLX='J' and (JZZT='Z' or JZZT='C'))) and jjks=? group by jjys order by jjys
]]></sql>
<fields>
<f name="allzyzrc" type="4" />
<f name="jjys" type="12" />
</fields>
<parameter>
<p>12</p>
<p>12</p>
</parameter>
</dao>
</datasource>