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.
2188 lines
113 KiB
2188 lines
113 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource> <!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
<dao id="jgrytempdao" cache="true" type="1">
|
|
<sql>select USERID,EMPID,PKEY from MAIN_USERS where COMPANYID=? and EFFICET='0' and PKEY is null</sql>
|
|
<tables>
|
|
<table name="MAIN_USERS" insert="true" update="true" delete="true">
|
|
<primary>EMPID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="USERID" type="12" table="MAIN_USERS" />
|
|
<f name="EMPID" type="12" table="MAIN_USERS" />
|
|
<f name="PKEY" type="12" table="MAIN_USERS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrjgdao" cache="true" type="1">
|
|
<sql>select JGMC,PKEY,JKPTJGBM from MAIN_YLJG where JKPTJGBM is not null</sql>
|
|
<fields>
|
|
<f name="JGMC" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="JKPTJGBM" type="12" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="hrptysdao" type="1">
|
|
<sql>select a.COMPANYID,a.YBID,b.USERACCOUNT,a.USERID,a.PKEY,b.NAME from MAIN_USERS a left join MAIN_EMPLOYEES b on a.EMPID=b.EMPID where a.EFFICET='0' and a.COMPANYID=?</sql>
|
|
<fields>
|
|
<f name="COMPANYID" type="12" />
|
|
<f name="YBID" type="12" />
|
|
<f name="USERACCOUNT" type="12" />
|
|
<f name="USERID" type="12" />
|
|
<f name="PKEY" type="12" />
|
|
<f name="NAME" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="hrksdao" type="1">
|
|
<sql>select a.COMPANYID,a.DPTID,a.DPTNAME,ISJZ from MAIN_DEPARTMENT a where a.COMPANYID=?</sql>
|
|
<fields>
|
|
<f name="COMPANYID" type="12" />
|
|
<f name="DPTID" type="12" />
|
|
<f name="DPTNAME" type="12" />
|
|
<f name="ISJZ" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrqtscdao" type="1">
|
|
<sql>select PKEY,COMPANYID,YWLX,RF1,RF2,RF3,RF4,RF5,SCZT1,SCZT2,SCZT3,SCZT4,SCZT5 from HIS_YB_QTSC where 1=2</sql>
|
|
<tables>
|
|
<table name="HIS_YB_QTSC" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_YB_QTSC" />
|
|
<f name="COMPANYID" type="12" table="HIS_YB_QTSC" />
|
|
<f name="YWLX" type="12" table="HIS_YB_QTSC" />
|
|
<f name="RF1" type="12" table="HIS_YB_QTSC" />
|
|
<f name="RF2" type="12" table="HIS_YB_QTSC" />
|
|
<f name="RF3" type="12" table="HIS_YB_QTSC" />
|
|
<f name="RF4" type="12" table="HIS_YB_QTSC" />
|
|
<f name="RF5" type="12" table="HIS_YB_QTSC" />
|
|
<f name="SCZT1" type="12" table="HIS_YB_QTSC" />
|
|
<f name="SCZT2" type="12" table="HIS_YB_QTSC" />
|
|
<f name="SCZT3" type="12" table="HIS_YB_QTSC" />
|
|
<f name="SCZT4" type="12" table="HIS_YB_QTSC" />
|
|
<f name="SCZT5" type="12" table="HIS_YB_QTSC" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="hrryxxdao" type="1">
|
|
<sql><![CDATA[
|
|
select p.pkey scpkey,a.JZNO,a.JJKS,a.JJYS,b.XM,b.PHONE,b.ZJHM,a.JJRQ,'5' KLX,a.HZPKEY KH
|
|
from HIS_JZ_BASEINFO a
|
|
left join HIS_YB_QTSC p on a.COMPANYID=p.COMPANYID and p.YWLX='GH_RYXXB' and p.RF1=a.JZNO
|
|
left join HIS_HZINFO b on a.hzpkey = b.pkey and a.companyid=b.companyid
|
|
where nvl(p.SCZT1,'0')='0' and (a.JZLX='M' or a.JZLX='J') and (a.JZZT='J' OR a.JZZT='Z' or a.JZZT='C') and b.ZJHM is not null and a.COMPANYID=? and a.JJRQ<=?
|
|
]]></sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JJYS" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="PHONE" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="JJRQ" type="93" />
|
|
<f name="KLX" type="1" />
|
|
<f name="KH" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrghryxxbdao" type="1">
|
|
<sql>select HOS_CODE,OUTPATIENT_NO,DEPT_CODE,DOC_NAME,DOC_CODE,PATIENT_NAME,PATIENT_PHONE,CARD_CODE,ORDER_DATE,ORDER_TYPE,CREATE_TIME,HOS_CARD_TYPE,HOS_CARD
|
|
from GH_RYXXB where HOS_CODE like ? and ORDER_DATE like ?</sql>
|
|
<tables>
|
|
<table name="GH_RYXXB" insert="true" update="true" delete="true">
|
|
<primary>HOS_CODE</primary>
|
|
<primary>OUTPATIENT_NO</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="HOS_CODE" type="12" table="GH_RYXXB" />
|
|
<f name="OUTPATIENT_NO" type="12" table="GH_RYXXB" />
|
|
<f name="DEPT_CODE" type="12" table="GH_RYXXB" />
|
|
<f name="DOC_NAME" type="12" table="GH_RYXXB" />
|
|
<f name="DOC_CODE" type="12" table="GH_RYXXB" />
|
|
<f name="PATIENT_NAME" type="12" table="GH_RYXXB" />
|
|
<f name="PATIENT_PHONE" type="12" table="GH_RYXXB" />
|
|
<f name="CARD_CODE" type="12" table="GH_RYXXB" />
|
|
<f name="ORDER_DATE" type="12" table="GH_RYXXB" />
|
|
<f name="ORDER_TYPE" type="12" table="GH_RYXXB" />
|
|
<f name="CREATE_TIME" type="12" table="GH_RYXXB" />
|
|
<f name="HOS_CARD_TYPE" type="12" table="GH_RYXXB" />
|
|
<f name="HOS_CARD" type="12" table="GH_RYXXB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hryhryxxdao" type="1">
|
|
<sql> select p.PKEY scpkey,a.PKEY ZGBM,b.USERACCOUNT GH,b.NAME XM,b.SEX Xb,b.BIRTHDAY CSRQ,b.MZ MZDM,b.IDTYPE SFBSLBDM,b.IDENTITYID SFBSHM,d.DPTID SSKS,d.DPTNAME SSKSMC,y.VALUE3 SSZXKSDM,'90' RYLB,'0' Ghzt,'2' BZQK,'0' SJTRYBZ,'1' GZZT,'2' PXLB,'0' SFNRQKYSPX,d.DPTYBCODE
|
|
from MAIN_USERS a
|
|
left join MAIN_EMPLOYEES b on a.EMPID=b.EMPID
|
|
left join HIS_YB_QTSC p on a.COMPANYID=p.COMPANYID and p.YWLX='JC_YHRYXXB' and p.RF1=a.PKEY
|
|
left join MAIN_DEPARTMENT d on a.COMPANYID=d.COMPANYID and a.MRKS=d.DPTID
|
|
left join HIS_YB_DMZDB y on y.LBBM='caty' and d.DPTYBCODE=y.BM
|
|
where a.EFFICET='0' and nvl(p.SCZT1,'0')='0' and b.USERACCOUNT is not null and a.COMPANYID=?</sql>
|
|
<fields>
|
|
<f name="SCPKEY" type="12"/>
|
|
<f name="ZGBM" type="12"/>
|
|
<f name="GH" type="12"/>
|
|
<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="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" />
|
|
<f name="DPTYBCODE" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrjcyhryxxbdao" type="1">
|
|
<sql>select YLJGDM,ZGBM,GH,XM,XB,CSRQ,MZDM,SFBSLBDM,SFBSHM,SSKS,SSKSMC,SSZXKSDM,KSLB,ZWDM,ZWMC,ZCDM,ZCHENGMC,ZY,RYLB,EMAIL,JTDZ,YZBM,DHHM,SJHM1,YSJJ,GHZT,WHCD,DYXLDM,DYXLMC,DYXLBYYX,DYXLBYSJ,DYXLZSH,ZGXLBYYX,XWDM,XZGLZWDM,XZGLZWMC,GW,ZYZSH,ZYZGMC,ZYZSZCSJ,QKYSBZ,PXLX,SCPXYLJGDM,SCPXYLJGMC,PXSZYZCDM,PXSZYZCMX,PXJD,PXJGMC,QKYSPXKSSJ,QKYSPXJSSJ,YSZYLBDM,YSZYFWDM,ZCWDDZYYSBZ,D2ZYDWLBDM,DSZYDWLBDM,RYDRQK,RYDCQK,DRSJ,DCSJ,CJGZRQ,BZQK,SJTRYBZ,GZZT,PXLB,SYQBZ,ZZMM,GWJB,JYJGDM,JYJGMC,SFNRQKYSPX,ZGXLDM,ZGXLMC,ZGXLBYSJ,ZGXLBYZSH,QKYSZCZSH,QKYSZCZSSJ,ZCZSH,ZCSJ,YSZP,MJ,TBRQ,XGBZ,SCZT,SJBZ,JYZT,PCH from JC_YHRYXXB where YLJGDM like ? and PCH like ?</sql>
|
|
<tables>
|
|
<table name="JC_YHRYXXB" insert="true" update="true" delete="true">
|
|
<primary>YLJGDM</primary>
|
|
<primary>ZGBM</primary>
|
|
<primary>PCH</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="YLJGDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZGBM" type="12" table="JC_YHRYXXB" />
|
|
<f name="GH" type="12" table="JC_YHRYXXB" />
|
|
<f name="XM" type="12" table="JC_YHRYXXB" />
|
|
<f name="XB" type="12" table="JC_YHRYXXB" />
|
|
<f name="CSRQ" type="12" table="JC_YHRYXXB" />
|
|
<f name="MZDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="SFBSLBDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="SFBSHM" type="12" table="JC_YHRYXXB" />
|
|
<f name="SSKS" type="12" table="JC_YHRYXXB" />
|
|
<f name="SSKSMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="SSZXKSDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="KSLB" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZWDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZWMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZCDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZCHENGMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZY" type="12" table="JC_YHRYXXB" />
|
|
<f name="RYLB" type="12" table="JC_YHRYXXB" />
|
|
<f name="EMAIL" type="12" table="JC_YHRYXXB" />
|
|
<f name="JTDZ" type="12" table="JC_YHRYXXB" />
|
|
<f name="YZBM" type="12" table="JC_YHRYXXB" />
|
|
<f name="DHHM" type="12" table="JC_YHRYXXB" />
|
|
<f name="SJHM1" type="12" table="JC_YHRYXXB" />
|
|
<f name="YSJJ" type="12" table="JC_YHRYXXB" />
|
|
<f name="GHZT" type="12" table="JC_YHRYXXB" />
|
|
<f name="WHCD" type="12" table="JC_YHRYXXB" />
|
|
<f name="DYXLDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="DYXLMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="DYXLBYYX" type="12" table="JC_YHRYXXB" />
|
|
<f name="DYXLBYSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="DYXLZSH" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZGXLBYYX" type="12" table="JC_YHRYXXB" />
|
|
<f name="XWDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="XZGLZWDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="XZGLZWMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="GW" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZYZSH" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZYZGMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZYZSZCSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="QKYSBZ" type="12" table="JC_YHRYXXB" />
|
|
<f name="PXLX" type="12" table="JC_YHRYXXB" />
|
|
<f name="SCPXYLJGDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="SCPXYLJGMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="PXSZYZCDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="PXSZYZCMX" type="12" table="JC_YHRYXXB" />
|
|
<f name="PXJD" type="12" table="JC_YHRYXXB" />
|
|
<f name="PXJGMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="QKYSPXKSSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="QKYSPXJSSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="YSZYLBDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="YSZYFWDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZCWDDZYYSBZ" type="-5" table="JC_YHRYXXB" />
|
|
<f name="D2ZYDWLBDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="DSZYDWLBDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="RYDRQK" type="12" table="JC_YHRYXXB" />
|
|
<f name="RYDCQK" type="12" table="JC_YHRYXXB" />
|
|
<f name="DRSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="DCSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="CJGZRQ" type="12" table="JC_YHRYXXB" />
|
|
<f name="BZQK" type="12" table="JC_YHRYXXB" />
|
|
<f name="SJTRYBZ" type="12" table="JC_YHRYXXB" />
|
|
<f name="GZZT" type="12" table="JC_YHRYXXB" />
|
|
<f name="PXLB" type="12" table="JC_YHRYXXB" />
|
|
<f name="SYQBZ" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZZMM" type="12" table="JC_YHRYXXB" />
|
|
<f name="GWJB" type="12" table="JC_YHRYXXB" />
|
|
<f name="JYJGDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="JYJGMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="SFNRQKYSPX" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZGXLDM" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZGXLMC" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZGXLBYSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="ZGXLBYZSH" type="12" table="JC_YHRYXXB" />
|
|
<f name="QKYSZCZSH" type="12" table="JC_YHRYXXB" />
|
|
<f name="QKYSZCZSSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="ZCZSH" type="12" table="JC_YHRYXXB" />
|
|
<f name="ZCSJ" type="93" table="JC_YHRYXXB" />
|
|
<f name="YSZP" type="12" table="JC_YHRYXXB" />
|
|
<f name="MJ" type="12" table="JC_YHRYXXB" />
|
|
<f name="TBRQ" type="12" table="JC_YHRYXXB" />
|
|
<f name="XGBZ" type="12" table="JC_YHRYXXB" />
|
|
<f name="SCZT" type="12" table="JC_YHRYXXB" />
|
|
<f name="SJBZ" type="12" table="JC_YHRYXXB" />
|
|
<f name="JYZT" type="12" table="JC_YHRYXXB" />
|
|
<f name="PCH" type="12" table="JC_YHRYXXB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrjyjldao" type="1">
|
|
<sql><![CDATA[
|
|
select p.pkey scpkey,a.XH JYJLLSH,a.JYSJ BGRQ,jz.HZPKEY KH,'8' KLX,a.ZJHM,'01' ZJLX,a.XM,a.XB,a.NL,a.SJYS SQYSGH,a.JYYS BGYSGH,a.FHYS SHYSGH,nvl(a.DYSJ,a.FHSJ) DYRQ, a.SJSJ SQSJ,a.CYSJ CJSJ,a.JYSJ JYRQ,b.JKPTBM BBDM,b.JKPTMC BBMC,y.JKPTBM BGDLBBM,a.BRLX JLLB,a.BLH ZYH,a.CH,a.SJKS SQKSBM,'-' BQMC,a.tmh,
|
|
a.KLS,jz.JZNO JZLSH,hz.ECARDID
|
|
from LIS_BRJYXX a
|
|
left join HIS_JZ_BASEINFO jz on a.COMPANYID=jz.COMPANYID and a.KLS=jz.PKEY
|
|
left join HIS_HZINFO hz on jz.hzpkey = hz.pkey and jz.companyid=hz.companyid
|
|
left join HIS_YB_QTSC p on a.COMPANYID=p.COMPANYID and p.YWLX='SY_JYJLB' and p.RF1=a.XH
|
|
left join LIS_YBLX b on a.YBLX=b.BH
|
|
left join LIS_YQBGWH y on y.BH =a.JYYQ and y.COMPANYID = a.COMPANYID
|
|
where a.FBBZ='Y' and a.KLS is not null and a.COMPANYID=? and nvl(p.SCZT1,'0')='0' and a.JYSJ<=?
|
|
]]></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" />
|
|
<f name="JZLSH" type="12" />
|
|
<f name="ECARDID" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrsyjyjlbdao" type="1">
|
|
<sql>select YLJGDM,JYJLLSH,BGRQ,JZLSH,KH,KLX,ZJHM,ZJLX,XM,XB,NL,SQYSGH,SQYSXM,BGYSGH,BGYSXM,SHYSGH,SHYSXM,DYRQ,SQSJ,CJSJ,JYRQ,SQKSBM,SQKSMC,BQMC,CH,BGBZ,BBDM,BBMC,BGDLBBM,BGDLBMC,YZLSH,YZXMDM,JLLB,ZYH,HZLXDM,DHHM,BFH,MJ,TBRQ,XGBZ,SCZT,SJBZ,JYZT,PCH from SY_JYJLB where YLJGDM like ? and PCH like ?</sql>
|
|
<tables>
|
|
<table name="SY_JYJLB" insert="true" update="true" delete="true">
|
|
<primary>YLJGDM</primary>
|
|
<primary>JYJLLSH</primary>
|
|
<primary>BGRQ</primary>
|
|
<primary>PCH</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="YLJGDM" type="12" table="SY_JYJLB" />
|
|
<f name="JYJLLSH" type="12" table="SY_JYJLB" />
|
|
<f name="BGRQ" type="12" table="SY_JYJLB" />
|
|
<f name="JZLSH" type="12" table="SY_JYJLB" />
|
|
<f name="KH" type="12" table="SY_JYJLB" />
|
|
<f name="KLX" type="12" table="SY_JYJLB" />
|
|
<f name="ZJHM" type="12" table="SY_JYJLB" />
|
|
<f name="ZJLX" type="12" table="SY_JYJLB" />
|
|
<f name="XM" type="12" table="SY_JYJLB" />
|
|
<f name="XB" type="12" table="SY_JYJLB" />
|
|
<f name="NL" type="4" table="SY_JYJLB" />
|
|
<f name="SQYSGH" type="12" table="SY_JYJLB" />
|
|
<f name="SQYSXM" type="12" table="SY_JYJLB" />
|
|
<f name="BGYSGH" type="12" table="SY_JYJLB" />
|
|
<f name="BGYSXM" type="12" table="SY_JYJLB" />
|
|
<f name="SHYSGH" type="12" table="SY_JYJLB" />
|
|
<f name="SHYSXM" type="12" table="SY_JYJLB" />
|
|
<f name="DYRQ" type="12" table="SY_JYJLB" />
|
|
<f name="SQSJ" type="12" table="SY_JYJLB" />
|
|
<f name="CJSJ" type="12" table="SY_JYJLB" />
|
|
<f name="JYRQ" type="12" table="SY_JYJLB" />
|
|
<f name="SQKSBM" type="12" table="SY_JYJLB" />
|
|
<f name="SQKSMC" type="12" table="SY_JYJLB" />
|
|
<f name="BQMC" type="12" table="SY_JYJLB" />
|
|
<f name="CH" type="12" table="SY_JYJLB" />
|
|
<f name="BGBZ" type="12" table="SY_JYJLB" />
|
|
<f name="BBDM" type="12" table="SY_JYJLB" />
|
|
<f name="BBMC" type="12" table="SY_JYJLB" />
|
|
<f name="BGDLBBM" type="12" table="SY_JYJLB" />
|
|
<f name="BGDLBMC" type="12" table="SY_JYJLB" />
|
|
<f name="YZLSH" type="12" table="SY_JYJLB" />
|
|
<f name="YZXMDM" type="12" table="SY_JYJLB" />
|
|
<f name="JLLB" type="12" table="SY_JYJLB" />
|
|
<f name="ZYH" type="12" table="SY_JYJLB" />
|
|
<f name="HZLXDM" type="12" table="SY_JYJLB" />
|
|
<f name="DHHM" type="12" table="SY_JYJLB" />
|
|
<f name="BFH" type="12" table="SY_JYJLB" />
|
|
<f name="MJ" type="12" table="SY_JYJLB" />
|
|
<f name="TBRQ" type="12" table="SY_JYJLB" />
|
|
<f name="XGBZ" type="12" table="SY_JYJLB" />
|
|
<f name="SCZT" type="12" table="SY_JYJLB" />
|
|
<f name="SJBZ" type="12" table="SY_JYJLB" />
|
|
<f name="JYZT" type="12" table="SY_JYJLB" />
|
|
<f name="PCH" type="12" table="SY_JYJLB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="hrjyjgzbbdao" type="1">
|
|
<sql><![CDATA[select p.pkey scpkey,a.XH JYLSH,a.JYSJ BGRQ,a.JYYS JCRGH,a.FHYS SHRGH,'3' JYLBDM,'ZZZZZZZZZZZZZZZ' JYSFDM,'ZZZZZZZZZZZZZZZ' JYSFYBDM,t3.XMBM JYBZXMDM,nvl(fr.FRXMBM,t3.XMDH) JYXMDM,nvl(fr.FRXMMC,t3.XMMC) JYXMMC,t3.TSXX JYJGDM,
|
|
t3.JG,t3.JGLX,t3.DLJG,dw.CJDW JYJLDW,a.SBH YQBH,y.YQMC YQMC,t3.CKZ CKZFW,t3.DYSX DYXH
|
|
from LIS_BRJYXX a
|
|
left join HIS_YB_QTSC p on a.COMPANYID=p.COMPANYID and p.YWLX='SY_JYJGZBB' and p.RF1=a.XH
|
|
left join LIS_JYJG t3 on a.COMPANYID = t3.COMPANYID and a.SBH = t3.SBH and a.RJBH= t3.RJBH and a.YBH = t3.YBH
|
|
left join LIS_CJDW dw on t3.JYDW=dw.BH
|
|
left join LIS_YQSBDJ y on y.SBH =a.SBH and y.COMPANYID = a.COMPANYID
|
|
left join LISFRXM fr on fr.COMPANYID=t3.COMPANYID and fr.XMBH=t3.XMBM
|
|
where a.FBBZ='Y' and a.KLS is not null and nvl(p.SCZT1,'0')='0' and t3.JGLX!='P' and t3.XMBM!='8888' and a.COMPANYID=? and a.JYSJ<=?]]></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="JG" type="12" />
|
|
<f name="JGLX" type="12" />
|
|
<f name="DLJG" 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="hrsyjyjgzbbdao" type="1">
|
|
<sql>select YLJGDM,JYMXLSH,JYLSH,YZLSH,LCXMDM,BGRQ,JCRGH,JCRXM,SHRGH,SHRXM,JYLBDM,JYSFDM,JYSFYBDM,JYBZXMDM,JYXMDM,JYXMMC,LOINC,JYJGDM,JYJGDX,JYJGDL,JYJGLX,JYJLDW,SBLBBM,YQBH,YQMC,CKZFW,CKZSX,CKZXX,JGTS,DYXH,YZID,MJ,TBRQ,XGBZ,SCZT,SJBZ,JYZT,PCH from SY_JYJGZBB where YLJGDM like ? and PCH like ?</sql>
|
|
<tables>
|
|
<table name="SY_JYJGZBB" insert="true" update="true" delete="true">
|
|
<primary>YLJGDM</primary>
|
|
<primary>JYMXLSH</primary>
|
|
<primary>PCH</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="YLJGDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYMXLSH" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYLSH" type="12" table="SY_JYJGZBB" />
|
|
<f name="YZLSH" type="12" table="SY_JYJGZBB" />
|
|
<f name="LCXMDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="BGRQ" type="12" table="SY_JYJGZBB" />
|
|
<f name="JCRGH" type="12" table="SY_JYJGZBB" />
|
|
<f name="JCRXM" type="12" table="SY_JYJGZBB" />
|
|
<f name="SHRGH" type="12" table="SY_JYJGZBB" />
|
|
<f name="SHRXM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYLBDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYSFDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYSFYBDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYBZXMDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYXMDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYXMMC" type="12" table="SY_JYJGZBB" />
|
|
<f name="LOINC" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYJGDM" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYJGDX" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYJGDL" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYJGLX" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYJLDW" type="12" table="SY_JYJGZBB" />
|
|
<f name="SBLBBM" type="12" table="SY_JYJGZBB" />
|
|
<f name="YQBH" type="12" table="SY_JYJGZBB" />
|
|
<f name="YQMC" type="12" table="SY_JYJGZBB" />
|
|
<f name="CKZFW" type="12" table="SY_JYJGZBB" />
|
|
<f name="CKZSX" type="8" table="SY_JYJGZBB" />
|
|
<f name="CKZXX" type="8" table="SY_JYJGZBB" />
|
|
<f name="JGTS" type="12" table="SY_JYJGZBB" />
|
|
<f name="DYXH" type="-5" table="SY_JYJGZBB" />
|
|
<f name="YZID" type="12" table="SY_JYJGZBB" />
|
|
<f name="MJ" type="12" table="SY_JYJGZBB" />
|
|
<f name="TBRQ" type="12" table="SY_JYJGZBB" />
|
|
<f name="XGBZ" type="12" table="SY_JYJGZBB" />
|
|
<f name="SCZT" type="12" table="SY_JYJGZBB" />
|
|
<f name="SJBZ" type="12" table="SY_JYJGZBB" />
|
|
<f name="JYZT" type="12" table="SY_JYJGZBB" />
|
|
<f name="PCH" type="12" table="SY_JYJGZBB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!--HIS_患者基本信息 -->
|
|
<dao id="Sjg_hzinfoTestDao" type="1">
|
|
<sql><![CDATA[
|
|
select PKEY,XM,XB,CSRQ,SFZH,ZJLX,ZJHM,TEL,EMAIL,PIC,SIGNPIC,ZT,MZ,NL,HYZK,HZLX,YBKH,ZY,GZDW,PHONE,BGDH,ZGGH,HZMJ,HZJB,LXRGX,LXR,LXRDH,LXRZJLX,LXRZJHM,GJ,XZDZ,XZDZJGH,JGDZ,JGDZJGH,CSDZ,CSDZJGH,CJR,CJRQ,XGR,XGRQ,JGID,ZYBANO,ZYNO,MZNO,ZYNUM,MZNUM,YBLX from HIS_HZINFO where JGID=?
|
|
AND CJRQ >= ? AND CJRQ <= ?
|
|
]]></sql>
|
|
<tables>
|
|
<table name="HIS_HZINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_HZINFO" />
|
|
<f name="XM" type="12" table="HIS_HZINFO" />
|
|
<f name="XB" type="12" table="HIS_HZINFO" />
|
|
<f name="CSRQ" type="93" table="HIS_HZINFO" />
|
|
<f name="SFZH" type="12" table="HIS_HZINFO" />
|
|
<f name="ZJLX" type="12" table="HIS_HZINFO" />
|
|
<f name="ZJHM" type="12" table="HIS_HZINFO" />
|
|
<f name="TEL" type="12" table="HIS_HZINFO" />
|
|
<f name="EMAIL" type="12" table="HIS_HZINFO" />
|
|
<f name="PIC" type="12" table="HIS_HZINFO" />
|
|
<f name="SIGNPIC" type="12" table="HIS_HZINFO" />
|
|
<f name="ZT" type="12" table="HIS_HZINFO" />
|
|
<f name="MZ" type="12" table="HIS_HZINFO" />
|
|
<f name="NL" type="12" table="HIS_HZINFO" />
|
|
<f name="HYZK" type="12" table="HIS_HZINFO" />
|
|
<f name="HZLX" type="12" table="HIS_HZINFO" />
|
|
<f name="YBKH" type="12" table="HIS_HZINFO" />
|
|
<f name="ZY" type="12" table="HIS_HZINFO" />
|
|
<f name="GZDW" type="12" table="HIS_HZINFO" />
|
|
<f name="PHONE" type="12" table="HIS_HZINFO" />
|
|
<f name="BGDH" type="12" table="HIS_HZINFO" />
|
|
<f name="ZGGH" type="12" table="HIS_HZINFO" />
|
|
<f name="HZMJ" type="12" table="HIS_HZINFO" />
|
|
<f name="HZJB" type="12" table="HIS_HZINFO" />
|
|
<f name="LXRGX" type="12" table="HIS_HZINFO" />
|
|
<f name="LXR" type="12" table="HIS_HZINFO" />
|
|
<f name="LXRDH" type="12" table="HIS_HZINFO" />
|
|
<f name="LXRZJLX" type="12" table="HIS_HZINFO" />
|
|
<f name="LXRZJHM" type="12" table="HIS_HZINFO" />
|
|
<f name="GJ" type="12" table="HIS_HZINFO" />
|
|
<f name="XZDZ" type="12" table="HIS_HZINFO" />
|
|
<f name="XZDZJGH" type="12" table="HIS_HZINFO" />
|
|
<f name="JGDZ" type="12" table="HIS_HZINFO" />
|
|
<f name="JGDZJGH" type="12" table="HIS_HZINFO" />
|
|
<f name="CSDZ" type="12" table="HIS_HZINFO" />
|
|
<f name="CSDZJGH" type="12" table="HIS_HZINFO" />
|
|
<f name="CJR" type="12" table="HIS_HZINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_HZINFO" />
|
|
<f name="XGR" type="12" table="HIS_HZINFO" />
|
|
<f name="XGRQ" type="93" table="HIS_HZINFO" />
|
|
<f name="JGID" type="12" table="HIS_HZINFO" />
|
|
<f name="ZYBANO" type="12" table="HIS_HZINFO" />
|
|
<f name="ZYNO" type="12" table="HIS_HZINFO" />
|
|
<f name="MZNO" type="12" table="HIS_HZINFO" />
|
|
<f name="ZYNUM" type="8" table="HIS_HZINFO" />
|
|
<f name="MZNUM" type="8" table="HIS_HZINFO" />
|
|
<f name="YBLX" type="12" table="HIS_HZINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.2.1患者基本信息 -->
|
|
<dao id="sjghzjbxxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,grbslx,grbsh,zjlx,zjhm,sfzhm,jkdabh,jkkkh,xb,xm,hzlx,hyzk,csrq,csd,mz,gj,dhhm,sjhm,gzdwyb,gzdwmc,gzdwdz,gzdwdhhm,jzdz,hkdz,hkdzyb,lxrxm,lxrgx,lxrdz,lxryb,lxrdh,cjgzrq,dzyjdz,lxdh_lbdm,lxdh_lb,nls,nly,mj,xgbz,tbrq,crt_tm_zdsc from tb_hzxx WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="tb_hzxx" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>grbslx</primary>
|
|
<primary>grbsh</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,grbslx,grbsh,zjlx,zjhm,sfzhm,jkdabh,jkkkh,xb,xm,hzlx,hyzk,csrq,csd,mz,gj,dhhm,sjhm,gzdwyb,gzdwmc,gzdwdz,gzdwdhhm,jzdz,hkdz,hkdzyb,lxrxm,lxrgx,lxrdz,lxryb,lxrdh,cjgzrq,dzyjdz,lxdh_lbdm,lxdh_lb,nls,nly,mj,xgbz,tbrq,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="tb_hzxx" />
|
|
<f name="grbslx" type="12" table="tb_hzxx" />
|
|
<f name="grbsh" type="12" table="tb_hzxx" />
|
|
<f name="zjlx" type="12" table="tb_hzxx" />
|
|
<f name="zjhm" type="12" table="tb_hzxx" />
|
|
<f name="sfzhm" type="12" table="tb_hzxx" />
|
|
<f name="jkdabh" type="12" table="tb_hzxx" />
|
|
<f name="jkkkh" type="12" table="tb_hzxx" />
|
|
<f name="xb" type="12" table="tb_hzxx" />
|
|
<f name="xm" type="12" table="tb_hzxx" />
|
|
<f name="hzlx" type="12" table="tb_hzxx" />
|
|
<f name="hyzk" type="12" table="tb_hzxx" />
|
|
<f name="csrq" type="93" table="tb_hzxx" />
|
|
<f name="csd" type="12" table="tb_hzxx" />
|
|
<f name="mz" type="12" table="tb_hzxx" />
|
|
<f name="gj" type="12" table="tb_hzxx" />
|
|
<f name="dhhm" type="12" table="tb_hzxx" />
|
|
<f name="sjhm" type="12" table="tb_hzxx" />
|
|
<f name="gzdwyb" type="12" table="tb_hzxx" />
|
|
<f name="gzdwmc" type="12" table="tb_hzxx" />
|
|
<f name="gzdwdz" type="12" table="tb_hzxx" />
|
|
<f name="gzdwdhhm" type="12" table="tb_hzxx" />
|
|
<f name="jzdz" type="12" table="tb_hzxx" />
|
|
<f name="hkdz" type="12" table="tb_hzxx" />
|
|
<f name="hkdzyb" type="12" table="tb_hzxx" />
|
|
<f name="lxrxm" type="12" table="tb_hzxx" />
|
|
<f name="lxrgx" type="12" table="tb_hzxx" />
|
|
<f name="lxrdz" type="12" table="tb_hzxx" />
|
|
<f name="lxryb" type="12" table="tb_hzxx" />
|
|
<f name="lxrdh" type="12" table="tb_hzxx" />
|
|
<f name="cjgzrq" type="12" table="tb_hzxx" />
|
|
<f name="dzyjdz" type="12" table="tb_hzxx" />
|
|
<f name="lxdh_lbdm" type="12" table="tb_hzxx" />
|
|
<f name="lxdh_lb" type="12" table="tb_hzxx" />
|
|
<f name="nls" type="4" table="tb_hzxx" />
|
|
<f name="nly" type="4" table="tb_hzxx" />
|
|
<f name="mj" type="12" table="tb_hzxx" />
|
|
<f name="xgbz" type="4" table="tb_hzxx" />
|
|
<f name="tbrq" type="93" table="tb_hzxx" />
|
|
<f name="crt_tm_zdsc" type="93" table="tb_hzxx" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<!-- 4.3.1.1挂号明细表 -->
|
|
<dao id="sdgghmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,ghjlid,jzlsh,grbslx,grbsh,gthbz,stfbh,gthsj,ghlb,sfjz,jzxz,ghtjbm,bxlx,ksbm,ksmc,lcyxlxdm,ghysbh,ghysxm,txbz,wdbz,ghzfy,xgbz,crt_tm_zdsc from tb_mz_ghmxb WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="tb_mz_ghmxb" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>ghjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,ghjlid,jzlsh,grbslx,grbsh,gthbz,stfbh,gthsj,ghlb,sfjz,jzxz,ghtjbm,bxlx,ksbm,ksmc,lcyxlxdm,ghysbh,ghysxm,txbz,wdbz,ghzfy,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ghjlid" type="12" table="tb_mz_ghmxb" />
|
|
<f name="jzlsh" type="12" table="tb_mz_ghmxb" />
|
|
<f name="grbslx" type="12" table="tb_mz_ghmxb" />
|
|
<f name="grbsh" type="12" table="tb_mz_ghmxb" />
|
|
<f name="gthbz" type="12" table="tb_mz_ghmxb" />
|
|
<f name="stfbh" type="12" table="tb_mz_ghmxb" />
|
|
<f name="gthsj" type="93" table="tb_mz_ghmxb" />
|
|
<f name="ghlb" type="12" table="tb_mz_ghmxb" />
|
|
<f name="sfjz" type="12" table="tb_mz_ghmxb" />
|
|
<f name="jzxz" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ghtjbm" type="12" table="tb_mz_ghmxb" />
|
|
<f name="bxlx" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ksbm" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ksmc" type="12" table="tb_mz_ghmxb" />
|
|
<f name="lcyxlxdm" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ghysbh" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ghysxm" type="12" table="tb_mz_ghmxb" />
|
|
<f name="txbz" type="12" table="tb_mz_ghmxb" />
|
|
<f name="wdbz" type="12" table="tb_mz_ghmxb" />
|
|
<f name="ghzfy" type="12" table="tb_mz_ghmxb" />
|
|
<f name="xgbz" type="4" table="tb_mz_ghmxb" />
|
|
<f name="crt_tm_zdsc" type="93" table="tb_mz_ghmxb" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<!--4.3.1.2门急诊就诊明细表-->
|
|
<dao id="sjgmjzjzmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,jzmxid,grbslx,grbsh,jzlsh,sffz,lcyxlxdm,mjzh,hzxm,hzsx,jzlx,sfjz,jzxz,jzksbm,jzksmc,jzksrq,jzsj,wcjzsj,zzysbh,zzysxm,mzzddm,mzzdmc,zxdm,zxmc,zfmc,bmlx,jzzdsm,zs,mzzzmc,mzzzzddm,lggc,zzms,fbrqsj,ssy,szy,tw,zzcxsj,xgbz,mj,crt_tm_zdsc from TB_MZ_JZMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_JZMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>jzmxid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,jzmxid,grbslx,grbsh,jzlsh,sffz,lcyxlxdm,mjzh,hzxm,hzsx,jzlx,sfjz,jzxz,jzksbm,jzksmc,jzksrq,jzsj,wcjzsj,zzysbh,zzysxm,mzzddm,mzzdmc,zxdm,zxmc,zfmc,bmlx,jzzdsm,zs,mzzzmc,mzzzzddm,lggc,zzms,fbrqsj,ssy,szy,tw,zzcxsj,xgbz,mj,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzmxid" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="sffz" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="lcyxlxdm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="mjzh" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="hzxm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="hzsx" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzlx" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="sfjz" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzxz" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzksbm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzksmc" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzksrq" type="93" table="TB_MZ_JZMXB" />
|
|
<f name="jzsj" type="93" table="TB_MZ_JZMXB" />
|
|
<f name="wcjzsj" type="93" table="TB_MZ_JZMXB" />
|
|
<f name="zzysbh" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zzysxm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="mzzddm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="mzzdmc" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zxdm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zxmc" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zfmc" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="bmlx" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="jzzdsm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zs" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="mzzzmc" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="mzzzzddm" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="lggc" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zzms" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="fbrqsj" type="93" table="TB_MZ_JZMXB" />
|
|
<f name="ssy" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="szy" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="tw" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="zzcxsj" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_JZMXB" />
|
|
<f name="mj" type="12" table="TB_MZ_JZMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_JZMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!--4.3.1.2门急诊就诊明细表(HIS)-->
|
|
<dao id="sjgmjzjzmxbdao_his" type="1">
|
|
<sql><![CDATA[
|
|
SELECT
|
|
B.JZNO,B.PKEY AS JZPKEY,B.HZPKEY, nvl(B.JZZB,'C') AS JZZB,B.MZNO,A.XM,B.ISJZ,B.JJKS,B.JJRQ,B.KZRQ,B.JJYS,C.JBBM,
|
|
C.JBMC,B.ISLG,C.PKEY ZDPKEY,C.SFZZD,C.JZZT
|
|
FROM
|
|
HIS_HZINFO A
|
|
LEFT JOIN HIS_JZ_BASEINFO B ON A.JGID = B.JGID
|
|
AND A.PKEY = B.HZPKEY
|
|
LEFT JOIN HIS_JZ_MZZD C
|
|
ON C.JGID = B.JGID
|
|
AND C.JZPKEY = B.PKEY
|
|
AND C.HZPKEY = B.HZPKEY
|
|
AND C.SFZZD = '1'
|
|
WHERE
|
|
A.JGID = ?
|
|
AND JJRQ >= ?
|
|
AND JJRQ <= ?
|
|
AND B.JZLX = 'M'
|
|
AND B.JZZT != 'T'
|
|
AND B.JZZT != 'F'
|
|
]]></sql>
|
|
<fields>
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12" table="HIS_HZINFO" />
|
|
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJRQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="KZRQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JBBM" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JBMC" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZDPKEY" type="12" />
|
|
<f name="SFZZD" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="gzzMzQtjbzdDao" type="1">
|
|
<sql>select
|
|
PKEY,HZPKEY,JZPKEY,CARDPKEY,JBLX,JBBM,JBMC,JBZS,JZZT,FBSJ,JZSJ,ZYZX,SFZZD,XH,CJR,CJRQ,JGID,YBJBBM,YBJBMC,ZDYS,ZDLX,ZDJB,ZDKS,YBZHBM,YBZHMC,YBJBLX
|
|
from HIS_JZ_MZZD where JGID=? AND (SFZZD='0' OR SFZZD IS NULL) order by
|
|
sfzzd desc,xh</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_MZZD" insert="true" update="true"
|
|
delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JBLX" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JBBM" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JBMC" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JBZS" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="JZZT" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="FBSJ" type="93" table="HIS_JZ_MZZD" />
|
|
<f name="JZSJ" type="93" table="HIS_JZ_MZZD" />
|
|
<f name="ZYZX" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="SFZZD" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="XH" type="8" table="HIS_JZ_MZZD" />
|
|
<f name="CJR" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_MZZD" />
|
|
<f name="JGID" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="YBJBBM" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="YBJBMC" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="ZDYS" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="ZDLX" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="ZDJB" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="ZDKS" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="YBZHBM" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="YBZHMC" type="12" table="HIS_JZ_MZZD" />
|
|
<f name="YBJBLX" type="12" table="HIS_JZ_MZZD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.3.1.3门急诊处方主表 -->
|
|
<dao id="sjgmjzCfzbdao" type="1">
|
|
<sql>
|
|
select yljgdm,cfzid,jzlsh,grbslx,grbsh,mjzh,cfdl,cflx,cfhm,kfksdm,kfksmc,kfysbh,kfysxm,kfsj,hzbsh,hzxm,hzxbdm,hzxb,hznl,hztz,fylx,xyzddm,xyzdmc,zybmdm,zybmmc,zyzhdm,zyzhmc,cfje,cfyxts,cfbzxx,zzzf,wdbgjgmc,wdbgjgdz,cfshyjsbh,cfshyjsqm,cftpyjsbh,cftpyjsqm,cffyyjsbh,cffyyjsqm,cfhdyjsbh,cfhdyjsqm,zyypjsj,zyjzpc,zyypjzf,zyypff,zyyyff,zyypcf,bz,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc
|
|
from TB_MZ_CFZB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_CFZB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>cfzid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,cfzid,jzlsh,grbslx,grbsh,mjzh,cfdl,cflx,cfhm,kfksdm,kfksmc,kfysbh,kfysxm,kfsj,hzbsh,hzxm,hzxbdm,hzxb,hznl,hztz,fylx,xyzddm,xyzdmc,zybmdm,zybmmc,zyzhdm,zyzhmc,cfje,cfyxts,cfbzxx,zzzf,wdbgjgmc,wdbgjgdz,cfshyjsbh,cfshyjsqm,cftpyjsbh,cftpyjsqm,cffyyjsbh,cffyyjsqm,cfhdyjsbh,cfhdyjsqm,zyypjsj,zyjzpc,zyypjzf,zyypff,zyyyff,zyypcf,bz,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfzid" type="12" table="TB_MZ_CFZB" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_CFZB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="mjzh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfdl" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cflx" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfhm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="kfksdm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="kfksmc" type="12" table="TB_MZ_CFZB" />
|
|
<f name="kfysbh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="kfysxm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="kfsj" type="93" table="TB_MZ_CFZB" />
|
|
<f name="hzbsh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="hzxm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="hzxbdm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="hzxb" type="12" table="TB_MZ_CFZB" />
|
|
<f name="hznl" type="12" table="TB_MZ_CFZB" />
|
|
<f name="hztz" type="12" table="TB_MZ_CFZB" />
|
|
<f name="fylx" type="12" table="TB_MZ_CFZB" />
|
|
<f name="xyzddm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="xyzdmc" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zybmdm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zybmmc" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyzhdm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyzhmc" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfje" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfyxts" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfbzxx" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zzzf" type="12" table="TB_MZ_CFZB" />
|
|
<f name="wdbgjgmc" type="12" table="TB_MZ_CFZB" />
|
|
<f name="wdbgjgdz" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfshyjsbh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfshyjsqm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cftpyjsbh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cftpyjsqm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cffyyjsbh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cffyyjsqm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfhdyjsbh" type="12" table="TB_MZ_CFZB" />
|
|
<f name="cfhdyjsqm" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyypjsj" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyjzpc" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyypjzf" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyypff" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyyyff" type="12" table="TB_MZ_CFZB" />
|
|
<f name="zyypcf" type="12" table="TB_MZ_CFZB" />
|
|
<f name="bz" type="12" table="TB_MZ_CFZB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_CFZB" />
|
|
<f name="posid" type="12" table="TB_MZ_CFZB" />
|
|
<f name="jlgxsj" type="93" table="TB_MZ_CFZB" />
|
|
<f name="llbz" type="4" table="TB_MZ_CFZB" />
|
|
<f name="jybz" type="12" table="TB_MZ_CFZB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_CFZB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="his_mzCfallDao" type="1" memo="三监管门诊处方ALL">
|
|
<sql><![CDATA[
|
|
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,MAX(a.YZLB),MAX(a.YZZL),max(YZXZSJ) YZXZSJ FROM HIS_YZ_MXB a
|
|
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
|
|
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
|
|
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
|
|
WHERE a.JGID = ? AND (a.YZLX = '0' OR a.YZLX = '1' OR a.YZLX = '5') and a.YZSHZT='1' AND a.YZSFZT = '1' AND a.YZCXBZ = '0'
|
|
AND a.CJRQ >= ? AND a.CJRQ <= ? and b.JZLX = 'M' group by a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL
|
|
]]></sql>
|
|
<fields>
|
|
<f name="CFH" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="JZH" type="12"/>
|
|
<f name="YZXZKS" type="12"/>
|
|
<f name="YZXZYS" type="12"/>
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="NL" type="12" />
|
|
<f name="yzje" type="12" />
|
|
<f name="YZXZSJ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="his_mzYpmxbDao" type="1" memo="门诊处方药品明细">
|
|
<sql><![CDATA[
|
|
SELECT a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,e.GG,a.YZPC,a.YZJLDW,a.YPYZJBDW,a.YZJL,a.YZSL,a.YZSFZT,a.YZCXBZ,NVL(f.VALUE1,99) JX,max(YZXZSJ) YZXZSJ FROM HIS_YZ_MXB a
|
|
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
|
|
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
|
|
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
|
|
left join HIS_YPXX e on e.BM = a.YZXPKEY
|
|
left join MAIN_ZDB f on f.ZDZB_BH = '100159' and e.JX = f.BH
|
|
WHERE a.JGID = ? AND (a.YZLX = '0' OR a.YZLX = '1') and a.YZLB IN ('01','02','03') and a.YZSHZT='1' AND a.YZSFZT = '1' AND a.YZCXBZ = '0' AND a.CJRQ >=?
|
|
AND a.CJRQ <= ? and b.JZLX = 'M' group by a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,e.GG,a.YZPC,a.YZJLDW,a.YPYZJBDW,a.YZJL,a.YZSL,a.YZSFZT,a.YZCXBZ,f.VALUE1
|
|
]]></sql>
|
|
<fields>
|
|
<f name="PKEY" type="12"/>
|
|
<f name="CFH" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="JZH" type="12"/>
|
|
<f name="YZXZKS" type="12"/>
|
|
<f name="YZXZYS" type="12"/>
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="NL" type="12"/>
|
|
<f name="yzje" type="12"/>
|
|
<f name="YZLB" type="12"/>
|
|
<f name="YZZL" type="12"/>
|
|
<f name="YZTZH" type="12"/>
|
|
<f name="GG" type="12"/>
|
|
<f name="YZPC" type="12"/>
|
|
<f name="YZJLDW" type="12"/>
|
|
<f name="YPYZJBDW" type="12"/>
|
|
<f name="YZJL" type="12"/>
|
|
<f name="YZSL" type="12"/>
|
|
<f name="YZSFZT" type="12"/>
|
|
<f name="YZCXBZ" type="12"/>
|
|
<f name="JX" type="12"/>
|
|
<f name="YZXZSJ" type="93"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="his_mzQtmxbDao" type="1" memo="门诊其他处方明细">
|
|
<sql><![CDATA[
|
|
SELECT a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC,a.CJRQ FROM HIS_YZ_MXB a
|
|
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
|
|
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
|
|
WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ? and a.YZLX = '5' and a.YZSHZT='1' AND a.YZSFZT = '1' AND a.YZCXBZ = '0' and b.JZLX = 'M' group by a.PKEY,a.CFH,a.JZPKEY,a.HZPKEY,
|
|
a.JZH,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,a.yzje,a.YZLB,a.YZZL,a.YZTZH,a.YZSFZT,a.YZCXBZ,a.YZXPKEY,a.YZMC,a.CJRQ
|
|
]]></sql>
|
|
<fields>
|
|
<f name="PKEY" type="12"/>
|
|
<f name="CFH" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="JZH" type="93"/>
|
|
<f name="YZXZKS" type="12"/>
|
|
<f name="YZXZYS" type="12"/>
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="NL" type="12"/>
|
|
<f name="yzje" type="12"/>
|
|
<f name="YZLB" type="12"/>
|
|
<f name="YZZL" type="12"/>
|
|
<f name="YZTZH" type="12"/>
|
|
<f name="YZSFZT" type="12"/>
|
|
<f name="YZCXBZ" type="12"/>
|
|
<f name="YZXPKEY" type="12"/>
|
|
<f name="YZMC" type="12"/>
|
|
<f name="CJRQ" type="93"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.3.1.4门急诊药品处方明细表 -->
|
|
<dao id="sjgmjzypcdmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,cfyzxh,cfyzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,jxdm,ypgg,yytjdm,sypcdm,yypc,sycjl,syjldw,syzjl,zyyyff,fysl,fysldw,yyts,ywlx,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,bz,mj,xgbz,crt_tm_zdsc from TB_MZ_YPCFMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_YPCFMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>cfmxid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,cfyzxh,cfyzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,jxdm,ypgg,yytjdm,sypcdm,yypc,sycjl,syjldw,syzjl,zyyyff,fysl,fysldw,yyts,ywlx,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,bz,mj,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="cfmxid" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="cfzid" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="cfyzxh" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="cfyzzh" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="zlxmlbbm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="xmbm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="xmmc" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="xmflbm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="xmflmc" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="jxdm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="ypgg" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="yytjdm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="sypcdm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="yypc" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="sycjl" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="syjldw" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="syzjl" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="zyyyff" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="fysl" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="fysldw" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="yyts" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="ywlx" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="cfkssj" type="93" table="TB_MZ_YPCFMXB" />
|
|
<f name="cftzsj" type="93" table="TB_MZ_YPCFMXB" />
|
|
<f name="zxksbm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="zxksmc" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="zxrbh" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="zxrxm" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="cfzxsj" type="93" table="TB_MZ_YPCFMXB" />
|
|
<f name="bz" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="mj" type="12" table="TB_MZ_YPCFMXB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_YPCFMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_YPCFMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!-- 4.3.1.5门急诊其他处方明细表 -->
|
|
<dao id="sjgmjzqtcfmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,yzxh,yzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,zxpl,cjfx,cjbb,jcbw,mzfs,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,wsfwyq,qtyxcz,zzbz,jkwtpg,jzjgmc,zwt,czjh,kfcszd,bz,mj,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc from TB_MZ_QTCFMX WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_QTCFMX" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>cfmxid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,cfmxid,jzlsh,grbslx,grbsh,cfzid,yzxh,yzzh,zlxmlbbm,xmbm,xmmc,xmflbm,xmflmc,zxpl,cjfx,cjbb,jcbw,mzfs,cfkssj,cftzsj,zxksbm,zxksmc,zxrbh,zxrxm,cfzxsj,wsfwyq,qtyxcz,zzbz,jkwtpg,jzjgmc,zwt,czjh,kfcszd,bz,mj,xgbz,posid,jlgxsj,llbz,jybz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="cfmxid" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="grbslx" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="grbsh" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="cfzid" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="yzxh" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="yzzh" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zlxmlbbm" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="xmbm" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="xmmc" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="xmflbm" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="xmflmc" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zxpl" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="cjfx" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="cjbb" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="jcbw" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="mzfs" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="cfkssj" type="93" table="TB_MZ_QTCFMX" />
|
|
<f name="cftzsj" type="93" table="TB_MZ_QTCFMX" />
|
|
<f name="zxksbm" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zxksmc" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zxrbh" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zxrxm" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="cfzxsj" type="93" table="TB_MZ_QTCFMX" />
|
|
<f name="wsfwyq" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="qtyxcz" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zzbz" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="jkwtpg" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="jzjgmc" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="zwt" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="czjh" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="kfcszd" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="bz" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="mj" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="xgbz" type="4" table="TB_MZ_QTCFMX" />
|
|
<f name="posid" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="jlgxsj" type="93" table="TB_MZ_QTCFMX" />
|
|
<f name="llbz" type="4" table="TB_MZ_QTCFMX" />
|
|
<f name="jybz" type="12" table="TB_MZ_QTCFMX" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_QTCFMX" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.3.1.6门急诊费用明细表 -->
|
|
<dao id="sjgmjzfymxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,sfmxid,grbslx,grbsh,jzlsh,btfmxid,tfbz,sfcjbm,yzmxid,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,mxxmbm,mxxmmc,mxxmdw,mxxmdj,xmflbm,xmflmc,mxxmsl,mxxmysje,mxxmssje,crt_tm_zdsc,xgbz from TB_MZ_SFMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_SFMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>sfmxid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,sfmxid,grbslx,grbsh,jzlsh,btfmxid,tfbz,sfcjbm,yzmxid,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,mxxmbm,mxxmmc,mxxmdw,mxxmdj,xmflbm,xmflmc,mxxmsl,mxxmysje,mxxmssje,crt_tm_zdsc,xgbz
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="sfmxid" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="btfmxid" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="tfbz" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="sfcjbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="yzmxid" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="sfxmlbbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="fysrglbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="fysrglmc" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="fyfssj" type="93" table="TB_MZ_SFMXB" />
|
|
<f name="syjsid" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="sfjssj" type="93" table="TB_MZ_SFMXB" />
|
|
<f name="kdksbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="kdksmc" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="kdysbh" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="kdysxm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="zxksbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="zxksmc" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="zxrybh" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="zxryxm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmmc" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmdw" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmdj" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="xmflbm" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="xmflmc" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmsl" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmysje" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="mxxmssje" type="12" table="TB_MZ_SFMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_SFMXB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_SFMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="his_sjgmjzfymxbdao" type="1" memo="门诊收费明细dao(三监管用)">
|
|
<sql><![CDATA[
|
|
SELECT b.FYDL,b.FYZL,e.ZDJFLX,e.JSZT,b.PKEY SFMXPKEY,a.JZPKEY,a.HZPKEY,e.ISHC,e.HCDJPKEY,a.YZLB,a.YZZL,b.JFRQ,b.ZDZBPKEY,e.JSSJ,a.YZXZKS,a.YZXZYS,a.YZMC,NVL(a.YZDW,'006') YZDW,b.SFXDJ,b.SFXSL,b.SFXZFY,b.SFXSJZFY
|
|
FROM HIS_YZ_MXB a LEFT JOIN HIS_SFZD_SFXMXB b ON a.JGID = b.JGID AND a.PKEY = b.YZMX
|
|
LEFT JOIN HIS_JZ_BASEINFO c on c.JGID = a.JGID AND a.HZPKEY = c.HZPKEY AND a.JZPKEY = c.PKEY
|
|
left join HIS_HZINFO d on d.JGID = a.JGID AND d.PKEY = a.HZPKEY
|
|
LEFT JOIN HIS_SFZD_ZB e on e.JGID = b.JGID AND e.PKEY = b.ZDZBPKEY
|
|
WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ?
|
|
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'M' and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL
|
|
]]></sql>
|
|
<fields>
|
|
|
|
<f name="FYDL" type="12" />
|
|
<f name="FYZL" type="12" />
|
|
<f name="ZDJFLX" type="12" />
|
|
<f name="JSZT" type="12" />
|
|
<f name="SFMXPKEY" type="12" />
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="ISHC" type="12" />
|
|
<f name="HCDJPKEY" type="12" />
|
|
<f name="YZLB" type="12" />
|
|
<f name="YZZL" type="12" />
|
|
<f name="JFRQ" type="93" />
|
|
<f name="ZDZBPKEY" type="12" />
|
|
<f name="JSSJ" type="93" />
|
|
<f name="YZXZKS" type="12" />
|
|
<f name="YZXZYS" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
<f name="YZDW" type="12" />
|
|
<f name="SFXDJ" type="12"/>
|
|
<f name="SFXSL" type="12" />
|
|
<f name="SFXZFY" type="12" />
|
|
<f name="SFXSJZFY" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.3.1.7门急诊结算明细表 -->
|
|
<dao id="sjgmjzjsmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,jsjlid,grbslx,grbsh,jzlsh,jsfph,sfcjbm,jlsfzt,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_MZ_JSMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_JSMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>jsjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,jsjlid,grbslx,grbsh,jzlsh,jsfph,sfcjbm,jlsfzt,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="jsjlid" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="jsfph" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="sfcjbm" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="jlsfzt" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="fyjssj" type="93" table="TB_MZ_JSMXB" />
|
|
<f name="hzlysx" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="ylfffsdm" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="fyjszje" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="grcdfyje" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="jsrybh" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="jsryxm" type="12" table="TB_MZ_JSMXB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_JSMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_JSMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="his_sjgmjzJsmxbdao" type="1" memo="门诊结算明细dao(三监管用)">
|
|
<sql><![CDATA[
|
|
SELECT e.PKEY,a.JZPKEY,a.HZPKEY,e.ZDJFLX,e.ISHC,e.HCDJPKEY,JSSJ,e.JSZT,e.JFZJE,f.SFRY,f.FPHM
|
|
FROM HIS_YZ_MXB a LEFT JOIN HIS_SFZD_SFXMXB b ON a.JGID = b.JGID AND a.PKEY = b.YZMX
|
|
LEFT JOIN HIS_JZ_BASEINFO c on c.JGID = a.JGID AND a.HZPKEY = c.HZPKEY AND a.JZPKEY = c.PKEY
|
|
left join HIS_HZINFO d on d.JGID = a.JGID AND d.PKEY = a.HZPKEY
|
|
LEFT JOIN HIS_SFZD_ZB e on e.JGID = b.JGID AND e.PKEY = b.ZDZBPKEY
|
|
left join HIS_MZJS_MZFPZB f on f.JGID = e.JGID AND f.GLZDBPKEY = e.PKEY
|
|
left join HIS_MZJS_MZFPZFFSB g on g.JGID = f.JGID AND g.MZFPPKEY = f.PKEY
|
|
WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ?
|
|
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'M' and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL group by e.PKEY,a.JZPKEY,a.HZPKEY,e.ZDJFLX,e.ISHC,e.HCDJPKEY,JSSJ,e.JSZT,e.JFZJE,f.SFRY
|
|
,f.FPHM
|
|
]]></sql>
|
|
<fields>
|
|
<f name="PKEY" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="ZDJFLX" type="12"/>
|
|
<f name="ISHC" type="12"/>
|
|
<f name="HCDJPKEY" type="12"/>
|
|
<f name="JSSJ" type="93"/>
|
|
<f name="JSZT" type="12"/>
|
|
<f name="JFZJE" type="12"/>
|
|
<f name="SFRY" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.3.1.8门急诊结算支付方式明细表 -->
|
|
<dao id="sjgmjzjszffsmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,zffsjlid,grbslx,grbsh,jzlsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_MZ_JSZFFSMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_JSZFFSMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>zffsjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,zffsjlid,grbslx,grbsh,jzlsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="zffsjlid" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="jzlsh" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="jsjlid" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="jlsfzt" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="zffsdm" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="zffsje" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="fyjssj" type="93" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="jsrybh" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="jsryxm" type="12" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_JSZFFSMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_JSZFFSMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="his_sjgmjzjszffsmxbdao" type="1" memo="his_门急诊结算支付方式明细表(三监管用)">
|
|
<sql><![CDATA[
|
|
select a.HZPKEY,a.JZPKEY,a.PJLX,b.ZFLX,nvl(b.ZFJE,'0')ZFJE,a.GLZDBPKEY,CHPKEY,SFZT,a.SFRQ,b.ZFLX,a.SFRY,b.PKEY ZFFSID from HIS_MZJS_MZFPZB a
|
|
left join HIS_MZJS_MZFPZFFSB b on b.JGID = a.JGID AND b.MZFPPKEY = a.PKEY
|
|
where a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ? and (a.SFZT = '1' or a.SFZT = '3') and (a.PJLX = 'MG' OR a.PJLX = 'MS') and b.PKEY is not null
|
|
]]></sql>
|
|
<fields>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="PJLX" type="12"/>
|
|
<f name="ZFLX" type="12"/>
|
|
<f name="ZFJE" type="12"/>
|
|
<f name="GLZDBPKEY" type="12"/>
|
|
<f name="CHPKEY" type="12"/>
|
|
<f name="SFZT" type="12"/>
|
|
<f name="SFRQ" type="93"/>
|
|
<f name="ZFLX" type="12"/>
|
|
<f name="SFRY" type="12" />
|
|
<f name="ZFFSID" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.3.1.9门急诊诊断明细表 -->
|
|
<dao id="sjgmjzzdmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc from TB_MZ_ZDMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_MZ_ZDMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>zdid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdid" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zyjzlsh" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="grbslx" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="grbsh" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="xgbz" type="4" table="TB_MZ_ZDMXB" />
|
|
<f name="zdrqsj" type="93" table="TB_MZ_ZDMXB" />
|
|
<f name="zdffbm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdbzbm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdlbbm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="bzqbdm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdybid" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdzcbm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdsx" type="4" table="TB_MZ_ZDMXB" />
|
|
<f name="zdbm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdmc" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="sfyz" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="cyqkbm" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="zdlx" type="12" table="TB_MZ_ZDMXB" />
|
|
<f name="jlsj_ywk" type="93" table="TB_MZ_ZDMXB" />
|
|
<f name="cxsj_ywk" type="93" table="TB_MZ_ZDMXB" />
|
|
<f name="bjsj_ywk" type="93" table="TB_MZ_ZDMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_MZ_ZDMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!-- 4.3.1.9 HIS_门急诊诊断明细表 -->
|
|
<dao id="his_sjgmjzzdmxbdao" type="1">
|
|
<sql><![CDATA[
|
|
SELECT a.PKEY JZPKEY,a.HZPKEY,a.JZZT,b.JBLX,b.JBBM,b.JBMC,b.JZZT NZQZ,b.CJRQ,b.SFZZD,b.PKEY ZDPKEY FROM HIS_JZ_BASEINFO a
|
|
LEFT JOIN HIS_JZ_MZZD b on a.JGID = b.JGID AND a.PKEY = b.JZPKEY AND a.HZPKEY = b.HZPKEY
|
|
where a.JGID = ? and a.JJRQ >= ? and a.JJRQ <= ? AND a.JZLX = 'M' AND a.JZZT = 'J' and b.PKEY IS NOT NULL
|
|
]]></sql>
|
|
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
|
|
<fields>
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="JBLX" type="12" />
|
|
<f name="JBBM" type="12" />
|
|
<f name="JBMC" type="12" />
|
|
<f name="NZQZ" type="12" />
|
|
<f name="CJRQ" type="93" />
|
|
<f name="SFZZD" type="12" />
|
|
<f name="ZDPKEY" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.1入院登记明细表 -->
|
|
<dao id="sjgrydjmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,ryjlid,grbslx,grbsh,sjjlzt,zyjzlsh,zyh,mzysbh,mzysxm,zyysbh,zyysxm,rybqdm,rytjbm,ryyybm,ryksbm,ryksmc,rysj,rydjybh,rydjyxm,lgbz,xgbz,crt_tm_zdsc from TB_ZY_RYDJMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_RYDJMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>ryjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,ryjlid,grbslx,grbsh,sjjlzt,zyjzlsh,zyh,mzysbh,mzysxm,zyysbh,zyysxm,rybqdm,rytjbm,ryyybm,ryksbm,ryksmc,rysj,rydjybh,rydjyxm,lgbz,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="ryjlid" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="sjjlzt" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="zyjzlsh" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="zyh" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="mzysbh" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="mzysxm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="zyysbh" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="zyysxm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="rybqdm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="rytjbm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="ryyybm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="ryksbm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="ryksmc" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="rysj" type="93" table="TB_ZY_RYDJMXB" />
|
|
<f name="rydjybh" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="rydjyxm" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="lgbz" type="12" table="TB_ZY_RYDJMXB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_RYDJMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_RYDJMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.4.1.1HIS_入院登记明细表 -->
|
|
<dao id="his_sjgrydjmxbdao" type="1">
|
|
<sql><![CDATA[
|
|
SELECT a.PKEY JZPKEY,a.HZPKEY,a.JJYS,a.RYBQ,a.RYTJ,a.RYZD,a.JJKS,a.ZYYYRQ,a.CJRQ,a.CJR,a.ZYZH,a.ISLG,b.CJR ZYZCJR,a.ZYNO FROM HIS_JZ_BASEINFO a
|
|
LEFT JOIN HIS_ZY_ZYZ b on a.JGID = b.JGID AND a.HZPKEY = b.HZPKEY AND a.ZYZH = b.ZYZH
|
|
where a.JGID =? and a.JJRQ >= ? and a.JJRQ <= ? AND a.JZLX = 'Z' AND (a.JZZT = 'Z' OR a.JZZT = 'C') AND a.MOTHERJZPKEY is null
|
|
]]></sql>
|
|
//yljgdm,ryjlid,grbslx,grbsh,sjjlzt,zyjzlsh,zyh,mzysbh,mzysxm,zyysbh,zyysxm,rybqdm,rytjbm,ryyybm,ryksbm,ryksmc,rysj,rydjybh,rydjyxm,lgbz,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="JJYS" type="12" />
|
|
<f name="RYBQ" type="12" />
|
|
<f name="RYTJ" type="12" />
|
|
<f name="RYZD" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="ZYYYRQ" type="12" />
|
|
<f name="CJRQ" type="93" />
|
|
<f name="CJR" type="12" />
|
|
<f name="ZYZH" type="12" />
|
|
<f name="ISLG" type="12" />
|
|
<f name="ZYZCJR" type="12" />
|
|
<f name="ZYNO" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.4.1.2住院医嘱主表 -->
|
|
<dao id="sjgzyyzzbdao" type="1">
|
|
<sql>
|
|
select yljgdm,yzzid,grbslx,grbsh,jzlsh,cfdl,cxbz,yzxq,djbh,hzxm,hzxb,hznl,hzks,hzbq,hzbsh,xdksbm,xdksmc,yzxdysbh,yzxdysxm,yzxdsj,qtyxcz,zzbz,jkwtpg,czjh,zyfa,kfcszd,bz,mj,xgbz,crt_tm_zdsc from TB_ZY_YZZB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_YZZB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>yzzid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,yzzid,grbslx,grbsh,jzlsh,cfdl,cxbz,yzxq,djbh,hzxm,hzxb,hznl,hzks,hzbq,hzbsh,xdksbm,xdksmc,yzxdysbh,yzxdysxm,yzxdsj,qtyxcz,zzbz,jkwtpg,czjh,zyfa,kfcszd,bz,mj,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_YZZB" />
|
|
<f name="yzzid" type="12" table="TB_ZY_YZZB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_YZZB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_YZZB" />
|
|
<f name="jzlsh" type="12" table="TB_ZY_YZZB" />
|
|
<f name="cfdl" type="12" table="TB_ZY_YZZB" />
|
|
<f name="cxbz" type="12" table="TB_ZY_YZZB" />
|
|
<f name="yzxq" type="12" table="TB_ZY_YZZB" />
|
|
<f name="djbh" type="12" table="TB_ZY_YZZB" />
|
|
<f name="hzxm" type="12" table="TB_ZY_YZZB" />
|
|
<f name="hzxb" type="12" table="TB_ZY_YZZB" />
|
|
<f name="hznl" type="12" table="TB_ZY_YZZB" />
|
|
<f name="hzks" type="12" table="TB_ZY_YZZB" />
|
|
<f name="hzbq" type="12" table="TB_ZY_YZZB" />
|
|
<f name="hzbsh" type="12" table="TB_ZY_YZZB" />
|
|
<f name="xdksbm" type="12" table="TB_ZY_YZZB" />
|
|
<f name="xdksmc" type="12" table="TB_ZY_YZZB" />
|
|
<f name="yzxdysbh" type="12" table="TB_ZY_YZZB" />
|
|
<f name="yzxdysxm" type="12" table="TB_ZY_YZZB" />
|
|
<f name="yzxdsj" type="93" table="TB_ZY_YZZB" />
|
|
<f name="qtyxcz" type="12" table="TB_ZY_YZZB" />
|
|
<f name="zzbz" type="12" table="TB_ZY_YZZB" />
|
|
<f name="jkwtpg" type="12" table="TB_ZY_YZZB" />
|
|
<f name="czjh" type="12" table="TB_ZY_YZZB" />
|
|
<f name="zyfa" type="12" table="TB_ZY_YZZB" />
|
|
<f name="kfcszd" type="12" table="TB_ZY_YZZB" />
|
|
<f name="bz" type="12" table="TB_ZY_YZZB" />
|
|
<f name="mj" type="12" table="TB_ZY_YZZB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_YZZB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_YZZB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="his_zyCfallDao" type="1" memo="三监管住院处方ALL">
|
|
<sql><![CDATA[
|
|
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,max(a.YZXZYS)YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,
|
|
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,max(a.CJRQ) CJRQ
|
|
FROM HIS_YZ_MXB a
|
|
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
|
|
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
|
|
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
|
|
where b.JGID = ? and b.CJRQ >= ? and b.CJRQ <= ?
|
|
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,c.XM,c.XB,c.NL,b.JJKS,b.WARD,a.YZZT,a.YZCL
|
|
,a.YZSHRQ,b.ZYNO
|
|
]]></sql>
|
|
<fields>
|
|
<f name="CFH" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="YZXZKS" type="12"/>
|
|
<f name="YZXZYS" type="12"/>
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="NL" type="12" />
|
|
<f name="yzje" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="WARD" type="12" />
|
|
<f name="YZZT" type="12" />
|
|
<f name="YZCL" type="12" />
|
|
<f name="YZSHRQ" type="93" />
|
|
<f name="ZYNO" type="12" />
|
|
<f name="CJRQ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.3住院药品医嘱明细表 -->
|
|
<dao id="sjgzyyzmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,zlxmlbbm,ypgg,yzyf,yzpd,mcsyjl,mcsyjldw,mcsl,mcdw,fysl,fysldw,yyts,sfpb,zyjzf,bz,mj,xgbz,crt_tm_zdsc from TB_ZY_YPYZMX WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_YPYZMX" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>yzid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,zlxmlbbm,ypgg,yzyf,yzpd,mcsyjl,mcsyjldw,mcsl,mcdw,fysl,fysldw,yyts,sfpb,zyjzf,bz,mj,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzid" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="grbslx" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="grbsh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="jzlsh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzzid" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="cxbz" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzkssj" type="93" table="TB_ZY_YPYZMX" />
|
|
<f name="yzjdhsbh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzjdhsxm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzjdsj" type="93" table="TB_ZY_YPYZMX" />
|
|
<f name="tzysbh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="tzysxm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="ystzsj" type="93" table="TB_ZY_YPYZMX" />
|
|
<f name="qrtzhsbh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="qrtzhsxm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="hsqrtzsj" type="93" table="TB_ZY_YPYZMX" />
|
|
<f name="zxksbm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="zxksmc" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="zxrbh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="zxrxm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzzxsj" type="93" table="TB_ZY_YPYZMX" />
|
|
<f name="yzzzsj" type="93" table="TB_ZY_YPYZMX" />
|
|
<f name="yzsm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzxh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzzh" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzmxbm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzmxmc" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzxmfldm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzxmflmc" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="zlxmlbbm" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="ypgg" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzyf" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yzpd" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="mcsyjl" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="mcsyjldw" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="mcsl" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="mcdw" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="fysl" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="fysldw" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="yyts" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="sfpb" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="zyjzf" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="bz" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="mj" type="12" table="TB_ZY_YPYZMX" />
|
|
<f name="xgbz" type="4" table="TB_ZY_YPYZMX" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_YPYZMX" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.3 his_住院药品医嘱明细表 -->
|
|
<dao id="his_zyYpmxbDao" type="1" memo="住院处方药品明细">
|
|
<sql><![CDATA[
|
|
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,
|
|
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY YZMXPKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
|
|
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,max(a.CJRQ) CJRQ,a.YZENDJDHS,a.YZENDJDSJ
|
|
FROM HIS_YZ_MXB a
|
|
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
|
|
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
|
|
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
|
|
where b.JGID = ? and a.CJRQ >= ? and a.CJRQ <= ?
|
|
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6 or a.YZZT = 40 or a.YZZT = 41 OR a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) AND a.YZLB in ('01','02','03')
|
|
group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
|
|
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
|
|
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.YZENDJDHS,a.YZENDJDSJ
|
|
]]></sql>
|
|
<fields>
|
|
<f name="CFH" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="YZXZKS" type="12"/>
|
|
<f name="YZXZYS" type="12"/>
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="NL" type="12"/>
|
|
<f name="yzje" type="12"/>
|
|
<f name="JJKS" type="12"/>
|
|
<f name="WARD" type="12"/>
|
|
<f name="YZZT" type="12"/>
|
|
<f name="YZCL" type="12"/>
|
|
<f name="YZSHRQ" type="93"/>
|
|
<f name="ZYNO" type="12"/>
|
|
<f name="YZMXPKEY" type="12"/>
|
|
<f name="YZBEGINJDHS" type="12"/>
|
|
<f name="YZBEGINJDSJ" type="93"/>
|
|
<f name="YZTZYS" type="12"/>
|
|
<f name="YZTZSJ" type="93"/>
|
|
<f name="YZTZSXYS" type="12"/>
|
|
<f name="YZZXSJ" type="93"/>
|
|
<f name="YZFJSM" type="12"/>
|
|
<f name="YZXH" type="12"/>
|
|
<f name="YZTZH" type="12"/>
|
|
<f name="YZMC" type="12"/>
|
|
<f name="YZLB" type="12"/>
|
|
<f name="YZZL" type="12"/>
|
|
<f name="YZGG" type="12"/>
|
|
<f name="YZYF" type="12"/>
|
|
<f name="YZPC" type="12"/>
|
|
<f name="YZJLDW" type="12"/>
|
|
<f name="YPYZJBDW" type="12"/>
|
|
<f name="YZSL" type="12"/>
|
|
<f name="YZJL" type="12"/>
|
|
<f name="YZTS" type="12"/>
|
|
<f name="CJRQ" type="93"/>
|
|
<f name="YZENDJDHS" type="12"/>
|
|
<f name="YZENDJDSJ" type="93"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.4住院其他医嘱明细表 -->
|
|
<dao id="zyQtmxbDao" type="1">
|
|
<sql>
|
|
select yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,
|
|
zlxmlbbm,zxpl,cjfx,cjbb,jcbw,mzfs,bz,mj,xgbz,crt_tm_zdsc from TB_ZY_QTYZMX WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_QTYZMX" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>yzid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,yzid,grbslx,grbsh,jzlsh,yzzid,cxbz,yzkssj,yzjdhsbh,yzjdhsxm,yzjdsj,tzysbh,tzysxm,ystzsj,qrtzhsbh,qrtzhsxm,hsqrtzsj,zxksbm,zxksmc,zxrbh,zxrxm,yzzxsj,yzzzsj,yzsm,yzxh,yzzh,yzmxbm,yzmxmc,yzxmfldm,yzxmflmc,zlxmlbbm,zxpl,cjfx,cjbb,jcbw,mzfs,bz,mj,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzid" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="grbslx" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="grbsh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="jzlsh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzzid" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="cxbz" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzkssj" type="93" table="TB_ZY_QTYZMX" />
|
|
<f name="yzjdhsbh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzjdhsxm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzjdsj" type="93" table="TB_ZY_QTYZMX" />
|
|
<f name="tzysbh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="tzysxm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="ystzsj" type="93" table="TB_ZY_QTYZMX" />
|
|
<f name="qrtzhsbh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="qrtzhsxm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="hsqrtzsj" type="93" table="TB_ZY_QTYZMX" />
|
|
<f name="zxksbm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="zxksmc" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="zxrbh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="zxrxm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzzxsj" type="93" table="TB_ZY_QTYZMX" />
|
|
<f name="yzzzsj" type="93" table="TB_ZY_QTYZMX" />
|
|
<f name="yzsm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzxh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzzh" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzmxbm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzmxmc" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzxmfldm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="yzxmflmc" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="zlxmlbbm" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="zxpl" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="cjfx" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="cjbb" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="jcbw" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="mzfs" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="bz" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="mj" type="12" table="TB_ZY_QTYZMX" />
|
|
<f name="xgbz" type="4" table="TB_ZY_QTYZMX" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_QTYZMX" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.3 his_住院其他医嘱明细表 -->
|
|
<dao id="his_zyQtmxbDao" type="1" memo="住院其他医嘱明细表">
|
|
<sql><![CDATA[
|
|
SELECT a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,sum((nvl(a.YZSL,0)-nvl(a.YZTFSL,0))*a.YZDJ) yzje,
|
|
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY YZMXPKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
|
|
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.CJRQ,a.YZENDJDHS,a.YZENDJDSJ
|
|
FROM HIS_YZ_MXB a
|
|
left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID
|
|
left join HIS_HZINFO c on c.JGID = b.JGID AND c.PKEY = b.HZPKEY
|
|
LEFT JOIN HIS_JZ_MZZD d on d.JGID = b.JGID AND d.JZPKEY = b.PKEY AND d.HZPKEY = b.HZPKEY
|
|
where b.JGID = ? and a.CJRQ >= ? and a.CJRQ <= ?
|
|
AND b.JZLX = 'Z' AND (b.JZZT = 'Z' OR b.JZZT = 'C') AND b.MOTHERJZPKEY is null AND (a.YZZT = 3 or a.YZZT = 6 or a.YZZT = 40 or a.YZZT = 41 OR a.YZZT = 6) and a.YZLX IN (0,3,5,6,7,9) AND a.YZLB NOT in ('01','02','03')
|
|
group by a.CFH,a.JZPKEY,a.HZPKEY,a.YZXZKS,a.YZXZYS,c.XM,c.XB,c.NL,
|
|
b.JJKS,b.WARD,a.YZZT,a.YZCL,a.YZSHRQ,b.ZYNO,a.PKEY,a.YZBEGINJDHS,a.YZBEGINJDSJ,a.YZTZYS,a.YZTZSJ,a.YZTZSXYS,a.YZZXSJ,a.YZFJSM,a.YZXH,a.YZTZH,a.YZMC,a.YZLB,a.YZZL,a.YZGG,a.YZYF,a.YZPC,
|
|
a.YZJLDW,a.YPYZJBDW,a.YZSL,a.YZJL,a.YZTS,a.CJRQ,a.YZENDJDHS,a.YZENDJDSJ
|
|
]]></sql>
|
|
<fields>
|
|
<f name="CFH" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="YZXZKS" type="12"/>
|
|
<f name="YZXZYS" type="12"/>
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="NL" type="12"/>
|
|
<f name="yzje" type="12"/>
|
|
<f name="JJKS" type="12"/>
|
|
<f name="WARD" type="12"/>
|
|
<f name="YZZT" type="12"/>
|
|
<f name="YZCL" type="12"/>
|
|
<f name="YZSHRQ" type="93"/>
|
|
<f name="ZYNO" type="12"/>
|
|
<f name="YZMXPKEY" type="12"/>
|
|
<f name="YZBEGINJDHS" type="12"/>
|
|
<f name="YZBEGINJDSJ" type="93"/>
|
|
<f name="YZTZYS" type="12"/>
|
|
<f name="YZTZSJ" type="93"/>
|
|
<f name="YZTZSXYS" type="12"/>
|
|
<f name="YZZXSJ" type="93"/>
|
|
<f name="YZFJSM" type="12"/>
|
|
<f name="YZXH" type="12"/>
|
|
<f name="YZTZH" type="12"/>
|
|
<f name="YZMC" type="12"/>
|
|
<f name="YZLB" type="12"/>
|
|
<f name="YZZL" type="12"/>
|
|
<f name="YZGG" type="12"/>
|
|
<f name="YZYF" type="12"/>
|
|
<f name="YZPC" type="12"/>
|
|
<f name="YZJLDW" type="12"/>
|
|
<f name="YPYZJBDW" type="12"/>
|
|
<f name="YZSL" type="12"/>
|
|
<f name="YZJL" type="12"/>
|
|
<f name="YZTS" type="12"/>
|
|
<f name="CJRQ" type="93"/>
|
|
<f name="YZENDJDHS" type="12"/>
|
|
<f name="YZENDJDSJ" type="93"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.5住院收费明细表 -->
|
|
<dao id="sjgzysfmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,sfmxid,jzlsh,grbslx,grbsh,tfbz,yzmxid,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,mxxmbm,mxxmmc,xmflbm,xmflmc,
|
|
mxxmdw,mxxmdj,mxxmsl,mxxmysje,mxxmssje,llbz,crt_tm_zdsc,xgbz from TB_ZY_SFMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_SFMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>sfmxid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,sfmxid,jzlsh,grbslx,grbsh,tfbz,yzmxid,syjsid,sfjssj,kdksbm,kdksmc,kdysbh,kdysxm,zxksbm,zxksmc,zxrybh,zxryxm,sfxmlbbm,fysrglbm,fysrglmc,fyfssj,mxxmbm,mxxmmc,xmflbm,xmflmc,mxxmdw,mxxmdj,mxxmsl,mxxmysje,mxxmssje,llbz,crt_tm_zdsc,xgbz
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="sfmxid" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="jzlsh" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="tfbz" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="yzmxid" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="syjsid" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="sfjssj" type="93" table="TB_ZY_SFMXB" />
|
|
<f name="kdksbm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="kdksmc" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="kdysbh" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="kdysxm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="zxksbm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="zxksmc" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="zxrybh" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="zxryxm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="sfxmlbbm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="fysrglbm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="fysrglmc" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="fyfssj" type="93" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmbm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmmc" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="xmflbm" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="xmflmc" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmdw" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmdj" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmsl" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmysje" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="mxxmssje" type="12" table="TB_ZY_SFMXB" />
|
|
<f name="llbz" type="4" table="TB_ZY_SFMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_SFMXB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_SFMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.4.1.6出院登记明细表 -->
|
|
<dao id="sjgcydjmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,cyjlid,grbslx,grbsh,sjjlzt,zyjzlsh,cyksbm,cyksmc,zyysbh,zyysxm,sflclj,lcljlx,cysj,lcyxlxdm,ryqk,sqshzdfhqk,mzcyzdfhqk,rycyzdfhqk,fsblzdfhqk,bljclczdfhqk,yygrqk,grbw,
|
|
yygrmc,qjcs,qjcgcs,lgbz,bxlx,wdbz,txbz,xgbz,crt_tm_zdsc from TB_ZY_CYDJMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_CYDJMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>cyjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,cyjlid,grbslx,grbsh,sjjlzt,zyjzlsh,cyksbm,cyksmc,zyysbh,zyysxm,sflclj,lcljlx,cysj,lcyxlxdm,ryqk,sqshzdfhqk,mzcyzdfhqk,rycyzdfhqk,fsblzdfhqk,bljclczdfhqk,yygrqk,grbw,yygrmc,qjcs,qjcgcs,lgbz,bxlx,wdbz,txbz,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="cyjlid" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="sjjlzt" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="zyjzlsh" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="cyksbm" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="cyksmc" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="zyysbh" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="zyysxm" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="sflclj" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="lcljlx" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="cysj" type="93" table="TB_ZY_CYDJMXB" />
|
|
<f name="lcyxlxdm" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="ryqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="sqshzdfhqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="mzcyzdfhqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="rycyzdfhqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="fsblzdfhqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="bljclczdfhqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="yygrqk" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="grbw" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="yygrmc" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="qjcs" type="4" table="TB_ZY_CYDJMXB" />
|
|
<f name="qjcgcs" type="4" table="TB_ZY_CYDJMXB" />
|
|
<f name="lgbz" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="bxlx" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="wdbz" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="txbz" type="12" table="TB_ZY_CYDJMXB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_CYDJMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_CYDJMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.6HIS_出院登记明细表 -->
|
|
<dao id="his_sjgzycydjmxbdao" type="1">
|
|
<sql>
|
|
<![CDATA[
|
|
SELECT a.PKEY JZPKEY,a.HZPKEY,a.JZZT,c.PKEY DJPKEY,c.DSCG_DEPT_CODG CYKS,c.ATDDR_NO ZYYS,b.SSLCLJ,c.ENDTIME CYSJ,a.RYQK,b.YYGRQK,a.ISLG,c.DJCXZT FROM HIS_JZ_BASEINFO a
|
|
LEFT JOIN HIS_YB_DJ c on c.JGID = a.JGID AND c.KLS = a.PKEY AND c.HZPKEY = a.HZPKEY
|
|
LEFT JOIN HIS_EMR_BASY b on b.JGID = a.JGID AND b.HZPKEY = a.HZPKEY AND b.JZPKEY = a.PKEY
|
|
where a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ? AND a.JZLX = 'Z' AND a.JZZT = 'C' AND a.MOTHERJZPKEY is null AND c.PKEY IS NOT NULL GROUP BY a.PKEY,a.HZPKEY,a.JZZT,c.PKEY,c.DSCG_DEPT_CODG,c.ATDDR_NO,b.SSLCLJ,c.ENDTIME,a.RYQK,b.YYGRQK,
|
|
a.ISLG,c.DJCXZT
|
|
]]> </sql>
|
|
//yljgdm,cyjlid,grbslx,grbsh,sjjlzt,zyjzlsh,cyksbm,cyksmc,zyysbh,zyysxm,sflclj,lcljlx,cysj,lcyxlxdm,ryqk,sqshzdfhqk,mzcyzdfhqk,rycyzdfhqk,fsblzdfhqk,bljclczdfhqk,yygrqk,grbw,yygrmc,qjcs,qjcgcs,lgbz,bxlx,wdbz,txbz,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="JZZDJPKEY" type="12" />
|
|
<f name="CYKS" type="12" />
|
|
<f name="ZYYS" type="12" />
|
|
<f name="SSLCLJ" type="12" />
|
|
<f name="CYSJ" type="12" />
|
|
<f name="YYGRQK" type="12" />
|
|
<f name="ISLG" type="12" />
|
|
<f name="DJCXZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.7住院结算明细表 -->
|
|
<dao id="sjgzyjsmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,jsjlid,zyjzlsh,grbslx,grbsh,jlsfzt,jsfph,sfcjbm,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_ZY_JSMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_JSMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>jsjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,jsjlid,zyjzlsh,grbslx,grbsh,jlsfzt,jsfph,sfcjbm,fyjssj,hzlysx,ylfffsdm,fyjszje,grcdfyje,jsrybh,jsryxm,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="jsjlid" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="zyjzlsh" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="jlsfzt" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="jsfph" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="sfcjbm" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="fyjssj" type="93" table="TB_ZY_JSMXB" />
|
|
<f name="hzlysx" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="ylfffsdm" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="fyjszje" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="grcdfyje" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="jsrybh" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="jsryxm" type="12" table="TB_ZY_JSMXB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_JSMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_JSMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="his_sjgzyjsmxbdao" type="1" memo="住院结算明细dao(三监管用)">
|
|
<sql><![CDATA[
|
|
SELECT e.PKEY,a.JZPKEY,a.HZPKEY,e.ZDJFLX,e.ISHC,e.HCDJPKEY,JSSJ,e.JSZT,e.JFZJE,f.SFRY,f.FPHM
|
|
FROM HIS_YZ_MXB a LEFT JOIN HIS_SFZD_SFXMXB b ON a.JGID = b.JGID AND a.PKEY = b.YZMX
|
|
LEFT JOIN HIS_JZ_BASEINFO c on c.JGID = a.JGID AND a.HZPKEY = c.HZPKEY AND a.JZPKEY = c.PKEY
|
|
left join HIS_HZINFO d on d.JGID = a.JGID AND d.PKEY = a.HZPKEY
|
|
LEFT JOIN HIS_SFZD_ZB e on e.JGID = b.JGID AND e.PKEY = b.ZDZBPKEY
|
|
left join HIS_MZJS_MZFPZB f on f.JGID = e.JGID AND f.GLZDBPKEY = e.PKEY
|
|
left join HIS_MZJS_MZFPZFFSB g on g.JGID = f.JGID AND g.MZFPPKEY = f.PKEY
|
|
WHERE a.JGID = ? AND a.CJRQ >=? AND a.CJRQ <= ?
|
|
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'Z' AND c.MOTHERJZPKEY is null and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL group by e.PKEY,a.JZPKEY,a.HZPKEY,e.ZDJFLX,e.ISHC,e.HCDJPKEY,JSSJ,e.JSZT,e.JFZJE,f.SFRY,f.FPHM
|
|
]]></sql>
|
|
<fields>
|
|
<f name="PKEY" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="ZDJFLX" type="12"/>
|
|
<f name="ISHC" type="12"/>
|
|
<f name="HCDJPKEY" type="12"/>
|
|
<f name="JSSJ" type="93"/>
|
|
<f name="JSZT" type="12"/>
|
|
<f name="JFZJE" type="12"/>
|
|
<f name="SFRY" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<!-- 4.4.1.8住院结算支付方式明细表 -->
|
|
<dao id="sjgzyjszffsmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,zffsjlid,zyjzlsh,grbslx,grbsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc from TB_ZY_JSZFFSMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_JSZFFSMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>zffsjlid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,zffsjlid,zyjzlsh,grbslx,grbsh,jsjlid,jlsfzt,zffsdm,zffsje,fyjssj,jsrybh,jsryxm,xgbz,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="zffsjlid" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="zyjzlsh" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="jsjlid" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="jlsfzt" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="zffsdm" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="zffsje" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="fyjssj" type="93" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="jsrybh" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="jsryxm" type="12" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_JSZFFSMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_JSZFFSMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="sjg_mzghJzGhbAllDao" type="1">
|
|
<sql><![CDATA[select PKEY,JZPKEY,HZPKEY,GHNUM,FPHM,SFDYFP,GHLB,GHKS,GHSJ,GHRY,GHPBPKEY,JZZS,JZSD,SFZZ,ZZKS,ZZYS,SFZDPKEY,YBZF,GRZF,GHYS,CJR,CJRQ,JGID,GHRQ,YYPKEY,SFYY,MZJSPKEY,SFJH,CFH,CARDPKEY,JZKH,GHSFMS,THSJ,THRY,GHZT,JZSJ,JZRY,FZSJ,FZRY,SFJZ,SFFZ,EMSSDJBPKEY,LOCKFLAG,SFBD,SFXZLHFF from HIS_JZ_GHB where JGID=? and CJRQ > ? and CJRQ <=?]]></sql>
|
|
<tables>
|
|
<table name="HIS_JZ_GHB" insert="true" update="true" delete="true">
|
|
<primary>GHZT</primary>
|
|
<primary>PKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHNUM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FPHM" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFDYFP" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHLB" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="GHRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHPBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZZS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZKS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="ZZYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFZDPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YBZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GRZF" type="8" table="HIS_JZ_GHB" />
|
|
<f name="GHYS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJR" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JGID" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHRQ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="YYPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFYY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="MZJSPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CFH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHSFMS" type="12" table="HIS_JZ_GHB" />
|
|
<f name="THSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="THRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="GHZT" type="12" table="HIS_JZ_GHB" />
|
|
<f name="JZSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="JZRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="FZSJ" type="93" table="HIS_JZ_GHB" />
|
|
<f name="FZRY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFJZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFFZ" type="12" table="HIS_JZ_GHB" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_GHB" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_GHB" />
|
|
<f name="SFBD" type="12" table="HIS_JZ_GHB" />
|
|
<f name="SFXZLHFF" type="12" table="HIS_JZ_GHB" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="his_sjgzyjszffsmxbdao" type="1" memo="his_住院结算支付方式明细表 (三监管用)">
|
|
<sql><![CDATA[
|
|
select a.HZPKEY,a.JZPKEY,a.PJLX,b.ZFLX,nvl(b.ZFJE,'0')ZFJE,a.GLZDBPKEY,CHPKEY,SFZT,a.SFRQ,b.ZFLX,a.SFRY,b.PKEY ZFFSID from HIS_MZJS_MZFPZB a
|
|
left join HIS_MZJS_MZFPZFFSB b on b.JGID = a.JGID AND b.MZFPPKEY = a.PKEY
|
|
where a.JGID = ? AND a.CJRQ >=? AND a.CJRQ <= ? and (a.SFZT = '1' or a.SFZT = '3') and a.PJLX = 'ZS' and b.PKEY is not null
|
|
]]></sql>
|
|
<fields>
|
|
<f name="HZPKEY" type="12"/>
|
|
<f name="JZPKEY" type="12"/>
|
|
<f name="PJLX" type="12"/>
|
|
<f name="ZFLX" type="12"/>
|
|
<f name="ZFJE" type="12"/>
|
|
<f name="GLZDBPKEY" type="12"/>
|
|
<f name="CHPKEY" type="12"/>
|
|
<f name="SFZT" type="12"/>
|
|
<f name="SFRQ" type="93"/>
|
|
<f name="ZFLX" type="12"/>
|
|
<f name="SFRY" type="12" />
|
|
<f name="ZFFSID" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<!-- 4.4.1.9住院诊断明细表 -->
|
|
<dao id="sjgzyzdmxbdao" type="1">
|
|
<sql>
|
|
select yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc from TB_ZY_ZDMXB WHERE 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="TB_ZY_ZDMXB" insert="true" update="true" delete="true">
|
|
<primary>yljgdm</primary>
|
|
<primary>zdid</primary>
|
|
</table>
|
|
</tables>
|
|
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
|
|
<fields>
|
|
<f name="yljgdm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdid" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zyjzlsh" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="grbslx" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="grbsh" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="xgbz" type="4" table="TB_ZY_ZDMXB" />
|
|
<f name="zdrqsj" type="93" table="TB_ZY_ZDMXB" />
|
|
<f name="zdffbm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdbzbm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdlbbm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="bzqbdm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdybid" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdzcbm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdsx" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdbm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdmc" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="sfyz" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="cyqkbm" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="zdlx" type="12" table="TB_ZY_ZDMXB" />
|
|
<f name="jlsj_ywk" type="93" table="TB_ZY_ZDMXB" />
|
|
<f name="cxsj_ywk" type="93" table="TB_ZY_ZDMXB" />
|
|
<f name="bjsj_ywk" type="93" table="TB_ZY_ZDMXB" />
|
|
<f name="crt_tm_zdsc" type="93" table="TB_ZY_ZDMXB" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<!-- 4.3.1.9 HIS住院诊断明细表 -->
|
|
<dao id="sjgzyjzmxbdao_his" type="1">
|
|
<sql><![CDATA[
|
|
SELECT a.PKEY JZPKEY,a.HZPKEY,a.JZZT,b.DIAG_TYPE,b.ZDBM,b.ZDMC,a.JZZT NZQZ,nvl(b.ISMAIN,0)ISMAIN,b.PKEY ZDPKEY,b.CJRQ FROM HIS_JZ_BASEINFO a
|
|
LEFT JOIN HIS_EMR_BASY_CYZD b on a.JGID = b.JGID AND a.PKEY = b.JZPKEY AND a.HZPKEY = b.HZPKEY
|
|
where a.JGID = ? AND a.CJRQ >=? AND a.CJRQ <= ? AND a.JZLX = 'Z' AND (a.JZZT = 'Z' or a.JZZT = 'C' ) and b.PKEY IS NOT NULL AND a.MOTHERJZPKEY is null
|
|
]]></sql>
|
|
//yljgdm,zdid,zyjzlsh,grbslx,grbsh,xgbz,zdrqsj,zdffbm,zdbzbm,zdlbbm,bzqbdm,zdybid,zdzcbm,zdsx,zdbm,zdmc,sfyz,cyqkbm,zdlx,jlsj_ywk,cxsj_ywk,bjsj_ywk,crt_tm_zdsc
|
|
<fields>
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="DIAG_TYPE" type="12" />
|
|
<f name="ZDBM" type="12" />
|
|
<f name="ZDMC" type="12" />
|
|
<f name="NZQZ" type="12" />
|
|
<f name="ISMAIN" type="12" />
|
|
<f name="ZDPKEY" type="12" />
|
|
<f name="CJRQ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="his_sjgzyfymxbdao" type="1" memo="住院收费明细dao(三监管用)">
|
|
<sql><![CDATA[
|
|
SELECT e.ZDJFLX,e.JSZT,b.PKEY SFMXPKEY,a.JZPKEY,a.HZPKEY,b.ISHC,b.HCDJPKEY,a.YZLB,a.YZZL,b.JFRQ,b.ZDZBPKEY,e.JSSJ,a.YZXZKS,a.YZXZYS,a.YZMC,NVL(a.YZDW,'006') YZDW,b.SFXDJ,b.SFXSL,b.SFXZFY,b.SFXSJZFY
|
|
FROM HIS_YZ_MXB a LEFT JOIN HIS_SFZD_SFXMXB b ON a.JGID = b.JGID AND a.PKEY = b.YZMX
|
|
LEFT JOIN HIS_JZ_BASEINFO c on c.JGID = a.JGID AND a.HZPKEY = c.HZPKEY AND a.JZPKEY = c.PKEY
|
|
left join HIS_HZINFO d on d.JGID = a.JGID AND d.PKEY = a.HZPKEY
|
|
LEFT JOIN HIS_SFZD_ZB e on e.JGID = b.JGID AND e.PKEY = b.ZDZBPKEY
|
|
WHERE a.JGID = ? AND a.CJRQ >= ? AND a.CJRQ <= ?
|
|
and a.YZSHZT='1' AND a.YZSFZT = '1' and c.JZLX = 'Z' and b.PKEY IS NOT NULL AND e.JSZT IS NOT NULL
|
|
]]></sql>
|
|
<fields>
|
|
|
|
<f name="ZDJFLX" type="12" />
|
|
<f name="JSZT" type="12" />
|
|
<f name="SFMXPKEY" type="12" />
|
|
<f name="JZPKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="ISHC" type="12" />
|
|
<f name="HCDJPKEY" type="12" />
|
|
<f name="YZLB" type="12" />
|
|
<f name="YZZL" type="12" />
|
|
<f name="JFRQ" type="93" />
|
|
<f name="ZDZBPKEY" type="12" />
|
|
<f name="JSSJ" type="93" />
|
|
<f name="YZXZKS" type="12" />
|
|
<f name="YZXZYS" type="12" />
|
|
<f name="YZMC" type="12" />
|
|
<f name="YZDW" type="12" />
|
|
<f name="SFXDJ" type="12"/>
|
|
<f name="SFXSL" type="12" />
|
|
<f name="SFXZFY" type="12" />
|
|
<f name="SFXSJZFY" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
</datasource> |