select ACTIVECLASS,PARENTACTIVECLASS,CAPTION,SORT,SHOWFLAG,BROWSEPOWER,EDITPOWER,CJR,CJRQ,XGR,XGRQ from HIS_EMR_ACTIVECLASS order by ACTIVECLASS
select ACTIVERECORD,ACTIVECLASS,CAPTION,INSORT,OUTSORT,TIMELIMIT,SEVERITYTIMELIMIT,DANGERTIMELIMIT,SIGNTIMELIMIT1,SIGNTIMELIMIT2,STDACTIVERECORD,SHOWFLAG,INTERVALTIME,WRITETIMES,SEVERITYINTERVALTIME,SEVERITYWRITETIMES,DANGERINTERVALTIME,DANGERWRITETIMES,CHRONICINTERVALTIME,CHRONICWRITETIMES,BROWSEPOWER,EDITPOWER,WRITEREQUIRE,REFER,CJR,CJRQ,XGR,XGRQ,TEMPLATEIDENTIFIER from HIS_EMR_ACTIVERECORD order by ACTIVECLASS,ACTIVERECORD
select a.activerecord, a.caption, a.activeclass from HIS_EMR_ACTIVERECORD a union select b.activeclass, b.caption, b.parentactiveclass from (select activeclass,caption,parentactiveclass from HIS_EMR_ACTIVECLASS where parentactiveclass is not null ) b order by activerecord
select ACTIVECLASS,CODE,NAME,BASETIMES,CONSTRAINT,MEMO,ISSAVETODB,PXM,CJR,CJRQ,XGR,XGRQ from HIS_EMR_CHAPTER where ACTIVECLASS like ? order by PXM,CODE
12
select CODE,NAME,PARENTCODE,ISCUSTOM,ISENABLED,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_DATAGROUP where JGID=? order by code
12
select INTERNALIDENTIFIER,CELLIDENTIFIER,CELLNAME,CELLDEFINITION,DATATYPE,DATAFORMAT,DATAVALUEDESCRIBE,DATAVALUETYPE,DATAVALUE,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_DATAELEMENT where JGID='' OR JGID=? order by INTERNALIDENTIFIER
12
select a.ACTIVECLASS,b.INTERNALIDENTIFIER,b.CELLIDENTIFIER,b.CELLNAME,b.CELLDEFINITION,b.DATATYPE,b.DATAFORMAT,b.DATAVALUEDESCRIBE,b.DATAVALUETYPE,b.DATAVALUE,b.CJR,b.CJRQ,b.XGR,b.XGRQ,b.JGID from HIS_EMR_DATAELEMENT_RELATION a left join HIS_EMR_DATAELEMENT b on a.INTERNALIDENTIFIER=b.INTERNALIDENTIFIER where a.JGID=? and a.ACTIVECLASS=? ORDER BY a.INTERNALIDENTIFIER
ACTIVECLASS
INTERNALIDENTIFIER
JGID
12
12
select a.ACTIVECLASS,a.GROUPCODE,b.CODE,b.NAME,b.PARENTCODE,b.ISCUSTOM,b.ISENABLED,b.CJR,b.CJRQ,b.XGR,b.XGRQ,b.JGID from HIS_EMR_DATAGROUP_RELATION a left join HIS_EMR_DATAGROUP b on a.GROUPCODE=b.CODE where a.ACTIVECLASS=? order by a.GROUPCODE
12
select PKEY,ACTIVERECORD,GROUPNAME,CJR,CJRQ,XGR,XGRQ,JGID,ISCHINESE from HIS_EMR_TEMPLATE_GROUP where JGID=? order by pkey
12
SELECT TEMPLATE,TEMPLATEGROUPID,ACTIVERECORD,TEMPLATENAME,FILEPATH,SEX,ISSTANDARD,ISMUST,ISSHARE,FILEVERSION,WRITINGTIMES,ISSHOW,ISNEWPAGE,ISREVIEW,REVIEWMAN,REVIEWTIME,ISDELETE,DELETEMAN,DELETETIME,RELATIONDIAGNOSE,RELATIONBODY,RELATIONKS,CJR,CJRQ,XGR,XGRQ,JGID,BLWSPATH,BLWSINPUTPATH,BROWSEPOWER,EDITPOWER,RELATIONRY FROM HIS_EMR_TEMPLATE WHERE JGID=? AND TEMPLATE=?
TEMPLATE
TEMPLATEGROUPID
ACTIVERECORD
JGID
12
12
select TEMPLATE,TEMPLATEGROUPID,ACTIVERECORD,TEMPLATENAME,FILEPATH,SEX,ISSTANDARD,ISMUST,ISSHARE,FILEVERSION,WRITINGTIMES,ISSHOW,ISNEWPAGE,ISREVIEW,REVIEWMAN,REVIEWTIME,ISDELETE,DELETEMAN,DELETETIME,RELATIONDIAGNOSE,RELATIONBODY,RELATIONKS,CJR,CJRQ,XGR,XGRQ,JGID,BLWSPATH,BLWSINPUTPATH,BROWSEPOWER,EDITPOWER,RELATIONRY from HIS_EMR_TEMPLATE where JGID=? and ISDELETE != 1 order by CJRQ desc
TEMPLATE
ACTIVERECORD
JGID
12
select RKEY,NAME,VALUE,ACTIVERECORD,INTERNALIDENTIFIER from HIS_EMR_HDY_ELEMENT where ACTIVERECORD like ? or ACTIVERECORD like ? order by RKEY
12
12
select RKEY,NAME,VALUE,ACTIVERECORD,INTERNALIDENTIFIER from HIS_EMR_HDY_ELEMENT where ACTIVERECORD = ? order by rkey
12
select PKEY,NAME,MEMO,GSKS,ISYX,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_YLDY where JGID=? order by pkey
12
select a.PKEY,a.YLDYPKEY,a.RYPKEY,a.KSPKEY,a.ISZZ,a.ISYX,a.QMJB,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.NAME,b.MEMO,b.GSKS,c.NAME xm from HIS_EMR_YLDY_YLRY a left join HIS_EMR_YLDY b on a.yldypkey=b.pkey and a.JGID=b.JGID left join MAIN_YHXX c on a.rypkey=c.useraccount left join MAIN_JGYH d on c.empid=d.empid and a.JGID=d.JGID where a.JGID=? and a.yldypkey=? order by a.pkey
PKEY
YLDYPKEY
RYPKEY
KSPKEY
JGID
12
12
select A.USERID,A.MRKS,A.JGID,A.EFFICET,A.SFZYYS,A.DUTY,A.SFZYHS,A.SFMZYS,A.EMPID,A.SFCFQ,A.BDZH,A.SFMZSFY,A.SFZYSFY,A.YBUSERNAME,A.YBPASSWORD,A.SFKXQYBL,A.SFZYZHQ,A.KSSYSJB,A.FZLYYSJB,A.SFJB,A.CJR,A.CJRQ,A.XGR,A.XGRQ,A.YHQXBS,B.JGMC,A.YSJB,C.NAME,C.USERACCOUNT,(select count(*) sqys from HIS_EMR_SJSQ where ZGYSPKEY=C.useraccount and JGID=A.JGID ) SQYS from MAIN_JGYH A left join MAIN_YLJG B on A.JGID = B.pkey left join MAIN_YHXX C ON A.EMPID=C.empid where A.JGID=? and A.SFZYYS=1 ORDER BY C.NAME
12
select PKEY,YLDYPKEY,RYPKEY,KSPKEY,ISZZ,ISYX,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_YLDY_YLRY where JGID=? and RYPKEY=? order by pkey
12
12
select PKEY,YLDYPKEY,ZGYSPKEY,SQJB,SQYS,ISYX,ISMRHSFCSZ,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_SJSQ where JGID=? and YLDYPKEY=? and ZGYSPKEY=? order by pkey
PKEY
YLDYPKEY
ZGYSPKEY
SQJB
SQYS
ISYX
JGID
12
12
12
select '' flag,a.TEMPLATE,a.TEMPLATEGROUPID,a.ACTIVERECORD,a.TEMPLATENAME,a.FILEPATH,a.SEX,a.ISSTANDARD,a.ISMUST,a.ISSHARE,a.FILEVERSION,a.WRITINGTIMES,a.ISSHOW,a.ISNEWPAGE,a.ISREVIEW,a.REVIEWMAN,a.REVIEWTIME,a.ISDELETE,a.DELETEMAN,a.DELETETIME,a.RELATIONDIAGNOSE,a.RELATIONBODY,a.RELATIONKS,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.ISCHINESE,a.BLWSPATH,a.BLWSINPUTPATH,a.RELATIONRY from HIS_EMR_TEMPLATE a left join HIS_EMR_TEMPLATE_GROUP b on a.TEMPLATEGROUPID=b.pkey and a.JGID=b.JGID left join HIS_EMR_ACTIVERECORD c on a.ACTIVERECORD=c.ACTIVERECORD where a.JGID=? and a.ACTIVERECORD like ? and a.ISDELETE=0 and a.ISSHOW=1 and a.ISREVIEW=1 and #share# #chinese# order by a.TEMPLATEGROUPID,a.TEMPLATENAME
TEMPLATE
ACTIVERECORD
JGID
12
12
select '' flag,PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,ACTIVERECORD,TEMPLATEPKEY,RECORDNAME,RECORDFILEPATH,GSKS,ZYYS,ZYYSQM,ZYYSQMSJ,ZYYSQMTP,ZYYSCAQM,ZZYS,ZZYSQM,ZZYSQMSJ,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
JGID
ZRYSQM
ISZKQM
ZYYSQM
ISGDQM
ZZYSQM
SXYSQM
FZRYSQM
ISDELETE
12
12
12
12
select ID,PARENTID,UNITID,ELEMENTLEVEL,SORT,ISDIR,CAPTION,ELEMENTTYPE,ISMULTISELECT,ISSELFEXPLANED,PROGRAMERCONTROL,INFOFILED,STDELEMENT from HIS_EMR_DATAELEMENT_STORE where elementlevel is not null order by elementlevel,parentid,id
select SELECTITEM,ID,ITEM,ITEMNAME,SORT,PINYIN,PINYINFULL,STDRANGE from HIS_EMR_DATAELEMENT_SELECTITEM where id=?
12
select a.PKEY,a.YLDYPKEY,a.RYPKEY,a.KSPKEY,a.ISZZ,a.ISYX,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.name from HIS_EMR_YLDY_YLRY a left join HIS_EMR_YLDY b on a.YLDYPKEY=b.pkey and a.JGID=b.JGID where a.JGID=? and a.RYPKEY=? and a.KSPKEY = ? and a.ISYX='1' order by b.name
12
12
12
select a.PKEY,a.YLDYPKEY,a.RYPKEY,a.KSPKEY,a.ISZZ,a.ISYX,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,b.NAME,b.MEMO,b.GSKS,c.NAME xm,f.YSJB from HIS_EMR_YLDY_YLRY a left join HIS_EMR_YLDY b on a.yldypkey=b.pkey and a.JGID=b.JGID left join MAIN_YHXX c on a.rypkey=c.useraccount left join MAIN_JGYH d on c.empid=d.empid and a.JGID=d.JGID left join MAIN_YHXX e on e.USERACCOUNT=a.RYPKEY left join MAIN_JGYH f on e.EMPID=f.EMPID and f.JGID=a.JGID where a.JGID=? and a.yldypkey=? and a.ISYX='1' order by a.pkey
PKEY
YLDYPKEY
RYPKEY
KSPKEY
JGID
12
12
select sysdate zksj,sysdate jzsj,'' wdlx,'' zklb,'' sysj,'' qxcs,0 jgsj from dual where 1=2
select ACTIVERECORD,ACTIVECLASS,CAPTION,INSORT,OUTSORT,TIMELIMIT,SEVERITYTIMELIMIT,DANGERTIMELIMIT,SIGNTIMELIMIT1,SIGNTIMELIMIT2,STDACTIVERECORD,SHOWFLAG,INTERVALTIME,WRITETIMES,SEVERITYINTERVALTIME,SEVERITYWRITETIMES,DANGERINTERVALTIME,DANGERWRITETIMES,CHRONICINTERVALTIME,CHRONICWRITETIMES,BROWSEPOWER,EDITPOWER,WRITEREQUIRE,REFER from HIS_EMR_ACTIVERECORD where (WRITEREQUIRE = 1 or WRITEREQUIRE = 2) and @params@
select PKEY,QCNAME,QCMEMO,QCTYPE,PYM,WBM,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_HJQC_STD where JGID=? order by qcname
12
select PKEY,NAME,SCORE,VOTE from HIS_EMR_GRADED_STD order by pkey
//PKEY,NAME,SCORE,VOTE
select a.PKEY,a.HZPKEY,a.JZPKEY,a.ZYNO,a.ZYBAH,a.FEEDBACKTITLE,a.FEEDBACKCONTENT,a.QCUSR,a.QCDEP,a.QCTIME,a.DISPOSEFLAG,a.DISPOSEUSR,a.DISPOSETIME,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID,c.xm from HIS_EMR_HJQC_FEEDBACK a left join HIS_HZINFO c on a.hzpkey=c.pkey and a.JGID=c.JGID where a.JGID=? order by QCTIME desc
12
select PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,QCSTDPKEY,ACTIVERECORD,EMRPKEY,EMRNAME,QCCONTENT,QCFEEDBACKPKEY,QCFEEDBACKCONTENT,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_HJQC_RECORD where JGID=? and QCFEEDBACKPKEY=?
12
12
select a.PKEY,a.HZPKEY,a.JZPKEY,a.ZYNO,a.ZYBAH,a.ACTIVERECORD,a.TEMPLATEPKEY,a.RECORDNAME,a.RECORDFILEPATH,a.GSKS,a.ZYYS,a.ZYYSQM,a.ZYYSQMSJ,a.ZYYSQMTP,a.ZYYSCAQM,a.ZZYS,a.ZZYSQM,a.ZZYSQMSJ,a.ZZYSQMTP,a.ZZYSCAQM,a.ZRYS,a.ZRYSQM,a.ZRYSQMSJ,a.ZRYSQMTP,a.ZRYSCAQM,a.ZKR,a.ISZKQM,a.ZKSJ,a.GDR,a.ISGDQM,a.GDSJ,a.ISDELETE,a.SCR,a.SCSJ,a.CJR,a.CJRQ,a.LASTMAN,a.LASTRQ,a.JGID,a.QMZT,a.SXYS,a.SXYSQM,a.SXYSQMSJ,a.SXYSQMTP,a.SXYSCAQM,a.FZRYS,a.FZRYSQM,a.FZRYSQMSJ,a.FZRYSQMTP,a.FZRYSCAQM,a.MZYS,a.MZYSQM,a.MZYSQMSJ,a.MZYSQMTP,a.MZYSCAQM,a.LOCKFLAG,a.SXYSKEY,a.ZYYSKEY,a.ZZYSKEY,a.FZRYSKEY,a.ZRYSKEY,a.MZYSKEY,b.jjrq,b.cyrq,b.jjks,B.JZZT from HIS_EMR_RECORD a left join HIS_JZ_BASEINFO b on a.jzpkey=b.pkey and a.JGID=b.JGID where a.JGID=? AND a.ISDELETE=0 ORDER BY a.CJRQ
PKEY
JGID
ZRYSQM
ISZKQM
ZYYSQM
ISGDQM
ZZYSQM
ISDELETE
12
select ACTIVERECORD,ACTIVECLASS,CAPTION,INSORT,OUTSORT,TIMELIMIT,SEVERITYTIMELIMIT,DANGERTIMELIMIT,SIGNTIMELIMIT1,SIGNTIMELIMIT2,STDACTIVERECORD,SHOWFLAG,INTERVALTIME,WRITETIMES,SEVERITYINTERVALTIME,SEVERITYWRITETIMES,DANGERINTERVALTIME,DANGERWRITETIMES,CHRONICINTERVALTIME,CHRONICWRITETIMES,BROWSEPOWER,EDITPOWER,WRITEREQUIRE,REFER from HIS_EMR_ACTIVERECORD where (WRITEREQUIRE = 1 or WRITEREQUIRE = 2)
select a.PKEY,a.HZPKEY,a.JZPKEY,a.ZYNO,a.ZYBAH,a.QCSTDPKEY,a.ACTIVERECORD,a.EMRPKEY,a.EMRNAME,a.QCCONTENT,a.QCFEEDBACKPKEY,a.QCFEEDBACKCONTENT,a.CJR,a.CJRQ,a.XGR,a.XGRQ,a.JGID from HIS_EMR_HJQC_RECORD a left join HIS_EMR_HJQC_FEEDBACK b on a.QCFEEDBACKPKEY=b.pkey where b.DISPOSEFLAG=0 and a.JGID=? and b.QCUSR = ? and a.hzpkey = ? and a.jzpkey=? order by a.pkey
PKEY
JGID
HZPKEY
JZPKEY
EMRPKEY
12
12
12
12
select PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,FEEDBACKTITLE,FEEDBACKCONTENT,QCUSR,QCDEP,QCTIME,DISPOSEFLAG,DISPOSEUSR,DISPOSETIME,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_HJQC_FEEDBACK where JGID=? and DISPOSEFLAG=0 and QCUSR=? and hzpkey=? and jzpkey=?
JGID
PKEY
HZPKEY
JZPKEY
QCUSR
12
12
12
12
select a.ACTIVECLASS,a.GROUPCODE,b.CODE,b.NAME,b.PARENTCODE,b.ISCUSTOM,b.ISENABLED,b.CJR,b.CJRQ,b.XGR,b.XGRQ,b.JGID from HIS_EMR_DATAGROUP_RELATION a left join HIS_EMR_DATAGROUP b on a.GROUPCODE=b.CODE where (a.ACTIVECLASS=? or a.ACTIVECLASS=?) order by a.GROUPCODE
12
12
select '' type,'' value,'' pkey,'' name,sysdate CJRQ,'' state,'' activerecord from dual where 1=2
select PKEY,HZPKEY,JZPKEY,RECORDPKEY,RECORDFILEPATH,DLYS,CZYS,CZSJ,CZLX,IP,CJR,CJRQ,JGID,FILESIZE from HIS_EMR_RECORD_HISTORY where 1=2
select a.PKEY,a.HZPKEY,a.JZPKEY,a.RECORDPKEY,a.RECORDFILEPATH,a.DLYS,a.CZYS,a.CZSJ,a.CZLX,a.IP,b.CJR,b.CJRQ,a.JGID,a.FILESIZE from HIS_EMR_RECORD_HISTORY a left join HIS_EMR_RECORD b on a.recordpkey=b.pkey and a.JGID=b.JGID where a.JGID=? and a.HZPKEY=? and a.JZPKEY=? and a.RECORDPKEY=? order by a.CZSJ desc
12
12
12
12
SELECT PKEY,MC,BM,SJBM,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_EMR_IMAGE_TREE WHERE JGID=? ORDER BY BM
12
select '' value,PKEY,IMAGECATAPKEY,IMAGENAME,IMAGEPATH,IMAGEWIDTH,IMAGEHEIGHT,IMAGETYPE,IMAGECANRESIZE,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_IMAGE where JGID=? and IMAGECATAPKEY=? order by pkey
12
12
select '' pkey,'' 体温,'' 脉搏,'' 呼吸,'' 收缩压,'' 舒张压,sysdate 采集日期 from dual where 1=2
12
12
12
select b.QMJB from HIS_JZ_BASEINFO a left join HIS_EMR_YLDY_YLRY b on a.ZYYLDYPKEY=b.YLDYPKEY and a.JGID=b.JGID where a.JGID=? and a.hzpkey=? and a.pkey=? and b.RYPKEY=?
12
12
12
12
select PKEY,HZPKEY,JZPKEY,ZYNO,ZLLB,SSLCLJ,ISZYZJ,ISZYZLSB,ISZYZLJS,ISBZSH,BLFX,LCLJBL,QJCS,CGCS,BRLY,ZYBZZLF,ZYBZHZF,ZYZDBM,ZYZDMC,ZYWZ,ZYGS,ZYZCZF,ZYTNZL,ZYGCZL,ZYTSZL,ZYQT,ZYTSTPJG,ZYBZSS,ZYZJF,A01,A02,A48,A49,B12,B15,A47,A46C,A11,A12C,A13,A14,A15C,A21C,A38C,A19C,A20N,A20,A22,A23C,A24,A25C,A26,A27,A28C,A29,A30,A31C,A32,A33C,A34,A35,B38,B11C,B13C,B14,B21C,B16C,B17,B20,C01C,C02N,F01,F02C,F03N,F04,C09C,C10N,C11,F07X01C,F08X01N,F09X01,F07X02C,F08X02N,F09X02,C12C,C13N,C24C,C25,F10,F11,F12,B22C,B22,B23C,B23,B24C,B24,B25C,B25,B26C,B26,B27,B28,B29,B30C,B31,B32,B33,C34C,C26C,C27C,F17,F18,F19,F20,F21,F22,F23,F24,F25,F26,A16,A18X01,A18X02,A18X03,A18X04,A18X05,A17,C28,C29,C30,C31,C32,C33,C47,B36C,B37,B34C,B35,D01,D09,D11,D12,D13,D14,D15,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01,F02C,F03N,F04,C09C,C10N,C11,F07X01C,F08X01N,F09X01,F07X02C,F08X02N,F09X02,C12C,C13N,C24C,C25,F10,F11,F12,B22C,B22,B23C,B23,B24C,B24,B25C,B25,B26C,B26,B27,B28,B29,B30C,B31,B32,B33,C34C,C26C,C27C,F17,F18,F19,F20,F21,F22,F23,F24,F25,F26,A16,A18X01,A18X02,A18X03,A18X04,A18X05,A17,C28,C29,C30,C31,C32,C33,C47,B36C,B37,B34C,B35,D01,D09,D11,D12,D13,D14,D15,D16,D17,D18,D19,D19X01,D20,D20X01,D20X02,D21,D22,D23,D23X01,D24,D25,D26,D27,D28,D29,D30,D31,D32,D33,D34,CJR,CJRQ,XGR,XGRQ,JGID,XSERYFS,A17X02,A17X03,A17X04,A17X05,YBXYZD,YBXYZDMC,YBZYZD,YBZYZDMC,B35C,DIEFLAG,YBFFFS,CYZLJG,C47X01,C47X02,C47X03,ZYZD,A23C1,RYSQK,ZYZHBM1,ZYZHMC1,YBZYZHBM1,YBZYZHMC1,ZYZHBM2,ZYZHMC2,YBZYZHBM2,YBZYZHMC2,PFKLF,
WCLCLJ,TCYY,YYGRQK,SFFSYC,YCFQ,SYFY,YFFYDYW,ZYQJSFFSDDHZC,ZYQJSTYS,LYSTSNSDZ
from HIS_EMR_BASY where JGID=? and PKEY=?
12
12
select PKEY,HZPKEY,JZPKEY,JGID,A12C from HIS_EMR_BASY where JGID=? and A12C is null
12
select PKEY,HZPKEY,JZPKEY,JGID,A14 from HIS_EMR_BASY where JGID=?
12
select PKEY,HZPKEY,JZPKEY,ZYNO,ZLLB,SSLCLJ,ISZYZJ,ISZYZLSB,ISZYZLJS,ISBZSH,BLFX,LCLJBL,QJCS,CGCS,BRLY,ZYBZZLF,ZYBZHZF,ZYZDBM,ZYZDMC,ZYWZ,ZYGS,ZYZCZF,ZYTNZL,ZYGCZL,ZYTSZL,ZYQT,ZYTSTPJG,ZYBZSS,ZYZJF,A01,A02,A48,A49,B12,B15,A47,A46C,A11,A12C,A13,A14,A15C,A21C,A38C,A19C,A20N,A20,A22,A23C,A24,A25C,A26,A27,A28C,A29,A30,A31C,A32,A33C,A34,A35,B38,B11C,B13C,B14,B21C,B16C,B17,B20,C01C,C02N,F01,F02C,F03N,F04,C09C,C10N,C11,F07X01C,F08X01N,F09X01,F07X02C,F08X02N,F09X02,C12C,C13N,C24C,C25,F10,F11,F12,B22C,B22,B23C,B23,B24C,B24,B25C,B25,B26C,B26,B27,B28,B29,B30C,B31,B32,B33,C34C,C26C,C27C,F17,F18,F19,F20,F21,F22,F23,F24,F25,F26,A16,A18X01,A18X02,A18X03,A18X04,A18X05,A17,C28,C29,C30,C31,C32,C33,C47,B36C,B37,B34C,B35,D01,D09,D11,D12,D13,D14,D15,D16,D17,D18,D19,D19X01,D20,D20X01,D20X02,D21,D22,D23,D23X01,D24,D25,D26,D27,D28,D29,D30,D31,D32,D33,D34,CJR,CJRQ,XGR,XGRQ,JGID,
XSERYFS,A17X02,A17X03,A17X04,A17X05,YBXYZD,YBXYZDMC,YBZYZD,YBZYZDMC,B35C,DIEFLAG,YBFFFS,CYZLJG,C47X01,C47X02,C47X03,A23C1,RYSQK,ZYZHBM1,ZYZHMC1,YBZYZHBM1,YBZYZHMC1,ZYZHBM2,ZYZHMC2,YBZYZHBM2,YBZYZHMC2,PFKLF,BZYZSNLR,WCLCLJ,TCYY,SFBY
BYYY,SZ,SZQXZ,SZQXY,SZQXN,
YYGRQK,YYGRSSXG,YYGRQRXCZXXG,KJYWSYQK,KJYWMC1,KJYWMC2,KJYWMC3,KJYWMC4,KJYWMC5,KJYWMC6,SFFSYC,SFZYQJFS,SYFY,YCFQ,YFFYDYW,NCBX,ZYQJSFFSDDHZC,ZYQJDDHZCDSHCD,DDHZCDYY,ZYQJSTYS,LYSTSNSDZ,DWFZR,TJFZR,TBR,LXDH,SJ,BCRQ
from HIS_EMR_BASY where JGID=? and B15 between ? and ?
12
93
93
select b.PKEY,b.HZPKEY,b.JZPKEY,b.ZYNO,b.ZLLB,b.SSLCLJ,b.ISZYZJ,b.ISZYZLSB,b.ISZYZLJS,b.ISBZSH,b.BLFX,b.LCLJBL,b.QJCS,b.CGCS,b.BRLY,b.ZYBZZLF,b.ZYBZHZF,b.ZYZDBM,b.ZYZDMC,b.ZYWZ,b.ZYGS,b.ZYZCZF,b.ZYTNZL,b.ZYGCZL,b.ZYTSZL,b.ZYQT,b.ZYTSTPJG,b.ZYBZSS,b.ZYZJF,b.A01,b.A02,b.A48,b.A49,b.B12,b.B15,b.A47,b.A46C,b.A11,b.A12C,b.A13,b.A14,b.A15C,b.A21C,b.A38C,b.A19C,b.A20N,b.A20,b.A22,b.A23C,b.A24,b.A25C,b.A26,b.A27,b.A28C,b.A29,b.A30,b.A31C,b.A32,b.A33C,b.A34,b.A35,b.B38,b.B11C,b.B13C,b.B14,b.B21C,b.B16C,b.B17,b.B20,b.C01C,b.C02N,b.F01,b.F02C,b.F03N,b.F04,b.C09C,b.C10N,b.C11,b.F07X01C,b.F08X01N,b.F09X01,b.F07X02C,b.F08X02N,b.F09X02,b.C12C,b.C13N,b.C24C,b.C25,b.F10,b.F11,b.F12,b.B22C,b.B22,b.B23C,b.B23,b.B24C,b.B24,b.B25C,b.B25,b.B26C,b.B26,b.B27,b.B28,b.B29,b.B30C,b.B31,b.B32,b.B33,b.C34C,b.C26C,b.C27C,b.F17,b.F18,b.F19,b.F20,b.F21,b.F22,b.F23,b.F24,b.F25,b.F26,b.A16,b.A18X01,b.A18X02,b.A18X03,b.A18X04,b.A18X05,b.A17,b.C28,b.C29,b.C30,b.C31,b.C32,b.C33,b.C47,b.B36C,b.B37,b.B34C,b.B35,b.D01,b.D09,b.D11,b.D12,b.D13,b.D14,b.D15,b.D16,b.D17,b.D18,b.D19,b.D19X01,b.D20,b.D20X01,b.D20X02,b.D21,b.D22,b.D23,b.D23X01,b.D24,b.D25,b.D26,b.D27,b.D28,b.D29,b.D30,b.D31,b.D32,b.D33,b.D34,b.CJR,b.CJRQ,b.XGR,b.XGRQ,b.JGID,b.
b.XSERYFS,b.A17X02,b.A17X03,b.A17X04,b.A17X05,b.YBXYZD,b.YBXYZDMC,b.YBZYZD,b.YBZYZDMC,b.B35C,b.DIEFLAG,b.YBFFFS,b.CYZLJG,b.C47X01,b.C47X02,b.C47X03,b.A23C1,b.RYSQK,b.ZYZHBM1,b.ZYZHMC1,b.YBZYZHBM1,b.YBZYZHMC1,b.ZYZHBM2,b.ZYZHMC2,
b.YBZYZHBM2,b.YBZYZHMC2,b.PFKLF,b.BZYZSNLR,b.WCLCLJ,b.TCYY,b.SFBY.b.BYYY,b.SZ,b.SZQXZ,b.SZQXY,b.SZQXN,
YYGRQK,YYGRSSXG,YYGRQRXCZXXG,KJYWSYQK,KJYWMC1,KJYWMC2,KJYWMC3,KJYWMC4,KJYWMC5,KJYWMC6,SFFSYC,SFZYQJFS,SYFY,YCFQ,YFFYDYW,NCBX,ZYQJSFFSDDHZC,ZYQJDDHZCDSHCD,DDHZCDYY,ZYQJSTYS,LYSTSNSDZ,DWFZR,TJFZR,TBR,LXDH,SJ,BCRQ
from HIS_YB_JSB a left join HIS_EMR_BASY b on a.JGID=b.JGID and a.KLS=b.JZPKEY where a.JZLX='ZY' and a.CXZT='0' and a.JGID=? and a.SETL_TIME between ? and ? and b.PKEY is not null
12
93
93
select PKEY,HZPKEY,JZPKEY,ZYNO,BASYPKEY,ISMAIN,ISZY,ZDBM,ZDMC,RYBQ,CYQK,XH,CJR,CJRQ,XGR,XGRQ,JGID,DIAG_TYPE,YBZDBM,YBZDMC,YBZHBM,YBZHMC,YBJBLX,ZHBM,ZZZHBM,ZZZHMC
from HIS_EMR_BASY_CYZD where JGID=? and hzpkey=? and jzpkey=? and BASYPKEY=? order by ISZY,ismain desc,xh
PKEY
JGID
HZPKEY
JZPKEY
BASYPKEY
12
12
12
12
select PKEY,HZPKEY,JZPKEY,ZYNO,BASYPKEY,ISMAIN,SSBM,SSMC,SSRQ,SSJB,SSCXSJ,SSSZ,SSI,SSII,SSQKYHDJ,SSMZFS,SSMZFJ,SSMZYS,XH,CJR,CJRQ,XGR,XGRQ,JGID,YBSSBM,YBSSMC,SSKSSJ,SSJSSJ,MZKSSJ,MZJSSJ,ISJZSS,
ZQSS,SSZBTS,SQYFXKJYGYSJ,QKBW,SSQKGR,SSBFZ,SSBFZMC
from HIS_EMR_BASY_SSJL where JGID=? and hzpkey=? and jzpkey=? and BASYPKEY=? order by ismain desc,xh
PKEY
HZPKEY
JZPKEY
BASYPKEY
JGID
12
12
12
12
select PKEY,HZPKEY,JZPKEY,ZYNO,BASYPKEY,MC,INTIME,OUTTIME,XH,CJR,CJRQ,XGR,XGRQ,JGID,HJSC,ICU_TYPE,BACKICU from HIS_EMR_BASY_ZZJH where JGID=? and hzpkey=? and jzpkey=? and BASYPKEY=? ORDER BY XH
PKEY
HZPKEY
JZPKEY
BASYPKEY
JGID
12
12
12
12
select PKEY,BH,MC,PYM,WBM,QKDJ,WCBS,SSFL,SSDJ,GBTHREE,GBFOUR,GBWC,ZT,LOCKFLAG,XH from HIS_SSZD where zt=1 and (BH LIKE ? OR MC LIKE ? OR PYM LIKE ? OR WBM LIKE ?) order by xh,BH asc
12
12
12
12
select PKEY,BH,MC,PYM,WBM,QKDJ,WCBS,SSFL,SSDJ,GBTHREE,GBFOUR,GBWC,ZT,LOCKFLAG,XH,ZYZLBS from HIS_SSZD where zt=1 order by xh,BH asc
SELECT PKEY,HZPKEY,JZPKEY,ZYNO,DATARQ,SFDR,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_EMR_HLWS_DATA WHERE JGID=? AND HZPKEY=? AND JZPKEY=? ORDER BY DATARQ
12
12
12
select a.ROWPKEY||a.ZBLX findpkey,a.PKEY,a.ROWPKEY,a.ZBLX,a.ZBSJLX,a.ZBVALUE,b.DATARQ from HIS_EMR_HLWS_DATA_MX a left join HIS_EMR_HLWS_DATA b on a.ROWPKEY=b.pkey where b.JGID=? and b.hzpkey=? and b.jzpkey=?
12
12
12
select PKEY,XMMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_CRAMS where JGID=? order by pkey
//PKEY,XMMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
12
select s.BASYFL,sum(m.DET_ITEM_FEE_SUMAMT) je from HIS_YB_JSB a
left join HIS_YB_SCMX m on a.JGID=m.JGID and a.IPT_NO=m.IPT_OTP_NO and a.MDTRT_ID=m.MDTRT_ID and a.SETL_ID=m.SETL_ID
left join HIS_SFX s on m.JGID=s.JGID and m.MEDINS_LIST_CODG=s.BM
where a.JGID=? and a.CXZT='0' and a.KLS=? and m.ZT='0'
group by s.BASYFL
12
12
select sum(m.CNT) cnt from HIS_YB_JSB a
left join HIS_YB_SCMX m on a.JGID=m.JGID and a.IPT_NO=m.IPT_OTP_NO and a.MDTRT_ID=m.MDTRT_ID and a.SETL_ID=m.SETL_ID
where a.JGID=? and a.CXZT='0' and a.KLS=? and m.ZT='0' and m.MEDINS_LIST_CODG in (
select b.SFX_BM from HIS_ZY_FUNCTION_ITEMS a
left join HIS_YZX_SFX b on a.JGID=b.JGID and a.YZXPKEY=b.YZX_BM
where a.JGID=? and functionpkey=?)
12
12
12
12
select f.BASYFL,sum(ROUND(a.SFXZFY,2)) je
from HIS_SFZD_SFXMXB a
left join HIS_SFZD_ZB zd on a.JGID=zd.JGID and a.ZDZBPKEY=zd.PKEY
left join HIS_SFX f on a.SFX=f.BM and a.JGID=f.JGID
where a.SFXZFY!=0 and a.JGID=? and zd.JZPKEY=?
group by f.BASYFL
12
12
select sum(a.SFXSL) cnt
from HIS_SFZD_SFXMXB a
left join HIS_SFZD_ZB zd on a.JGID=zd.JGID and a.ZDZBPKEY=zd.PKEY
where a.JGID=? and zd.JZPKEY=?
and a.SFX in (
select b.SFX_BM from HIS_ZY_FUNCTION_ITEMS a
left join HIS_YZX_SFX b on a.JGID=b.JGID and a.YZXPKEY=b.YZX_BM
where a.JGID=? and functionpkey=?)
12
12
12
12
select PKEY,HZP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 and OPASTATE != 004 ) ssnum from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_SFZD_ZB c on a.pkey=c.jzpkey and a.JGID=c.JGID left join HIS_MZJS_MZFPZB d on c.pkey=d.GLZDBPKEY and a.JGID=d.JGID and d.SFZT='1' left join HIS_JZ_MZZD e on a.hzpkey=e.hzpkey and a.pkey=e.jzpkey and a.JGID=e.JGID and e.SFZZD=1 and e.zdlx='001' where a.JGID=? and a.JZLX='Z' order by a.jjrq
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,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.CW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