select PKEY,XMMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_CRAMS where JGID=? order by pkey
12
select PKEY,CRAMSPKEY,MS,FZ,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_CRAMS_MX where JGID=? and CRAMSPKEY=? order by pkey
//PKEY,CRAMSPKEY,MS,FZ,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
12
12
select PKEY,XMMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_GCS where JGID=? order by pkey
12
select PKEY,GCSPKEY,MS,FZ,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_GCS_MX where JGID=? and GCSPKEY=? order by pkey
12
12
select PKEY,FLMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_ZZFL where JGID=? order by pkey
12
select PKEY,ZZFLPKEY,ZZMS,ZZFJ,ZZFZ,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_ZZFL_MX where JGID=? and ZZFLPKEY=? order by pkey
12
12
=? AND A.GHSJ <= ? order by A.GHSJ,C.PDYXJ desc,C.PDHM
]]>
12
93
93
=? AND A.GHSJ <= ?) OR (E.SFLG=1 AND E.JZZT !='C')) order by D.BQ,C.PDYXJ desc,C.PDHM,A.GHSJ
]]>
12
93
93
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,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='J' and a.hzpkey=? and a.pkey=?
12
12
12
select PKEY,HZPKEY,GHPKEY,SFCF,SSY,SZY,XY,HX,TW,XL,MB,BZ,YSXT,ESI,ESIPKEY,TTPJ,TTPJPKEY,CSPJ,CSPJPKEY,REMS,REMSPKEY,MEWS,MEWSPKEY,LZZS,BQ,QX,TJFJ,HSXGYY,FZKS,FZHB,QJBQ,SFLSTD,LSTDYXQ,SFZK,ZKKS,QTZZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG,DQBQ,YSBQ,SFLG,GCS,GCSPKEY,FZRQ from HIS_EMSS_DJB where JGID=? and hzpkey=? and pkey=?
12
12
12
select PKEY,HZPKEY,EMSSDJBPKEY,LZLX,LZVALUE,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_LZXX where JGID=? and hzpkey=? and EMSSDJBPKEY=?
12
12
12
select PKEY,HZPKEY,EMSSDJBPKEY,LZZZ,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_LZZZ where JGID=? and hzpkey=? and EMSSDJBPKEY=?
12
12
12
select PKEY,FLMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_ZZFL where JGID=? and SFKY=1 order by pkey
12
select PKEY,ZZFLPKEY,ZZMS,ZZFJ,ZZFZ,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_ZZFL_MX where JGID=? and SFKY=1 order by pkey
12
select PKEY,HZPKEY,EMSSDJBPKEY,JZPKEY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_DJB_GLB where JGID=? and hzpkey=? and EMSSDJBPKEY=?
12
12
12
select distinct A.PKEY,A.YSPKEY,A.LBPKEY,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.JGID,A.KSPKEY,A.ISMR,A.LOCKFLAG,B.MC from HIS_GH_LBGLYS A left join HIS_GH_LB B ON A.LBPKEY=B.PKEY AND A.JGID=B.JGID where A.JGID=? and A.KSPKEY=? order by A.ismr,A.pkey
12
12
select DPTID,DPTCODE,DPTNAME,DPTRMARK,DPTADDR,DPTLAYER,DPTTYPE,DPTGPID,DPTSEX,DPTZJM,DPTBAGE,DPTEAGE,DPTTXMJC,DPTYBCODE,CJR,CJRQ,XGR,XGRQ,JGID,DPTFLAG from MAIN_KS where JGID=? and ISJZ=1 and (DPTCODE like ? or DPTNAME like ? or DPTZJM like ?) and DPTFLAG=1 order by DPTCODE
12
12
12
12
=? AND C.GHSJ <= ? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM
]]>
PKEY
JZPKEY
GHPKEY
PDZT
HJZT
PDYXJ
JGID
12
12
93
93
select '' bh,'' value from dual where 1=2
=? AND C.GHSJ <= ? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM
]]>
12
12
93
93
=? AND C.GHSJ <= ? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM
]]>
12
12
93
93
select count(*) num from HIS_JZ_BASEINFO where JGID=? and JZLX='J' and JZZT='Z' and SFLG='1' and ward=? and jjys = ?
12
12
12
select count(*) num from HIS_JZ_BASEINFO where JGID=? and JZLX='J' and JZZT='Z' and SFLG='1' and ward=? and JJKS = ?
12
12
12
=? AND C.GHSJ <= ? order by A.JZSJ desc,A.PDYXJ desc,A.PDHM
]]>
PKEY
JZPKEY
GHPKEY
PDZT
HJZT
PDYXJ
JGID
12
12
93
93
select '' 收缩压,'' 舒张压,'' 血氧,'' 呼吸,'' 体温,'' 心率,'' 脉搏 from dual where 1=2
select count(*) num from HIS_JZ_BASEINFO where JGID=? and WARD=? and JZLX='J' and SFLG='1' and JZZT='Z'
12
12
PKEY
JZPKEY
GHPKEY
PDZT
HJZT
PDYXJ
JGID
12
12
12
PKEY
JZPKEY
GHPKEY
PDZT
HJZT
PDYXJ
JGID
12
12
12
select * from (select distinct a.PKEY,a.BQKEY,a.HSPKEY,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.MC,b.BQL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CYBQ,a.CYQK,a.ISDEAD,a.DEADRQ from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.JGID=b.JGID and a.HZPKEY=b.pkey where a.JGID=? and a.JZLX='J' AND a.SFLG='1' order by a.JJRQ desc,a.zyno,a.zynum desc
12
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,b.xm,b.xb,b.GZDW,b.XZDZ from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.JGID=b.JGID and a.HZPKEY=b.pkey where a.JGID=? and a.JZLX='J' AND a.SFLG='1' and a.JZZT='Z' order by a.JJRQ desc
12
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.RO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