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.
999 lines
64 KiB
999 lines
64 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource>
|
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
|
|
|
|
|
|
<dao id="baAllGdDao" log="true" type="1" memo="所有已经归档的病案,这里要考虑出院后已经归档,但是需要召回的患者情况,所以暂时不考虑要求一定出院">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZYBQ,a.RYKS,a.ZYTS,a.ZCKS,a.LOCKFLAG,a.ZCBQ,a.ISFM,a.FMZT,a.FMCF,a.SFLG,a.LGKSSJ,a.EMSSDJBPKEY,a.SFLSTD,a.LSTDYXQ,a.ISYYGH,a.ISTY,a.ISICU,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYWARD,a.RYBED,a.ISZYHLTX,a.BAGD,a.BAGDMAN,a.BAGDTIME,a.SDYZFH,a.SDYZFHMAN,a.SDYZFHTIME,b.xm,b.xb,a.BABM from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.BAGD=1 #select# order by a.BAGDTIME desc
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZRYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYTS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="BABM" type="12" table="HIS_JZ_BASEINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="isOutAndNogdDao" log="true" type="1" memo="找到所有已经出院并且没有归档的病案">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZYBQ,a.RYKS,a.ZYTS,a.ZCKS,a.LOCKFLAG,a.ZCBQ,a.ISFM,a.FMZT,a.FMCF,a.SFLG,a.LGKSSJ,a.EMSSDJBPKEY,a.SFLSTD,a.LSTDYXQ,a.ISYYGH,a.ISTY,a.ISICU,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYWARD,a.RYBED,a.ISZYHLTX,a.BAGD,a.BAGDMAN,a.BAGDTIME,a.SDYZFH,a.SDYZFHMAN,a.SDYZFHTIME,b.xm,b.xb from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.BAGD=0 and a.JZZT='C' #select# order by a.BAGDTIME desc
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZRYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYTS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="zyhzJzBaseInfoByBafhDao" log="true" type="1" memo="用于病案复核的住院患者信息">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZYBQ,a.RYKS,a.ZYTS,a.ZCKS,a.LOCKFLAG,a.ZCBQ,a.ISFM,a.FMZT,a.FMCF,a.SFLG,a.LGKSSJ,a.EMSSDJBPKEY,a.SFLSTD,a.LSTDYXQ,a.ISYYGH,a.ISTY,a.ISICU,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYWARD,a.RYBED,a.ISZYHLTX,a.BAGD,a.BAGDMAN,a.BAGDTIME,a.SDYZFH,a.SDYZFHMAN,a.SDYZFHTIME,b.xm,b.xb,a.BABM,
|
|
b.CSRQ from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.hzpkey=? and a.pkey=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZRYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYTS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="BABM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CSRQ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="baActionLogDao" log="true" type="1">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,CZLX,CZZT,CZR,CZTIME,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_BA_LOG where 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_BA_LOG" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_BA_LOG" />
|
|
<f name="HZPKEY" type="12" table="HIS_BA_LOG" />
|
|
<f name="JZPKEY" type="12" table="HIS_BA_LOG" />
|
|
<f name="CZLX" type="12" table="HIS_BA_LOG" />
|
|
<f name="CZZT" type="12" table="HIS_BA_LOG" />
|
|
<f name="CZR" type="12" table="HIS_BA_LOG" />
|
|
<f name="CZTIME" type="93" table="HIS_BA_LOG" />
|
|
<f name="CJR" type="12" table="HIS_BA_LOG" />
|
|
<f name="CJRQ" type="93" table="HIS_BA_LOG" />
|
|
<f name="XGR" type="12" table="HIS_BA_LOG" />
|
|
<f name="XGRQ" type="93" table="HIS_BA_LOG" />
|
|
<f name="JGID" type="12" table="HIS_BA_LOG" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_BA_LOG" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="baAllbmDao" log="true" type="1" memo="病案编目dao">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZYBQ,a.RYKS,a.ZYTS,a.ZCKS,a.LOCKFLAG,a.ZCBQ,a.ISFM,a.FMZT,a.FMCF,a.SFLG,a.LGKSSJ,a.EMSSDJBPKEY,a.SFLSTD,a.LSTDYXQ,a.ISYYGH,a.ISTY,a.ISICU,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYWARD,a.RYBED,a.ISZYHLTX,a.BAGD,a.BAGDMAN,a.BAGDTIME,a.SDYZFH,a.SDYZFHMAN,a.SDYZFHTIME,b.xm,b.xb,a.BABM from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.JZLX='Z' #select# order by a.BAGDTIME desc
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZRYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYTS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="BABM" type="12" table="HIS_JZ_BASEINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="bajyDao" log="true" type="1" memo="病案借阅dao">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.SQR,a.SQRQ,a.CKR,a.CKRQ,a.RKR,a.RKRQ,a.JYKS,a.JYYS,a.KSDH,a.YSDH,a.JYMD,a.YJGHRQ,a.JYBZ,a.GHZT,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,a.LOCKFLAG,b.zybah,b.zyno,b.zynum,b.jznl,c.xm,c.xb,b.pkey jzpkey,b.bajy from HIS_BA_JY a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? order by a.CJRQ desc
|
|
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="false" update="true" delete="false">
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
<table name="HIS_BA_JY" insert="false" update="true" delete="false">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_BA_JY" />
|
|
<f name="HZPKEY" type="12" table="HIS_BA_JY" />
|
|
<f name="SQR" type="12" table="HIS_BA_JY" />
|
|
<f name="SQRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="CKR" type="12" table="HIS_BA_JY" />
|
|
<f name="CKRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="RKR" type="12" table="HIS_BA_JY" />
|
|
<f name="RKRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="JYKS" type="12" table="HIS_BA_JY" />
|
|
<f name="JYYS" type="12" table="HIS_BA_JY" />
|
|
<f name="KSDH" type="12" table="HIS_BA_JY" />
|
|
<f name="YSDH" type="12" table="HIS_BA_JY" />
|
|
<f name="JYMD" type="12" table="HIS_BA_JY" />
|
|
<f name="YJGHRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="JYBZ" type="12" table="HIS_BA_JY" />
|
|
<f name="GHZT" type="12" table="HIS_BA_JY" />
|
|
<f name="CJR" type="12" table="HIS_BA_JY" />
|
|
<f name="CJRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="XGR" type="12" table="HIS_BA_JY" />
|
|
<f name="XGRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="JGID" type="12" table="HIS_JZ_BASEINFO,HIS_BA_JY" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_BA_JY" />
|
|
<f name="ZYBAH" type="12" />
|
|
<f name="ZYNO" type="12" />
|
|
<f name="ZYNUM" type="8" />
|
|
<f name="JZNL" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="JZPKEY" type="12" schemaname="PKEY" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAJY" type="12" table="HIS_JZ_BASEINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="isCanBajyBaDao" log="true" type="1" memo="找到所有已经出院归档并且没有被借阅的病案">
|
|
<sql>
|
|
select a.PKEY,a.HZPKEY,a.GHPKEY,a.JZLX,a.JZZT,a.JZZB,a.HZFB,a.JZJS,a.ISYB,a.ISZZ,a.YYLX,a.ISLG,a.ISGSSJJ,a.HZYBLX,a.JJKS,a.JJRQ,a.JJYS,a.FBRQ,a.ZYNUM,a.WARD,a.ROOM,a.BED,a.KZRQ,a.JSRQ,a.THRY,a.HDYY,a.HDRQ,a.MZNUM,a.CJR,a.CJRQ,a.JGID,a.JZNO,a.MZNO,a.ZYNO,a.JZKH,a.CARDPKEY,a.JZNL,a.ISJZ,a.ZYLX,a.ZYHZLY,a.ZYYYRQ,a.CYRQ,a.CYYS,a.ZYNOOLD,a.SCZYRQ,a.ISGL,a.ISSJ,a.HZLX,a.GRLX,a.QTGRLX,a.CWFJLX,a.YSLX,a.MQJZINFO,a.ZKRQ,a.RYTJ,a.RYBQ,a.RYJZINFO,a.RYYS,a.RYQK,a.JZZL,a.JYYJ,a.ZYBZ,a.RYZD,a.RYZDMS,a.ZYBAH,a.RYNL,a.RYXSENLD,a.RYXSENLH,a.RYXSENLS,a.ZYZH,a.JZKLX,a.CRFS,a.OTHERCRFS,a.MAINBLYS,a.MAINBLXS,a.MOTHERJZPKEY,a.ZKDATE,a.RQDATE,a.CYKS,a.CYWARD,a.CYBED,a.HZZYZT,a.ISZZJS,a.ZZJSSJ,a.ZZJSR,a.ISYLJS,a.YLJSR,a.YLJSSJ,a.ISZZCWJS,a.CWJSR,a.CWJSSJ,a.ZDZBPKEY,a.CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ,a.ISZK,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZYBQ,a.RYKS,a.ZYTS,a.ZCKS,a.LOCKFLAG,a.ZCBQ,a.ISFM,a.FMZT,a.FMCF,a.SFLG,a.LGKSSJ,a.EMSSDJBPKEY,a.SFLSTD,a.LSTDYXQ,a.ISYYGH,a.ISTY,a.ISICU,a.LYFS,a.SYLB,a.YZS,a.SYTC,a.TES,a.WYBZ,a.ZCBZ,a.SYSSLB,a.BFZBZ,a.JHSYFWZH,a.RJSS,a.SYSSRQ,a.RYWARD,a.RYBED,a.ISZYHLTX,a.BAGD,a.BAGDMAN,a.BAGDTIME,a.SDYZFH,a.SDYZFHMAN,a.SDYZFHTIME,b.xm,b.xb,a.BABM,a.BAJY from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.BAGD=1 and a.JZLX='Z' and a.JZZT='C' and a.BAJY=0 #select# order by a.BAGDTIME desc
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GHPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZFB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGSSJJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZYBLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JJYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FBRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="WARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ROOM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="KZRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="THRY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDYY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HDRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNUM" type="8" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CJRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="JGID" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MZNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CARDPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISJZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYHZLY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYNOOLD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SCZYRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISGL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISSJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="GRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="QTGRLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWFJLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YSLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MQJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYTJ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYJZINFO" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZZL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JYYJ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYZDMS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBAH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYNL" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLD" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLH" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYXSENLS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JZKLX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="OTHERCRFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MAINBLXS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="MOTHERJZPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZKDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RQDATE" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="HZZYZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZZJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYLJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YLJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZZCWJS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSR" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CWJSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZDZBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="CYQK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISDEAD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="DEADRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZK" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYYLDYZRYS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZYTS" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCKS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBQ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISFM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMZT" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="FMCF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLG" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LGKSSJ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="EMSSDJBPKEY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SFLSTD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LSTDYXQ" type="-5" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISYYGH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISTY" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISICU" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="LYFS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="YZS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYTC" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="TES" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="WYBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ZCBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSLB" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BFZBZ" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="JHSYFWZH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RJSS" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SYSSRQ" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYWARD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="RYBED" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="ISZYHLTX" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGD" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAGDTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFH" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHMAN" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="SDYZFHTIME" type="93" table="HIS_JZ_BASEINFO" />
|
|
<f name="XM" type="12"/>
|
|
<f name="XB" type="12"/>
|
|
<f name="BABM" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="BAJY" type="12" table="HIS_JZ_BASEINFO" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="newBajydao" log="true" type="1" memo="新建病案借阅dao">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,SQR,SQRQ,CKR,CKRQ,RKR,RKRQ,JYKS,JYYS,KSDH,YSDH,JYMD,YJGHRQ,JYBZ,GHZT,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_BA_JY where 1=2
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_BA_JY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_BA_JY" />
|
|
<f name="HZPKEY" type="12" table="HIS_BA_JY" />
|
|
<f name="JZPKEY" type="12" table="HIS_BA_JY" />
|
|
<f name="SQR" type="12" table="HIS_BA_JY" />
|
|
<f name="SQRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="CKR" type="12" table="HIS_BA_JY" />
|
|
<f name="CKRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="RKR" type="12" table="HIS_BA_JY" />
|
|
<f name="RKRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="JYKS" type="12" table="HIS_BA_JY" />
|
|
<f name="JYYS" type="12" table="HIS_BA_JY" />
|
|
<f name="KSDH" type="12" table="HIS_BA_JY" />
|
|
<f name="YSDH" type="12" table="HIS_BA_JY" />
|
|
<f name="JYMD" type="12" table="HIS_BA_JY" />
|
|
<f name="YJGHRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="JYBZ" type="12" table="HIS_BA_JY" />
|
|
<f name="GHZT" type="12" table="HIS_BA_JY" />
|
|
<f name="CJR" type="12" table="HIS_BA_JY" />
|
|
<f name="CJRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="XGR" type="12" table="HIS_BA_JY" />
|
|
<f name="XGRQ" type="93" table="HIS_BA_JY" />
|
|
<f name="JGID" type="12" table="HIS_BA_JY" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_BA_JY" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="bapfDao" log="true" type="1">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,BLPF,BLPJ,PFR,PFRQ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_BA_PF where JGID=? and hzpkey=? and jzpkey=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_BA_PF" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_BA_PF" />
|
|
<f name="HZPKEY" type="12" table="HIS_BA_PF" />
|
|
<f name="JZPKEY" type="12" table="HIS_BA_PF" />
|
|
<f name="BLPF" type="12" table="HIS_BA_PF" />
|
|
<f name="BLPJ" type="12" table="HIS_BA_PF" />
|
|
<f name="PFR" type="12" table="HIS_BA_PF" />
|
|
<f name="PFRQ" type="93" table="HIS_BA_PF" />
|
|
<f name="CJR" type="12" table="HIS_BA_PF" />
|
|
<f name="CJRQ" type="93" table="HIS_BA_PF" />
|
|
<f name="XGR" type="12" table="HIS_BA_PF" />
|
|
<f name="XGRQ" type="93" table="HIS_BA_PF" />
|
|
<f name="JGID" type="12" table="HIS_BA_PF" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_BA_PF" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="bapfmxDao" log="true" type="1">
|
|
<sql>
|
|
select PKEY,HZPKEY,JZPKEY,PFPKEY,ZKBM,ZKMC,ZKFZ,ZKBZ,BZ,ZKR,ZKRQ,ZRKS,ZRR,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_BA_PF_MX where JGID=? and PFPKEY=? order by pkey
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_BA_PF_MX" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="HZPKEY" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="JZPKEY" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="PFPKEY" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZKBM" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZKMC" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZKFZ" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZKBZ" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="BZ" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZKR" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZKRQ" type="93" table="HIS_BA_PF_MX" />
|
|
<f name="ZRKS" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="ZRR" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="CJR" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="CJRQ" type="93" table="HIS_BA_PF_MX" />
|
|
<f name="XGR" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="XGRQ" type="93" table="HIS_BA_PF_MX" />
|
|
<f name="JGID" type="12" table="HIS_BA_PF_MX" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_BA_PF_MX" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
</datasource> |