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.
3500 lines
203 KiB
3500 lines
203 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<datasource>
|
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao-->
|
|
|
|
<dao id="emrActiveClassDao" cache="true" log="true" type="1" memo="电子病历活动记录父节点dao">
|
|
<sql>select ACTIVECLASS,PARENTACTIVECLASS,CAPTION,SORT,SHOWFLAG,BROWSEPOWER,EDITPOWER,CJR,CJRQ,XGR,XGRQ from HIS_EMR_ACTIVECLASS order by ACTIVECLASS</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_ACTIVECLASS" insert="true" update="true" delete="true">
|
|
<primary>ACTIVECLASS</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVECLASS" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="PARENTACTIVECLASS" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="CAPTION" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="SORT" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="SHOWFLAG" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="BROWSEPOWER" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="EDITPOWER" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="CJR" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="XGR" type="12" table="HIS_EMR_ACTIVECLASS" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_ACTIVECLASS" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrActiveRecordDao" cache="true" log="true" type="1" memo="电子病历活动记录节点dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_ACTIVERECORD" insert="true" update="true" delete="true">
|
|
<primary>ACTIVERECORD</primary>
|
|
<primary>ACTIVECLASS</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="ACTIVECLASS" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CAPTION" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="INSORT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="OUTSORT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="TIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYTIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERTIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SIGNTIMELIMIT1" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SIGNTIMELIMIT2" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="STDACTIVERECORD" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SHOWFLAG" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="INTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="WRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CHRONICINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CHRONICWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="BROWSEPOWER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="EDITPOWER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="WRITEREQUIRE" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="REFER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="XGR" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="TEMPLATEIDENTIFIER" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="activerecordtreedao" type="1" memo="电子病历活动记录树dao">
|
|
<sql>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</sql>
|
|
<fields>
|
|
<f name="ACTIVERECORD" type="12" />
|
|
<f name="CAPTION" type="12" />
|
|
<f name="ACTIVECLASS" type="1" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="emrChapterDao" log="true" type="1" memo="电子病历章节管理dao">
|
|
<sql>select ACTIVECLASS,CODE,NAME,BASETIMES,CONSTRAINT,MEMO,ISSAVETODB,PXM,CJR,CJRQ,XGR,XGRQ from HIS_EMR_CHAPTER where ACTIVECLASS like ? order by PXM,CODE</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_CHAPTER" insert="true" update="true" delete="true">
|
|
<primary>ACTIVECLASS</primary>
|
|
<primary>CODE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVECLASS" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="CODE" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="NAME" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="BASETIMES" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="CONSTRAINT" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="MEMO" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="ISSAVETODB" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="PXM" type="-5" table="HIS_EMR_CHAPTER" />
|
|
<f name="CJR" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_CHAPTER" />
|
|
<f name="XGR" type="12" table="HIS_EMR_CHAPTER" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_CHAPTER" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrDataGroupDao" log="true" type="1" memo="电子病历数据组dao">
|
|
<sql>select CODE,NAME,PARENTCODE,ISCUSTOM,ISENABLED,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_DATAGROUP where JGID=? order by code</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAGROUP" insert="true" update="true" delete="true">
|
|
<primary>CODE</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="CODE" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="NAME" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="PARENTCODE" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="ISCUSTOM" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="ISENABLED" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="CJR" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_DATAGROUP" />
|
|
<f name="XGR" type="12" table="HIS_EMR_DATAGROUP" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_DATAGROUP" />
|
|
<f name="JGID" type="12" table="HIS_EMR_DATAGROUP" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrDataElementDao" log="true" type="1" memo="电子病历数据元管理dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAELEMENT" insert="true" update="true" delete="true">
|
|
<primary>INTERNALIDENTIFIER</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="INTERNALIDENTIFIER" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="CELLIDENTIFIER" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="CELLNAME" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="CELLDEFINITION" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="DATATYPE" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="DATAFORMAT" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="DATAVALUEDESCRIBE" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="DATAVALUETYPE" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="DATAVALUE" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="CJR" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="XGR" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_DATAELEMENT" />
|
|
<f name="JGID" type="12" table="HIS_EMR_DATAELEMENT" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrDataElementRelationDao" log="true" type="1" memo="病历数据元与病历活动节点关联dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAELEMENT_RELATION" insert="true" update="true" delete="true">
|
|
<primary>ACTIVECLASS</primary>
|
|
<primary>INTERNALIDENTIFIER</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVECLASS" type="12" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
<f name="INTERNALIDENTIFIER" type="12" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
<f name="CELLIDENTIFIER" type="12" />
|
|
<f name="CELLNAME" type="12" />
|
|
<f name="CELLDEFINITION" type="12" />
|
|
<f name="DATATYPE" type="12" />
|
|
<f name="DATAFORMAT" type="12" />
|
|
<f name="DATAVALUEDESCRIBE" type="12" />
|
|
<f name="DATAVALUETYPE" type="12" />
|
|
<f name="DATAVALUE" type="12" />
|
|
<f name="CJR" type="12" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
<f name="XGR" type="12" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
<f name="JGID" type="12" table="HIS_EMR_DATAELEMENT_RELATION" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrDataGroupRelationDao" log="true" type="1" memo="病历数据组与病历活动节点关联dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAGROUP_RELATION" insert="true" update="true" delete="true">
|
|
<primary>ACTIVECLASS</primary>
|
|
<primary>GROUPCODE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVECLASS" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="GROUPCODE" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="CODE" type="12" />
|
|
<f name="NAME" type="12" />
|
|
<f name="PARENTCODE" type="12" />
|
|
<f name="ISCUSTOM" type="12" />
|
|
<f name="ISENABLED" type="12" />
|
|
<f name="CJR" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="XGR" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="JGID" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrTemplateGroupDao" log="true" cache="true" type="1">
|
|
<sql>select PKEY,ACTIVERECORD,GROUPNAME,CJR,CJRQ,XGR,XGRQ,JGID,ISCHINESE from HIS_EMR_TEMPLATE_GROUP where JGID=? order by pkey</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_TEMPLATE_GROUP" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>ACTIVERECORD</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="GROUPNAME" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="CJR" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="XGR" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="JGID" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
<f name="ISCHINESE" type="12" table="HIS_EMR_TEMPLATE_GROUP" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrAddTemplateDao" log="true" type="1">
|
|
<sql>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=?</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_TEMPLATE" insert="true" update="true" delete="true">
|
|
<primary>TEMPLATE</primary>
|
|
<primary>TEMPLATEGROUPID</primary>
|
|
<primary>ACTIVERECORD</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="TEMPLATE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="TEMPLATEGROUPID" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="TEMPLATENAME" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="FILEPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="SEX" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSTANDARD" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISMUST" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSHARE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="FILEVERSION" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="WRITINGTIMES" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSHOW" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISNEWPAGE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISREVIEW" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="REVIEWMAN" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="REVIEWTIME" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="DELETEMAN" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="DELETETIME" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONDIAGNOSE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONBODY" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONKS" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="CJR" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="XGR" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="JGID" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BLWSPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BLWSINPUTPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BROWSEPOWER" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="EDITPOWER" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONRY" type="12" table="HIS_EMR_TEMPLATE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrTemplateAllDao" log="true" cache="true" type="1" memo="获取所有电子病历模板dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_TEMPLATE" insert="true" update="true" delete="true">
|
|
<primary>TEMPLATE</primary>
|
|
<primary>ACTIVERECORD</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="TEMPLATE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="TEMPLATEGROUPID" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="TEMPLATENAME" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="FILEPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="SEX" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSTANDARD" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISMUST" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSHARE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="FILEVERSION" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="WRITINGTIMES" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSHOW" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISNEWPAGE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISREVIEW" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="REVIEWMAN" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="REVIEWTIME" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="DELETEMAN" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="DELETETIME" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONDIAGNOSE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONBODY" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONKS" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="CJR" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="XGR" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="JGID" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BLWSPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BLWSINPUTPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BROWSEPOWER" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="EDITPOWER" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONRY" type="12" table="HIS_EMR_TEMPLATE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrHdyElementDao" log="true" type="1">
|
|
<sql>select RKEY,NAME,VALUE,ACTIVERECORD,INTERNALIDENTIFIER from HIS_EMR_HDY_ELEMENT where ACTIVERECORD like ? or ACTIVERECORD like ? order by RKEY</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HDY_ELEMENT" insert="true" update="true" delete="true">
|
|
<primary>RKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="RKEY" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="NAME" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="VALUE" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="INTERNALIDENTIFIER" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="emrHdyElementSetupDao" log="true" type="1" memo="用于设置宏定义参数的dao">
|
|
<sql>select RKEY,NAME,VALUE,ACTIVERECORD,INTERNALIDENTIFIER from HIS_EMR_HDY_ELEMENT where ACTIVERECORD = ? order by rkey</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HDY_ELEMENT" insert="true" update="true" delete="true">
|
|
<primary>RKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="RKEY" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="NAME" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="VALUE" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
<f name="INTERNALIDENTIFIER" type="12" table="HIS_EMR_HDY_ELEMENT" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="emrYldyDao" log="true" cache="true" type="1" memo="医疗单元设置dao">
|
|
<sql>select PKEY,NAME,MEMO,GSKS,ISYX,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_YLDY where JGID=? order by pkey</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_YLDY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>GSKS</primary>
|
|
<primary>ISYX</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="NAME" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="MEMO" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="GSKS" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="ISYX" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_YLDY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_YLDY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_YLDY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_YLDY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrYldyGlysDao" log="true" type="1" memo="医疗单元关联医生dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_YLDY_YLRY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>YLDYPKEY</primary>
|
|
<primary>RYPKEY</primary>
|
|
<primary>KSPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="YLDYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="RYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="KSPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISZZ" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISYX" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="QMJB" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="NAME" type="12" />
|
|
<f name="MEMO" type="12" />
|
|
<f name="GSKS" type="12" />
|
|
<f name="XM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="doctorManageDao" log="true" type="1" memo="医生管理dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="MAIN_JGYH" insert="true" update="true" delete="true">
|
|
<primary>USERID</primary>
|
|
<primary>JGID</primary>
|
|
<primary>YSJB</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="USERID" type="12" table="MAIN_JGYH" />
|
|
<f name="MRKS" type="12" table="MAIN_JGYH" />
|
|
<f name="JGID" type="12" table="MAIN_JGYH" />
|
|
<f name="EFFICET" type="12" table="MAIN_JGYH" />
|
|
<f name="SFZYYS" type="12" table="MAIN_JGYH" />
|
|
<f name="DUTY" type="12" table="MAIN_JGYH" />
|
|
<f name="SFZYHS" type="12" table="MAIN_JGYH" />
|
|
<f name="SFMZYS" type="12" table="MAIN_JGYH" />
|
|
<f name="EMPID" type="12" table="MAIN_JGYH" />
|
|
<f name="SFCFQ" type="12" table="MAIN_JGYH" />
|
|
<f name="BDZH" type="12" table="MAIN_JGYH" />
|
|
<f name="SFMZSFY" type="12" table="MAIN_JGYH" />
|
|
<f name="SFZYSFY" type="12" table="MAIN_JGYH" />
|
|
<f name="YBUSERNAME" type="12" table="MAIN_JGYH" />
|
|
<f name="YBPASSWORD" type="12" table="MAIN_JGYH" />
|
|
<f name="SFKXQYBL" type="12" table="MAIN_JGYH" />
|
|
<f name="SFZYZHQ" type="12" table="MAIN_JGYH" />
|
|
<f name="KSSYSJB" type="12" table="MAIN_JGYH" />
|
|
<f name="FZLYYSJB" type="12" table="MAIN_JGYH" />
|
|
<f name="SFJB" type="12" table="MAIN_JGYH" />
|
|
<f name="CJR" type="12" table="MAIN_JGYH" />
|
|
<f name="CJRQ" type="93" table="MAIN_JGYH" />
|
|
<f name="XGR" type="12" table="MAIN_JGYH" />
|
|
<f name="XGRQ" type="93" table="MAIN_JGYH" />
|
|
<f name="YHQXBS" type="-5" table="MAIN_JGYH" />
|
|
<f name="JGMC" type="12" />
|
|
<f name="YSJB" type="12" table="MAIN_JGYH" />
|
|
<f name="NAME" type="12" />
|
|
<f name="USERACCOUNT" type="12" />
|
|
<f name="SQYS" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="ysglyldyDao" log="true" type="1">
|
|
<sql>select PKEY,YLDYPKEY,RYPKEY,KSPKEY,ISZZ,ISYX,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_YLDY_YLRY where JGID=? and RYPKEY=? order by pkey</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_YLDY_YLRY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="YLDYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="RYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="KSPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISZZ" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISYX" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrSjsqDao" log="true" type="1">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_SJSQ" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>YLDYPKEY</primary>
|
|
<primary>ZGYSPKEY</primary>
|
|
<primary>SQJB</primary>
|
|
<primary>SQYS</primary>
|
|
<primary>ISYX</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="YLDYPKEY" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="ZGYSPKEY" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="SQJB" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="SQYS" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="ISYX" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="ISMRHSFCSZ" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="CJR" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_SJSQ" />
|
|
<f name="XGR" type="12" table="HIS_EMR_SJSQ" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_SJSQ" />
|
|
<f name="JGID" type="12" table="HIS_EMR_SJSQ" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrRecordTemplateDao" log="true" type="1">
|
|
<sql>
|
|
|
|
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
|
|
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_TEMPLATE" insert="true" update="true" delete="true">
|
|
<primary>TEMPLATE</primary>
|
|
<primary>ACTIVERECORD</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="FLAG" type="1" />
|
|
<f name="TEMPLATE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="TEMPLATEGROUPID" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="TEMPLATENAME" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="FILEPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="SEX" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSTANDARD" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISMUST" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSHARE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="FILEVERSION" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="WRITINGTIMES" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISSHOW" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISNEWPAGE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISREVIEW" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="REVIEWMAN" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="REVIEWTIME" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="DELETEMAN" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="DELETETIME" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONDIAGNOSE" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONBODY" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONKS" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="CJR" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="XGR" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_TEMPLATE" />
|
|
<f name="JGID" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="ISCHINESE" type="12" />
|
|
<f name="BLWSPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="BLWSINPUTPATH" type="12" table="HIS_EMR_TEMPLATE" />
|
|
<f name="RELATIONRY" type="12" table="HIS_EMR_TEMPLATE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrPatientRecordByActiveRecordDao" log="true" type="1">
|
|
<sql> select '' flag,PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,ACTIVERECORD,TEMPLATEPKEY,RECORDNAME,RECORDFILEPATH,GSKS,ZYYS,ZYYSQM,ZYYSQMSJ,ZYYSQMTP,ZYYSCAQM,ZZYS,ZZYSQM,ZZYSQMSJ,ZZYSQMTP,ZZYSCAQM,ZRYS,ZRYSQM,ZRYSQMSJ,ZRYSQMTP,ZRYSCAQM,ZKR,ISZKQM,ZKSJ,GDR,ISGDQM,GDSJ,ISDELETE,SCR,SCSJ,CJR,CJRQ,LASTMAN,LASTRQ,JGID,QMZT,SXYS,SXYSQM,SXYSQMSJ,SXYSQMTP,SXYSCAQM,FZRYS,FZRYSQM,FZRYSQMSJ,FZRYSQMTP,FZRYSCAQM,MZYS,MZYSQM,MZYSQMSJ,MZYSQMTP,MZYSCAQM,SXYSKEY,ZYYSKEY,ZZYSKEY,FZRYSKEY,ZRYSKEY,MZYSKEY from HIS_EMR_RECORD where JGID=? and HZPKEY = ? AND JZPKEY=? and ACTIVERECORD like ? AND ISDELETE=0 ORDER BY CJRQ</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_RECORD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>ZRYSQM</primary>
|
|
<primary>ISZKQM</primary>
|
|
<primary>ZYYSQM</primary>
|
|
<primary>ISGDQM</primary>
|
|
<primary>ZZYSQM</primary>
|
|
<primary>SXYSQM</primary>
|
|
<primary>FZRYSQM</primary>
|
|
<primary>ISDELETE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="FLAG" type="12"/>
|
|
<f name="PKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="TEMPLATEPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDNAME" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GSKS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISZKQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="GDR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISGDQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GDSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="LASTMAN" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="LASTRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="QMZT" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="emrPatientRecordDao" log="true" type="1" memo="患者书写病历dao,一般用于显示病历树和病历床位视图,这里不显示护理记录病历,医生只看护理记录之外的病历">
|
|
<sql> select '' flag,'' value,PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,ACTIVERECORD,TEMPLATEPKEY,RECORDNAME,RECORDFILEPATH,GSKS,ZYYS,ZYYSQM,ZYYSQMSJ,ZYYSQMTP,ZYYSCAQM,ZZYS,ZZYSQM,ZZYSQMSJ,ZZYSQMTP,ZZYSCAQM,ZRYS,ZRYSQM,ZRYSQMSJ,ZRYSQMTP,ZRYSCAQM,ZKR,ISZKQM,ZKSJ,GDR,ISGDQM,GDSJ,ISDELETE,SCR,SCSJ,CJR,CJRQ,LASTMAN,LASTRQ,JGID,QMZT,SXYS,SXYSQM,SXYSQMSJ,SXYSQMTP,SXYSCAQM,FZRYS,FZRYSQM,FZRYSQMSJ,FZRYSQMTP,FZRYSCAQM,MZYS,MZYSQM,MZYSQMSJ,MZYSQMTP,MZYSCAQM,SXYSKEY,ZYYSKEY,ZZYSKEY,FZRYSKEY,ZRYSKEY,MZYSKEY from HIS_EMR_RECORD where JGID=? and hzpkey=? and jzpkey=? AND ISDELETE=? ORDER BY CJRQ</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_RECORD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>ZRYSQM</primary>
|
|
<primary>ISZKQM</primary>
|
|
<primary>ZYYSQM</primary>
|
|
<primary>ISGDQM</primary>
|
|
<primary>ZZYSQM</primary>
|
|
<primary>SXYSQM</primary>
|
|
<primary>FZRYSQM</primary>
|
|
<primary>ISDELETE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="FLAG" type="1" />
|
|
<f name="VALUE" type="1" />
|
|
<f name="PKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="TEMPLATEPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDNAME" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GSKS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISZKQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="GDR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISGDQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GDSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="LASTMAN" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="LASTRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="QMZT" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<!-- <f name="LOCKFLAG" type="-5" table="HIS_EMR_RECORD" />-->
|
|
<f name="SXYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="hisemrelementstoredao" cache="true" type="1" memo="his系统内部数据元选择项dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAELEMENT_STORE" insert="true" update="true" delete="true">
|
|
<primary>PARENTID</primary>
|
|
<primary>ID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ID" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="PARENTID" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="UNITID" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="ELEMENTLEVEL" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="SORT" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="ISDIR" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="CAPTION" type="12" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="ELEMENTTYPE" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="ISMULTISELECT" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="ISSELFEXPLANED" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="PROGRAMERCONTROL" type="-5" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="INFOFILED" type="12" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
<f name="STDELEMENT" type="12" table="HIS_EMR_DATAELEMENT_STORE" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="hisemrelementselectitemdao" type="1" memo="his系统内部数据元选择项列表数据dao">
|
|
<sql>select SELECTITEM,ID,ITEM,ITEMNAME,SORT,PINYIN,PINYINFULL,STDRANGE from HIS_EMR_DATAELEMENT_SELECTITEM where id=?</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAELEMENT_SELECTITEM" insert="true" update="true" delete="true">
|
|
<primary>ID</primary>
|
|
<primary>SELECTITEM</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="SELECTITEM" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="ID" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="ITEM" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="ITEMNAME" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="SORT" type="-5" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="PINYIN" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="PINYINFULL" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
<f name="STDRANGE" type="12" table="HIS_EMR_DATAELEMENT_SELECTITEM" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="emrYldyByZgysDao" log="true" type="1">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_YLDY_YLRY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>YLDYPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="YLDYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="RYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="KSPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISZZ" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISYX" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="NAME" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="emrYldyGlallysDao" log="true" type="1" memo="医疗单元关联所有有效医生dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_YLDY_YLRY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>YLDYPKEY</primary>
|
|
<primary>RYPKEY</primary>
|
|
<primary>KSPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="YLDYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="RYPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="KSPKEY" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISZZ" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="ISYX" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_YLDY_YLRY" />
|
|
<f name="NAME" type="12" />
|
|
<f name="MEMO" type="12" />
|
|
<f name="GSKS" type="12" />
|
|
<f name="XM" type="12" />
|
|
<f name="YSJB" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="emrSxzkGridDao" log="true" type="1" memo="时限质控显示表格对应的dao">
|
|
<sql>select sysdate zksj,sysdate jzsj,'' wdlx,'' zklb,'' sysj,'' qxcs,0 jgsj from dual where 1=2</sql>
|
|
<fields>
|
|
<f name="ZKSJ" type="93" />
|
|
<f name="JZSJ" type="93" />
|
|
<f name="WDLX" type="1" />
|
|
<f name="ZKLB" type="1" />
|
|
<f name="SYSJ" type="1" />
|
|
<f name="QXCS" type="1" />
|
|
<f name="jgsj" type="8" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
<dao id="emrsxkzdao" type="1" memo="获取病历时限控制活动记录参数dao">
|
|
<sql>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@</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_ACTIVERECORD" insert="true" update="true" delete="true">
|
|
<primary>ACTIVERECORD</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVERECORD" type="1" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="ACTIVECLASS" type="1" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CAPTION" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="INSORT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="OUTSORT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="TIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYTIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERTIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SIGNTIMELIMIT1" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SIGNTIMELIMIT2" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="STDACTIVERECORD" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SHOWFLAG" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="INTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="WRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CHRONICINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CHRONICWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="BROWSEPOWER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="EDITPOWER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="WRITEREQUIRE" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="REFER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="emrHJQCStdDao" log="true" type="1">
|
|
<sql>select PKEY,QCNAME,QCMEMO,QCTYPE,PYM,WBM,CJR,CJRQ,XGR,XGRQ,JGID from HIS_EMR_HJQC_STD where JGID=? order by qcname</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HJQC_STD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="QCNAME" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="QCMEMO" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="QCTYPE" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="PYM" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="WBM" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HJQC_STD" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HJQC_STD" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HJQC_STD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HJQC_STD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrGradedStdDao" log="true" type="1">
|
|
<sql>select PKEY,NAME,SCORE,VOTE from HIS_EMR_GRADED_STD order by pkey</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_GRADED_STD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,NAME,SCORE,VOTE
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_GRADED_STD" />
|
|
<f name="NAME" type="12" table="HIS_EMR_GRADED_STD" />
|
|
<f name="SCORE" type="-5" table="HIS_EMR_GRADED_STD" />
|
|
<f name="VOTE" type="12" table="HIS_EMR_GRADED_STD" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrHJQCFeedBackDao" log="true" type="1">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HJQC_FEEDBACK" insert="true" update="true" delete="true">
|
|
<primary>JGID</primary>
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="FEEDBACKTITLE" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="FEEDBACKCONTENT" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCUSR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCDEP" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCTIME" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSEFLAG" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSEUSR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSETIME" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrHJQCRecordDao" log="true" type="1">
|
|
<sql>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=?</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HJQC_RECORD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCSTDPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="EMRPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="EMRNAME" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCCONTENT" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCFEEDBACKPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCFEEDBACKCONTENT" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="emrAllPatientRecordForQcLimitTimesDao" log="true" type="1">
|
|
<sql> 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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_RECORD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>ZRYSQM</primary>
|
|
<primary>ISZKQM</primary>
|
|
<primary>ZYYSQM</primary>
|
|
<primary>ISGDQM</primary>
|
|
<primary>ZZYSQM</primary>
|
|
<primary>ISDELETE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="TEMPLATEPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDNAME" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GSKS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISZKQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="GDR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISGDQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GDSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="LASTMAN" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="LASTRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="QMZT" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="JJRQ" type="93" />
|
|
<f name="CYRQ" type="93" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrAllsxkzdao" type="1" memo="获取病历时限控制活动记录参数dao">
|
|
<sql>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) </sql>
|
|
<tables>
|
|
<table name="HIS_EMR_ACTIVERECORD" insert="true" update="true" delete="true">
|
|
<primary>ACTIVERECORD</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVERECORD" type="1" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="ACTIVECLASS" type="1" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CAPTION" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="INSORT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="OUTSORT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="TIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYTIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERTIMELIMIT" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SIGNTIMELIMIT1" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SIGNTIMELIMIT2" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="STDACTIVERECORD" type="12" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SHOWFLAG" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="INTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="WRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="SEVERITYWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="DANGERWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CHRONICINTERVALTIME" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="CHRONICWRITETIMES" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="BROWSEPOWER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="EDITPOWER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="WRITEREQUIRE" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
<f name="REFER" type="-5" table="HIS_EMR_ACTIVERECORD" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="emrAddHJQCRecordDao" log="true" type="1" memo="用于环节质控抽查病历的新增质控记录">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HJQC_RECORD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>EMRPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCSTDPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="EMRPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="EMRNAME" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCCONTENT" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCFEEDBACKPKEY" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="QCFEEDBACKCONTENT" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HJQC_RECORD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HJQC_RECORD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrAddHJQCFeedBackDao" log="true" type="1" memo="用于环节质控抽查病历的新增质控反馈记录">
|
|
<sql>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=? </sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HJQC_FEEDBACK" insert="true" update="true" delete="true">
|
|
<primary>JGID</primary>
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>QCUSR</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="FEEDBACKTITLE" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="FEEDBACKCONTENT" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCUSR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCDEP" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCTIME" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSEFLAG" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSEUSR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSETIME" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<dao id="emrDataGroupByTemplateDao" log="true" type="1" memo="病历模板设计关联病历数据组dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_DATAGROUP_RELATION" insert="true" update="true" delete="true">
|
|
<primary>ACTIVECLASS</primary>
|
|
<primary>GROUPCODE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="ACTIVECLASS" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="GROUPCODE" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="CODE" type="12" />
|
|
<f name="NAME" type="12" />
|
|
<f name="PARENTCODE" type="12" />
|
|
<f name="ISCUSTOM" type="12" />
|
|
<f name="ISENABLED" type="12" />
|
|
<f name="CJR" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="XGR" type="12" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_DATAGROUP_RELATION" />
|
|
<f name="JGID" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="emrRecordAndTemplateDao" type="1" memo="用于显示已经书写病历和病历模板的dao">
|
|
<sql>select '' type,'' value,'' pkey,'' name,sysdate CJRQ,'' state,'' activerecord from dual where 1=2</sql>
|
|
<fields>
|
|
<f name="type" type="12" />
|
|
<f name="value" type="12" />
|
|
<f name="pkey" type="12" />
|
|
<f name="name" type="12" />
|
|
<f name="CJRQ" type="93" />
|
|
<f name="state" type="12" />
|
|
<f name="activerecord" type="12" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="emrRecordHistoryAddDao" log="true" type="1" memo="病历操作的时候新增历史记录dao">
|
|
<sql>select PKEY,HZPKEY,JZPKEY,RECORDPKEY,RECORDFILEPATH,DLYS,CZYS,CZSJ,CZLX,IP,CJR,CJRQ,JGID,FILESIZE from HIS_EMR_RECORD_HISTORY where 1=2</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_RECORD_HISTORY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="RECORDPKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="DLYS" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CZYS" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CZSJ" type="93" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CZLX" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="IP" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="FILESIZE" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
</fields>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrRecordHistoryDao" log="true" type="1" memo="病历操作的历史记录dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_RECORD_HISTORY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="RECORDPKEY" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="DLYS" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CZYS" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CZSJ" type="93" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CZLX" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="IP" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
<f name="FILESIZE" type="12" table="HIS_EMR_RECORD_HISTORY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="EmrImageTreeDao" log="true" type="1" memo="电子病历图片目录管理树dao">
|
|
<sql>SELECT PKEY,MC,BM,SJBM,CJR,CJRQ,XGR,XGRQ,JGID FROM HIS_EMR_IMAGE_TREE WHERE JGID=? ORDER BY BM</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_IMAGE_TREE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="MC" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="BM" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="SJBM" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="CJR" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="XGR" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_IMAGE_TREE" />
|
|
<f name="JGID" type="12" table="HIS_EMR_IMAGE_TREE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="EmrImageDao" log="true" type="1" memo="电子病历图片管理dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_IMAGE" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>IMAGECATAPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="value" type="12"/>
|
|
<f name="PKEY" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGECATAPKEY" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGENAME" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGEPATH" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGEWIDTH" type="-5" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGEHEIGHT" type="-5" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGETYPE" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="IMAGECANRESIZE" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="CJR" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_IMAGE" />
|
|
<f name="XGR" type="12" table="HIS_EMR_IMAGE" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_IMAGE" />
|
|
<f name="JGID" type="12" table="HIS_EMR_IMAGE" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<!-- <dao id="zyfyprintColumndao" type="1" memo="住院发药打印表头dao">-->
|
|
<!-- <sql>select '' 体温,'' 脉搏,'' 呼吸,'' 收缩压,'' 舒张压,sysdate 采集日期 from dual where 1=2</sql>-->
|
|
<!-- <fields>-->
|
|
<!-- <f name="医疗机构" type="1" />-->
|
|
<!-- <f name="申请科室" type="1" />-->
|
|
<!-- <f name="发药类别" type="1" />-->
|
|
<!-- <f name="单号" type="1" />-->
|
|
<!-- <f name="发药日期" type="93" />-->
|
|
<!-- <f name="打印日期" type="93" />-->
|
|
<!-- <f name="发药人" type="1" />-->
|
|
<!-- <f name="总金额" type="8" />-->
|
|
<!-- </fields>-->
|
|
<!-- </dao> -->
|
|
|
|
<dao id="emrSmtzInputDao" log="true" type="1" memo="病历资源用于引入生命体征的dao">
|
|
<sql>select '' pkey,'' 体温,'' 脉搏,'' 呼吸,'' 收缩压,'' 舒张压,sysdate 采集日期 from dual where 1=2</sql>
|
|
<fields>
|
|
<f name="pkey" type="1" />
|
|
<f name="体温" type="1" />
|
|
<f name="脉搏" type="1" />
|
|
<f name="呼吸" type="1" />
|
|
<f name="收缩压" type="1" />
|
|
<f name="舒张压" type="1" />
|
|
<f name="采集日期" type="93" />
|
|
</fields>
|
|
</dao>
|
|
|
|
<dao id="scdSignDatasByEmrInputDao" log="true" type="1" memo="病历资源用于按日期查询生命体征的dao">
|
|
<sql><![CDATA[select PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,DAYSTR,DAY,TZTYPE,C1,C2,C3,C4,C5,C6,CJR,CJRQ,XGR,XGRQ,JGID from HIS_ZY_SIGN_DATAS where JGID=? and hzpkey=? and jzpkey=? #time# order by DAYSTR,TZTYPE]]></sql>
|
|
<tables>
|
|
<table name="HIS_ZY_SIGN_DATAS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="HZPKEY" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="JZPKEY" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="ZYNO" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="ZYBAH" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="DAYSTR" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="DAY" type="93" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="TZTYPE" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="C1" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="C2" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="C3" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="C4" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="C5" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="C6" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="CJR" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="CJRQ" type="93" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="XGR" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="XGRQ" type="93" table="HIS_ZY_SIGN_DATAS" />
|
|
<f name="JGID" type="12" table="HIS_ZY_SIGN_DATAS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="getEmrQmjbDao" log="true" type="1" memo="获取当前病历的当前操作医生的签名级别dao,如果当前患者的医生单元没有当前医生,那么签名级别为空,不允许签名">
|
|
<sql>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=?</sql>
|
|
<fields>
|
|
<f name="QMJB" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrBasyBaseDao" log="true" type="1" memo="病案首页基础数据dao">
|
|
<sql> 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,ZYZD,A23C1,RYSQK,ZYZHBM1,ZYZHMC1,YBZYZHBM1,YBZYZHMC1,ZYZHBM2,ZYZHMC2,YBZYZHBM2,YBZYZHMC2,PFKLF,
|
|
QT,LCD,BDB,CT,PETCT,SYCT,BC,XP,MRI,CSXDT,TWSJC,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,BWHBZ
|
|
from HIS_EMR_BASY where JGID=? and hzpkey=? and jzpkey=?</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZLLB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SSLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLSB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLJS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISBZSH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BLFX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LCLJBL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="QJCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CGCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BRLY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZZLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZHZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDBM" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYWZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZCZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTNZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGCZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSTPJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZSS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZJF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A48" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A49" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="B12" type="93" table="HIS_EMR_BASY" />
|
|
<f name="B15" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A46C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A13" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A15C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A38C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A19C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A28C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A31C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A33C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B38" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B11C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B13C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B16C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="C01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F03N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F04" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C09C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C10N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X01N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C13N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F10" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B30C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B33" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C27C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F17" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F18" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F19" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B36C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B37" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D09" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D13" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D15" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D18" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XSERYFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DIEFLAG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBFFFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CYZLJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="RYSQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="PFKLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="QT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LCD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BDB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="PETCT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SYCT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XP" type="12" table="HIS_EMR_BASY" />
|
|
<f name="MRI" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CSXDT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TWSJC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BZYZSNLR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="WCLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TCYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFBY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BYYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXN" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRSSXG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQRXCZXXG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWSYQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC3" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC4" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC5" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC6" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFFSYC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFZYQJFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SYFY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YCFQ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YFFYDYW" type="12" table="HIS_EMR_BASY" />
|
|
<f name="NCBX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSFFSDDHZC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJDDHZCDSHCD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DDHZCDYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSTYS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LYSTSNSDZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DWFZR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TJFZR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TBR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LXDH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BCRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="BWHBZ" type="12" table="HIS_EMR_BASY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="emrbasyBaseforpkeydao" log="true" type="1" memo="病案首页基础数据查询-forpkey">
|
|
<sql> 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,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=?
|
|
</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZLLB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SSLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLSB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLJS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISBZSH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BLFX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LCLJBL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="QJCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CGCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BRLY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZZLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZHZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDBM" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYWZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZCZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTNZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGCZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSTPJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZSS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZJF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A48" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A49" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="B12" type="93" table="HIS_EMR_BASY" />
|
|
<f name="B15" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A46C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A13" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A15C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A38C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A19C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A28C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A31C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A33C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B38" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B11C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B13C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B16C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="C01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F03N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F04" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C09C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C10N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X01N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C13N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F10" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B30C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B33" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C27C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F17" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F18" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F19" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B36C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B37" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D09" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D13" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D15" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D18" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XSERYFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DIEFLAG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBFFFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CYZLJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="RYSQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="PFKLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="WCLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TCYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFFSYC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YCFQ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SYFY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YFFYDYW" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSFFSDDHZC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSTYS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LYSTSNSDZ" type="12" table="HIS_EMR_BASY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="emrbasyBasesexdao" log="true" type="1" memo="病案首页性别为空">
|
|
<sql>select PKEY,HZPKEY,JZPKEY,JGID,A12C from HIS_EMR_BASY where JGID=? and A12C is null</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A12C" type="12" table="HIS_EMR_BASY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="emrbasyBasealldao" log="true" type="1" memo="病案首页年龄多岁字处理">
|
|
<sql>select PKEY,HZPKEY,JZPKEY,JGID,A14 from HIS_EMR_BASY where JGID=? </sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A14" type="12" table="HIS_EMR_BASY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="basybycysjdao" log="true" type="1" memo="病案首页以出院时间查询">
|
|
<sql>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 ?</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY" insert="false" update="false" delete="false">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZLLB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SSLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLSB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLJS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISBZSH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BLFX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LCLJBL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="QJCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CGCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BRLY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZZLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZHZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDBM" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYWZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZCZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTNZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGCZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSTPJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZSS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZJF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A48" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A49" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="B12" type="93" table="HIS_EMR_BASY" />
|
|
<f name="B15" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A46C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A13" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A15C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A38C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A19C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A28C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A31C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A33C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B38" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B11C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B13C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B16C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="C01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F03N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F04" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C09C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C10N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X01N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C13N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F10" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B30C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B33" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C27C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F17" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F18" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F19" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B36C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B37" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D09" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D13" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D15" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D18" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XSERYFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DIEFLAG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBFFFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CYZLJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="RYSQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="PFKLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BZYZSNLR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="WCLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TCYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFBY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BYYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXN" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRSSXG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQRXCZXXG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWSYQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC3" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC4" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC5" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC6" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFFSYC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFZYQJFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SYFY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YCFQ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YFFYDYW" type="12" table="HIS_EMR_BASY" />
|
|
<f name="NCBX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSFFSDDHZC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJDDHZCDSHCD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DDHZCDYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSTYS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LYSTSNSDZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DWFZR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TJFZR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TBR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LXDH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BCRQ" type="93" table="HIS_EMR_BASY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="basybyjssjdao" log="true" type="1" memo="病案首页以结算时间查询">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY" insert="false" update="false" delete="false">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZLLB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SSLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLSB" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISZYZLJS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ISBZSH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BLFX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LCLJBL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="QJCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CGCS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BRLY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZZLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZHZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDBM" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYWZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZCZF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTNZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYGCZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSZL" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQT" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYTSTPJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYBZSS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZJF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A48" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A49" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="B12" type="93" table="HIS_EMR_BASY" />
|
|
<f name="B15" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A46C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A13" type="93" table="HIS_EMR_BASY" />
|
|
<f name="A14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A15C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A38C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A19C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A28C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A31C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A33C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B38" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B11C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B13C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B21C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B16C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="C01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F03N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F04" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C09C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C10N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X01C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X01N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F07X02C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F08X02N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F09X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C12C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C13N" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F10" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B30C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B33" type="93" table="HIS_EMR_BASY" />
|
|
<f name="C34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C26C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C27C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F17" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F18" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F19" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F20" type="-5" table="HIS_EMR_BASY" />
|
|
<f name="F21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="F26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A18X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B36C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B37" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B34C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D09" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D11" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D12" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D13" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D14" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D15" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D16" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D17" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D18" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D19X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D20X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D21" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D22" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D23X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D24" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D25" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D26" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D27" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D28" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D29" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D30" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D31" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D32" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D33" type="12" table="HIS_EMR_BASY" />
|
|
<f name="D34" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY" />
|
|
<f name="XSERYFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X04" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A17X05" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBXYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZDMC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="B35C" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DIEFLAG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBFFFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="CYZLJG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X01" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X02" type="12" table="HIS_EMR_BASY" />
|
|
<f name="C47X03" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="A23C1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="RYSQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHBM2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YBZYZHMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="PFKLF" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BZYZSNLR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="WCLCLJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TCYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFBY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BYYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SZQXN" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRSSXG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YYGRQRXCZXXG" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWSYQK" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC1" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC2" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC3" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC4" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC5" type="12" table="HIS_EMR_BASY" />
|
|
<f name="KJYWMC6" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFFSYC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SFZYQJFS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SYFY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YCFQ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="YFFYDYW" type="12" table="HIS_EMR_BASY" />
|
|
<f name="NCBX" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSFFSDDHZC" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJDDHZCDSHCD" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DDHZCDYY" type="12" table="HIS_EMR_BASY" />
|
|
<f name="ZYQJSTYS" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LYSTSNSDZ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="DWFZR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TJFZR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="TBR" type="12" table="HIS_EMR_BASY" />
|
|
<f name="LXDH" type="12" table="HIS_EMR_BASY" />
|
|
<f name="SJ" type="12" table="HIS_EMR_BASY" />
|
|
<f name="BCRQ" type="93" table="HIS_EMR_BASY" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="emrBasyCyzdDao" log="true" type="1" memo="病案首页出院诊断dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY_CYZD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>BASYPKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="BASYPKEY" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ISMAIN" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ISZY" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ZDBM" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ZDMC" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="RYBQ" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="CYQK" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="XH" type="-5" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="DIAG_TYPE" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="YBZDBM" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="YBZDMC" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="YBZHBM" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="YBZHMC" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="YBJBLX" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ZHBM" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ZZZHBM" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
<f name="ZZZHMC" type="12" table="HIS_EMR_BASY_CYZD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrBasySsjlDao" log="true" type="1" memo="病案首页手术记录dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY_SSJL" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>BASYPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="BASYPKEY" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="ISMAIN" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSBM" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSMC" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSRQ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSJB" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSCXSJ" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSSZ" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSI" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSII" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSQKYHDJ" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSMZFS" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSMZFJ" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSMZYS" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="XH" type="-5" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="YBSSBM" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="YBSSMC" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSKSSJ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSJSSJ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="MZKSSJ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="MZJSSJ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="ISJZSS" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="ZQSS" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSZBTS" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SQYFXKJYGYSJ" type="93" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="QKBW" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSQKGR" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSBFZ" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
<f name="SSBFZMC" type="12" table="HIS_EMR_BASY_SSJL" />
|
|
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emrBasyZzjhDao" log="true" type="1" memo="病案首页重症监护dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_BASY_ZZJH" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>BASYPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="BASYPKEY" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="MC" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="INTIME" type="93" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="OUTTIME" type="93" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="XH" type="-5" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="CJR" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="XGR" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="JGID" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="HJSC" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="ICU_TYPE" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
<f name="BACKICU" type="12" table="HIS_EMR_BASY_ZZJH" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
<!-- 病案首页手术代码表 ICD9CM3-->
|
|
<!-- <dao id="basySsbmPopDao" cache="true" type="1">-->
|
|
<!-- <sql>select ZDZB_BH,BH,MC,PYM,WBM,VALUE1,VALUE2,XH,ZT from MAIN_ZDB where ZDZB_BH='ICD9CM3' and zt=1 and (BH LIKE ? OR MC LIKE ? OR PYM LIKE ? OR WBM LIKE ?) order by XH asc,BH asc</sql>-->
|
|
<!-- <tables>-->
|
|
<!-- <table name="MAIN_ZDB" insert="true" update="true" delete="true">-->
|
|
<!-- <primary>ZDZB_BH</primary>-->
|
|
<!-- <primary>BH</primary>-->
|
|
<!-- </table>-->
|
|
<!-- </tables>-->
|
|
<!-- <fields>-->
|
|
<!-- <f name="ZDZB_BH" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="BH" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="MC" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="PYM" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="WBM" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="VALUE1" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="VALUE2" type="12" table="MAIN_ZDB" />-->
|
|
<!-- <f name="XH" type="-5" table="MAIN_ZDB" />-->
|
|
<!-- <f name="ZT" type="12" table="MAIN_ZDB" />-->
|
|
<!-- </fields>-->
|
|
<!-- <parameter>-->
|
|
<!-- <p>12</p>-->
|
|
<!-- <p>12</p>-->
|
|
<!-- <p>12</p>-->
|
|
<!-- <p>12</p>-->
|
|
<!-- </parameter> -->
|
|
<!-- </dao> -->
|
|
|
|
<dao id="basySsbmPopDao" cache="true" type="1">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_SSZD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>BH</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_SSZD" />
|
|
<f name="BH" type="12" table="HIS_SSZD" />
|
|
<f name="MC" type="12" table="HIS_SSZD" />
|
|
<f name="PYM" type="12" table="HIS_SSZD" />
|
|
<f name="WBM" type="12" table="HIS_SSZD" />
|
|
<f name="QKDJ" type="12" table="HIS_SSZD" />
|
|
<f name="WCBS" type="12" table="HIS_SSZD" />
|
|
<f name="SSFL" type="12" table="HIS_SSZD" />
|
|
<f name="SSDJ" type="12" table="HIS_SSZD" />
|
|
<f name="GBTHREE" type="12" table="HIS_SSZD" />
|
|
<f name="GBFOUR" type="12" table="HIS_SSZD" />
|
|
<f name="GBWC" type="12" table="HIS_SSZD" />
|
|
<f name="ZT" type="12" table="HIS_SSZD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_SSZD" />
|
|
<f name="XH" type="8" table="HIS_SSZD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="sszddao" cache="true" type="1" memo="手术诊断字典全部">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_SSZD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>BH</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_SSZD" />
|
|
<f name="BH" type="12" table="HIS_SSZD" />
|
|
<f name="MC" type="12" table="HIS_SSZD" />
|
|
<f name="PYM" type="12" table="HIS_SSZD" />
|
|
<f name="WBM" type="12" table="HIS_SSZD" />
|
|
<f name="QKDJ" type="12" table="HIS_SSZD" />
|
|
<f name="WCBS" type="12" table="HIS_SSZD" />
|
|
<f name="SSFL" type="12" table="HIS_SSZD" />
|
|
<f name="SSDJ" type="12" table="HIS_SSZD" />
|
|
<f name="GBTHREE" type="12" table="HIS_SSZD" />
|
|
<f name="GBFOUR" type="12" table="HIS_SSZD" />
|
|
<f name="GBWC" type="12" table="HIS_SSZD" />
|
|
<f name="ZT" type="12" table="HIS_SSZD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_SSZD" />
|
|
<f name="XH" type="8" table="HIS_SSZD" />
|
|
<f name="ZYZLBS" type="12" table="HIS_SSZD" />
|
|
</fields>
|
|
</dao>
|
|
<dao id="hlwsInputDataMainDao" log="true" type="1" memo="护理文书录入数据dao">
|
|
<sql>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</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HLWS_DATA" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZPKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="DATARQ" type="93" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="SFDR" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HLWS_DATA" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HLWS_DATA" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="hlwsInputDataDetailDao" log="true" type="1" memo="护理文书录入明细数据dao">
|
|
<sql>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=?</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HLWS_DATA_MX" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>ROWPKEY</primary>
|
|
<primary>ZBLX</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="FINDPKEY" type="12" />
|
|
<f name="PKEY" type="12" table="HIS_EMR_HLWS_DATA_MX" />
|
|
<f name="ROWPKEY" type="12" table="HIS_EMR_HLWS_DATA_MX" />
|
|
<f name="ZBLX" type="12" table="HIS_EMR_HLWS_DATA_MX" />
|
|
<f name="ZBSJLX" type="12" table="HIS_EMR_HLWS_DATA_MX" />
|
|
<f name="ZBVALUE" type="12" table="HIS_EMR_HLWS_DATA_MX" />
|
|
<f name="DATARQ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
|
|
|
|
<dao id="emssCarmsDao" log="true" type="1">
|
|
<sql>select PKEY,XMMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG from HIS_EMSS_CRAMS where JGID=? order by pkey</sql>
|
|
<tables>
|
|
<table name="HIS_EMSS_CRAMS" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
</table>
|
|
</tables>
|
|
//PKEY,XMMS,SFKY,CJR,CJRQ,XGR,XGRQ,JGID,LOCKFLAG
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMSS_CRAMS" />
|
|
<f name="XMMS" type="12" table="HIS_EMSS_CRAMS" />
|
|
<f name="SFKY" type="12" table="HIS_EMSS_CRAMS" />
|
|
<f name="CJR" type="12" table="HIS_EMSS_CRAMS" />
|
|
<f name="CJRQ" type="93" table="HIS_EMSS_CRAMS" />
|
|
<f name="XGR" type="12" table="HIS_EMSS_CRAMS" />
|
|
<f name="XGRQ" type="93" table="HIS_EMSS_CRAMS" />
|
|
<f name="JGID" type="12" table="HIS_EMSS_CRAMS" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_EMSS_CRAMS" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getbasyfydao" log="true" type="1" memo="获取病案首页费用类别金额">
|
|
<sql>
|
|
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
|
|
</sql>
|
|
<fields>
|
|
<f name="BASYFL" type="12" />
|
|
<f name="JE" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="gethltsdao" log="true" type="1" memo="获取病案首页护理天数">
|
|
<sql>
|
|
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=?)
|
|
</sql>
|
|
<fields>
|
|
<f name="CNT" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="getzdbasyfydao" log="true" type="1" memo="根据帐单获取病案首页费用类别金额">
|
|
<sql>
|
|
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
|
|
</sql>
|
|
<fields>
|
|
<f name="BASYFL" type="12" />
|
|
<f name="JE" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
<dao id="gezdthltsdao" log="true" type="1" memo="根据帐单获取病案首页护理天数">
|
|
<sql>
|
|
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=?)
|
|
</sql>
|
|
<fields>
|
|
<f name="CNT" type="4" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="emrPatientRecordByTemplatePkeyDao" log="true" type="1">
|
|
<sql> select PKEY,HZPKEY,JZPKEY,ZYNO,ZYBAH,ACTIVERECORD,TEMPLATEPKEY,RECORDNAME,RECORDFILEPATH,GSKS,ZYYS,ZYYSQM,ZYYSQMSJ,ZYYSQMTP,ZYYSCAQM,ZZYS,ZZYSQM,ZZYSQMSJ,ZZYSQMTP,ZZYSCAQM,ZRYS,ZRYSQM,ZRYSQMSJ,ZRYSQMTP,ZRYSCAQM,ZKR,ISZKQM,ZKSJ,GDR,ISGDQM,GDSJ,ISDELETE,SCR,SCSJ,CJR,CJRQ,LASTMAN,LASTRQ,JGID,QMZT,SXYS,SXYSQM,SXYSQMSJ,SXYSQMTP,SXYSCAQM,FZRYS,FZRYSQM,FZRYSQMSJ,FZRYSQMTP,FZRYSCAQM,MZYS,MZYSQM,MZYSQMSJ,MZYSQMTP,MZYSCAQM,LOCKFLAG,SXYSKEY,ZYYSKEY,ZZYSKEY,FZRYSKEY,ZRYSKEY,MZYSKEY from HIS_EMR_RECORD where JGID=? and HZPKEY = ? AND JZPKEY=? and TEMPLATEPKEY = ? AND ISDELETE=0 ORDER BY CJRQ</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_RECORD" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>JGID</primary>
|
|
<primary>ZRYSQM</primary>
|
|
<primary>ISZKQM</primary>
|
|
<primary>ZYYSQM</primary>
|
|
<primary>ISGDQM</primary>
|
|
<primary>ZZYSQM</primary>
|
|
<primary>SXYSQM</primary>
|
|
<primary>FZRYSQM</primary>
|
|
<primary>ISDELETE</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ACTIVERECORD" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="TEMPLATEPKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDNAME" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="RECORDFILEPATH" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GSKS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISZKQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZKSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="GDR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ISGDQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="GDSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="ISDELETE" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SCSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="CJR" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="LASTMAN" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="LASTRQ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="JGID" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="QMZT" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYS" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMSJ" type="93" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSQMTP" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSCAQM" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="LOCKFLAG" type="-5" table="HIS_EMR_RECORD" />
|
|
<f name="SXYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZYYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="FZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="ZRYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
<f name="MZYSKEY" type="12" table="HIS_EMR_RECORD" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="emrPatientHJQCFeedBackDao" log="true" type="1">
|
|
<sql>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=? and a.hzpkey=? and a.jzpkey=? order by QCTIME desc</sql>
|
|
<tables>
|
|
<table name="HIS_EMR_HJQC_FEEDBACK" insert="true" update="true" delete="true">
|
|
<primary>JGID</primary>
|
|
<primary>PKEY</primary>
|
|
</table>
|
|
</tables>
|
|
<fields>
|
|
<f name="PKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="HZPKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="JZPKEY" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="ZYNO" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="ZYBAH" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="FEEDBACKTITLE" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="FEEDBACKCONTENT" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCUSR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCDEP" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="QCTIME" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSEFLAG" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSEUSR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="DISPOSETIME" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="CJR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="CJRQ" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XGR" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XGRQ" type="93" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="JGID" type="12" table="HIS_EMR_HJQC_FEEDBACK" />
|
|
<f name="XM" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="zyEmrPatientDao" 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,b.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,b.XM,b.XB,b.CSRQ,b.SFZH,b.ZJLX,b.ZJHM,b.TEL,b.EMAIL,b.PIC,b.SIGNPIC,b.ZT,b.MZ,b.NL,b.HYZK,b.YBKH,b.ZY,b.GZDW,b.PHONE,b.BGDH,b.ZGGH,b.HZMJ,b.HZJB,b.LXRGX,b.LXR,b.LXRDH,b.LXRZJLX,b.LXRZJHM,b.GJ,b.XZDZ,b.XZDZJGH,b.JGDZ,b.JGDZJGH,b.CSDZ,b.CSDZJGH,b.YBLX,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,d.SFJE,d.YBZFJE,d.JJZF,d.GRZH,d.YYBC,d.GRPAY,e.JBMC,(select count(*) num from HIS_EMR_RECORD where JGID=a.JGID and hzpkey=a.HZPKEY and jzpkey=a.PKEY AND ISDELETE=0 ) blnum,(select count(*) num from HIS_OPA_ORDER where JGID=a.JGID and hzpkey=a.HZPKEY and jzpkey=a.PKEY AND OPASTATE !=001 and OPASTATE != 003 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
|
|
|
|
|
|
</sql>
|
|
<fields>
|
|
<f name="PKEY" type="12" />
|
|
<f name="HZPKEY" type="12" />
|
|
<f name="GHPKEY" type="12" />
|
|
<f name="JZLX" type="12" />
|
|
<f name="JZZT" type="12" />
|
|
<f name="JZZB" type="12" />
|
|
<f name="HZFB" type="12" />
|
|
<f name="JZJS" type="12" />
|
|
<f name="ISYB" type="12" />
|
|
<f name="ISZZ" type="12" />
|
|
<f name="YYLX" type="12" />
|
|
<f name="ISLG" type="12" />
|
|
<f name="ISGSSJJ" type="12" />
|
|
<f name="HZYBLX" type="12" />
|
|
<f name="JJKS" type="12" />
|
|
<f name="JJRQ" type="93" />
|
|
<f name="JJYS" type="12" />
|
|
<f name="FBRQ" type="93" />
|
|
<f name="ZYNUM" type="8" />
|
|
<f name="WARD" type="12" />
|
|
<f name="ROOM" type="12" />
|
|
<f name="BED" type="12" />
|
|
<f name="KZRQ" type="93" />
|
|
<f name="JSRQ" type="93" />
|
|
<f name="THRY" type="12" />
|
|
<f name="HDYY" type="12" />
|
|
<f name="HDRQ" type="93" />
|
|
<f name="MZNUM" type="8" />
|
|
<f name="CJR" type="12" />
|
|
<f name="CJRQ" type="93" />
|
|
<f name="JGID" type="12" />
|
|
<f name="JZNO" type="12" />
|
|
<f name="MZNO" type="12" />
|
|
<f name="ZYNO" type="12" />
|
|
<f name="JZKH" type="12" />
|
|
<f name="CARDPKEY" type="12" />
|
|
<f name="JZNL" type="12" />
|
|
<f name="ISJZ" type="12" />
|
|
<f name="ZYLX" type="12" />
|
|
<f name="ZYHZLY" type="12" />
|
|
<f name="ZYYYRQ" type="93" />
|
|
<f name="CYRQ" type="93" />
|
|
<f name="CYYS" type="12" />
|
|
<f name="ZYNOOLD" type="12" />
|
|
<f name="SCZYRQ" type="93" />
|
|
<f name="ISGL" type="12" />
|
|
<f name="ISSJ" type="12" />
|
|
<f name="HZLX" type="12" />
|
|
<f name="GRLX" type="12" />
|
|
<f name="QTGRLX" type="12" />
|
|
<f name="CWFJLX" type="12" />
|
|
<f name="YSLX" type="12" />
|
|
<f name="MQJZINFO" type="12" />
|
|
<f name="ZKRQ" type="93" />
|
|
<f name="RYTJ" type="12" />
|
|
<f name="RYBQ" type="12" />
|
|
<f name="RYJZINFO" type="12" />
|
|
<f name="RYYS" type="12" />
|
|
<f name="RYQK" type="12" />
|
|
<f name="JZZL" type="12" />
|
|
<f name="JYYJ" type="-5" />
|
|
<f name="ZYBZ" type="12" />
|
|
<f name="RYZD" type="12" />
|
|
<f name="RYZDMS" type="12" />
|
|
<f name="ZYBAH" type="12" />
|
|
<f name="RYNL" type="12" />
|
|
<f name="RYXSENLD" type="-5" />
|
|
<f name="RYXSENLH" type="-5" />
|
|
<f name="RYXSENLS" type="-5" />
|
|
<f name="ZYZH" type="12" />
|
|
<f name="JZKLX" type="12" />
|
|
<f name="CRFS" type="12" />
|
|
<f name="OTHERCRFS" type="12" />
|
|
<f name="MAINBLYS" type="12" />
|
|
<f name="MAINBLXS" type="12" />
|
|
<f name="MOTHERJZPKEY" type="12" />
|
|
<f name="ZKDATE" type="93" />
|
|
<f name="RQDATE" type="93" />
|
|
<f name="XM" type="12" />
|
|
<f name="XB" type="12" />
|
|
<f name="CSRQ" type="93" />
|
|
<f name="SFZH" type="12" />
|
|
<f name="ZJLX" type="12" />
|
|
<f name="ZJHM" type="12" />
|
|
<f name="TEL" type="12" />
|
|
<f name="EMAIL" type="12" />
|
|
<f name="PIC" type="12" />
|
|
<f name="SIGNPIC" type="12" />
|
|
<f name="ZT" type="12" />
|
|
<f name="MZ" type="12" />
|
|
<f name="NL" type="12" />
|
|
<f name="HYZK" type="12" />
|
|
<f name="YBKH" type="12" />
|
|
<f name="ZY" type="12" />
|
|
<f name="GZDW" type="12" />
|
|
<f name="PHONE" type="12" />
|
|
<f name="BGDH" type="12" />
|
|
<f name="ZGGH" type="12" />
|
|
<f name="HZMJ" type="12" />
|
|
<f name="HZJB" type="12" />
|
|
<f name="LXRGX" type="12" />
|
|
<f name="LXR" type="12" />
|
|
<f name="LXRDH" type="12" />
|
|
<f name="LXRZJLX" type="12" />
|
|
<f name="LXRZJHM" type="12" />
|
|
<f name="GJ" type="12" />
|
|
<f name="XZDZ" type="12" />
|
|
<f name="XZDZJGH" type="12" />
|
|
<f name="JGDZ" type="12" />
|
|
<f name="JGDZJGH" type="12" />
|
|
<f name="CSDZ" type="12" />
|
|
<f name="CSDZJGH" type="12" />
|
|
<f name="YBLX" type="12" />
|
|
<f name="ZYYLDYPKEY" type="12" />
|
|
<f name="ZYYLDYZZ" type="12" />
|
|
<f name="ZYYLDYZRYS" type="12" />
|
|
<f name="SFJE" type="12" />
|
|
<f name="YBZFJE" type="12" />
|
|
<f name="JJZF" type="12" />
|
|
<f name="GRZH" type="12" />
|
|
<f name="YYBC" type="12" />
|
|
<f name="GRPAY" type="12" />
|
|
<f name="JBMC" type="12" />
|
|
<f name="BLNUM" type="8" />
|
|
<f name="SSNUM" type="8" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="allZyOutDao" 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,b.xm,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZMPF,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.JZLX='Z' and a.JZZT='C' #select# order by a.jjrq </sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZZT</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="XM" type="12" />
|
|
<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="ZMPF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="XB" type="12" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
|
|
<dao id="allZyOutZmpfDao" 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,b.xm,a.ZYYLDYPKEY,a.ZYYLDYZZ,a.ZYYLDYZRYS,a.ZMPF,b.xb,c.BLPF,c.BLPJ,c.PFR,c.PFRQ from HIS_JZ_BASEINFO a left join HIS_HZINFO b on a.hzpkey=b.pkey and a.JGID=b.JGID left join HIS_BA_PF c on a.pkey=c.jzpkey and a.JGID=c.JGID where a.JGID=? and a.JZLX='Z' and a.JZZT='C' #select# order by a.jjrq </sql>
|
|
<tables>
|
|
<table name="HIS_JZ_BASEINFO" insert="true" update="true" delete="true">
|
|
<primary>PKEY</primary>
|
|
<primary>HZPKEY</primary>
|
|
<primary>JZZT</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="XM" type="12" />
|
|
<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="ZMPF" type="12" table="HIS_JZ_BASEINFO" />
|
|
<f name="XB" type="12" />
|
|
<f name="BLPF" type="12" />
|
|
<f name="BLPJ" type="12" />
|
|
<f name="PFR" type="12" />
|
|
<f name="PFRQ" type="93" />
|
|
</fields>
|
|
<parameter>
|
|
<p>12</p>
|
|
<p>93</p>
|
|
<p>93</p>
|
|
</parameter>
|
|
</dao>
|
|
</datasource> |