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.
1586 lines
80 KiB
1586 lines
80 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource> <!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
<dao id="scjgdao" cache="true" type="1">
|
|
<sql>select chosname,choscode,PHISUNITCODE from sysdicthospital where PHISUNITCODE is not null</sql>
|
|
<fields>
|
|
<f name="CHOSNAME" type="12" />
|
|
<f name="CHOSCODE" type="12" />
|
|
<f name="PHISUNITCODE" type="12" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="sfxmmldao" log="true" type="1">
|
|
<sql>select a.药品编码 XMDM,'0' PTZXDM,a.药品名称 XMMC,a.药品规格 XMGG,b.类别名称 XMFL,c.名称 XMDW,a.最近成本 XMDJ,'' ZGXJ,'1' JLZT,'' XMWSDM,b.JKPTLB SFXMLB,'0' YNZJBZ,'0' ZRCLBZ,'0' GHCBZ,'0' lb from 药品字典表 a
|
|
left join 费用类别表 b on a.choscode=b.choscode and a.费用归类=b.id
|
|
left join 项目单位表 c on a.choscode=c.choscode and a.计价单位=c.编号
|
|
where a.CHOSCODE=? and a.禁用标志='0' and a.JKPTSC='0'
|
|
union all
|
|
select a.项目编码 XMDM,'0' PTZXDM,a.项目名称 XMMC,'' XMGG,b.类别名称 XMFL,c.名称 XMDW,a.项目价格 XMDJ,'' ZGXJ,'1' JLZT,'' XMWSDM,b.JKPTLB SFXMLB,'0' YNZJBZ,'0' ZRCLBZ,'0' GHCBZ,'1' lb from 项目表 a
|
|
left join 费用类别表 b on a.choscode=b.choscode and a.费用类别=b.id
|
|
left join 项目单位表 c on a.choscode=c.choscode and a.项目单位=c.编号
|
|
where a.CHOSCODE=? and a.有效标志='1' and a.JKPTSC='0'</sql>
|
|
<fields>
|
|
<f name="XMDM" type="12" />
|
|
<f name="PTZXDM" type="12" />
|
|
<f name="XMMC" type="12" />
|
|
<f name="XMGG" type="12" />
|
|
<f name="XMFL" type="12" />
|
|
<f name="XMDW" type="12" />
|
|
<f name="XMDJ" type="8" />
|
|
<f name="ZGXJ" type="12" />
|
|
<f name="JLZT" type="12" />
|
|
<f name="XMWSDM" type="12" />
|
|
<f name="SFXMLB" type="12" />
|
|
<f name="YNZJBZ" type="12" />
|
|
<f name="ZRCLBZ" type="12" />
|
|
<f name="GHCBZ" type="12" />
|
|
<f name="lb" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="zlxmmldao" log="true" type="1">
|
|
<sql>select a.项目编码,'0' PTZXDM,a.项目名称 XMMC,'' XMGG,c.名称 XMDW,a.项目价格 XMDJ,'' ZGXJ,'1' JLZT,a.CHOSCODE,a.JKPTSC2
|
|
from 项目表 a
|
|
left join 费用类别表 b on a.choscode=b.choscode and a.费用类别=b.id
|
|
left join 项目单位表 c on a.choscode=c.choscode and a.项目单位=c.编号
|
|
where a.CHOSCODE=? and a.有效标志='1' and a.JKPTSC2='0' and b.JKPTLB in ('02','03','04','06','07','08','09','10','11','18','19','21','22','23','24')</sql>
|
|
<tables>
|
|
<table name="项目表" insert="false" update="true" delete="false">
|
|
<primary>项目编码</primary>
|
|
<primary>CHOSCODE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="项目编码" type="12" table="项目表" />
|
|
<f name="PTZXDM" type="1" />
|
|
<f name="XMMC" type="12" />
|
|
<f name="XMGG" type="12" />
|
|
<f name="XMDW" type="12" />
|
|
<f name="XMDJ" type="8" />
|
|
<f name="ZGXJ" type="12" />
|
|
<f name="JLZT" type="12" />
|
|
<f name="CHOSCODE" type="12" table="项目表" />
|
|
<f name="JKPTSC2" type="12" table="项目表" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getclmldao" log="true" type="1">
|
|
<sql>select a.CHOSCODE,a.JKPTSC2,a.药品编码,'0' PTZXDM,a.药品名称 CLMC,a.CLFL CLFLDM,c.名称 CLDW,'0' GZHCBZ,'0' YZBXBZ,'0' ZRWBZ,a.最近成本 JZJG,'' ZGXJ,'' GYSMC,'' GYSDM,'' SCPH,d.名称 SCCJMC,'' CD,'' SCRQ,''YXQ ,'1' JLZT from 药品字典表 a
|
|
left join 费用类别表 b on a.choscode=b.choscode and a.费用归类=b.id
|
|
left join 项目单位表 c on a.choscode=c.choscode and a.计价单位=c.编号
|
|
left join 供货单位 d on a.choscode=d.choscode and a.生产厂家=d.编号
|
|
where a.CHOSCODE=? and a.禁用标志='0' and a.JKPTSC2='0'and a.CLFL is not null</sql>
|
|
<tables>
|
|
<table name="药品字典表" insert="false" update="true" delete="false">
|
|
<primary>CHOSCODE</primary>
|
|
<primary>药品编码</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" table="药品字典表" />
|
|
<f name="JKPTSC2" type="12" table="药品字典表" />
|
|
<f name="药品编码" type="12" table="药品字典表" />
|
|
<f name="PTZXDM" type="12" />
|
|
<f name="CLMC" type="12" />
|
|
<f name="CLFLDM" type="12" />
|
|
<f name="CLDW" type="12" />
|
|
<f name="GZHCBZ" type="12" />
|
|
<f name="YZBXBZ" type="12" />
|
|
<f name="ZRWBZ" type="12" />
|
|
<f name="JZJG" type="8" />
|
|
<f name="ZGXJ" type="12" />
|
|
<f name="GYSMC" type="12" />
|
|
<f name="GYSDM" type="12" />
|
|
<f name="SCPH" type="12" />
|
|
<f name="SCCJMC" type="12" />
|
|
<f name="CD" type="12" />
|
|
<f name="SCRQ" type="12" />
|
|
<f name="YXQ" type="12" />
|
|
<f name="JLZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getdxmdao" log="true" type="1">
|
|
<sql> select distinct a.CHOSCODE,a.JKPTSC,a.RKEY,b.项目编码 SFXMDM,'0' LCXMPTZXDM,'0' SFXMPTZXDM,1 DYXMSL,'0' JLZT
|
|
from 大诊疗项目表 a
|
|
left join 大诊疗项目明细表 b on a.choscode=b.XMMX_CHOSCODE and a.RKEY=b.大诊疗项目ID
|
|
where a.choscode=? and a.JKPTSC='0' and b.项目编码 is not null</sql>
|
|
<tables>
|
|
<table name="大诊疗项目表" insert="false" update="true" delete="false">
|
|
<primary>CHOSCODE</primary>
|
|
<primary>RKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" table="大诊疗项目表" />
|
|
<f name="JKPTSC" type="12" table="大诊疗项目表" />
|
|
<f name="RKEY" type="4" table="大诊疗项目表" />
|
|
<f name="SFXMDM" type="12" />
|
|
<f name="LCXMPTZXDM" type="12" />
|
|
<f name="SFXMPTZXDM" type="12" />
|
|
<f name="DYXMSL" type="8" />
|
|
<f name="JLZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getjbzddao" log="true" type="1">
|
|
<sql>select a.type ZDLXDM,a.农合编码 YNZDDM,a.农合名称 YNZDMC,a.农合编码 PTZXDM,a.农合名称 PTZXMC,'1' JLZT
|
|
from 农合疾病表 a where a.type='0' or a.type='4'</sql>
|
|
<fields>
|
|
<f name="ZDLXDM" type="12" />
|
|
<f name="YNZDDM" type="12" />
|
|
<f name="YNZDMC" type="12" />
|
|
<f name="PTZXDM" type="12" />
|
|
<f name="PTZXMC" type="12" />
|
|
<f name="JLZT" type="12" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="getssdmdao" log="true" type="1">
|
|
<sql>select a.农合编码 YNSSDM,a.农合名称 YNSSMC,a.农合编码 PTZXDM,a.农合名称 PTZXMC,'1' JLZT
|
|
from 农合疾病表 a where a.type='6'</sql>
|
|
<fields>
|
|
<f name="YNSSDM" type="12" />
|
|
<f name="YNSSMC" type="12" />
|
|
<f name="PTZXDM" type="12" />
|
|
<f name="PTZXMC" type="12" />
|
|
<f name="JLZT" type="12" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="getjsxx" log="true" type="1">
|
|
<sql>select NATY,INSUTYPE,EMP_NAME from HIS_YB_DJ_GD where JGID=? and KLS=? and rownum=1 order by CZSJ desc</sql>
|
|
<fields>
|
|
<f name="NATY" type="12" />
|
|
<f name="INSUTYPE" type="12" />
|
|
<f name="EMP_NAME" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="gethzjbxxdao" log="true" type="1">
|
|
<sql><![CDATA[select a.choscode,a.流水号,a.JKPTSC,a.卡编码 KH,a.卡类型 KLX,a.有效证件号码 ZJHM,a.证件类型 ZJLX,a.病人性别 XB,a.病人姓名 XM,'0' HZLX,'02' BXLX,a.婚姻状况 HYZK,a.出生日期 CSRQ, a.民族 MZ,'156' GJ,a.联系电话 DHHM,a.家庭地址 JZDZ,a.联系人 LXRXM,a.联系人关系 LXRGX,a.联系人电话 LXRDH,'1-9' ZYLBDM,a.开卡日期 JDRQSJ,a.开卡人 JDZXM
|
|
from 一卡通业务 a
|
|
where a.CHOSCODE=? and a.JKPTSC='0' and a.开卡日期<=? ]]></sql>
|
|
<tables>
|
|
<table name="一卡通业务" insert="false" update="true" delete="false">
|
|
<primary>CHOSCODE</primary>
|
|
<primary>流水号</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" table="一卡通业务" />
|
|
<f name="流水号" type="12" table="一卡通业务" />
|
|
<f name="JKPTSC" type="12" table="一卡通业务" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="HZLX" type="12" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="HYZK" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="MZ" type="12" />
|
|
<f name="GJ" type="12" />
|
|
<f name="DHHM" type="12" />
|
|
<f name="JZDZ" type="12" />
|
|
<f name="LXRXM" type="12" />
|
|
<f name="LXRGX" type="12" />
|
|
<f name="LXRDH" type="12" />
|
|
<f name="ZYLBDM" type="12" />
|
|
<f name="JDRQSJ" type="93" />
|
|
<f name="JDZXM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getyhryxxdao" log="true" type="1">
|
|
<sql>select a.choscode,a.USERACCOUNT,a.JKPTSC,a.NAME XM,a.性别 Xb,'0000-00-00' CSRQ,'01' MZDM,'01' SFBSLBDM,a.证件号码 SFBSHM,a.所属科室 SSKS,b.名称 SSKSMC,b.PTKSDM SSZXKSDM,b.PTKSLB KSLB, '90' RYLB,'0' Ghzt,'2' BZQK,'0' SJTRYBZ,'1' GZZT,'2' PXLB,'0' SFNRQKYSPX
|
|
from 用户表 a
|
|
left join 科室表 b on a.choscode=b.choscode and a.所属科室=b.ID
|
|
where a.choscode=? and a.状态='1' and a.JKPTSC='0'</sql>
|
|
<tables>
|
|
<table name="用户表" insert="false" update="true" delete="false">
|
|
<primary>CHOSCODE</primary>
|
|
<primary>USERACCOUNT</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" table="用户表" />
|
|
<f name="USERACCOUNT" type="12" table="用户表" />
|
|
<f name="JKPTSC" type="12" table="用户表" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="12" />
|
|
<f name="MZDM" type="12" />
|
|
<f name="SFBSLBDM" type="12" />
|
|
<f name="SFBSHM" type="12" />
|
|
<f name="SSKS" type="12" />
|
|
<f name="SSKSMC" type="12" />
|
|
<f name="SSZXKSDM" type="12" />
|
|
<f name="KSLB" type="12" />
|
|
<f name="RYLB" type="12" />
|
|
<f name="GHZT" type="12" />
|
|
<f name="BZQK" type="12" />
|
|
<f name="SJTRYBZ" type="12" />
|
|
<f name="GZZT" type="12" />
|
|
<f name="PXLB" type="12" />
|
|
<f name="SFNRQKYSPX" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getyqsbdao" log="true" type="1">
|
|
<sql>select a.choscode,a.PKEY,a.JKPTSC,a.设备号 YQBH,a.仪器名称 YQMC from 仪器设备登记 a where a.choscode=? and a.JKPTSC='0'</sql>
|
|
<tables>
|
|
<table name="仪器设备登记" insert="false" update="true" delete="false">
|
|
<primary>CHOSCODE</primary>
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" table="仪器设备登记" />
|
|
<f name="PKEY" type="-5" table="仪器设备登记" />
|
|
<f name="JKPTSC" type="12" table="仪器设备登记" />
|
|
<f name="YQBH" type="12" />
|
|
<f name="YQMC" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getksbdao" log="true" type="1">
|
|
<sql>select a.choscode,a.ID,a.JKPTSC,a.名称 KSMC,a.PTKSDM WSJDM,a.PTKSDM SBJDM,'1' mzlx,'0' Ghzt,'0' ZYKSBZ from 科室表 a where a.choscode=? and a.JKPTSC='0'</sql>
|
|
<tables>
|
|
<table name="科室表" insert="false" update="true" delete="false">
|
|
<primary>CHOSCODE</primary>
|
|
<primary>ID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" table="科室表" />
|
|
<f name="ID" type="12" table="科室表" />
|
|
<f name="JKPTSC" type="12" table="科室表" />
|
|
<f name="KSMC" type="12" />
|
|
<f name="WSJDM" type="12" />
|
|
<f name="SBJDM" type="12" />
|
|
<f name="MZLX" type="1" />
|
|
<f name="GHZT" type="1" />
|
|
<f name="ZYKSBZ" type="1" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="ptysdao" log="true" type="1">
|
|
<sql>select a.choscode,a.DOCTORBH,a.useraccount,a.name from 用户表 a where a.choscode=?</sql>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" />
|
|
<f name="DOCTORBH" type="12" />
|
|
<f name="USERACCOUNT" type="12" />
|
|
<f name="NAME" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="ksdao" log="true" type="1">
|
|
<sql>select a.choscode,a.ID,a.名称,a.PTKSDM from 科室表 a where a.choscode=?</sql>
|
|
<fields>
|
|
<f name="CHOSCODE" type="12" />
|
|
<f name="ID" type="12" />
|
|
<f name="名称" type="12" />
|
|
<f name="KSMC" type="12" />
|
|
<f name="PTKSDM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmzghdao" log="true" type="1">
|
|
<sql><![CDATA[ select a.JGID,a.PKEY,a.JKPTSC,a.MDTRT_ID JZLSH,'1' GTHBZ,a.KLS YYDAH,'8' KLX,b.卡编码 KH,a.CERTNO ZJHM,'01' ZJLX,a.PSN_NAME XM,a.GEND XB,a.BRDY CSRQ,c.FPHM FPH, a.BEGNTIME GHSJ,'100' GHLB,a.INSUTYPE BXLX,a.ADM_DEPT_CODG KSBM,a.ATDDR_NO Ysbm,'0' TXBZ,'0' WDBZ,0 ZFZLF,nvl(MEDFEE_SUMAMT,0) ZLF,0 QTF,'2' JZZT,a.CZR GHCZYGH,e.name GHCZYXM
|
|
from HIS_YB_DJ_GD a
|
|
left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号
|
|
left join HIS_YB_JSB_GD c on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID and c.CXZT='0'
|
|
left join 用户表 e on a.JGID=e.choscode and a.czr=e.useraccount
|
|
where a.JGID=? and a.JZLX='MZ' and a.DJCXZT='0' and a.JKPTSC='0' and a.CZSJ<=? ]]></sql>
|
|
<tables>
|
|
<table name="HIS_YB_DJ_GD" insert="false" update="true" delete="false">
|
|
<primary>JGID</primary>
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="JGID" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="PKEY" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="JKPTSC" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="GTHBZ" type="1" />
|
|
<f name="YYDAH" type="12" />
|
|
<f name="KLX" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="FPH" type="12" />
|
|
<f name="GHSJ" type="93" />
|
|
<f name="GHLB" type="12" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="KSBM" type="12" />
|
|
<f name="YSBM" type="12" />
|
|
<f name="TXBZ" type="12" />
|
|
<f name="WDBZ" type="12" />
|
|
<f name="ZFZLF" type="8" />
|
|
<f name="ZLF" type="8" />
|
|
<f name="QTF" type="8" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="GHCZYGH" type="12" />
|
|
<f name="GHCZYXM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="mzyzzdbdao" type="1">
|
|
<sql><![CDATA[select 卡流水,卡编码,门诊号,ICD10,疾病名称,确拟诊,诊别,科室,医生,看诊时间,CHOSCODE,RKEY,备注,中西诊断,nvl(ISMAIN,'0') ISMAIN from 门诊医嘱疾病诊断表 where choscode = ? and 门诊号 = ? and 卡流水 = ? and ICD10 is not null order by nvl(ISMAIN,'0') desc]]></sql>
|
|
<tables>
|
|
<table delete="false" insert="false" name="门诊医嘱疾病诊断表" update="false">
|
|
<primary>RKEY</primary>
|
|
<primary>CHOSCODE</primary>
|
|
<primary>卡流水</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="卡流水" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="卡编码" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="门诊号" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="ICD10" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="疾病名称" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="确拟诊" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="诊别" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="科室" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="医生" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="看诊时间" table="门诊医嘱疾病诊断表" type="93"/>
|
|
<f name="CHOSCODE" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="RKEY" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="备注" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="中西诊断" table="门诊医嘱疾病诊断表" type="12"/>
|
|
<f name="ISMAIN" table="门诊医嘱疾病诊断表" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmzjzjldao" log="true" type="1">
|
|
<sql><![CDATA[select a.JGID,a.PKEY,a.JKPTSC2,a.kls,a.IPT_NO,a.MDTRT_ID JZLSH,'0' JTYSQYBZ,'8' KLXDM,b.卡编码 KHM,a.CERTNO ZJHM,b.证件类型 ZJLX,a.PSN_NAME XM,a.AGE NL,a.INSUTYPE BXLX, '100' JZLXDM,a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.BEGNTIME JZSJ,a.ATDDR_NO ZDYSDM,a.CHFPDR_NAME ZDYSXM,'0' LYGCBZ,c.SETL_TIME SFSJ,c.FUND_PAY_SUMAMT YBJE,c.PSN_PART_AMT ZFJE, 0 YHJE,c.PSN_PART_AMT SSJE,c.MEDFEE_SUMAMT ZJE
|
|
from HIS_YB_DJ_GD a
|
|
left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号
|
|
left join HIS_YB_JSB_GD c on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID and c.CXZT='0'
|
|
left join 用户表 e on a.JGID=e.choscode and a.czr=e.useraccount
|
|
where a.JGID=? and a.JZLX='MZ' and a.DJCXZT='0' and a.JKPTSC2='0' and c.SETL_ID is not null and a.CZSJ>=to_date('2022-05-30 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.CZSJ<=?]]></sql>
|
|
<tables>
|
|
<table name="HIS_YB_DJ_GD" insert="false" update="true" delete="false">
|
|
<primary>JGID</primary>
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="JGID" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="PKEY" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="JKPTSC2" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="KLS" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="IPT_NO" type="12" table="HIS_YB_DJ_GD" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="JTYSQYBZ" type="1" />
|
|
<f name="KLXDM" type="1" />
|
|
<f name="KHM" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="NL" type="12" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="JZLXDM" type="1" />
|
|
<f name="JZKSDM" type="12" />
|
|
<f name="JZKSMC" type="12" />
|
|
<f name="JZSJ" type="93" />
|
|
<f name="ZDYSDM" type="12" />
|
|
<f name="ZDYSXM" type="12" />
|
|
<f name="LYGCBZ" type="1" />
|
|
<f name="SFSJ" type="93" />
|
|
<f name="YBJE" type="8" />
|
|
<f name="ZFJE" type="8" />
|
|
<f name="YHJE" type="8" />
|
|
<f name="SSJE" type="8" />
|
|
<f name="ZJE" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="xmdwdao" type="1">
|
|
<sql>select 编号,名称,cHosCode,PYM from 项目单位表 where cHosCode like ? order by 编号
|
|
</sql>
|
|
<tables>
|
|
<table delete="true" insert="true" name="项目单位表" update="true">
|
|
<primary>编号</primary>
|
|
<primary>cHosCode</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="编号" table="项目单位表" type="12"/>
|
|
<f name="名称" table="项目单位表" type="12"/>
|
|
<f name="cHosCode" table="项目单位表" type="12"/>
|
|
<f name="PYM" table="项目单位表" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmzcfmxdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY,p.JGID,p.PTBM,p.col1,p.col2,p.col3,p.ptsczt,a.PKEY djpkey,a.kls,a.IPT_NO,a.MDTRT_ID JZLSH,c.SETL_ID jslsh,b.卡编码 KH,'8' KLX,a.CERTNO ZJHM,b.证件类型 ZJLX,a.PSN_NAME XM,a.GEND XB,a.BRDY CSRQ, '100' JZLXDM,a.INSUTYPE BXLX,a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.ATDDR_NO ZDYSDM,a.CHFPDR_NAME ZDYSXM,a.BEGNTIME KFSJ from HIS_YB_DJ_GD a left join JKPTSC p on a.JGID=p.JGID and p.PTBM='MZ_CFMXB' and p.col1=a.PKEY left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号 left join HIS_YB_JSB_GD c on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID and c.CXZT='0' where a.JGID=? and a.JZLX='MZ' and a.DJCXZT='0' and nvl(p.ptsczt,'0')='0' and c.SETL_ID is not null and a.CZSJ>=to_date('2022-05-30 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.CZSJ<=?]]></sql>
|
|
<tables>
|
|
<table name="JKPTSC" insert="false" update="false" delete="false">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="JKPTSC" />
|
|
<f name="JGID" type="12" table="JKPTSC" />
|
|
<f name="PTBM" type="12" table="JKPTSC" />
|
|
<f name="COL1" type="12" table="JKPTSC" />
|
|
<f name="COL2" type="12" table="JKPTSC" />
|
|
<f name="COL3" type="12" table="JKPTSC" />
|
|
<f name="PTSCZT" type="12" table="JKPTSC" />
|
|
<f name="DJPKEY" type="12" />
|
|
<f name="KLS" type="12" />
|
|
<f name="IPT_NO" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="JSLSH" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="JZLXDM" type="1" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="JZKSDM" type="12" />
|
|
<f name="JZKSMC" type="12" />
|
|
<f name="ZDYSDM" type="12" />
|
|
<f name="ZDYSXM" type="12" />
|
|
<f name="KFSJ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="xzcdao" log="true" type="1">
|
|
<sql>select 'XY'||a.RKEY YZLSH,a.处方号 CFH,nvl(处方类型,'0') CFFLDM,'01' YZXMLXDM,'药品类医嘱' YZXMLXMC,a.药品编码 YZXMDM,a.药品名称 YZXMMC,'' FUXMYYDM,'' FUXMWUDM,'' FWXMDM,'' FWXMMC,'1' SFYP,yp.药品分类 YPLB,nvl(jx.V1,'99') YWJXDM,jx.dicdesc YWJXMC ,yp.剂型 YNYWJXDM,jx.dicdesc YNYWJXMC,yp.药品规格 YPGG, '99' YWLX,ml.HILIST_CODE YPDMYBBM,nvl(ml.YYBBM,ml.HILIST_CODE) YWDM,kcyp.生产批号 SCPH,kcyp.有效期至 YXQ,a.剂量 JL,a.单位 JLDW,a.数量 YWSYZSL,yf.SMRCODE YWSYTJDM,yf.SMRNAME YWSYTJMC,yf.RKEY YNYWSYTJDM,yf.名称 YNYWSYTJMC,pc.YBCODE YWSYPL,pc.值含义 YWSYPD,pc.值含义 YWSYPLMC,a.频次 YNYWSYPLDM,pc.频次名称 YNYWSYPLMC, a.单价 XMDJ,a.核算金额 XMJE,d.中草药煎法 ZCJZFDM,d.贴数 CYTS,a.皮试 PSPB from 门诊医嘱西中成处方明细表 a left join 门诊医嘱西中成处方表 d on a.choscode=d.choscode and a.卡流水=d.卡流水 and a.处方号=d.处方号 LEFT JOIN MAIN_YWDZ dz ON a.CHOSCODE = dz.JGID AND dz.LB='2' AND dz.BM='013' and a.药品编码 = dz.YSZ LEFT JOIN HIS_YB_ML_GD ml ON dz.DZZ = ml.HILIST_CODE left join 药品字典表 yp on a.choscode=yp.choscode and a.药品编码 = yp.药品编码 left join 字典表 jx on jx.DICGRPID = '1' and yp.剂型=jx.dicid left join 库存药品 kcyp on a.choscode=kcyp.choscode and a.药品编码 = kcyp.药品编号 and a.库存流水=kcyp.库存流水 left join 用药用法 yf on a.用法=yf.RKEY left join 用药频次 pc on a.频次=pc.RKEY where a.choscode=? and a.卡流水=? and a.门诊号=? and a.rkey in (select FEEDETL_SN from HIS_YB_SCMX_GD where JGID=? and MDTRT_ID=? and setl_id=?)</sql>
|
|
<fields>
|
|
<f name="YZLSH" type="12" />
|
|
<f name="CFH" type="12" />
|
|
<f name="CFFLDM" type="12" />
|
|
<f name="YZXMLXDM" type="1" />
|
|
<f name="YZXMLXMC" type="1" />
|
|
<f name="YZXMDM" type="12" />
|
|
<f name="YZXMMC" type="12" />
|
|
<f name="FUXMYYDM" type="1" />
|
|
<f name="FUXMWUDM" type="1" />
|
|
<f name="FWXMDM" type="1" />
|
|
<f name="FWXMMC" type="1" />
|
|
<f name="SFYP" type="1" />
|
|
<f name="YPLB" type="12" />
|
|
<f name="YWJXDM" type="12" />
|
|
<f name="YWJXMC" type="12" />
|
|
<f name="YNYWJXDM" type="12" />
|
|
<f name="YNYWJXMC" type="12" />
|
|
<f name="YPGG" type="12" />
|
|
<f name="YWLX" type="1" />
|
|
<f name="YPDMYBBM" type="12" />
|
|
<f name="YWDM" type="12" />
|
|
<f name="SCPH" type="12" />
|
|
<f name="YXQ" type="93" />
|
|
<f name="JL" type="12" />
|
|
<f name="JLDW" type="12" />
|
|
<f name="YWSYZSL" type="8" />
|
|
<f name="YWSYTJDM" type="12" />
|
|
<f name="YWSYTJMC" type="12" />
|
|
<f name="YNYWSYTJDM" type="12" />
|
|
<f name="YNYWSYTJMC" type="12" />
|
|
<f name="YWSYPL" type="12" />
|
|
<f name="YWSYPD" type="12" />
|
|
<f name="YWSYPLMC" type="12" />
|
|
<f name="YNYWSYPLDM" type="12" />
|
|
<f name="YNYWSYPLMC" type="12" />
|
|
<f name="XMDJ" type="12" />
|
|
<f name="XMJE" type="8" />
|
|
<f name="ZCJZFDM" type="12" />
|
|
<f name="CYTS" type="8" />
|
|
<f name="PSPB" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="jzjcdao" log="true" type="1">
|
|
<sql>select 'JC'||a.RKEY YZLSH,a.处方号 CFH,'01' CFFLDM,'03' YZXMLXDM,'检验类医嘱' YZXMLXMC,a.检查项目编码 YZXMDM,a.检查项目名称 YZXMMC,a.检查项目编码 FUXMYYDM,nvl(ml.YYBBM,ml.HILIST_CODE) FUXMWUDM,ml.HILIST_CODE FWXMDM,ml.HILIST_NAME FWXMMC,'0' SFYP,'' YPLB,'99' YWJXDM,'' YWJXMC,'' YNYWJXDM,'' YNYWJXMC, '-' YWLX,a.单价 XMDJ,a.核算金额 XMJE,'0' PSPB,a.单位 YWSYZSLDW,a.数量 YWSYZSL from 门诊医嘱辅助检查明细表 a left join 门诊医嘱辅助检查表 d on a.choscode=d.choscode and a.卡流水=d.卡流水 and a.处方号=d.处方号 LEFT JOIN MAIN_YWDZ dz ON a.CHOSCODE = dz.JGID AND dz.LB='2' AND dz.BM='013' and a.检查项目编码 = dz.YSZ LEFT JOIN HIS_YB_ML_GD ml ON dz.DZZ = ml.HILIST_CODE where nvl(a.是否作废,'0')='0' and a.choscode=? and a.卡流水=? and a.门诊号=? and a.rkey in (select FEEDETL_SN from HIS_YB_SCMX_GD where JGID=? and MDTRT_ID=? and setl_id=?)</sql>
|
|
<fields>
|
|
<f name="YZLSH" type="12" />
|
|
<f name="CFH" type="12" />
|
|
<f name="CFFLDM" type="1" />
|
|
<f name="YZXMLXDM" type="1" />
|
|
<f name="YZXMLXMC" type="1" />
|
|
<f name="YZXMDM" type="12" />
|
|
<f name="YZXMMC" type="12" />
|
|
<f name="FUXMYYDM" type="12" />
|
|
<f name="FUXMWUDM" type="12" />
|
|
<f name="FWXMDM" type="12" />
|
|
<f name="FWXMMC" type="12" />
|
|
<f name="SFYP" type="1" />
|
|
<f name="YPLB" type="1" />
|
|
<f name="YWJXDM" type="1" />
|
|
<f name="YWJXMC" type="1" />
|
|
<f name="YNYWJXDM" type="1" />
|
|
<f name="YNYWJXMC" type="1" />
|
|
<f name="YWLX" type="1" />
|
|
<f name="XMDJ" type="12" />
|
|
<f name="XMJE" type="8" />
|
|
<f name="PSPB" type="1" />
|
|
<f name="YWSYZSLDW" type="12" />
|
|
<f name="YWSYZSL" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="ksjzdao" log="true" type="1">
|
|
<sql>select 'JZ'||a.RKEY YZLSH,a.处方号 CFH,'01' CFFLDM,'07' YZXMLXDM,'嘱托医嘱' YZXMLXMC,a.项目代码 YZXMDM,a.项目名称 YZXMMC,a.项目代码 FUXMYYDM,nvl(ml.YYBBM,ml.HILIST_CODE) FUXMWUDM,ml.HILIST_CODE FWXMDM,ml.HILIST_NAME FWXMMC,'0' SFYP,'' YPLB,'99' YWJXDM,'' YWJXMC,'' YNYWJXDM,'' YNYWJXMC, '-' YWLX,a.单价 XMDJ,a.金额 XMJE,'0' PSPB,a.单位 YWSYZSLDW,a.数量 YWSYZSL from 门诊医嘱科室记账表 a left join 项目表 b on a.choscode=b.choscode and a.项目代码=b.项目编码 LEFT JOIN MAIN_YWDZ dz ON a.CHOSCODE = dz.JGID AND dz.LB='2' AND dz.BM='013' and a.项目代码 = dz.YSZ LEFT JOIN HIS_YB_ML_GD ml ON dz.DZZ = ml.HILIST_CODE where a.choscode=? and a.卡流水=? and a.门诊号=? and a.rkey in (select FEEDETL_SN from HIS_YB_SCMX_GD where JGID=? and MDTRT_ID=? and setl_id=?)</sql>
|
|
<fields>
|
|
<f name="YZLSH" type="12" />
|
|
<f name="CFH" type="12" />
|
|
<f name="CFFLDM" type="1" />
|
|
<f name="YZXMLXDM" type="1" />
|
|
<f name="YZXMLXMC" type="1" />
|
|
<f name="YZXMDM" type="12" />
|
|
<f name="YZXMMC" type="12" />
|
|
<f name="FUXMYYDM" type="12" />
|
|
<f name="FUXMWUDM" type="12" />
|
|
<f name="FWXMDM" type="12" />
|
|
<f name="FWXMMC" type="12" />
|
|
<f name="SFYP" type="1" />
|
|
<f name="YPLB" type="1" />
|
|
<f name="YWJXDM" type="1" />
|
|
<f name="YWJXMC" type="1" />
|
|
<f name="YNYWJXDM" type="1" />
|
|
<f name="YNYWJXMC" type="1" />
|
|
<f name="YWLX" type="1" />
|
|
<f name="XMDJ" type="8" />
|
|
<f name="XMJE" type="8" />
|
|
<f name="PSPB" type="1" />
|
|
<f name="YWSYZSLDW" type="12" />
|
|
<f name="YWSYZSL" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="jkptscdao" log="true" type="1">
|
|
<sql>select PKEY,JGID,PTBM,COL1,COL2,COL3,PTSCZT from JKPTSC where 1=2</sql>
|
|
<tables>
|
|
<table name="JKPTSC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="JKPTSC" />
|
|
<f name="JGID" type="12" table="JKPTSC" />
|
|
<f name="PTBM" type="12" table="JKPTSC" />
|
|
<f name="COL1" type="12" table="JKPTSC" />
|
|
<f name="COL2" type="12" table="JKPTSC" />
|
|
<f name="COL3" type="12" table="JKPTSC" />
|
|
<f name="PTSCZT" type="12" table="JKPTSC" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="fyhzdao" log="true" type="1">
|
|
<sql>select nvl(b.JKPTLB,'15') FYLB,sum(A.DET_ITEM_FEE_SUMAMT) fyzje from HIS_YB_SCMX_GD A left join ( select '0' lb,ypzdb.choscode,ypzdb.药品编码 bm,ypzdb.费用归类 fylb from 药品字典表 ypzdb union all select '1' lb,xmb.choscode,xmb.项目编码 bm,xmb.费用类别 fylb from 项目表 xmb) ypxm on a.JGID=ypxm.choscode and ypxm.lb=a.XMYP and a.MEDINS_LIST_CODG=ypxm.bm left join 费用类别表 b on ypxm.choscode=b.choscode and ypxm.fylb=b.ID where a.ZT='0' and a.JGID=? and a.MDTRT_ID=? and a.setl_id=? group by nvl(b.JKPTLB,'15')</sql>
|
|
<fields>
|
|
<f name="FYLB" type="12" />
|
|
<f name="FYZJE" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmzjshzbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.SETL_ID SFLSH,c.OLD_SETL_ID ysflsh,c.MDTRT_ID JZLSH,'' JCLSH,c.FPHM FPH,b.卡编码 KH,'8' KLX,b.证件类型 ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,'01' YLFKFS,'100' JZLXDM,a.INSUTYPE BXLX, '0' YBZHBZ,'1' WDBZ,'2' CFZS,'0' YZSSFBZ,c.SETL_TIME SFSJ,a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.ATDDR_NO KFYSGH,a.CHFPDR_NAME KFYSXM,c.MEDFEE_SUMAMT ZJE,c.INSCP_SCP_AMT YBJE, c.FUND_PAY_SUMAMT YBZFJE,c.PSN_PART_AMT ZFJE,0 YHJE,c.BALC DNZHJE,0 LNZHJE,c.HIFP_PAY TCZJJE,c.PSN_PART_AMT FLZJJE,0 JZJE,c.CZY SFCZYGH from HIS_YB_JSB_GD c left join JKPTSC p on c.JGID=p.JGID and p.PTBM='MZ_SFHZB' and p.col1=c.PKEY left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号 where c.JGID=? and c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and a.CZSJ>=to_date('2022-05-30 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.CZSJ<=? ]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="SFLSH" type="12" />
|
|
<f name="YSFLSH" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="JCLSH" type="1" />
|
|
<f name="FPH" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="YLFKFS" type="1" />
|
|
<f name="JZLXDM" type="1" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="YBZHBZ" type="1" />
|
|
<f name="WDBZ" type="1" />
|
|
<f name="CFZS" type="1" />
|
|
<f name="YZSSFBZ" type="1" />
|
|
<f name="SFSJ" type="93" />
|
|
<f name="JZKSDM" type="12" />
|
|
<f name="JZKSMC" type="12" />
|
|
<f name="KFYSGH" type="12" />
|
|
<f name="KFYSXM" type="12" />
|
|
<f name="ZJE" type="8" />
|
|
<f name="YBJE" type="8" />
|
|
<f name="YBZFJE" type="8" />
|
|
<f name="ZFJE" type="8" />
|
|
<f name="YHJE" type="8" />
|
|
<f name="DNZHJE" type="8" />
|
|
<f name="LNZHJE" type="8" />
|
|
<f name="TCZJJE" type="8" />
|
|
<f name="FLZJJE" type="8" />
|
|
<f name="JZJE" type="8" />
|
|
<f name="SFCZYGH" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmzsfmxbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.SETL_ID SFLSH,c.MDTRT_ID JZLSH,'' JCLSH,c.FPHM FPH,b.卡编码 KH,'8' KLX,b.证件类型 ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,'100' JZLXDM,a.INSUTYPE BXLX, a.ADM_DEPT_CODG JZKSDM,a.ADM_DEPT_NAME JZKSMC,a.ATDDR_NO KFYSGH,a.CHFPDR_NAME KFYSXM,c.SETL_TIME STFSJ,c.CZY SFCZYGH,c.KLS from HIS_YB_JSB_GD c left join JKPTSC p on c.JGID=p.JGID and p.PTBM='MZ_SFMXB' and p.col1=c.PKEY left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号 where c.JGID=? and c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and a.CZSJ>=to_date('2022-05-30 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.CZSJ<=? ]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="SFLSH" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="JCLSH" type="1" />
|
|
<f name="FPH" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="JZLXDM" type="1" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="JZKSDM" type="12" />
|
|
<f name="JZKSMC" type="12" />
|
|
<f name="KFYSGH" type="12" />
|
|
<f name="KFYSXM" type="12" />
|
|
<f name="STFSJ" type="93" />
|
|
<f name="SFCZYGH" type="12" />
|
|
<f name="KLS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="sfmxdao" log="true" type="1">
|
|
<sql>select e.PKEY||b.自动编码 pkey,b.处方号 CFH,fy.JKPTLB MXFYLB,b.标志 MXXMLB,e.MEDINS_LIST_CODG MXXMBM,e.MED_LIST_CODG MXXMYBBM,e.MEDINS_LIST_NAME MXXMMC,b.规格 MXXMGG,b.单位 MXXMDW, b.价格 MXXMDJ,b.数量 MXXMSL,b.金额 MXXMJE,kc.生产批号 SCPH,kc.有效期至 YXQ
|
|
from HIS_YB_SCMX_GD e
|
|
left join 门诊处方明细表 b on e.JGID=b.choscode and b.关联ID=e.feedetl_sn and e.MEDINS_LIST_CODG=b.编码
|
|
left join 库存药品 kc on b.药品辅助编码 = to_char(kc.库存流水) and b.choscode = kc.choscode and b.标志='0'
|
|
left join 费用类别表 fy on b.choscode=fy.choscode and b.费用类别=fy.ID
|
|
where e.JGID=? and e.MDTRT_ID=? and e.SETL_ID=? and e.ZT='0' and b.kls=? and b.自动编码 is not null</sql>
|
|
<fields>
|
|
<f name="PKEY" type="12" />
|
|
<f name="CFH" type="12" />
|
|
<f name="MXFYLB" type="12" />
|
|
<f name="MXXMLB" type="4" />
|
|
<f name="MXXMBM" type="12" />
|
|
<f name="MXXMYBBM" type="12" />
|
|
<f name="MXXMMC" type="12" />
|
|
<f name="MXXMGG" type="12" />
|
|
<f name="MXXMDW" type="12" />
|
|
<f name="MXXMDJ" type="8" />
|
|
<f name="MXXMSL" type="8" />
|
|
<f name="MXXMJE" type="8" />
|
|
<f name="SCPH" type="12" />
|
|
<f name="YXQ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hldwdao" name="含量单位" type="1">
|
|
<sql>select DICGRPID,DICID,DICDESC,医保对应 from 字典表 where DICGRPID = '5' order by DICID asc
|
|
</sql>
|
|
<tables>
|
|
<table delete="true" insert="true" name="字典表" update="true">
|
|
<primary>DICGRPID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="DICGRPID" table="字典表" type="4"/>
|
|
<f name="DICID" table="字典表" type="12"/>
|
|
<f name="DICDESC" table="字典表" type="12"/>
|
|
<f name="医保对应" table="字典表" type="12"/>
|
|
</fields>
|
|
</dao>
|
|
<dao id="getjyjldao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.序号 JYJLLSH,a.检验时间 BGRQ,a.卡编码 KH,'8' KLX,a.证件号码 ZJHM,'01' ZJLX,a.姓名 XM,a.性别 XB,a.年龄 NL,a.送检医生 SQYSGH,a.检验医师 BGYSGH,a.复核医师 SHYSGH,nvl(a.打印时间,a.复核时间) DYRQ, a.送检时间 SQSJ,a.采样时间 CJSJ,a.检验时间 JYRQ,b.JKPTBM BBDM,b.JKPTMC BBMC,y.JKPTBM BGDLBBM,a.病人类型 JLLB,a.病历号 ZYH,a.床号 CH,a.送检科室 SQKSBM,'-' BQMC,a.条码 tmh,
|
|
a.卡流水 KLS
|
|
from 病人检验信息 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='SY_JYJLB' and p.col1=a.序号
|
|
left join 样本类型 b on a.样本类型=b.编号
|
|
left join 仪器报告维护 y on y.编号 =a.检验仪器 and y.choscode = a.choscode
|
|
where a.发布标志='Y' and a.卡流水 is not null and a.choscode=? and nvl(p.ptsczt,'0')='0' and a.检验时间>=to_date('2022-05-30 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.检验时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JYJLLSH" type="12" />
|
|
<f name="BGRQ" type="93" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="1" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="NL" type="12" />
|
|
<f name="SQYSGH" type="12" />
|
|
<f name="BGYSGH" type="12" />
|
|
<f name="SHYSGH" type="12" />
|
|
<f name="DYRQ" type="93" />
|
|
<f name="SQSJ" type="93" />
|
|
<f name="CJSJ" type="93" />
|
|
<f name="JYRQ" type="93" />
|
|
<f name="BBDM" type="12" />
|
|
<f name="BBMC" type="12" />
|
|
<f name="BGDLBBM" type="12" />
|
|
<f name="JLLB" type="12" />
|
|
<f name="ZYH" type="12" />
|
|
<f name="CH" type="12" />
|
|
<f name="SQKSBM" type="4" />
|
|
<f name="BQMC" type="1" />
|
|
<f name="TMH" type="12" />
|
|
<f name="KLS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="jyjzlshdao" log="true" type="1">
|
|
<sql>select mdtrt_id from his_yb_dj_gd where JGID=? and IPT_NO=? and KLS=? and DJCXZT='0' order by CZSJ desc</sql>
|
|
<fields>
|
|
<f name="MDTRT_ID" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="jyzhxmdao" log="true" type="1">
|
|
<sql>select 组合项目,组合项目名称 from 检验项目申请表 where choscode=? and 条码号=?</sql>
|
|
<fields>
|
|
<f name="组合项目" type="12" />
|
|
<f name="组合项目名称" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getjyjgzbbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.序号 JYLSH,a.检验时间 BGRQ,a.检验医师 JCRGH,a.复核医师 SHRGH,'3' JYLBDM,'ZZZZZZZZZZZZZZZ' JYSFDM,'ZZZZZZZZZZZZZZZ' JYSFYBDM,t3.项目编码 JYBZXMDM,t3.项目代号 JYXMDM,t3.项目名称 JYXMMC,t3.提示信息 JYJGDM,
|
|
t3.结果,t3.结果类型,t3.定量结果,dw.常见单位 JYJLDW,a.设备号 YQBH,y.仪器名称 YQMC,t3.参考值 CKZFW,t3.打印顺序 DYXH
|
|
from 病人检验信息 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='SY_JYJGZBB' and p.col1=a.序号
|
|
left join 检验结果表 t3 on a.choscode = t3.choscode and a.设备号 = t3.设备号 and a.日结编号= t3.日结编号 and a.样本号 = t3.样本号
|
|
left join 常见单位 dw on t3.检验单位=dw.编号
|
|
left join 仪器设备登记 y on y.设备号 =a.设备号 and y.choscode = a.choscode
|
|
where a.发布标志='Y' and a.卡流水 is not null and a.choscode=? and nvl(p.ptsczt,'0')='0' and t3.结果类型!='P' and t3.项目编码!='8888' and a.检验时间>=to_date('2022-05-30 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.检验时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JYLSH" type="12" />
|
|
<f name="BGRQ" type="93" />
|
|
<f name="JCRGH" type="12" />
|
|
<f name="SHRGH" type="12" />
|
|
<f name="JYLBDM" type="1" />
|
|
<f name="JYSFDM" type="1" />
|
|
<f name="JYSFYBDM" type="1" />
|
|
<f name="JYBZXMDM" type="12" />
|
|
<f name="JYXMDM" type="12" />
|
|
<f name="JYXMMC" type="12" />
|
|
<f name="JYJGDM" type="12" />
|
|
<f name="结果" type="12" />
|
|
<f name="结果类型" type="12" />
|
|
<f name="定量结果" type="12" />
|
|
<f name="JYJLDW" type="12" />
|
|
<f name="YQBH" type="12" />
|
|
<f name="YQMC" type="12" />
|
|
<f name="CKZFW" type="12" />
|
|
<f name="DYXH" type="-5" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getrydjbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.住院号 JZLSH,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,a.病人姓名 XM,a.病人性别 XB,a.出生日期 CSRQ,'2' RYLYDM,a.入院科室 RYKSBM,a.入院病区 RYBQBM,b.AREA_NAME RYBQMC,
|
|
a.登记时间 RYSJ,a.疾病 RYZDBM,'0' LGBZ,'0' ZFBZ,a.接诊医生 CZYGH
|
|
from 住院登记表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='ZY_RYDJB' and p.col1=a.住院号
|
|
left join EL_WARD_AREA b on a.choscode=b.choscode and a.入院病区=b.PKEY
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.登记时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.登记时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="RYLYDM" type="1" />
|
|
<f name="RYKSBM" type="12" />
|
|
<f name="RYBQBM" type="12" />
|
|
<f name="RYBQMC" type="12" />
|
|
<f name="RYSJ" type="93" />
|
|
<f name="RYZDBM" type="12" />
|
|
<f name="LGBZ" type="1" />
|
|
<f name="ZFBZ" type="1" />
|
|
<f name="CZYGH" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="gdjbdic" cache="true" type="1">
|
|
<sql>select rkey,农合编码,农合名称,农合简写,疾病类型,YIBAODUIZHAO,SFDBZ,TYPE from 农合疾病表 </sql>
|
|
<fields>
|
|
<f name="rkey" type="4"/>
|
|
<f name="农合编码" type="12"/>
|
|
<f name="农合名称" type="12"/>
|
|
<f name="农合简写" type="12"/>
|
|
<f name="疾病类型" type="12"/>
|
|
<f name="YIBAODUIZHAO" type="12"/>
|
|
<f name="SFDBZ" type="12"/>
|
|
<f name="TYPE" type="12"/>
|
|
</fields>
|
|
</dao>
|
|
<dao id="getybdjxx" log="true" type="1">
|
|
<sql>select NATY,INSUTYPE,EMP_NAME from HIS_YB_DJ_GD where JGID=? and JZLX=? and IPT_NO=?</sql>
|
|
<fields>
|
|
<f name="NATY" type="12" />
|
|
<f name="INSUTYPE" type="12" />
|
|
<f name="EMP_NAME" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getcydjbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.住院号 JZLSH,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,a.病人姓名 XM,a.病人性别 XB,a.出生日期 CSRQ,a.入院科室 RYKSBM,a.入院病区 RYBQBM,b.AREA_NAME RYBQMC,
|
|
a.登记时间 RYSJ,a.CUR_DEPTPKEY CYKSBM,a.CUR_AREAPKEY CYBQBM,c.AREA_NAME CYBQMC,a.出院时间 CYSJ,'0' LGBZ,'1' WDBZ,'0' TXBZ,'0' ZFBZ,a.疾病 RYZD,a.出院诊断 CYZD
|
|
from 住院登记表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='ZY_CYDJB' and p.col1=a.住院号
|
|
left join EL_WARD_AREA b on a.choscode=b.choscode and a.入院病区=b.PKEY
|
|
left join EL_WARD_AREA c on a.choscode=c.choscode and a.CUR_AREAPKEY=c.PKEY
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.出院时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.出院时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="RYKSBM" type="12" />
|
|
<f name="RYBQBM" type="12" />
|
|
<f name="RYBQMC" type="12" />
|
|
<f name="RYSJ" type="93" />
|
|
<f name="CYKSBM" type="12" />
|
|
<f name="CYBQBM" type="12" />
|
|
<f name="CYBQMC" type="12" />
|
|
<f name="CYSJ" type="93" />
|
|
<f name="LGBZ" type="12" />
|
|
<f name="WDBZ" type="12" />
|
|
<f name="TXBZ" type="12" />
|
|
<f name="ZFBZ" type="12" />
|
|
<f name="RYZD" type="12" />
|
|
<f name="CYZD" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getryjzjldao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.住院号 JZLSH,a.病案号 BAH,'0' JTYSQYBZ,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,a.病人姓名 HZXM,'400' JZLX,'2' RYLYDM,a.入院科室 JZKSBM,a.CUR_DEPTPKEY CYKSBM,
|
|
a.登记时间 RYSJ,a.出院时间 CYSJ,'-' ZS,'-' XBS,'-' GMS,'-' YCJZS,'-' HYYJS,'-' JWS,'-' TGJCJL,'-' FZJCJL
|
|
from 住院登记表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='ZY_JZJLB1' and p.col1=a.住院号
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.登记时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.登记时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="BAH" type="12" />
|
|
<f name="JTYSQYBZ" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="HZXM" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="RYLYDM" type="1" />
|
|
<f name="JZKSBM" type="12" />
|
|
<f name="CYKSBM" type="12" />
|
|
<f name="RYSJ" type="93" />
|
|
<f name="CYSJ" type="93" />
|
|
<f name="ZS" type="12" />
|
|
<f name="XBS" type="12" />
|
|
<f name="GMS" type="12" />
|
|
<f name="YCJZS" type="12" />
|
|
<f name="HYYJS" type="12" />
|
|
<f name="JWS" type="12" />
|
|
<f name="TGJCJL" type="12" />
|
|
<f name="FZJCJL" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getcyjzjldao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.住院号 JZLSH,a.病案号 BAH,'0' JTYSQYBZ,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,a.病人姓名 HZXM,'400' JZLX,'2' RYLYDM,a.入院科室 JZKSBM,a.CUR_DEPTPKEY CYKSBM,
|
|
a.登记时间 RYSJ,a.出院时间 CYSJ,'-' ZS,'-' XBS,'-' GMS,'-' YCJZS,'-' HYYJS,'-' JWS,'-' TGJCJL,'-' FZJCJL
|
|
from 住院登记表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='ZY_JZJLB2' and p.col1=a.住院号
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.出院时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.出院时间<=? and to_char(a.出院时间,'yyyymmdd')!=to_char(a.登记时间,'yyyymmdd')]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="BAH" type="12" />
|
|
<f name="JTYSQYBZ" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="HZXM" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="RYLYDM" type="1" />
|
|
<f name="JZKSBM" type="12" />
|
|
<f name="CYKSBM" type="12" />
|
|
<f name="RYSJ" type="93" />
|
|
<f name="CYSJ" type="93" />
|
|
<f name="ZS" type="12" />
|
|
<f name="XBS" type="12" />
|
|
<f name="GMS" type="12" />
|
|
<f name="YCJZS" type="12" />
|
|
<f name="HYYJS" type="12" />
|
|
<f name="JWS" type="12" />
|
|
<f name="TGJCJL" type="12" />
|
|
<f name="FZJCJL" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="ybdzdic" log="true" type="1">
|
|
<sql>select dz.YSZ,dz.DZZ,ml.HILIST_NAME from MAIN_YWDZ dz
|
|
LEFT JOIN HIS_YB_ML_GD ml ON dz.DZZ = ml.HILIST_CODE
|
|
where dz.JGID=? and dz.LB='2' AND dz.BM='013'</sql>
|
|
<fields>
|
|
<f name="YSZ" type="12" />
|
|
<f name="DZZ" type="12" />
|
|
<f name="HILIST_NAME" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getyzmxbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,yz.RKEY YZID,yz.住院号 JZLSH,'1' CXBZ,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,a.病人姓名 XM,a.病人性别 XB,a.出生日期 CSRQ,a.入院病区 BQ,a.入院科室 XDKSBM,
|
|
yz.下嘱医生 XDRGH,yz.下嘱时间 YZXDSJ,yz.执行科室 ZXKSBM,yz.执行人 ZXRGH,yz.起始时间 YZZXSJ,yz.最后执行时间 YZZZSJ,yz.类型 LX,yz.长临 YZLB,yz.编码 YZMXBM,yz.名称 YZMXMC,yz.类别 YZXMLXDM,
|
|
yz.规格 YPGG,yz.用法 YPYF,yz.频次 YYPD,yz.剂量 JL,yz.单位 DW,yz.天 YYTS,yz.单价 XMDJ,yz.金额 XMJE,yz.皮试结果 SFPS,yz.数量 YPSL,'1' JYDM,yz.校对护士 HDYZHSQM,yz.停嘱时间 YZTZRQSJ,yz.停嘱医生 TZYZZQM
|
|
from 住院医嘱明细表 yz
|
|
left join JKPTSC p on yz.choscode=p.JGID and p.PTBM='ZY_YZMXB' and p.col1=yz.RKEY
|
|
left join 住院登记表 a on a.choscode=yz.choscode and a.住院号=yz.住院号
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.出院时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.出院时间<=? and yz.医嘱状态 in ('1','2','3','7')
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="YZID" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="CXBZ" type="1" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="BQ" type="12" />
|
|
<f name="XDKSBM" type="12" />
|
|
<f name="XDRGH" type="12" />
|
|
<f name="YZXDSJ" type="93" />
|
|
<f name="ZXKSBM" type="12" />
|
|
<f name="ZXRGH" type="12" />
|
|
<f name="YZZXSJ" type="93" />
|
|
<f name="YZZZSJ" type="93" />
|
|
<f name="LX" type="12" />
|
|
<f name="YZLB" type="12" />
|
|
<f name="YZMXBM" type="12" />
|
|
<f name="YZMXMC" type="12" />
|
|
<f name="YZXMLXDM" type="12" />
|
|
<f name="YPGG" type="12" />
|
|
<f name="YPYF" type="12" />
|
|
<f name="YYPD" type="12" />
|
|
<f name="JL" type="12" />
|
|
<f name="DW" type="12" />
|
|
<f name="YYTS" type="12" />
|
|
<f name="XMDJ" type="12" />
|
|
<f name="XMJE" type="8" />
|
|
<f name="SFPS" type="12" />
|
|
<f name="YPSL" type="8" />
|
|
<f name="JYDM" type="1" />
|
|
<f name="HDYZHSQM" type="12" />
|
|
<f name="YZTZRQSJ" type="93" />
|
|
<f name="TZYZZQM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getzysfhzbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY SFLSH,c.SETL_ID,c.MDTRT_ID,c.IPT_NO JZLSH,c.FPHM FPH,'0' JSBZ,b.卡编号 KH,'8' KLX,b.ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,'01' YLFKFS,a.INSUTYPE BXLX,
|
|
c.SETL_TIME SFSJ,a.ADM_DEPT_CODG XDKSBM,a.ADM_DEPT_NAME XDKSMC,a.ATDDR_NO XDRGH,a.CHFPDR_NAME XDRXM,c.MEDFEE_SUMAMT ZJE,c.INSCP_SCP_AMT YBJE,
|
|
c.FUND_PAY_SUMAMT YBZFJE,c.PSN_PART_AMT ZFJE,0 YHJE,c.BALC DNZHJE,0 LNZHJE,c.HIFP_PAY TCZJJE,c.PSN_PART_AMT FLZJJE,0 JZJE,c.CZY SFCZYGH
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='ZY_SFHZB' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 住院登记表 b on b.choscode=a.JGID and b.住院号=c.IPT_NO
|
|
where c.JGID=? and c.JZLX='ZY' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="SFLSH" type="12" />
|
|
<f name="SETL_ID" type="12" />
|
|
<f name="MDTRT_ID" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="FPH" type="12" />
|
|
<f name="JSBZ" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="YLFKFS" type="1" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="SFSJ" type="93" />
|
|
<f name="XDKSBM" type="12" />
|
|
<f name="XDKSMC" type="12" />
|
|
<f name="XDRGH" type="12" />
|
|
<f name="XDRXM" type="12" />
|
|
<f name="ZJE" type="8" />
|
|
<f name="YBJE" type="8" />
|
|
<f name="YBZFJE" type="8" />
|
|
<f name="ZFJE" type="8" />
|
|
<f name="YHJE" type="8" />
|
|
<f name="DNZHJE" type="8" />
|
|
<f name="LNZHJE" type="8" />
|
|
<f name="TCZJJE" type="8" />
|
|
<f name="FLZJJE" type="8" />
|
|
<f name="JZJE" type="8" />
|
|
<f name="SFCZYGH" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getzysfmxbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY SFLSH,c.SETL_ID,c.MDTRT_ID,c.IPT_NO JZLSH,c.FPHM FPH,b.卡编号 KH,'8' KLX,b.ZJLX,a.CERTNO ZJHM,a.PSN_NAME XM,a.INSUTYPE BXLX,
|
|
a.ADM_DEPT_CODG XDKSBM,a.ADM_DEPT_NAME XDKSMC,a.ATDDR_NO XDRGH,a.CHFPDR_NAME XDRXM,c.CZY SFCZYGH
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='ZY_SFMXB' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 住院登记表 b on b.choscode=a.JGID and b.住院号=c.IPT_NO
|
|
where c.JGID=? and c.JZLX='ZY' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="SFLSH" type="12" />
|
|
<f name="SETL_ID" type="12" />
|
|
<f name="MDTRT_ID" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="FPH" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="BXLX" type="12" />
|
|
<f name="XDKSBM" type="12" />
|
|
<f name="XDKSMC" type="12" />
|
|
<f name="XDRGH" type="12" />
|
|
<f name="XDRXM" type="12" />
|
|
<f name="SFCZYGH" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="zysfmxdao" log="true" type="1">
|
|
<sql>select a.自动编码 SFMXID,a.退费ID,a.核算科室 ZXKSBM,fy.JKPTLB MXFYLB,a.标志 MXXMLB,a.处方时间 STFSJ,a.编码 MXXMBM,a.名称 MXXMMC,kc.生产批号 SCPH,kc.有效期至 YXQ,
|
|
a.规格 MXXMGG,a.单位 MXXMDW,a.价格 MXXMDJ,a.数量 MXXMSL,a.金额 MXXMJE
|
|
from 住院处方明细表 a
|
|
left join 费用类别表 fy on a.choscode=fy.choscode and a.费用类别=fy.ID
|
|
left join 库存药品 kc on a.药品辅助编码 = to_char(kc.库存流水) and a.choscode = kc.choscode and a.标志='0'
|
|
where a.choscode=? and a.ZYLSH=? and a.JSDJLSH=? and mxsb='1'</sql>
|
|
<fields>
|
|
<f name="SFMXID" type="4" />
|
|
<f name="退费ID" type="12" />
|
|
<f name="ZXKSBM" type="12" />
|
|
<f name="MXFYLB" type="12" />
|
|
<f name="MXXMLB" type="4" />
|
|
<f name="STFSJ" type="93" />
|
|
<f name="MXXMBM" type="12" />
|
|
<f name="MXXMMC" type="12" />
|
|
<f name="SCPH" type="12" />
|
|
<f name="YXQ" type="93" />
|
|
<f name="MXXMGG" type="12" />
|
|
<f name="MXXMDW" type="12" />
|
|
<f name="MXXMDJ" type="8" />
|
|
<f name="MXXMSL" type="8" />
|
|
<f name="MXXMJE" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getfyfsmxdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,a.自动编码 SFMXID,a.退费ID,a.住院号 ZYH,a.住院号 JZLSH,b.卡编号 KH,'8' KLX,b.ZJLX,b.证件号码 ZJHM,b.病人姓名 XM,b.入院科室 XDKSBM,b.接诊医生 XDRGH,a.核算科室 ZXKSBM,fy.JKPTLB MXFYLB,a.标志 MXXMLB,a.处方时间 STFSJ,a.编码 MXXMBM,a.名称 MXXMMC,kc.生产批号 SCPH,kc.有效期至 YXQ,
|
|
a.规格 MXXMGG,a.单位 MXXMDW,a.价格 MXXMDJ,a.数量 MXXMSL,a.金额 MXXMJE
|
|
from 住院处方明细表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='ZY_FYFSMXB' and p.col1=a.自动编码
|
|
left join 住院登记表 b on a.choscode=b.choscode and a.住院号=b.住院号
|
|
left join 费用类别表 fy on a.choscode=fy.choscode and a.费用类别=fy.ID
|
|
left join 库存药品 kc on a.药品辅助编码 = to_char(kc.库存流水) and a.choscode = kc.choscode and a.标志='0'
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.处方时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.处方时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="SFMXID" type="4" />
|
|
<f name="退费ID" type="12" />
|
|
<f name="ZYH" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XDKSBM" type="12" />
|
|
<f name="XDRGH" type="12" />
|
|
<f name="ZXKSBM" type="12" />
|
|
<f name="MXFYLB" type="12" />
|
|
<f name="MXXMLB" type="4" />
|
|
<f name="STFSJ" type="93" />
|
|
<f name="MXXMBM" type="12" />
|
|
<f name="MXXMMC" type="12" />
|
|
<f name="SCPH" type="12" />
|
|
<f name="YXQ" type="93" />
|
|
<f name="MXXMGG" type="12" />
|
|
<f name="MXXMDW" type="12" />
|
|
<f name="MXXMDJ" type="8" />
|
|
<f name="MXXMSL" type="8" />
|
|
<f name="MXXMJE" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getcyxjbgdao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.住院号 JZLSH,a.入院科室 KSDM,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,cw.床位名称 CH,a.病人姓名 XM,a.病人性别 XB,a.病人年龄 NL,a.登记时间 RYSJ,
|
|
a.出院时间 CYSJ,a.疾病 RYZD,a.出院诊断 CYZD,'-' RYZZTZ,'-' JCHZ,'-' ZLGC,'-' CYQK,'-' CYYZ,'-' ZLJG,a.接诊医生 ZZYSGH,a.住院号 ZYH,c.AREA_NAME BQMC,a.CUR_BEDNUM BFH
|
|
from 住院登记表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='ZY_CYXJBG' and p.col1=a.住院号
|
|
left join 床位表 cw on a.choscode=cw.choscode and a.CUR_BEDNUM=cw.ID
|
|
left join EL_WARD_AREA c on a.choscode=c.choscode and a.CUR_AREAPKEY=c.PKEY
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.出院时间>=to_date('2022-05-25 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.出院时间<=?]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="KSDM" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="CH" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="NL" type="12" />
|
|
<f name="RYSJ" type="93" />
|
|
<f name="CYSJ" type="93" />
|
|
<f name="RYZD" type="12" />
|
|
<f name="CYZD" type="12" />
|
|
<f name="RYZZTZ" type="1" />
|
|
<f name="JCHZ" type="1" />
|
|
<f name="ZLGC" type="1" />
|
|
<f name="CYQK" type="1" />
|
|
<f name="CYYZ" type="1" />
|
|
<f name="ZLJG" type="1" />
|
|
<f name="ZZYSGH" type="12" />
|
|
<f name="ZYH" type="12" />
|
|
<f name="BQMC" type="12" />
|
|
<f name="BFH" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="xmfylbdao" log="true" type="1">
|
|
<sql>select a.项目编码,b.JKPTLB
|
|
from 项目表 a
|
|
left join 费用类别表 b on a.choscode=b.choscode and a.费用类别=b.ID
|
|
where a.choscode=?</sql>
|
|
<fields>
|
|
<f name="项目编码" type="12" />
|
|
<f name="JKPTLB" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmzzdmxdao" log="true" type="1">
|
|
<sql><![CDATA[select distinct p.PKEY scpkey,c.PKEY,c.MDTRT_ID JZLSH,c.IPT_NO,c.JZLX,b.卡编码 KH,'8' KLX,b.证件类型 ZJLX,a.CERTNO ZJHM,zd.RKEY ZYZDLSH,'1' MZZYBZ,zd.中西诊断 ZDLXQF,
|
|
zd.看诊时间 ZDSJ,zd.ICD10 ZDBM,zd.疾病名称 ZDSM,'01' BMLX,zd.ISMAIN ZYZDBZ,'2' YZDBZ
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BG_ZDMXBG' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号
|
|
left join 门诊医嘱疾病诊断表 zd on a.JGID=zd.choscode and a.kls=zd.卡流水 and a.IPT_NO=zd.门诊号
|
|
where c.JGID=? and c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-06-11 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?
|
|
and zd.ICD10 is not null]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="IPT_NO" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="KH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZYZDLSH" type="12" />
|
|
<f name="MZZYBZ" type="1" />
|
|
<f name="ZDLXQF" type="12" />
|
|
<f name="ZDSJ" type="93" />
|
|
<f name="ZDBM" type="12" />
|
|
<f name="ZDSM" type="12" />
|
|
<f name="BMLX" type="1" />
|
|
<f name="ZYZDBZ" type="12" />
|
|
<f name="YZDBZ" type="1" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getzyzdmxdao" log="true" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.住院号 JZLSH,'8' KLX,卡编号 KH,a.证件号码 ZJHM,a.ZJLX,zd.RKEY ZYZDLSH,'2' MZZYBZ,zd.MED_TYPE ZDLXQF,zd.DIAGNOSISTYPE ZDLB,zd.OPERATETIME ZDSJ,
|
|
zd.ICD10 ZDBM,zd.DISEASE ZDSM,'01' BMLX,zd.ISMAIN ZYZDBZ,'2' YZDBZ
|
|
from 住院登记表 a
|
|
left join JKPTSC p on a.choscode=p.JGID and p.PTBM='BG_ZDMXBG' and p.col1=a.住院号
|
|
left join 住院诊断表 zd on a.choscode=zd.choscode and a.住院号=zd.住院号
|
|
where a.choscode=? and nvl(p.ptsczt,'0')='0' and a.出院时间>=to_date('2022-06-11 00:00:00','yyyy-mm-dd hh24:mi:ss') and a.出院时间<=? ]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZYZDLSH" type="12" />
|
|
<f name="MZZYBZ" type="1" />
|
|
<f name="ZDLXQF" type="12" />
|
|
<f name="ZDLB" type="12" />
|
|
<f name="ZDSJ" type="93" />
|
|
<f name="ZDBM" type="12" />
|
|
<f name="ZDSM" type="12" />
|
|
<f name="BMLX" type="1" />
|
|
<f name="ZYZDBZ" type="12" />
|
|
<f name="YZDBZ" type="1" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getzyjsbrbdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.SETL_ID ZXJYLSH,c.PSN_NO YBKH,c.CERTNO SFZH,c.IPT_NO JZLSH,c.IPT_NO ZYH,a.BEGNTIME RYSJ,a.JSSJ CYSJ,a.DSCG_MAINDIAG_CODE CYZDBM,
|
|
a.DSCG_MAINDIAG_NAME CYZDSM,c.INSUTYPE YBLB,c.MEDFEE_SUMAMT ZFY,c.PSN_CASH_PAY GRXJZF,c.PSN_PART_AMT GRZFJE,c.CZSJ CZRQ,c.FUND_PAY_SUMAMT JJZFE,c.CZY CZYGH,
|
|
c.SETL_TIME SFRQ,c.ACCT_PAY ZHZFE,a.DSCG_DEPT_NAME ZYKSMC,c.HIFP_PAY TCZF,c.HIFMI_PAY DBZF,c.CVLSERV_PAY GWYBZ,c.ACT_PAY_DEDC QFBZZF,c.FULAMT_OWNPAY_AMT ZFFY,
|
|
c.OVERLMT_SELFPAY CXJZFFY,c.PRESELFPAY_AMT YLZLJE,c.INSCP_SCP_AMT FHJBYLJE,c.HOSP_PART_AMT DDYLJGZF,c.MED_TYPE YLDYLB,c.BALC BCZHYE,c.POOL_PROP_SELFPAY BCBL,
|
|
c.HIFP_PAY BCJE,c.MAF_PAY MZJZ
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='YB_ZYJSB_RB' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
where c.JGID=? and c.JZLX='ZY' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-06-11 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=? ]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="ZXJYLSH" type="12" />
|
|
<f name="YBKH" type="12" />
|
|
<f name="SFZH" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="ZYH" type="12" />
|
|
<f name="RYSJ" type="93" />
|
|
<f name="CYSJ" type="93" />
|
|
<f name="CYZDBM" type="12" />
|
|
<f name="CYZDSM" type="12" />
|
|
<f name="YBLB" type="12" />
|
|
<f name="ZFY" type="8" />
|
|
<f name="GRXJZF" type="8" />
|
|
<f name="GRZFJE" type="8" />
|
|
<f name="CZRQ" type="93" />
|
|
<f name="JJZFE" type="8" />
|
|
<f name="CZYGH" type="12" />
|
|
<f name="SFRQ" type="93" />
|
|
<f name="ZHZFE" type="8" />
|
|
<f name="ZYKSMC" type="12" />
|
|
<f name="TCZF" type="8" />
|
|
<f name="DBZF" type="8" />
|
|
<f name="GWYBZ" type="8" />
|
|
<f name="QFBZZF" type="8" />
|
|
<f name="ZFFY" type="8" />
|
|
<f name="CXJZFFY" type="8" />
|
|
<f name="YLZLJE" type="8" />
|
|
<f name="FHJBYLJE" type="8" />
|
|
<f name="DDYLJGZF" type="8" />
|
|
<f name="YLDYLB" type="12" />
|
|
<f name="BCZHYE" type="8" />
|
|
<f name="BCBL" type="8" />
|
|
<f name="BCJE" type="8" />
|
|
<f name="MZJZ" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="gettjsjljlhzdao" log="true" type="1">
|
|
<sql>select YLJGDM,PTBM,YWKSSJ,YWJSSJ,YCZSL,MXSJSCBZ,MJ,TBRQ,XGBZ,SCZT,SJBZ,TJBZ,SCZSL,JYZT,PCH from TJ_SJL_JLHZ where YLJGDM like ? and PTBM=? and PCH like ?</sql>
|
|
<tables>
|
|
<table name="TJ_SJL_JLHZ" insert="true" update="true" delete="true">
|
|
<primary>YLJGDM</primary>
|
|
<primary>PTBM</primary>
|
|
<primary>PCH</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="YLJGDM" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="PTBM" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="YWKSSJ" type="93" table="TJ_SJL_JLHZ" />
|
|
<f name="YWJSSJ" type="93" table="TJ_SJL_JLHZ" />
|
|
<f name="YCZSL" type="4" table="TJ_SJL_JLHZ" />
|
|
<f name="MXSJSCBZ" type="-5" table="TJ_SJL_JLHZ" />
|
|
<f name="MJ" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="TBRQ" type="93" table="TJ_SJL_JLHZ" />
|
|
<f name="XGBZ" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="SCZT" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="SJBZ" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="TJBZ" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="SCZSL" type="4" table="TJ_SJL_JLHZ" />
|
|
<f name="JYZT" type="12" table="TJ_SJL_JLHZ" />
|
|
<f name="PCH" type="12" table="TJ_SJL_JLHZ" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getmjzbldao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.MDTRT_ID JZLSH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,z.卡编码 KH,a.ADM_DEPT_CODG KSBM,a.ADM_DEPT_NAME KSMC,
|
|
a.PSN_NAME HZXM,a.GEND XBDM,a.BRDY CSRQ,a.AGE NL,a.BEGNTIME JZRQSJ,a.DSCG_MAINDIAG_CODE CBZD_XYZDBM,a.DSCG_MAINDIAG_NAME CBZD_XYZDMC,a.ATDDR_NO YSDM,
|
|
a.CHFPDR_NAME YSXM,z.主诉 ZS,z.简要病史 XBS,z.既往史 JBS,z.体格检查 TGJC,z.过敏史 GMS
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='MJZBL_MJZBL' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 门诊医嘱主表 z on c.JGID=z.choscode and c.kls=z.卡流水 and c.IPT_NO=z.门诊号
|
|
where c.JGID=? and c.JZLX='MZ' and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-06-22 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="HZSFZJHM" type="12" />
|
|
<f name="SFZJLBDM" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="KSBM" type="12" />
|
|
<f name="KSMC" type="12" />
|
|
<f name="HZXM" type="12" />
|
|
<f name="XBDM" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="NL" type="12" />
|
|
<f name="JZRQSJ" type="93" />
|
|
<f name="CBZD_XYZDBM" type="12" />
|
|
<f name="CBZD_XYZDMC" type="12" />
|
|
<f name="YSDM" type="12" />
|
|
<f name="YSXM" type="12" />
|
|
<f name="ZS" type="12" />
|
|
<f name="XBS" type="12" />
|
|
<f name="JBS" type="12" />
|
|
<f name="TGJC" type="12" />
|
|
<f name="GMS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getwssjzydao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.JZLX,c.MDTRT_ID JZLSH,c.IPT_NO,c.CERTNO JMJKKH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,b.卡编码 KH,
|
|
a.BEGNTIME,a.JSSJ,a.DSCG_MAINDIAG_CODE XYZDBM,a.CHFPDR_NAME ZRYSXM
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BLGY_WSSJZY' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号
|
|
where c.JGID=? and c.CERTNO is not null and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-06-22 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="IPT_NO" type="12" />
|
|
<f name="JMJKKH" type="12" />
|
|
<f name="HZSFZJHM" type="12" />
|
|
<f name="SFZJLBDM" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="BEGNTIME" type="93" />
|
|
<f name="JSSJ" type="93" />
|
|
<f name="XYZDBM" type="12" />
|
|
<f name="ZRYSXM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getylfyjldao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.JZLX,c.MDTRT_ID JZLSH,c.IPT_NO,c.CERTNO JMJKKH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,b.卡编码 KH,
|
|
c.INSUTYPE BXLXDM,c.MEDFEE_SUMAMT,c.PSN_PART_AMT GRCDFYJE
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BLGY_YLFYJL' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 一卡通业务 b on a.JGID=b.choscode and a.kls=b.流水号
|
|
where c.JGID=? and c.CERTNO is not null and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-06-22 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="IPT_NO" type="12" />
|
|
<f name="JMJKKH" type="12" />
|
|
<f name="HZSFZJHM" type="12" />
|
|
<f name="SFZJLBDM" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="BXLXDM" type="12" />
|
|
<f name="MEDFEE_SUMAMT" type="8" />
|
|
<f name="GRCDFYJE" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getjbjkxxdao" log="true" type="1">
|
|
<sql><![CDATA[select p.PKEY scpkey,c.PKEY,c.CERTNO JMJKKH,c.CERTNO HZSFZJHM,c.PSN_CERT_TYPE SFZJLBDM,'8' KLX,z.卡编码 KH,
|
|
z.简要病史 JBS,z.过敏史 GMS,z.既往史 GRS,z.月经史 YJS,z.家族史 JZS
|
|
from HIS_YB_JSB_GD c
|
|
left join JKPTSC p on c.JGID=p.JGID and p.PTBM='BLGY_JBJKXX' and p.col1=c.PKEY
|
|
left join HIS_YB_DJ_GD a on a.JGID=c.JGID and a.IPT_NO=c.IPT_NO and a.MDTRT_ID=c.MDTRT_ID
|
|
left join 门诊医嘱主表 z on c.JGID=z.choscode and c.kls=z.卡流水 and c.IPT_NO=z.门诊号
|
|
where c.JGID=? and c.JZLX='MZ' and c.CERTNO is not null and c.CXZT='0' and nvl(p.ptsczt,'0')='0' and c.CZSJ>=to_date('2022-06-22 00:00:00','yyyy-mm-dd hh24:mi:ss') and c.CZSJ<=?
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JMJKKH" type="12" />
|
|
<f name="HZSFZJHM" type="12" />
|
|
<f name="SFZJLBDM" type="12" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
<f name="JBS" type="12" />
|
|
<f name="GMS" type="12" />
|
|
<f name="GRS" type="12" />
|
|
<f name="YJS" type="12" />
|
|
<f name="JZS" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
</datasource>
|
|
|