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.
3018 lines
86 KiB
3018 lines
86 KiB
--2024-03-08--
|
|
|
|
CREATE TABLE DESIGN_DAOCELL(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
DAOTYPE VARCHAR2(20),
|
|
DAONAME VARCHAR2(200),
|
|
XMLPATH VARCHAR2(2000),
|
|
BUILDDATE DATE
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_DAOCELL.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_DAOCELL.WINDOWPKEY IS '窗体主键';
|
|
COMMENT ON COLUMN DESIGN_DAOCELL.DAOTYPE IS '数据操作对象类型';
|
|
COMMENT ON COLUMN DESIGN_DAOCELL.DAONAME IS '名称';
|
|
COMMENT ON COLUMN DESIGN_DAOCELL.XMLPATH IS 'xml资源路径';
|
|
COMMENT ON COLUMN DESIGN_DAOCELL.BUILDDATE IS '创建日期';
|
|
|
|
|
|
CREATE TABLE DESIGN_DATAGRIDCELL(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
FUNCTIONPKEY VARCHAR2(20),
|
|
XH INT,
|
|
DAOCOLUMN VARCHAR2(20),
|
|
TITLE VARCHAR2(20),
|
|
TYPE VARCHAR2(20),
|
|
FOOTEXP VARCHAR2(20),
|
|
ALIGN VARCHAR2(20),
|
|
SORT VARCHAR2(20),
|
|
CALC VARCHAR2(20),
|
|
LDS VARCHAR2(200),
|
|
DIC VARCHAR2(200),
|
|
BUTTON VARCHAR2(20),
|
|
BYXWK VARCHAR2(1),
|
|
COLUMNEVENT VARCHAR2(1),
|
|
MEMO VARCHAR2(2000)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.WINDOWPKEY IS '窗体单元主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.FUNCTIONPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.DAOCOLUMN IS '数据列名';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.TITLE IS '标题';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.TYPE IS '列类型';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.FOOTEXP IS '列脚表达式';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.ALIGN IS '文本排序';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.SORT IS '是否排序';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.CALC IS '是否计算列';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.LDS IS '列表数据源';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.DIC IS '字典数据源';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.BUTTON IS '功能按钮';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.BYXWK IS '不允许为空';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.COLUMNEVENT IS '列事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDCELL.MEMO IS '列描述';
|
|
|
|
|
|
CREATE TABLE DESIGN_DATAGRIDEXTENDCELL(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
FUNCTIONPKEY VARCHAR2(20),
|
|
DBLCLICK VARCHAR2(1),
|
|
CLICK VARCHAR2(1),
|
|
COLOR VARCHAR2(1),
|
|
BKCOLOR VARCHAR2(1),
|
|
HTMLDISPLAY VARCHAR2(1),
|
|
BOTTOMLINE VARCHAR2(1),
|
|
TEXTBUTTON VARCHAR2(1),
|
|
FOOTPAGE VARCHAR2(1),
|
|
HEADPAGE VARCHAR2(1),
|
|
FOOTCHANGE VARCHAR2(1),
|
|
RELOAD VARCHAR2(1),
|
|
OPERATE VARCHAR2(1),
|
|
COLUMNCHANGE VARCHAR2(1),
|
|
FOOTACTION VARCHAR2(1),
|
|
CALC VARCHAR2(1),
|
|
TOOPTIP VARCHAR2(1),
|
|
ENABLED VARCHAR2(1),
|
|
KEYMOUSE VARCHAR2(1)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.WINDOWPKEY IS '窗体主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.FUNCTIONPKEY IS '功能主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.DBLCLICK IS '双击事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.CLICK IS '单击事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.COLOR IS '前景色事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.BKCOLOR IS '背景色事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.HTMLDISPLAY IS 'html事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.BOTTOMLINE IS '行底线';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.TEXTBUTTON IS '文本输入框按钮';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.FOOTPAGE IS '尾部事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.HEADPAGE IS '表头功能事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.FOOTCHANGE IS '尾页修改事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.RELOAD IS '装载数据事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.OPERATE IS '数据操作事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.COLUMNCHANGE IS '列修改事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.FOOTACTION IS '页脚事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.CALC IS '计算列事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.TOOPTIP IS '提示信息事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.ENABLED IS '列有效事件';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDEXTENDCELL.KEYMOUSE IS '键盘加鼠标点击事件';
|
|
|
|
|
|
CREATE TABLE DESIGN_DATAGRIDHEADACTION(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
FUNCTIONPKEY VARCHAR2(20),
|
|
XH INT,
|
|
FUNCTIONNAME VARCHAR2(100),
|
|
FUNCTIONBM VARCHAR2(100),
|
|
FUNCTIONIMG VARCHAR2(1000),
|
|
ALIGN VARCHAR2(5),
|
|
BKCOLOR VARCHAR2(20),
|
|
COLOR VARCHAR2(20)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.WINDOWPKEY IS '窗体单元主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.FUNCTIONPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.FUNCTIONNAME IS '功能名称';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.FUNCTIONBM IS '功能编码';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.FUNCTIONIMG IS '功能图标';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.ALIGN IS '功能位置,left,right';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.BKCOLOR IS '功能背景颜色';
|
|
COMMENT ON COLUMN DESIGN_DATAGRIDHEADACTION.COLOR IS '功能前景颜色';
|
|
|
|
|
|
|
|
CREATE TABLE DESIGN_FUNCTIONCELL(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
NAME VARCHAR2(200),
|
|
TYPE VARCHAR2(20),
|
|
RQTYPE VARCHAR2(20),
|
|
BUILDDATE DATE,
|
|
ROWCOLUMNS VARCHAR2(20),
|
|
DAONAME VARCHAR2(20),
|
|
CTRID VARCHAR2(20)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.WINDOWPKEY IS '窗体单元主键';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.NAME IS '功能单元名称';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.TYPE IS '功能结构类型,panelBar,grid';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.RQTYPE IS '容器类型Grid,DxDIVGrid';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.BUILDDATE IS '创建日期';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.ROWCOLUMNS IS '一行列数';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.DAONAME IS '用于datagrid模式用';
|
|
COMMENT ON COLUMN DESIGN_FUNCTIONCELL.CTRID IS '控件ID';
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSCMAIN(
|
|
PKEY VARCHAR2(20),
|
|
NAME VARCHAR2(2000),
|
|
DAO VARCHAR2(100),
|
|
DAOTYPE VARCHAR2(20),
|
|
DESIGNTYPE VARCHAR2(20),
|
|
OTHERWINDOW VARCHAR2(2000),
|
|
BUILDER VARCHAR2(36),
|
|
BUILDDATE DATE,
|
|
MODIFYS VARCHAR2(36),
|
|
MODIFYSDATE DATE,
|
|
PACKAGE VARCHAR2(2000),
|
|
CLASSNAME VARCHAR2(2000),
|
|
WINDOWTYPE VARCHAR2(20),
|
|
DELETETYPE VARCHAR2(20),
|
|
SNUM VARCHAR2(10)
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_KSSCMAIN IS '根据dao快速生成界面的主表';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.NAME IS '名称';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.DAO IS '设计dao名称';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.DAOTYPE IS 'dao类型,sys,window,other';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.DESIGNTYPE IS '设计类型1普通表单2左树表单3新增编辑表单4查询表单';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.OTHERWINDOW IS '其他窗体名称';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.BUILDER IS '创建者';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.BUILDDATE IS '创建日期';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.MODIFYS IS '修改者';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.MODIFYSDATE IS '修改日期';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.PACKAGE IS '包名';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.CLASSNAME IS '类名';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.WINDOWTYPE IS '建立类型';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.DELETETYPE IS '删除类型';
|
|
COMMENT ON COLUMN DESIGN_KSSCMAIN.SNUM IS '查询列数';
|
|
|
|
COMMENT ON TABLE DESIGN_KSSCMAIN IS '根据dao快速生成界面的主表';
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSC_EDITGLB(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
GLB VARCHAR2(200),
|
|
GLBLM VARCHAR2(200),
|
|
LM VARCHAR2(200),
|
|
GLBXSM VARCHAR2(200),
|
|
GLXGL VARCHAR2(200)
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_EDITGLB IS '新增和编辑表的关联表设置';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.WINDOWPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.GLB IS '关联表名';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.GLBLM IS '关联表中列名';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.LM IS '本表关联列名';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.GLBXSM IS '本表关联修改列名';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGLB.GLXGL IS '关联表显示名';
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_EDITGLB IS '新增和编辑表的关联表设置';
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSC_EDITGRID(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
XH INT,
|
|
TITLE VARCHAR2(200),
|
|
MCOLUMN VARCHAR2(200),
|
|
CTRTYPE VARCHAR2(100),
|
|
CTRWIDTH VARCHAR2(20),
|
|
CTRTVALUETYPE VARCHAR2(20),
|
|
BUTTON VARCHAR2(20),
|
|
XL VARCHAR2(20),
|
|
DH VARCHAR2(20),
|
|
BXSR VARCHAR2(20),
|
|
AUTOEXTEND VARCHAR2(20),
|
|
ZRJM VARCHAR2(20),
|
|
JZXG VARCHAR2(20),
|
|
MRZ VARCHAR2(20)
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_EDITGRID IS '新增和编辑表单的主grid表';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.WINDOWPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.TITLE IS '标题';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.MCOLUMN IS '数据列';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.CTRTYPE IS '控件类型';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.CTRWIDTH IS '控件宽度';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.CTRTVALUETYPE IS '控件值类型';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.BUTTON IS '是否button';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.XL IS '序列生成';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.DH IS '单号生成';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.BXSR IS '必须输入';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.AUTOEXTEND IS '标题宽自扩展';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.ZRJM IS '载入界面';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.JZXG IS '禁止修改';
|
|
COMMENT ON COLUMN DESIGN_KSSC_EDITGRID.MRZ IS '默认值';
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_EDITGRID IS '新增和编辑表单的主grid表';
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSC_GLB(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
GLB VARCHAR2(200),
|
|
GLBLM VARCHAR2(200),
|
|
LM VARCHAR2(200),
|
|
GLBXSM VARCHAR2(20)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_KSSC_GLB.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_GLB.WINDOWPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_GLB.GLB IS '关联表名称';
|
|
COMMENT ON COLUMN DESIGN_KSSC_GLB.GLBLM IS '关联表的绑定此表主键的列';
|
|
COMMENT ON COLUMN DESIGN_KSSC_GLB.LM IS '此表的主键列';
|
|
COMMENT ON COLUMN DESIGN_KSSC_GLB.GLBXSM IS '关联表的中文名称';
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSC_MENU(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
MENUTYPE VARCHAR2(20)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_KSSC_MENU.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_MENU.WINDOWPKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_MENU.MENUTYPE IS '菜单类型';
|
|
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSC_NORMALGRID(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
XH INT,
|
|
DATA VARCHAR2(100),
|
|
NAME VARCHAR2(100),
|
|
TYPE VARCHAR2(20),
|
|
FOOTEXP VARCHAR2(100),
|
|
ALIGN VARCHAR2(100),
|
|
SORT VARCHAR2(1) NOT NULL,
|
|
CALC VARCHAR2(1) NOT NULL
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_NORMALGRID IS '根据dao快速生成界面normalcreate表';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.WINDOWPKEY IS '设计单元主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.DATA IS '数据列名';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.NAME IS '标题名称';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.TYPE IS '数据类型';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.FOOTEXP IS '页脚表达式';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.ALIGN IS '列文本left,center,right';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.SORT IS '列行排序';
|
|
COMMENT ON COLUMN DESIGN_KSSC_NORMALGRID.CALC IS '计算列';
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_NORMALGRID IS '根据dao快速生成界面normalcreate表';
|
|
|
|
|
|
CREATE TABLE DESIGN_KSSC_SELECT(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
XH INT,
|
|
NAME VARCHAR2(200),
|
|
DATA VARCHAR2(200),
|
|
BJGX VARCHAR2(20),
|
|
TYPE VARCHAR2(20),
|
|
ISVALUE VARCHAR2(1) NOT NULL,
|
|
BFH VARCHAR2(1) NOT NULL,
|
|
KD VARCHAR2(20),
|
|
BUTTON VARCHAR2(1) NOT NULL
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_SELECT IS '根据dao快速生成界面的查询设置表';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.WINDOWPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.NAME IS '名称';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.DATA IS '绑定数据列';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.BJGX IS '比较关系';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.TYPE IS '数据类型';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.ISVALUE IS '是否值';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.BFH IS '是否百分号';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.KD IS '宽度';
|
|
COMMENT ON COLUMN DESIGN_KSSC_SELECT.BUTTON IS '是否显示功能按钮';
|
|
|
|
COMMENT ON TABLE DESIGN_KSSC_SELECT IS '根据dao快速生成界面的查询设置表';
|
|
|
|
|
|
CREATE TABLE DESIGN_PANELBARBUTTONINFO(
|
|
PKEY VARCHAR2(20),
|
|
BM VARCHAR2(20),
|
|
MC VARCHAR2(100),
|
|
IMAGE VARCHAR2(1000)
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_PANELBARBUTTONINFO IS 'panelButton的button信息表';
|
|
COMMENT ON COLUMN DESIGN_PANELBARBUTTONINFO.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_PANELBARBUTTONINFO.BM IS '编码';
|
|
COMMENT ON COLUMN DESIGN_PANELBARBUTTONINFO.MC IS '名称';
|
|
COMMENT ON COLUMN DESIGN_PANELBARBUTTONINFO.IMAGE IS '图标';
|
|
|
|
COMMENT ON TABLE DESIGN_PANELBARBUTTONINFO IS 'panelButton的button信息表';
|
|
|
|
CREATE TABLE DESIGN_PANELBARCELL(
|
|
PKEY VARCHAR2(20) NOT NULL,
|
|
WINDOWPKEY VARCHAR2(20) NOT NULL,
|
|
FUNCTIONPKEY VARCHAR2(20) NOT NULL,
|
|
AUTORETURN VARCHAR2(1),
|
|
TITLE VARCHAR2(1000),
|
|
AUTOEXTEND VARCHAR2(1),
|
|
DAONAME VARCHAR2(100),
|
|
DAOCOLUMN VARCHAR2(100),
|
|
CTRTYPE VARCHAR2(100),
|
|
BUTTON VARCHAR2(1),
|
|
XL VARCHAR2(1),
|
|
DH VARCHAR2(1),
|
|
BXSR VARCHAR2(1),
|
|
JZXG VARCHAR2(1),
|
|
CTRWIDTH VARCHAR2(20),
|
|
CTRTVALUETYPE VARCHAR2(20),
|
|
XH INT,
|
|
DAOTYPE VARCHAR2(20),
|
|
ACTION VARCHAR2(1),
|
|
LDS VARCHAR2(200),
|
|
DIC VARCHAR2(200),
|
|
CTRID VARCHAR2(20),
|
|
SAVE VARCHAR2(1),
|
|
MEMO VARCHAR2(1000),
|
|
PRIMARY KEY (PKEY,WINDOWPKEY,FUNCTIONPKEY)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.WINDOWPKEY IS '窗体类主键';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.FUNCTIONPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.AUTORETURN IS '自换行';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.TITLE IS '标题名';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.AUTOEXTEND IS '自扩展';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.DAONAME IS '数据源';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.DAOCOLUMN IS '绑定数据列';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.CTRTYPE IS '控件类型';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.BUTTON IS '功能按钮';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.XL IS '主键序列生成';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.DH IS '单号生成';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.BXSR IS '必须输入';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.JZXG IS '禁止修改';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.CTRWIDTH IS '控件宽度';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.CTRTVALUETYPE IS '控件值类型';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.DAOTYPE IS '数据源类型';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.ACTION IS '是否增加事件';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.LDS IS '列表数据';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.DIC IS '字典数据';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.CTRID IS '控件ID';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.SAVE IS '应用保存功能';
|
|
COMMENT ON COLUMN DESIGN_PANELBARCELL.MEMO IS '备注';
|
|
|
|
|
|
CREATE TABLE DESIGN_SELECTCELL(
|
|
PKEY VARCHAR2(20),
|
|
WINDOWPKEY VARCHAR2(20),
|
|
FUNCTIONPKEY VARCHAR2(20),
|
|
DAOCOLUMN VARCHAR2(20),
|
|
TITLE VARCHAR2(20),
|
|
XH INT,
|
|
BJGX VARCHAR2(20),
|
|
TYPE VARCHAR2(20),
|
|
KD VARCHAR2(20),
|
|
ISVALUE VARCHAR2(20),
|
|
BFH VARCHAR2(20),
|
|
BUTTON VARCHAR2(20),
|
|
LDS VARCHAR2(200),
|
|
DIC VARCHAR2(200)
|
|
);
|
|
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.PKEY IS '主键';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.WINDOWPKEY IS '窗体单元主键';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.FUNCTIONPKEY IS '功能单元主键';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.DAOCOLUMN IS '列名';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.TITLE IS '标题';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.XH IS '序号';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.BJGX IS '比较关系';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.TYPE IS '控件类型';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.KD IS '控件宽度';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.ISVALUE IS '查询值类型';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.BFH IS '加百分号';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.BUTTON IS '选择按钮';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.LDS IS '列表数据源';
|
|
COMMENT ON COLUMN DESIGN_SELECTCELL.DIC IS '字典数据源';
|
|
|
|
|
|
CREATE TABLE DESIGN_WINDOWCELL(
|
|
PKEY VARCHAR2(20),
|
|
NAME VARCHAR2(2000),
|
|
CLASSNAME VARCHAR2(2000),
|
|
WINDOWTYPE VARCHAR2(10),
|
|
BUILDER VARCHAR2(36),
|
|
BUILDDATE DATE,
|
|
MODIFYS VARCHAR2(36),
|
|
MODIFYSDATE DATE,
|
|
DESIGNTYPE VARCHAR2(20)
|
|
);
|
|
|
|
COMMENT ON TABLE DESIGN_WINDOWCELL IS '设计器窗体单元表';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.PKEY IS '唯一主键';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.NAME IS '窗体功能单元名称';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.CLASSNAME IS '全类名';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.WINDOWTYPE IS '窗体类型';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.BUILDER IS '创建者';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.BUILDDATE IS '创建日期';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.MODIFYS IS '修改者';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.MODIFYSDATE IS '修改日期';
|
|
COMMENT ON COLUMN DESIGN_WINDOWCELL.DESIGNTYPE IS '设计创建类型,比如edit表单编辑,normal普通界面select查询界面';
|
|
|
|
COMMENT ON TABLE DESIGN_WINDOWCELL IS '设计器窗体单元表';
|
|
|
|
|
|
CREATE TABLE MAIN_FILESERVER(
|
|
PKEY VARCHAR2(36) NOT NULL,
|
|
YSIP VARCHAR2(20),
|
|
MDIP VARCHAR2(20),
|
|
FILESERVER VARCHAR2(36),
|
|
ZT VARCHAR2(1) DEFAULT 1,
|
|
CJR VARCHAR2(36),
|
|
CJRQ DATE,
|
|
XGR VARCHAR2(36),
|
|
XGRQ DATE,
|
|
LOCKFLAG INT DEFAULT 0,
|
|
PRIMARY KEY (PKEY)
|
|
);
|
|
|
|
COMMENT ON TABLE MAIN_FILESERVER IS '文件服务器地址';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.PKEY IS '主键';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.YSIP IS '原始IP';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.MDIP IS '目的IP';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.FILESERVER IS '文件服务器地址';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.ZT IS '启用标志0:否,1:是';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.CJR IS '创建人';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.CJRQ IS '创建日期';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.XGR IS '修改人';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.XGRQ IS '修改日期';
|
|
COMMENT ON COLUMN MAIN_FILESERVER.LOCKFLAG IS '乐观锁计数器';
|
|
|
|
COMMENT ON TABLE MAIN_FILESERVER IS '文件服务器地址';
|
|
|
|
|
|
CREATE TABLE MAIN_YLJG
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, TYSHXYDM VARCHAR2(18 BYTE)
|
|
, ZZJGBM VARCHAR2(22 BYTE)
|
|
, JGMC VARCHAR2(70 BYTE) NOT NULL
|
|
, DEMC VARCHAR2(70 BYTE)
|
|
, WSJGDM VARCHAR2(22 BYTE)
|
|
, XZQHDM VARCHAR2(12 BYTE)
|
|
, ADDR0 VARCHAR2(70 BYTE)
|
|
, ADDR1 VARCHAR2(70 BYTE)
|
|
, ADDR2 VARCHAR2(70 BYTE)
|
|
, ADDR3 VARCHAR2(70 BYTE)
|
|
, ADDR4 VARCHAR2(70 BYTE)
|
|
, MPHM VARCHAR2(70 BYTE)
|
|
, JJLXDM VARCHAR2(3 BYTE)
|
|
, WSJGLBDM VARCHAR2(4 BYTE)
|
|
, JGFLGLDM VARCHAR2(1 BYTE)
|
|
, JGCLRQ DATE
|
|
, YZBM VARCHAR2(6 BYTE)
|
|
, LXDH VARCHAR2(20 BYTE)
|
|
, JGFZRXM VARCHAR2(50 BYTE)
|
|
, JGFZRLXDH VARCHAR2(100 BYTE)
|
|
, DWLSGXDM VARCHAR2(2 BYTE)
|
|
, YYDJDCDM VARCHAR2(1 BYTE)
|
|
, YYDJJBDM VARCHAR2(1 BYTE)
|
|
, SFYBDDYLJG VARCHAR2(1 BYTE)
|
|
, SJPKEY VARCHAR2(36 BYTE)
|
|
, LICENCE VARCHAR2(64 BYTE)
|
|
, ZT VARCHAR2(1 BYTE) DEFAULT '1'
|
|
, SYSCOMPERFLAG CHAR(1 BYTE) DEFAULT '0'
|
|
, QYJM VARCHAR2(6 BYTE) DEFAULT '000000'
|
|
, JKPTJGBM VARCHAR2(22 BYTE)
|
|
, CONSTRAINT PK_MAIN_YLJG PRIMARY KEY
|
|
(
|
|
PKEY
|
|
)
|
|
);
|
|
|
|
|
|
COMMENT ON TABLE MAIN_YLJG IS '医疗机构基本信息表';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.PKEY IS '唯一ID';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.TYSHXYDM IS '统一社会信用代码';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ZZJGBM IS '组织机构代码(标准:WS 218 标识:DE08.10.052.00)(从统一社会信用代码的倒数第2位起,向前取9位)
|
|
';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JGMC IS '机构名称(标识:DE08.10.013.00)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.DEMC IS '机构简称(标识:DE08.10.011.00)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.WSJGDM IS '卫生机构(组织)代码由22位数字(或英文字母)组成,包括9位组织机构代码和13位机构属性代码。机构属性代码由行政区划代码(6位)、经济类型代码(2位)、卫生机构(组织)类别代码(4位)和机构分类管理代码(1位)四部分组成';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.XZQHDM IS '机构所在省市县乡村(中华人民共和国县级及县级以上行政区划在特定编码体系中的代码 标准:GBT2260.2007,值:行政区划表[xzqh]的编码[bm])';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ADDR0 IS '地址-省(自治区、直辖市)(标识:DE02.01.009.01)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ADDR1 IS '地址-市(地区)(标识:DE02.01.009.02)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ADDR2 IS '地址-县(区)(标识:DE02.01.009.03)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ADDR3 IS '地址-乡(镇、街道办事处)(标识:DE02.01.009.04)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ADDR4 IS '地址-村(街、路、弄等)(标识:DE02.01.009.05)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.MPHM IS '门牌号码(标识:DE02.01.009.06)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JJLXDM IS '经济类型代码(标识:DE08.10.011.00,标准:GBT12402.2000 ,值:字典组表[main_zdzb]的bh=100001)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.WSJGLBDM IS '卫生机构(组织)类别代码(标准:WS 218 ,值:字典组表[main_zdzb]的bh=100002 )';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JGFLGLDM IS '机构分类管理代码(标识:DE08.10.012.00,标准WS218 ,值:字典组表[main_zdzb]的bh=100003)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JGCLRQ IS '机构成立日期(标识:DE08.10. 009.00 )';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.YZBM IS '邮政编码(标识:DE02.01. 047.00 )';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.LXDH IS '联系电话(标识:DE02.01.010.00)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JGFZRXM IS '机构负责人(法人)姓名(标识:DE02.01.039.00)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JGFZRLXDH IS '机构负责人联系电话(标识:DE02.01.010.00)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.DWLSGXDM IS '单位隶属关系代码(标识:DE08.10.003.00,标准:GBT12404.1997 ,值:字典组表[main_zdzb]的bh=100004)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.YYDJDCDM IS '由医疗机构评审委员会评定的等次(CCV2299.03,值:字典组表[main_zdzb]的bh=100005)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.YYDJJBDM IS '由卫生行政部门根据设置规划确定的级别(CCV2299.04,值:字典组表[main_zdzb]的bh=100006)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.SFYBDDYLJG IS '是否医保定点医疗机构(值:字典组表[main_zdzb]的bh=000001)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.SJPKEY IS '上级机构的统一社会信用代码';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.LICENCE IS '授权码';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.ZT IS '当前状态(值:字典组表[main_zdzb]的bh=000002)';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.SYSCOMPERFLAG IS '只能使用群组权限 1:是 0:否';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.QYJM IS '区域内编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YLJG.JKPTJGBM IS '健康平台上传机构编码';
|
|
|
|
|
|
CREATE TABLE MAIN_JGYH
|
|
(
|
|
USERID VARCHAR2(36 BYTE) NOT NULL
|
|
, MRKS VARCHAR2(36 BYTE)
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, EFFICET VARCHAR2(1 BYTE) DEFAULT 0
|
|
, SFZYYS VARCHAR2(1 BYTE)
|
|
, DUTY VARCHAR2(20 BYTE)
|
|
, SFZYHS VARCHAR2(1 BYTE)
|
|
, SFMZYS VARCHAR2(1 BYTE)
|
|
, EMPID VARCHAR2(36 BYTE) NOT NULL
|
|
, SFCFQ VARCHAR2(10 BYTE) DEFAULT '无'
|
|
, BDZH VARCHAR2(50 BYTE)
|
|
, SFMZSFY VARCHAR2(1 BYTE) DEFAULT 2
|
|
, SFZYSFY VARCHAR2(1 BYTE) DEFAULT 2
|
|
, YBUSERNAME VARCHAR2(30 BYTE)
|
|
, YBPASSWORD VARCHAR2(30 BYTE)
|
|
, SFKXQYBL VARCHAR2(1 BYTE) DEFAULT 0
|
|
, SFZYZHQ VARCHAR2(10 BYTE) DEFAULT '有'
|
|
, KSSYSJB VARCHAR2(1 BYTE) DEFAULT 0
|
|
, FZLYYSJB VARCHAR2(2 BYTE) DEFAULT 0
|
|
, SFJB VARCHAR2(10 BYTE)
|
|
, CJR VARCHAR2(36)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36)
|
|
, XGRQ DATE
|
|
, YHQXBS INT
|
|
, YSJB VARCHAR2(10 BYTE)
|
|
, YBID VARCHAR2(50 BYTE)
|
|
, YBNAME VARCHAR2(200 BYTE)
|
|
, PKEY VARCHAR2(36 BYTE)
|
|
, CONSTRAINT SYS_C0026249 PRIMARY KEY
|
|
(
|
|
USERID
|
|
)
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.USERID IS '唯一编码';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.MRKS IS '默认登录科室';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.EFFICET IS '0启用状态 1已停用';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFZYYS IS '是否住院医师';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.DUTY IS '医护类型';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFZYHS IS '是否住院护士';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFMZYS IS '是否门诊医师';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.EMPID IS '职员唯一ID';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFCFQ IS '有无处方权';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.BDZH IS '当前账号绑定的另一账号的账号名。绑定后可以跳转至另一账号';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFMZSFY IS '是否门诊收费员1:是 2:否';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFZYSFY IS '是否住院收费员:是 2:否1:是 2:否';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.YBUSERNAME IS '医保用户名';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.YBPASSWORD IS '医保密码';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFKXQYBL IS '是否可写全院病历0:否 1:是';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFZYZHQ IS '有无住院召回权';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.KSSYSJB IS '抗生素医师级别要求0为未分类。当药物为抗菌药物时,只有指定医师级别以上医师才可以使用。分级使用标志,与字典表中DICGRPID=44相关联';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.FZLYYSJB IS '辅助类药医师级别要求0为未分类。当药物为辅助药物时,只有指定医师级别以上医师才可以使用。分级使用标志,与字典表中DICGRPID=11002相关联';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.SFJB IS '手术级别';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.YHQXBS IS '用户权限标识';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.YSJB IS '本院医生级别';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.YBID IS '医护人员医保编号';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.YBNAME IS '医护人员医保姓名';
|
|
|
|
COMMENT ON COLUMN MAIN_JGYH.PKEY IS '主健2';
|
|
|
|
CREATE TABLE WATSEQUENCE
|
|
(
|
|
SEQID VARCHAR2(50 BYTE) NOT NULL
|
|
, CURVAL NUMBER(14, 0) NOT NULL
|
|
, CONSTRAINT WATSEQUENCE_PK PRIMARY KEY
|
|
(
|
|
SEQID
|
|
)
|
|
);
|
|
|
|
CREATE TABLE HIS_YB_JGCS
|
|
(
|
|
JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, URL VARCHAR2(100 BYTE)
|
|
, YBJGBM VARCHAR2(30 BYTE) NOT NULL
|
|
, YBJGMC VARCHAR2(100 BYTE) NOT NULL
|
|
, YBXZQH VARCHAR2(6 BYTE) NOT NULL
|
|
, XTIFPAASID VARCHAR2(16 BYTE)
|
|
, SECRETKEY VARCHAR2(100 BYTE)
|
|
, INFVER VARCHAR2(6 BYTE)
|
|
, RECERSYSCODE VARCHAR2(10 BYTE)
|
|
, HOSP_LV VARCHAR2(6 BYTE)
|
|
, LOCALURL VARCHAR2(100 BYTE)
|
|
, APIKEY VARCHAR2(100 BYTE)
|
|
, JKFS VARCHAR2(2 BYTE) DEFAULT 0
|
|
, LOCAL_TYPE VARCHAR2(1 BYTE) DEFAULT 1
|
|
, OUT_TYPE VARCHAR2(1 BYTE) DEFAULT 1
|
|
, RDURL VARCHAR2(100 BYTE)
|
|
, CONSTRAINT SYS_C0025459 PRIMARY KEY
|
|
(
|
|
JGID
|
|
)
|
|
);
|
|
|
|
COMMENT ON TABLE HIS_YB_JGCS IS '医保机构参数表';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.JGID IS '机构代码';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.URL IS '接口地址';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.YBJGBM IS '医保机构编码';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.YBJGMC IS '医保机构名称';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.YBXZQH IS '医保行政区划';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.XTIFPAASID IS '应用账户编码';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.SECRETKEY IS '密钥';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.INFVER IS '接口版本号';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.RECERSYSCODE IS '接收方系统代码';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.HOSP_LV IS '医院等级';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.LOCALURL IS '本地服务地址';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.APIKEY IS '访问密钥ID';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.JKFS IS '接口模式(0:广东服务版、1:广东桌面版、2:湖南服务版、3:湖南桌面版、4:甘肃服务版、5:甘肃桌面版、6:河北服务版、7:河北桌面版、8:四川服务版、9:四川桌面版、10:新疆服务版、11:新疆桌面版、12:西藏服务版、13:西藏桌面版)';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.LOCAL_TYPE IS '本地定点类型:1 市级定点、2 省级定点、3 省市双定点';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.OUT_TYPE IS '异地定点类型:1 市级异地,2 省级异地(市州固定1,成都市医疗机构若开通省本级异地填入2)';
|
|
|
|
COMMENT ON COLUMN HIS_YB_JGCS.RDURL IS '读卡服务地址';
|
|
|
|
CREATE TABLE MAIN_YHZ
|
|
(
|
|
ID INT NOT NULL
|
|
, FZID VARCHAR2(36 BYTE) NOT NULL
|
|
, YHID VARCHAR2(36 BYTE) NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX ID_PK ON MAIN_YHZ (ID ASC) ;
|
|
|
|
ALTER TABLE MAIN_YHZ
|
|
ADD CONSTRAINT ID_PK PRIMARY KEY
|
|
(
|
|
ID
|
|
)
|
|
USING INDEX ID_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.FZID IS '用户组ID';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.YHID IS '用户ID';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZ.JGID IS '机构编码';
|
|
|
|
CREATE TABLE MAIN_JGQXZ
|
|
(
|
|
ID INT NOT NULL
|
|
, FZBM VARCHAR2(50 BYTE) NOT NULL
|
|
, FZMC VARCHAR2(100 BYTE) NOT NULL
|
|
, BZ VARCHAR2(1000 BYTE)
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, ZT VARCHAR2(1 BYTE) DEFAULT 0
|
|
);
|
|
|
|
CREATE UNIQUE INDEX JGQXZ_PK ON MAIN_JGQXZ (ID ASC, FZBM ASC, JGID ASC) ;
|
|
|
|
ALTER TABLE MAIN_JGQXZ
|
|
ADD CONSTRAINT JGQXZ_PK PRIMARY KEY
|
|
(
|
|
ID
|
|
, FZBM
|
|
, JGID
|
|
)
|
|
USING INDEX JGQXZ_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_JGQXZ.ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_JGQXZ.FZBM IS '用户组编号';
|
|
|
|
COMMENT ON COLUMN MAIN_JGQXZ.FZMC IS '用户组名称';
|
|
|
|
COMMENT ON COLUMN MAIN_JGQXZ.BZ IS '用户组说明';
|
|
|
|
COMMENT ON COLUMN MAIN_JGQXZ.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_JGQXZ.CJRQ IS '创建日期';
|
|
|
|
CREATE TABLE MAIN_YHQX
|
|
(
|
|
ID VARCHAR2(20 BYTE) NOT NULL
|
|
, MKBM VARCHAR2(50 BYTE) NOT NULL
|
|
, YHID VARCHAR2(30 BYTE) NOT NULL
|
|
, QXLB VARCHAR2(1 BYTE) NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, SYSFUN_LOOKVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_ADDVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_EDITVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_DELETEVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_POSTVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_AMOUNTVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_PRINTVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_SELECTVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_AUDITVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_RETURNVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_HELPVALUE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_SPACVALUE1 VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_SPACVALUE2 VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_SPACVALUE3 VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_SPACVALUE4 VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, SYSFUN_SPACVALUE5 VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, CONSTRAINT SYS_C0026245 PRIMARY KEY
|
|
(
|
|
ID
|
|
)
|
|
USING INDEX
|
|
(
|
|
CREATE UNIQUE INDEX SYS_C0026245 ON MAIN_YHQX (ID ASC)
|
|
)
|
|
ENABLE
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.MKBM IS '模块编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.YHID IS '用户ID或用户组ID';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.QXLB IS '用户权限类别0-单个用户1-用户组';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_LOOKVALUE IS '查看';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_ADDVALUE IS '新增';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_EDITVALUE IS '编辑';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_DELETEVALUE IS '删除';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_POSTVALUE IS '提交';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_AMOUNTVALUE IS '金额';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_PRINTVALUE IS '打印';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_SELECTVALUE IS '查询';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_AUDITVALUE IS '审核';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_RETURNVALUE IS '导出';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_HELPVALUE IS '帮助';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_SPACVALUE1 IS '特别1';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_SPACVALUE2 IS '特别2';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_SPACVALUE3 IS '特别3';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_SPACVALUE4 IS '特别4';
|
|
|
|
COMMENT ON COLUMN MAIN_YHQX.SYSFUN_SPACVALUE5 IS '特别5';
|
|
|
|
CREATE TABLE MAIN_FUNCTION
|
|
(
|
|
SYSFUNID VARCHAR2(36 BYTE) NOT NULL
|
|
, SYSFUNNUMBER VARCHAR2(50 BYTE) NOT NULL
|
|
, SYSFUNNAME_CN VARCHAR2(50 BYTE) NOT NULL
|
|
, SYSFUNDESC_CN VARCHAR2(500 BYTE)
|
|
, SYSFUN_SER INT NOT NULL
|
|
, SYSFUN_REMARK VARCHAR2(1000 BYTE)
|
|
, SYSFUN_FLAG INT NOT NULL
|
|
, SYSFUN_STATUS INT NOT NULL
|
|
, SYSFUN_DIFF INT NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, SYS_FUN_HELP VARCHAR2(1000 BYTE)
|
|
, SYSFUN_LOOKVALUE INT NOT NULL
|
|
, SYSFUN_ADDVALUE INT NOT NULL
|
|
, SYSFUN_EDITVALUE INT NOT NULL
|
|
, SYSFUN_DELETEVALUE INT NOT NULL
|
|
, SYSFUN_POSTVALUE INT NOT NULL
|
|
, SYSFUN_AMOUNTVALUE INT NOT NULL
|
|
, SYSFUN_PRINTVALUE INT NOT NULL
|
|
, SYSFUN_SELECTVALUE INT NOT NULL
|
|
, SYSFUN_AUDITVALUE INT NOT NULL
|
|
, SYSFUN_RETURNVALUE INT NOT NULL
|
|
, SYSFUN_HELPVALUE INT NOT NULL
|
|
, SYSFUN_SPACVALUE1 INT NOT NULL
|
|
, SYSFUN_SPACVALUE2 INT NOT NULL
|
|
, SYSFUN_SPACVALUE3 INT NOT NULL
|
|
, SYSFUN_SPACVALUE4 INT NOT NULL
|
|
, SYSFUN_SPACVALUE5 INT NOT NULL
|
|
, SYSFUN_PARENT VARCHAR2(50 BYTE) NOT NULL
|
|
, SYSFUN_ISGZGN VARCHAR2(1 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX SYSTEMFUNCTION_PK ON MAIN_FUNCTION (SYSFUNID ASC, SYSFUNNUMBER ASC) ;
|
|
|
|
CREATE UNIQUE INDEX SYSTEMFUNCTION_UK1 ON MAIN_FUNCTION (SYSFUNID ASC) ;
|
|
|
|
CREATE UNIQUE INDEX SYSTEMFUNCTION_UK2 ON MAIN_FUNCTION (SYSFUNNUMBER ASC) ;
|
|
|
|
ALTER TABLE MAIN_FUNCTION
|
|
ADD CONSTRAINT SYSTEMFUNCTION_PK PRIMARY KEY
|
|
(
|
|
SYSFUNID
|
|
, SYSFUNNUMBER
|
|
)
|
|
USING INDEX SYSTEMFUNCTION_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE MAIN_FUNCTION
|
|
ADD CONSTRAINT SYSTEMFUNCTION_UK1 UNIQUE
|
|
(
|
|
SYSFUNID
|
|
)
|
|
USING INDEX SYSTEMFUNCTION_UK1
|
|
ENABLE;
|
|
|
|
ALTER TABLE MAIN_FUNCTION
|
|
ADD CONSTRAINT SYSTEMFUNCTION_UK2 UNIQUE
|
|
(
|
|
SYSFUNNUMBER
|
|
)
|
|
USING INDEX SYSTEMFUNCTION_UK2
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUNID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUNNUMBER IS '系统功能编码';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUNNAME_CN IS '系统功能中文名称';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUNDESC_CN IS '系统功能中文描述';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SER IS '系统功能顺序';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_REMARK IS '系统功能备注';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_FLAG IS '系统标识0:一级菜单1:二级菜单2:三级菜单';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_STATUS IS '系统功能状态0:正常1:过期';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_DIFF IS '系统菜单区别值0:公共菜单1:私密菜单';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYS_FUN_HELP IS '帮助文档';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_LOOKVALUE IS '查看';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_ADDVALUE IS '新增';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_EDITVALUE IS '编辑';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_DELETEVALUE IS '删除';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_POSTVALUE IS '提交';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_AMOUNTVALUE IS '金额';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_PRINTVALUE IS '打印';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SELECTVALUE IS '查询';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_AUDITVALUE IS '审核';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_RETURNVALUE IS '导出';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_HELPVALUE IS '帮助';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SPACVALUE1 IS '单号';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SPACVALUE2 IS '特别2';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SPACVALUE3 IS '特别3';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SPACVALUE4 IS '特别4';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_SPACVALUE5 IS '特别5';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_PARENT IS '父级菜单';
|
|
|
|
COMMENT ON COLUMN MAIN_FUNCTION.SYSFUN_ISGZGN IS '关注功能';
|
|
|
|
CREATE TABLE MAIN_YHCDQX
|
|
(
|
|
ID INT NOT NULL
|
|
, QXLB VARCHAR2(1 BYTE) NOT NULL
|
|
, CDBM VARCHAR2(50 BYTE) NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, TRUEID VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX ID_PK ON MAIN_YHCDQX (ID ASC);
|
|
|
|
ALTER TABLE MAIN_YHCDQX
|
|
ADD CONSTRAINT ID_PK PRIMARY KEY
|
|
(
|
|
ID
|
|
)
|
|
USING INDEX ID_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.QXLB IS '客户菜单权限类别0:单个客户1:客户组';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.CDBM IS '菜单编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHCDQX.TRUEID IS '建立机构编码,人是10000';
|
|
|
|
CREATE TABLE MAIN_YHZCDQX
|
|
(
|
|
ID INT NOT NULL
|
|
, CDZ INT NOT NULL
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
);
|
|
|
|
CREATE UNIQUE INDEX ID_PK ON MAIN_YHZCDQX (ID ASC);
|
|
|
|
ALTER TABLE MAIN_YHZCDQX
|
|
ADD CONSTRAINT ID_PK PRIMARY KEY
|
|
(
|
|
ID
|
|
)
|
|
USING INDEX ID_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.CDZ IS '客户菜单组';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCDQX.XGRQ IS '修改日期';
|
|
|
|
CREATE TABLE MAIN_YHZCD
|
|
(
|
|
ID INT NOT NULL
|
|
, ZBM VARCHAR2(50 BYTE) NOT NULL
|
|
, ZMC VARCHAR2(100 BYTE) NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, ZT VARCHAR2(1 BYTE) DEFAULT 0
|
|
);
|
|
|
|
CREATE UNIQUE INDEX ID_PK ON MAIN_YHZCD (ID ASC, ZBM ASC);
|
|
|
|
CREATE UNIQUE INDEX ZBM_UK1 ON MAIN_YHZCD (ZBM ASC) ;
|
|
|
|
ALTER TABLE MAIN_YHZCD
|
|
ADD CONSTRAINT ID_PK PRIMARY KEY
|
|
(
|
|
ID
|
|
, ZBM
|
|
)
|
|
USING INDEX ID_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE MAIN_YHZCD
|
|
ADD CONSTRAINT ZBM_UK1 UNIQUE
|
|
(
|
|
ZBM
|
|
)
|
|
USING INDEX ZBM_UK1
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.ZBM IS '组编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.ZMC IS '组名称';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.XGRQ IS '修建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHZCD.ZT IS '组状态0:正常1:过期';
|
|
|
|
CREATE TABLE MAIN_MENU
|
|
(
|
|
TYPE VARCHAR2(10 BYTE)
|
|
, OPEN_TYPE VARCHAR2(10 BYTE)
|
|
, ALL_CLASSNAME VARCHAR2(200 BYTE)
|
|
, MENUID VARCHAR2(20 BYTE) NOT NULL
|
|
, MENU_IMG VARCHAR2(200 BYTE)
|
|
, IS_REGISTER VARCHAR2(10 BYTE)
|
|
, PARAMS_KEY VARCHAR2(200 BYTE)
|
|
, PARAMS_VALUE VARCHAR2(200 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX SYSTEMMENU_PK ON MAIN_MENU (MENUID ASC);
|
|
|
|
ALTER TABLE MAIN_MENU
|
|
ADD CONSTRAINT SYSTEMMENU_PK PRIMARY KEY
|
|
(
|
|
MENUID
|
|
)
|
|
USING INDEX SYSTEMMENU_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.TYPE IS '类型 WEB,SDI';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.OPEN_TYPE IS '0-默认;1-模态; 2-不可关闭';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.ALL_CLASSNAME IS '全类名';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.MENUID IS '菜单id';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.MENU_IMG IS '菜单图标';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.IS_REGISTER IS '是否需要注册窗体';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.PARAMS_KEY IS ' 窗体入参键 多参数以@做分割';
|
|
|
|
COMMENT ON COLUMN MAIN_MENU.PARAMS_VALUE IS ' 窗体入参值 多参数以@做分割';
|
|
|
|
CREATE TABLE MAIN_YHXX
|
|
(
|
|
EMPID VARCHAR2(36 BYTE) NOT NULL
|
|
, NAME VARCHAR2(60 BYTE)
|
|
, SEX VARCHAR2(6 BYTE)
|
|
, PYM VARCHAR2(30 BYTE)
|
|
, BIRTHDAY DATE
|
|
, JLJG VARCHAR2(36 BYTE)
|
|
, GLJG VARCHAR2(36 BYTE)
|
|
, IDTYPE VARCHAR2(2 BYTE)
|
|
, IDENTITYID VARCHAR2(20 BYTE)
|
|
, USERACCOUNT VARCHAR2(20 BYTE)
|
|
, USERPASSWORD VARCHAR2(20 BYTE)
|
|
, UPLOADFLAG VARCHAR2(1 BYTE)
|
|
, TITLE VARCHAR2(200 BYTE) DEFAULT -1
|
|
, PHOTO VARCHAR2(120 BYTE)
|
|
, MEMO VARCHAR2(200 BYTE)
|
|
, EDUCATION VARCHAR2(3 BYTE)
|
|
, PHONE_NUM VARCHAR2(30 BYTE)
|
|
, EMAIL VARCHAR2(30 BYTE)
|
|
, SIGNIMG VARCHAR2(100 BYTE)
|
|
, SPECIALTY VARCHAR2(50 BYTE)
|
|
, PROFILE VARCHAR2(4000 BYTE)
|
|
, SPECIALITY VARCHAR2(4000 BYTE)
|
|
, CERTIFICATE VARCHAR2(200 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, NATIONALITY VARCHAR2(20 BYTE)
|
|
, MRDLJG VARCHAR2(36 BYTE)
|
|
, DLJG VARCHAR2(36 BYTE)
|
|
, YBUSERNAME VARCHAR2(30 BYTE)
|
|
, MZ VARCHAR2(20 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX EMPID_PK ON MAIN_YHXX (EMPID ASC);
|
|
|
|
CREATE UNIQUE INDEX USERACCOUNT_UK1 ON MAIN_YHXX (USERACCOUNT ASC) ;
|
|
|
|
CREATE UNIQUE INDEX IDENTITYID_UK2 ON MAIN_YHXX (IDENTITYID ASC) ;
|
|
|
|
ALTER TABLE MAIN_YHXX
|
|
ADD CONSTRAINT MAIN_YHXX_PK PRIMARY KEY
|
|
(
|
|
EMPID
|
|
)
|
|
USING INDEX EMPID_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE MAIN_YHXX
|
|
ADD CONSTRAINT USERACCOUNT_UK1 UNIQUE
|
|
(
|
|
USERACCOUNT
|
|
)
|
|
USING INDEX USERACCOUNT_UK1
|
|
ENABLE;
|
|
|
|
ALTER TABLE MAIN_YHXX
|
|
ADD CONSTRAINT IDENTITYID_UK2 UNIQUE
|
|
(
|
|
IDENTITYID
|
|
)
|
|
USING INDEX IDENTITYID_UK2
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.EMPID IS '职员ID';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.NAME IS '姓名';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.SEX IS '性别';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.PYM IS '拼音码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.BIRTHDAY IS '出生日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.JLJG IS '建立机构';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.GLJG IS ' 管辖机构 ';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.IDTYPE IS '证件类型';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.IDENTITYID IS '证件号码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.USERACCOUNT IS '登陆账号';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.USERPASSWORD IS '账号密码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.UPLOADFLAG IS '上传标志';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.TITLE IS '职称';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.PHOTO IS '照片(文件链接地址)';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.MEMO IS '备注';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.EDUCATION IS '学历';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.PHONE_NUM IS '电话号码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.EMAIL IS '邮箱地址';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.SIGNIMG IS '签名图片';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.SPECIALTY IS '专业';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.PROFILE IS '个人简介';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.SPECIALITY IS '专长';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.CERTIFICATE IS '医师资格证号';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.NATIONALITY IS '国籍';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.MRDLJG IS '默认机构登陆';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.DLJG IS '登陆机构';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.YBUSERNAME IS '医保编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHXX.MZ IS '民族';
|
|
|
|
CREATE TABLE MAIN_YHGLKS
|
|
(
|
|
KSBM VARCHAR2(36 BYTE) NOT NULL
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, EMPID VARCHAR2(36 BYTE) NOT NULL
|
|
, SCBZ VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
);
|
|
|
|
CREATE UNIQUE INDEX YHGLKS_PK ON MAIN_YHGLKS (JGID ASC, KSBM ASC, EMPID ASC, SCBZ ASC);
|
|
|
|
ALTER TABLE MAIN_YHGLKS
|
|
ADD CONSTRAINT YHGLKS_PK PRIMARY KEY
|
|
(
|
|
JGID
|
|
, KSBM
|
|
, EMPID
|
|
, SCBZ
|
|
)
|
|
USING INDEX YHGLKS_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_YHGLKS IS '人员允许登录科室';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.KSBM IS '科室编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.EMPID IS '用户ID';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.SCBZ IS '删除标志0否1是';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN MAIN_YHGLKS.SCRQ IS '删除日期';
|
|
|
|
CREATE TABLE MAIN_OPERATION
|
|
(
|
|
FUNCTIONID VARCHAR2(36 BYTE) NOT NULL
|
|
, FUNCTIONTYPE VARCHAR2(1 BYTE)
|
|
, CANDELETE VARCHAR2(1 BYTE) DEFAULT 0
|
|
, ISFIXED VARCHAR2(1 BYTE) DEFAULT 0
|
|
, NAME VARCHAR2(100 BYTE)
|
|
, ICON VARCHAR2(100 BYTE)
|
|
, QZ NUMBER
|
|
, USERACCOUNT VARCHAR2(100 BYTE) NOT NULL
|
|
, JGID VARCHAR2(100 BYTE) NOT NULL
|
|
, LASTUSERTIME DATE
|
|
, LASTLOCATION VARCHAR2(4000 BYTE)
|
|
, LASTUSERIP VARCHAR2(100 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX COMMONFUNCTION_PK ON MAIN_OPERATION (FUNCTIONID ASC, USERACCOUNT ASC, JGID ASC);
|
|
|
|
ALTER TABLE MAIN_OPERATION
|
|
ADD CONSTRAINT COMMONFUNCTION_PK PRIMARY KEY
|
|
(
|
|
FUNCTIONID
|
|
, USERACCOUNT
|
|
, JGID
|
|
)
|
|
USING INDEX COMMONFUNCTION_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.FUNCTIONID IS '功能id';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.FUNCTIONTYPE IS '功能类型';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.CANDELETE IS '0:能够删除,1:不能够删除';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.ISFIXED IS '0:未固定 1:已固定';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.NAME IS '功能名称';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.ICON IS '功能图标';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.QZ IS '权重';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.USERACCOUNT IS '使用者账号';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.JGID IS '使用者当前医疗机构';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.LASTUSERTIME IS '最后使用时间';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.LASTLOCATION IS '最后使用位置';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATION.LASTUSERIP IS '最后使用ip';
|
|
|
|
CREATE TABLE MAIN_OPERATIONCACHE
|
|
(
|
|
FUNCTIONID VARCHAR2(36 BYTE)
|
|
, USERACCOUNT VARCHAR2(100 BYTE)
|
|
, JGID VARCHAR2(100 BYTE)
|
|
, ISFIXED VARCHAR2(1 BYTE) DEFAULT 0
|
|
, NAME VARCHAR2(100 BYTE)
|
|
, ICON VARCHAR2(100 BYTE)
|
|
, QZ NUMBER
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.FUNCTIONID IS '菜单ID';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.USERACCOUNT IS '操作员账号';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.ISFIXED IS '是否固定';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.NAME IS '名称';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.ICON IS '图标';
|
|
|
|
COMMENT ON COLUMN MAIN_OPERATIONCACHE.QZ IS '权重';
|
|
|
|
CREATE TABLE MAIN_MEMORY
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, TYPE VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, GJZ VARCHAR2(100 BYTE) NOT NULL
|
|
, QZ NUMBER(10, 0) NOT NULL
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, USERACCOUNT VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX OPENMAINMEMORY_PK ON MAIN_MEMORY (PKEY ASC) ;
|
|
|
|
ALTER TABLE MAIN_MEMORY
|
|
ADD CONSTRAINT OPENMAINMEMORY_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
)
|
|
USING INDEX OPENMAINMEMORY_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_MEMORY IS '医疗信息管理系统中,公用工具类相关表,用来记忆医院的使用频率,取最常用的数据,进行智能分析和提取';
|
|
|
|
COMMENT ON COLUMN MAIN_MEMORY.PKEY IS '唯一编码';
|
|
|
|
COMMENT ON COLUMN MAIN_MEMORY.TYPE IS '0:主诉 1:疾病 2:检验 3:用药 4:项目 5:经验处方 6:用法 7:频次 8:检查 9:时机';
|
|
|
|
COMMENT ON COLUMN MAIN_MEMORY.GJZ IS '关键字';
|
|
|
|
COMMENT ON COLUMN MAIN_MEMORY.QZ IS '权重';
|
|
|
|
COMMENT ON COLUMN MAIN_MEMORY.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_MEMORY.USERACCOUNT IS '操作员账号';
|
|
|
|
CREATE TABLE MAIN_KS
|
|
(
|
|
DPTID VARCHAR2(36 BYTE) NOT NULL
|
|
, DPTCODE VARCHAR2(50 BYTE) NOT NULL
|
|
, DPTNAME VARCHAR2(300 BYTE) NOT NULL
|
|
, DPTRMARK VARCHAR2(4000 BYTE)
|
|
, DPTADDR VARCHAR2(400 BYTE)
|
|
, DPTLAYER VARCHAR2(100 BYTE)
|
|
, DPTTYPE VARCHAR2(10 BYTE) NOT NULL
|
|
, DPTGPID VARCHAR2(20 BYTE)
|
|
, DPTSEX VARCHAR2(10 BYTE)
|
|
, DPTZJM VARCHAR2(300 BYTE)
|
|
, DPTBAGE VARCHAR2(20 BYTE)
|
|
, DPTEAGE VARCHAR2(20 BYTE)
|
|
, DPTTXMJC VARCHAR2(300 BYTE)
|
|
, DPTYBCODE VARCHAR2(300 BYTE)
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, DPTFLAG INT DEFAULT 1 NOT NULL
|
|
, SCRQ DATE
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, ISMZ VARCHAR2(1 BYTE)
|
|
, ISJZ VARCHAR2(1 BYTE)
|
|
, ISZY VARCHAR2(1 BYTE)
|
|
, ISTJ VARCHAR2(1 BYTE)
|
|
, DPTYBMC VARCHAR2(200 BYTE)
|
|
, ITRO VARCHAR2(500 BYTE)
|
|
, DEPT_RESPER_NAME VARCHAR2(50 BYTE)
|
|
, DEPT_RESPER_TEL VARCHAR2(50 BYTE)
|
|
, DEPT_MED_SERV_SCP VARCHAR2(500 BYTE)
|
|
, DEPT_ESTBDAT DATE
|
|
, APRV_BED_CNT INT
|
|
, HI_CRTF_BED_CNT INT
|
|
, DR_PSNCNT INT
|
|
, PHAR_PSNCNT INT
|
|
, NURS_PSNCNT INT
|
|
, TECN_PSNCNT INT
|
|
, YBSCFLAG VARCHAR2(1 BYTE) DEFAULT 0
|
|
, ISLIS VARCHAR2(1 BYTE) DEFAULT 0
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTCODE IS '部门代码';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTNAME IS '部门名称';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTRMARK IS '备注';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTADDR IS '地址';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTLAYER IS '楼层';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTTYPE IS '科室类型';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTGPID IS '科室组id';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTSEX IS '科室性别要求';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTZJM IS '科室助记码';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTBAGE IS '科室起始年龄';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTEAGE IS '科室结束年龄';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTTXMJC IS '条形码简称';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTYBCODE IS '医保科室代码';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.CJR IS '新增用户';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.CJRQ IS '新增时间';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.XGR IS '最后修改用户';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.XGRQ IS '最后修改时间';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTFLAG IS '删除标志,main_zdz的bh=000002,1:启用,2禁用';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.SCRQ IS '删除日期';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.ISMZ IS '接诊类型-门诊';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.ISJZ IS '接诊类型-急诊';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.ISZY IS '接诊类型-住院';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.ISTJ IS '接诊类型-体检';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DPTYBMC IS '医保科室名称';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.ITRO IS '简介';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DEPT_RESPER_NAME IS '科室负责人姓名';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DEPT_RESPER_TEL IS '科室负责人电话';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DEPT_MED_SERV_SCP IS '科室医疗服务范围';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DEPT_ESTBDAT IS '科室成立日期';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.APRV_BED_CNT IS '批准床位数量';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.HI_CRTF_BED_CNT IS '医保认可床位数';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.DR_PSNCNT IS '医师人数';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.PHAR_PSNCNT IS '药师人数';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.NURS_PSNCNT IS '护士人数';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.TECN_PSNCNT IS '技师人数';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.YBSCFLAG IS '医保上传标志(值:[MAIN_ZDB]的zdzb_bh=000001)';
|
|
|
|
COMMENT ON COLUMN MAIN_KS.ISLIS IS 'LIS标志';
|
|
|
|
CREATE TABLE MAIN_KSZ
|
|
(
|
|
DPTGPID VARCHAR2(36 BYTE) NOT NULL
|
|
, DPTGPCODE VARCHAR2(50 BYTE) NOT NULL
|
|
, DPTGPNAME VARCHAR2(300 BYTE) NOT NULL
|
|
, DPTDPTGPRMARK VARCHAR2(4000 BYTE)
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, DPTGPFLAG INT DEFAULT 1 NOT NULL
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
);
|
|
|
|
CREATE UNIQUE INDEX KSZ_PK ON MAIN_KSZ (DPTGPID ASC, DPTGPCODE ASC, JGID ASC) ;
|
|
|
|
CREATE UNIQUE INDEX KSZ_PK1 ON MAIN_KSZ (DPTGPID ASC, DPTGPCODE ASC, JGID ASC, DPTGPFLAG ASC);
|
|
|
|
ALTER TABLE MAIN_KSZ
|
|
ADD CONSTRAINT KSZ_PK PRIMARY KEY
|
|
(
|
|
DPTGPID
|
|
, DPTGPCODE
|
|
, JGID
|
|
, DPTGPFLAG
|
|
)
|
|
USING INDEX KSZ_PK1
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.DPTGPID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.DPTGPCODE IS '部门组代码';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.DPTGPNAME IS '部门组名称';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.DPTDPTGPRMARK IS '备注';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.CJR IS '新增用户';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.CJRQ IS '新增时间';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.XGR IS '最后修改用户';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.XGRQ IS '最后修改时间';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.DPTGPFLAG IS '删除标志,main_zdz的bh=000002,1:启用,2禁用';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN MAIN_KSZ.SCRQ IS '删除日期';
|
|
|
|
CREATE TABLE WBPYBM
|
|
(
|
|
JT VARCHAR2(10 BYTE)
|
|
, FT VARCHAR2(10 BYTE)
|
|
, SP VARCHAR2(10 BYTE)
|
|
, SW VARCHAR2(10 BYTE)
|
|
, QP VARCHAR2(50 BYTE)
|
|
, QW VARCHAR2(50 BYTE)
|
|
) ;
|
|
|
|
CREATE TABLE HIS_GZZ_CSGL
|
|
(
|
|
PKEY VARCHAR2(20 BYTE)
|
|
, MC VARCHAR2(1000 BYTE) NOT NULL
|
|
, MS VARCHAR2(2000 BYTE)
|
|
, TYPE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, KJTYPE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, XH NUMBER
|
|
, SZ VARCHAR2(1000 BYTE)
|
|
, BM VARCHAR2(100 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_GZZ_CSGL_PK ON HIS_GZZ_CSGL (MC ASC) ;
|
|
|
|
COMMENT ON TABLE HIS_GZZ_CSGL IS '医生工作站普通参数类型管理表';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.MS IS '描述';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.TYPE IS '参数类型1布尔2数字3字符4日期';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.KJTYPE IS '控件类型1checkbox2textfield3datetimepick4combobox';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.XH IS '排序序号';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.SZ IS '参数设置';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSGL.BM IS '编码';
|
|
|
|
CREATE TABLE HIS_GZZ_CSZ
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, VALUE VARCHAR2(100 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_GZZ_CSZ_PK ON HIS_GZZ_CSZ (PKEY ASC, JGID ASC);
|
|
|
|
ALTER TABLE HIS_GZZ_CSZ
|
|
ADD CONSTRAINT HIS_GZZ_CSZ_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
, JGID
|
|
)
|
|
USING INDEX HIS_GZZ_CSZ_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE HIS_GZZ_CSZ IS '医生工作站普通参数设置表';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.VALUE IS '参数值';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_GZZ_CSZ.JGID IS '所属机构';
|
|
|
|
CREATE TABLE HIS_MESSAGE_TYPE
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, BM VARCHAR2(36 BYTE) NOT NULL
|
|
, MC VARCHAR2(200 BYTE) NOT NULL
|
|
, JSDX VARCHAR2(36 BYTE)
|
|
, FSFS VARCHAR2(36 BYTE)
|
|
, ZYX VARCHAR2(36 BYTE)
|
|
, YXTS NUMBER(10, 0)
|
|
, TDXX VARCHAR2(36 BYTE)
|
|
, ZYZDCL VARCHAR2(1 BYTE)
|
|
, SFQY VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, LOCKFLAG INT DEFAULT 0 NOT NULL
|
|
, CONSTRAINT SYS_C0027736 PRIMARY KEY
|
|
(
|
|
PKEY
|
|
, BM
|
|
, JGID
|
|
)
|
|
USING INDEX
|
|
(
|
|
CREATE UNIQUE INDEX SYS_C0027736 ON HIS_MESSAGE_TYPE (PKEY ASC, BM ASC, JGID ASC)
|
|
|
|
)
|
|
ENABLE
|
|
);
|
|
|
|
COMMENT ON TABLE HIS_MESSAGE_TYPE IS 'his系统消息';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.BM IS '编码';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.JSDX IS '消息接收对象';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.FSFS IS '消息发送方式';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.ZYX IS '消息重要性';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.YXTS IS '有效天数';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.TDXX IS '团队消息';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.ZYZDCL IS '出院自动处理';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.SFQY IS '是否启用';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_TYPE.LOCKFLAG IS '乐观锁计数器';
|
|
CREATE TABLE HIS_MESSAGE_RECEIVE
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, MESSAGEPKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, READMESSAGEMAN VARCHAR2(36 BYTE)
|
|
, READMESAGETIME DATE
|
|
, RECEIVEMESSAGEMAN VARCHAR2(36 BYTE)
|
|
, RECEIVEMESSAGETIME DATE
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, LOCKFLAG INT DEFAULT 0 NOT NULL
|
|
, CONSTRAINT SYS_C0027743 PRIMARY KEY
|
|
(
|
|
MESSAGEPKEY
|
|
, JGID
|
|
)
|
|
USING INDEX
|
|
(
|
|
CREATE UNIQUE INDEX SYS_C0027743 ON HIS_MESSAGE_RECEIVE (MESSAGEPKEY ASC, JGID ASC)
|
|
|
|
)
|
|
ENABLE
|
|
) ;
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.MESSAGEPKEY IS '消息表主键';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.READMESSAGEMAN IS '读消息人';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.READMESAGETIME IS '读消息时间';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.RECEIVEMESSAGEMAN IS '接收消息人';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.RECEIVEMESSAGETIME IS '接收消息时间';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE_RECEIVE.LOCKFLAG IS '乐观锁计数器';
|
|
CREATE TABLE HIS_MESSAGE
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, MESSAGETYPE VARCHAR2(36 BYTE)
|
|
, JSDX VARCHAR2(36 BYTE)
|
|
, FSFS VARCHAR2(36 BYTE)
|
|
, ZYX VARCHAR2(36 BYTE)
|
|
, YXTS NUMBER(10, 0)
|
|
, TDXX VARCHAR2(36 BYTE)
|
|
, ZYZDCL VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, FSR VARCHAR2(36 BYTE)
|
|
, FSTIME DATE
|
|
, CONTENT VARCHAR2(2000 BYTE)
|
|
, HZPKEY VARCHAR2(36 BYTE)
|
|
, JZPKEY VARCHAR2(36 BYTE)
|
|
, SFCL VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, JJKS VARCHAR2(36 BYTE)
|
|
, WARD VARCHAR2(36 BYTE)
|
|
, JJYS VARCHAR2(36 BYTE)
|
|
, XZYS VARCHAR2(36 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, LOCKFLAG INT DEFAULT 0 NOT NULL
|
|
);
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.MESSAGETYPE IS '消息类型';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.JSDX IS '消息接收对象';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.FSFS IS '消息发送方式';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.ZYX IS '消息重要性';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.YXTS IS '有效天数';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.TDXX IS '团队消息';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.ZYZDCL IS '出院自动处理';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.FSR IS '发送人';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.FSTIME IS '发送时间';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.CONTENT IS '发送内容';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.HZPKEY IS '患者主键';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.JZPKEY IS '就诊主键';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.SFCL IS '是否处理';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.JJKS IS '患者科室';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.WARD IS '患者病区';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.JJYS IS '主管医生';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.XZYS IS '下嘱医生';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_MESSAGE.LOCKFLAG IS '乐观锁计数器';
|
|
|
|
--2024-03-10-2--
|
|
CREATE TABLE MAIN_LOG
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, CLASSNAME VARCHAR2(1000 BYTE)
|
|
, LOG VARCHAR2(4000 BYTE)
|
|
, LOGIP VARCHAR2(100 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, TABLENAME VARCHAR2(1000 BYTE)
|
|
, DMLTYPE VARCHAR2(36 BYTE)
|
|
, TRANSSTATE VARCHAR2(10 BYTE) DEFAULT NULL
|
|
, SUCCESSSTATE VARCHAR2(1 BYTE) DEFAULT NULL
|
|
, SYSLOGID VARCHAR2(36 BYTE)
|
|
, CONSTRAINT MAIN_LOG_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
)
|
|
ENABLE
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.CLASSNAME IS '日志所在类';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.LOG IS '日志内容';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.LOGIP IS '日志产生ip';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.TABLENAME IS '修改的表';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.DMLTYPE IS '日志操作类型';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.TRANSSTATE IS '事务状态,1是0否,无是非事务';
|
|
|
|
COMMENT ON COLUMN MAIN_LOG.SUCCESSSTATE IS '成功状态,1是0否';
|
|
|
|
CREATE TABLE MAIN_XZQH
|
|
(
|
|
BM VARCHAR2(20 BYTE) NOT NULL
|
|
, MC VARCHAR2(50 BYTE)
|
|
, JB VARCHAR2(3 BYTE)
|
|
, PYM VARCHAR2(50 BYTE)
|
|
, WBM VARCHAR2(50 BYTE)
|
|
, SJBM VARCHAR2(20 BYTE)
|
|
, BZ VARCHAR2(50 BYTE)
|
|
, ZT VARCHAR2(1 BYTE) DEFAULT '1'
|
|
) ;
|
|
|
|
CREATE UNIQUE INDEX PK_MAIN_XZQH ON MAIN_XZQH (BM ASC) ;
|
|
|
|
ALTER TABLE MAIN_XZQH
|
|
ADD CONSTRAINT PK_MAIN_XZQH PRIMARY KEY
|
|
(
|
|
BM
|
|
)
|
|
USING INDEX PK_MAIN_XZQH
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_XZQH IS '行政区划';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.BM IS '编码';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.JB IS '级别(值:字典组表[main_zdzb]的bh=100007)';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.PYM IS '拼音码';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.WBM IS '五笔码';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.SJBM IS '上级编码';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.BZ IS '备注';
|
|
|
|
COMMENT ON COLUMN MAIN_XZQH.ZT IS '当前状态(值:字典组表[main_zdzb]的bh=000002)';
|
|
|
|
CREATE TABLE MAIN_ZDB
|
|
(
|
|
ZDZB_BH VARCHAR2(100 BYTE) NOT NULL
|
|
, BH VARCHAR2(100 BYTE) NOT NULL
|
|
, MC VARCHAR2(100 BYTE) NOT NULL
|
|
, PYM VARCHAR2(100 BYTE)
|
|
, WBM VARCHAR2(100 BYTE)
|
|
, VALUE1 VARCHAR2(500 BYTE)
|
|
, VALUE2 VARCHAR2(500 BYTE)
|
|
, XH INT DEFAULT 0
|
|
, ZT VARCHAR2(1 BYTE) DEFAULT '1' NOT NULL
|
|
, CONSTRAINT PK_MAIN_ZDB PRIMARY KEY
|
|
(
|
|
ZDZB_BH
|
|
, BH
|
|
, MC
|
|
)
|
|
USING INDEX
|
|
(
|
|
CREATE UNIQUE INDEX PK_MAIN_ZDB ON MAIN_ZDB (ZDZB_BH ASC, BH ASC, MC ASC)
|
|
)
|
|
ENABLE
|
|
);
|
|
|
|
COMMENT ON TABLE MAIN_ZDB IS '字典表';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.ZDZB_BH IS '字典组表编号';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.BH IS '编号';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.PYM IS '拼音码';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.WBM IS '五笔码';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.VALUE1 IS '备用1';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.VALUE2 IS '备用2';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.XH IS '显示顺序';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDB.ZT IS '当前状态(值:字典组表[main_zdzb]的bh=000002)';
|
|
|
|
CREATE TABLE MAIN_ZDZB
|
|
(
|
|
BH VARCHAR2(100 BYTE) NOT NULL
|
|
, MC VARCHAR2(100 BYTE) NOT NULL
|
|
, BZ VARCHAR2(300 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX PK_MAIN_ZDZB ON MAIN_ZDZB (BH ASC) ;
|
|
|
|
ALTER TABLE MAIN_ZDZB
|
|
ADD CONSTRAINT PK_MAIN_ZDZB PRIMARY KEY
|
|
(
|
|
BH
|
|
)
|
|
USING INDEX PK_MAIN_ZDZB
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_ZDZB IS '字典组表';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDZB.BH IS '编号';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDZB.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN MAIN_ZDZB.BZ IS '备注';
|
|
CREATE TABLE MAIN_JGZDLB
|
|
(
|
|
JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, BH VARCHAR2(6 BYTE) NOT NULL
|
|
, MC VARCHAR2(100 BYTE)
|
|
, BZ VARCHAR2(300 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX PK_MAIN_JGZDLB ON MAIN_JGZDLB (JGID ASC, BH ASC) ;
|
|
|
|
ALTER TABLE MAIN_JGZDLB
|
|
ADD CONSTRAINT PK_MAIN_JGZDLB PRIMARY KEY
|
|
(
|
|
JGID
|
|
, BH
|
|
)
|
|
USING INDEX PK_MAIN_JGZDLB
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_JGZDLB IS '机构字典类别';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDLB.JGID IS '机构代码(值为0的表示系统初始值,需重新生成对应机构的唯一ID)';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDLB.BH IS '编号';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDLB.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDLB.BZ IS '备注';
|
|
|
|
CREATE TABLE MAIN_JGZDB
|
|
(
|
|
JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, JGZDLB_BH VARCHAR2(6 BYTE) NOT NULL
|
|
, BH VARCHAR2(10 BYTE) NOT NULL
|
|
, MC VARCHAR2(100 BYTE)
|
|
, PYM VARCHAR2(50 BYTE)
|
|
, WBM VARCHAR2(50 BYTE)
|
|
, VALUE1 VARCHAR2(50 BYTE)
|
|
, VALUE2 VARCHAR2(50 BYTE)
|
|
, XH INT DEFAULT 0
|
|
, ZT VARCHAR2(1 BYTE) DEFAULT '1'
|
|
, VALUE3 VARCHAR2(50 BYTE)
|
|
, VALUE4 VARCHAR2(50 BYTE)
|
|
, VALUE5 VARCHAR2(50 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX PK_MAIN_JGZDB ON MAIN_JGZDB (JGID ASC, JGZDLB_BH ASC, BH ASC) ;
|
|
|
|
ALTER TABLE MAIN_JGZDB
|
|
ADD CONSTRAINT PK_MAIN_JGZDB PRIMARY KEY
|
|
(
|
|
JGID
|
|
, JGZDLB_BH
|
|
, BH
|
|
)
|
|
USING INDEX PK_MAIN_JGZDB
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_JGZDB IS '机构字典表';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.JGID IS '机构唯一ID(值为0的表示系统初始值,需重新生成对应机构的唯一ID)';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.JGZDLB_BH IS '字典类别编号';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.BH IS '编号';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.PYM IS '拼音码';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.WBM IS '五笔码';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.VALUE1 IS '备用1';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.VALUE2 IS '备用2';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.XH IS '显示顺序';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.ZT IS '当前状态(值:字典组表[main_zdzb]的bh=000002)';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.VALUE3 IS '备用3';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.VALUE4 IS '备用4';
|
|
|
|
COMMENT ON COLUMN MAIN_JGZDB.VALUE5 IS '备用5';
|
|
CREATE TABLE MAIN_BILLNOKEY
|
|
(
|
|
BILLNAME VARCHAR2(500 BYTE) NOT NULL
|
|
, BILL_FUNNUMBER VARCHAR2(500 BYTE) NOT NULL
|
|
, FLAG INT DEFAULT 0 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, SCBZ VARCHAR2(2 BYTE) DEFAULT 0 NOT NULL
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
);
|
|
|
|
CREATE UNIQUE INDEX CANSETBILLREPORT_PK1 ON MAIN_BILLNOKEY (BILL_FUNNUMBER ASC, FLAG ASC, SCBZ ASC) ;
|
|
|
|
ALTER TABLE MAIN_BILLNOKEY
|
|
ADD CONSTRAINT CANSETBILLREPORT_PK PRIMARY KEY
|
|
(
|
|
BILL_FUNNUMBER
|
|
, FLAG
|
|
, SCBZ
|
|
)
|
|
USING INDEX CANSETBILLREPORT_PK1
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.BILLNAME IS '类别名称';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.BILL_FUNNUMBER IS '类别编码';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.FLAG IS '标志暂时未启用';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.SCBZ IS '删除标志0:正常1:删除';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNOKEY.SCRQ IS '删除日期';
|
|
CREATE TABLE MAIN_BILLNO
|
|
(
|
|
BILL_ID INT NOT NULL
|
|
, BILL_UPDATE INT NOT NULL
|
|
, BILL_RESERVED INT NOT NULL
|
|
, BILL_FUNNUMBER VARCHAR2(50 BYTE) NOT NULL
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
, BILL_TYPE INT NOT NULL
|
|
, CJR VARCHAR2(36 BYTE) NOT NULL
|
|
, CJRQ DATE NOT NULL
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, BILL_NAME VARCHAR2(200 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX MAIN_BILLNO_PK ON MAIN_BILLNO (BILL_ID ASC, JGID ASC) ;
|
|
|
|
CREATE UNIQUE INDEX SYSBILLNO_UK1 ON MAIN_BILLNO (BILL_FUNNUMBER ASC, JGID ASC) ;
|
|
|
|
ALTER TABLE MAIN_BILLNO
|
|
ADD CONSTRAINT MAIN_BILLNO_PK PRIMARY KEY
|
|
(
|
|
BILL_ID
|
|
, JGID
|
|
)
|
|
USING INDEX MAIN_BILLNO_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE MAIN_BILLNO
|
|
ADD CONSTRAINT SYSBILLNO_UK1 UNIQUE
|
|
(
|
|
BILL_FUNNUMBER
|
|
, JGID
|
|
)
|
|
USING INDEX SYSBILLNO_UK1
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.BILL_ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.BILL_UPDATE IS '允许手工干预';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.BILL_RESERVED IS '允许保留';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.BILL_FUNNUMBER IS '关联功能编号';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.JGID IS '机构编码';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.BILL_TYPE IS '单号类别0系统单号1单据单号';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLNO.BILL_NAME IS '名称';
|
|
|
|
--2024-03-11--
|
|
CREATE TABLE MAIN_BILLDETAILNO
|
|
(
|
|
BILLDE_ID INT NOT NULL
|
|
, BILLMA_ID INT NOT NULL
|
|
, BILLDE_TYPE INT NOT NULL
|
|
, BILLDE_VALUE VARCHAR2(50 BYTE) NOT NULL
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX MAIN_BILLDETAILNO_PK ON MAIN_BILLDETAILNO (BILLDE_ID ASC, JGID ASC, BILLMA_ID ASC) ;
|
|
|
|
ALTER TABLE MAIN_BILLDETAILNO
|
|
ADD CONSTRAINT MAIN_BILLDETAILNO_PK PRIMARY KEY
|
|
(
|
|
BILLDE_ID
|
|
, JGID
|
|
, BILLMA_ID
|
|
)
|
|
USING INDEX MAIN_BILLDETAILNO_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN MAIN_BILLDETAILNO.BILLDE_ID IS '唯一标识';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLDETAILNO.BILLMA_ID IS '主单号码';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLDETAILNO.BILLDE_TYPE IS '单号规则类别0:自定义,1:日期格式,2:流水号,3:公司单号';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLDETAILNO.BILLDE_VALUE IS '建立值';
|
|
|
|
COMMENT ON COLUMN MAIN_BILLDETAILNO.JGID IS '机构编码';
|
|
|
|
CREATE TABLE MAIN_REPORTNO
|
|
(
|
|
REPORTKEY VARCHAR2(200 BYTE) NOT NULL
|
|
, REPORTNAME VARCHAR2(200 BYTE)
|
|
, COLUMNDAO VARCHAR2(200 BYTE)
|
|
, TABLEDAO VARCHAR2(200 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, ISHZINFO VARCHAR2(1 BYTE)
|
|
, ISJZINFO VARCHAR2(1 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX MAIN_REPORTNO_PK ON MAIN_REPORTNO (REPORTKEY ASC);
|
|
|
|
ALTER TABLE MAIN_REPORTNO
|
|
ADD CONSTRAINT MAIN_REPORTNO_PK PRIMARY KEY
|
|
(
|
|
REPORTKEY
|
|
)
|
|
USING INDEX MAIN_REPORTNO_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE MAIN_REPORTNO IS '报表打印模板的编码表';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.REPORTKEY IS '报表类型编码';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.REPORTNAME IS '报表类型名称';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.COLUMNDAO IS '报表列对应的dao';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.TABLEDAO IS '报表数据列对应的dao';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.ISHZINFO IS '启用患者信息';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTNO.ISJZINFO IS '启用就诊信息';
|
|
|
|
CREATE TABLE MAIN_REPORTTEMPLATE
|
|
(
|
|
TEMPLATEKEY VARCHAR2(20 BYTE)
|
|
, TEMPLATENAME VARCHAR2(300 BYTE)
|
|
, REPORTKEY VARCHAR2(200 BYTE)
|
|
, FILEPATH VARCHAR2(300 BYTE)
|
|
, ISSHOW VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
, SCBZ VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.TEMPLATEKEY IS '模板编码';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.TEMPLATENAME IS '模板名称';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.REPORTKEY IS '报表编码';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.FILEPATH IS '模板路径';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.ISSHOW IS '是否显示';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.SCRQ IS '删除日期';
|
|
|
|
COMMENT ON COLUMN MAIN_REPORTTEMPLATE.SCBZ IS '删除标志,main_zdz的bh=000002,1:启用,2禁用';
|
|
|
|
CREATE TABLE MAIN_PRINT_TYPE
|
|
(
|
|
PKEY VARCHAR2(20 BYTE)
|
|
, PRINTTYPE VARCHAR2(100 BYTE)
|
|
, SFQY VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
);
|
|
|
|
COMMENT ON COLUMN MAIN_PRINT_TYPE.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN MAIN_PRINT_TYPE.PRINTTYPE IS '应用打印类型';
|
|
|
|
COMMENT ON COLUMN MAIN_PRINT_TYPE.SFQY IS '是否启用1是0否';
|
|
|
|
COMMENT ON COLUMN MAIN_PRINT_TYPE.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN MAIN_PRINT_TYPE.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN MAIN_PRINT_TYPE.JGID IS '所属机构';
|
|
|
|
CREATE TABLE HIS_YFFY_CSGL
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, MC VARCHAR2(1000 BYTE) NOT NULL
|
|
, MS VARCHAR2(2000 BYTE)
|
|
, TYPE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, KJTYPE VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, XH NUMBER
|
|
, SZ VARCHAR2(1000 BYTE)
|
|
, BM VARCHAR2(100 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_YFFY_CSGL_PK ON HIS_YFFY_CSGL (MC ASC) ;
|
|
|
|
COMMENT ON TABLE HIS_YFFY_CSGL IS '药房发药普通参数类型管理表';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.MS IS '描述';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.TYPE IS '参数类型1布尔2数字3字符4日期';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.KJTYPE IS '控件类型1checkbox2textfield3datetimepick4combobox';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.XH IS '排序序号';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.SZ IS '参数设置';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSGL.BM IS '编码';
|
|
|
|
CREATE TABLE HIS_YFFY_CSZ
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, VALUE VARCHAR2(100 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_YFFY_CSZ_PK ON HIS_YFFY_CSZ (PKEY ASC, JGID ASC) ;
|
|
|
|
ALTER TABLE HIS_YFFY_CSZ
|
|
ADD CONSTRAINT HIS_YFFY_CSZ_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
, JGID
|
|
)
|
|
USING INDEX HIS_YFFY_CSZ_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE HIS_YFFY_CSZ IS '药房发药普通参数设置表';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.VALUE IS '参数值';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_YFFY_CSZ.JGID IS '所属机构';
|
|
|
|
CREATE TABLE HIS_EMR_GRADED_STD
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, NAME VARCHAR2(1000 BYTE)
|
|
, SCORE INT
|
|
, VOTE VARCHAR2(36 BYTE)
|
|
);
|
|
|
|
COMMENT ON COLUMN HIS_EMR_GRADED_STD.PKEY IS '标准编码';
|
|
|
|
COMMENT ON COLUMN HIS_EMR_GRADED_STD.NAME IS '标准名称';
|
|
|
|
COMMENT ON COLUMN HIS_EMR_GRADED_STD.SCORE IS '标准评分';
|
|
|
|
COMMENT ON COLUMN HIS_EMR_GRADED_STD.VOTE IS '标准结果';
|
|
|
|
CREATE TABLE HIS_AL_GMY(
|
|
PKEY VARCHAR2(36),
|
|
BM VARCHAR2(10) NOT NULL,
|
|
MC VARCHAR2(100),
|
|
GMYFL VARCHAR2(36),
|
|
PYM VARCHAR2(100),
|
|
WBM VARCHAR2(100),
|
|
CJR VARCHAR2(36),
|
|
CJRQ DATE,
|
|
XGR VARCHAR2(36),
|
|
XGRQ DATE,
|
|
JGID VARCHAR2(36) NOT NULL,
|
|
LOCKFLAG INT DEFAULT 0 NOT NULL,
|
|
PRIMARY KEY (BM,JGID)
|
|
);
|
|
|
|
COMMENT ON TABLE HIS_AL_GMY IS '过敏源字典表';
|
|
COMMENT ON COLUMN HIS_AL_GMY.PKEY IS '主键';
|
|
COMMENT ON COLUMN HIS_AL_GMY.BM IS '编码';
|
|
COMMENT ON COLUMN HIS_AL_GMY.MC IS '名称';
|
|
COMMENT ON COLUMN HIS_AL_GMY.GMYFL IS '过敏源分类';
|
|
COMMENT ON COLUMN HIS_AL_GMY.PYM IS '拼音码';
|
|
COMMENT ON COLUMN HIS_AL_GMY.WBM IS '五笔码';
|
|
COMMENT ON COLUMN HIS_AL_GMY.CJR IS '创建者';
|
|
COMMENT ON COLUMN HIS_AL_GMY.CJRQ IS '创建日期';
|
|
COMMENT ON COLUMN HIS_AL_GMY.XGR IS '修改者';
|
|
COMMENT ON COLUMN HIS_AL_GMY.XGRQ IS '修改日期';
|
|
COMMENT ON COLUMN HIS_AL_GMY.JGID IS '所属机构';
|
|
COMMENT ON COLUMN HIS_AL_GMY.LOCKFLAG IS '乐观锁计数器';
|
|
|
|
CREATE TABLE HIS_AL_GMJL(
|
|
PKEY VARCHAR2(36),
|
|
HZPKEY VARCHAR2(36),
|
|
GMYFL VARCHAR2(36),
|
|
GMY VARCHAR2(36),
|
|
GMXM VARCHAR2(36),
|
|
GMBC VARCHAR2(2000),
|
|
JCZT VARCHAR2(1) DEFAULT 1 NOT NULL,
|
|
FZRQ DATE,
|
|
GMLX VARCHAR2(36),
|
|
CJR VARCHAR2(36),
|
|
CJRQ DATE,
|
|
XGR VARCHAR2(36),
|
|
XGRQ DATE,
|
|
JGID VARCHAR2(36),
|
|
LOCKFLAG INT DEFAULT 0 NOT NULL
|
|
);
|
|
|
|
COMMENT ON TABLE HIS_AL_GMJL IS '患者过敏记录表';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.PKEY IS '主键';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.HZPKEY IS '患者主键';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.GMYFL IS '过敏源分类';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.GMY IS '过敏源';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.GMXM IS '过敏项目';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.GMBC IS '过敏补充';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.JCZT IS '检测状态';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.FZRQ IS '发作日期';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.GMLX IS '过敏类型';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.CJR IS '创建者';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.CJRQ IS '创建日期';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.XGR IS '修改者';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.XGRQ IS '修改日期';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.JGID IS '所属机构';
|
|
COMMENT ON COLUMN HIS_AL_GMJL.LOCKFLAG IS '乐观锁计数器';
|
|
|
|
CREATE TABLE HIS_BQFJLX
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, BM VARCHAR2(36 BYTE) NOT NULL
|
|
, MC VARCHAR2(200 BYTE)
|
|
, MS VARCHAR2(1000 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
, SCBZ VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, JGID VARCHAR2(36 BYTE)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_BQFJLX_PK ON HIS_BQFJLX (PKEY ASC, BM ASC) ;
|
|
|
|
CREATE UNIQUE INDEX HIS_BQFJLX_UK1 ON HIS_BQFJLX (BM ASC, SCBZ ASC, JGID ASC) ;
|
|
|
|
ALTER TABLE HIS_BQFJLX
|
|
ADD CONSTRAINT HIS_BQFJLX_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
, BM
|
|
)
|
|
USING INDEX HIS_BQFJLX_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE HIS_BQFJLX
|
|
ADD CONSTRAINT HIS_BQFJLX_UK1 UNIQUE
|
|
(
|
|
BM
|
|
, SCBZ
|
|
, JGID
|
|
)
|
|
USING INDEX HIS_BQFJLX_UK1
|
|
ENABLE;
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.BM IS '编码';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.MS IS '描述';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.SCRQ IS '删除日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.SCBZ IS '删除标志,main_zdz的bh=000002,1:启用,2禁用';
|
|
|
|
COMMENT ON COLUMN HIS_BQFJLX.JGID IS '所属机构';
|
|
|
|
--2024-03-12--
|
|
CREATE TABLE HIS_BQGLKS
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, BQKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, KSKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, JGID VARCHAR2(36 BYTE) NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_BQGLKS_PK ON HIS_BQGLKS (PKEY ASC, BQKEY ASC, KSKEY ASC, JGID ASC) ;
|
|
|
|
ALTER TABLE HIS_BQGLKS
|
|
ADD CONSTRAINT HIS_BQGLKS_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
, BQKEY
|
|
, KSKEY
|
|
, JGID
|
|
)
|
|
USING INDEX HIS_BQGLKS_PK
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE HIS_BQGLKS IS '病区关联科室';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLKS.PKEY IS '唯一主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLKS.BQKEY IS '病区主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLKS.KSKEY IS '科室主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLKS.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLKS.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLKS.JGID IS '所属机构';
|
|
|
|
CREATE TABLE HIS_BQCW
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, BM VARCHAR2(100 BYTE)
|
|
, MC VARCHAR2(1000 BYTE)
|
|
, CWLX VARCHAR2(36 BYTE)
|
|
, SSFJ VARCHAR2(36 BYTE)
|
|
, SSBQ VARCHAR2(36 BYTE)
|
|
, SFJH VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
, SCBZ VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, SSKS VARCHAR2(36 BYTE)
|
|
, QYSJ DATE
|
|
, TYSJ DATE
|
|
, LOCKFLAG INT DEFAULT 0 NOT NULL
|
|
, XH INT DEFAULT 0 NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX HIS_BQCW_PK ON HIS_BQCW (PKEY ASC) ;
|
|
|
|
CREATE UNIQUE INDEX HIS_BQCW_UK1 ON HIS_BQCW (BM ASC, JGID ASC, SCR ASC) ;
|
|
|
|
ALTER TABLE HIS_BQCW
|
|
ADD CONSTRAINT HIS_BQCW_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
)
|
|
USING INDEX HIS_BQCW_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE HIS_BQCW
|
|
ADD CONSTRAINT HIS_BQCW_UK1 UNIQUE
|
|
(
|
|
BM
|
|
, JGID
|
|
, SCR
|
|
)
|
|
USING INDEX HIS_BQCW_UK1
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE HIS_BQCW IS '病区床位';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.BM IS '编码';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.CWLX IS '床位类型';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SSFJ IS '所属房间';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SSBQ IS '所属病区';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SFJH IS '是否激活';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SCRQ IS '删除日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SCBZ IS '删除标志,main_zdz的bh=000002,1:启用,2禁用';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.SSKS IS '所属科室';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.QYSJ IS '启用时间';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.TYSJ IS '停用时间';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.LOCKFLAG IS '乐观锁计数器';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW.XH IS '排序序号';
|
|
|
|
CREATE TABLE HIS_BQCW_LOG
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, HZPKEY VARCHAR2(36 BYTE)
|
|
, JZPKEY VARCHAR2(36 BYTE)
|
|
, BED VARCHAR2(36 BYTE)
|
|
, ZT VARCHAR2(10 BYTE)
|
|
, SFJS VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, KSSJ DATE
|
|
, JSSJ DATE
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, LOCKFLAG INT DEFAULT 0 NOT NULL
|
|
, JJKS VARCHAR2(36 BYTE)
|
|
, WARD VARCHAR2(36 BYTE)
|
|
);
|
|
|
|
COMMENT ON TABLE HIS_BQCW_LOG IS '病区床位日志表,用于记录床位的状态变更日志,如激活状态、占用状态等';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.HZPKEY IS '患者主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.JZPKEY IS '就诊主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.BED IS '床位';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.ZT IS '1取消激活 2 使用,这里的状态都有是否结束状态,结束状态就是恢复到床位可以使用的状态,比如取消激活到激活,床位使用到取消使用';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.SFJS IS '是否结束';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.KSSJ IS '起始时间';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.JSSJ IS '默认为2099-01-01,方便查询,状态结束的时候,结束时间设置为实际结束时间';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.LOCKFLAG IS '乐观锁计数器';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.JJKS IS '科室';
|
|
|
|
COMMENT ON COLUMN HIS_BQCW_LOG.WARD IS '病区';
|
|
|
|
CREATE TABLE HIS_BQCWFJF
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, CWKEY VARCHAR2(36 BYTE)
|
|
, YZXPKEY VARCHAR2(36 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, YZXNUM INT
|
|
, CONSTRAINT SYS_C0024825 PRIMARY KEY
|
|
(
|
|
PKEY
|
|
)
|
|
USING INDEX
|
|
(
|
|
CREATE UNIQUE INDEX SYS_C0024825 ON HIS_BQCWFJF (PKEY ASC)
|
|
)
|
|
ENABLE
|
|
) ;
|
|
|
|
COMMENT ON TABLE HIS_BQCWFJF IS '病区床位附加费';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.CWKEY IS '床位主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.YZXPKEY IS '医嘱项主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWFJF.YZXNUM IS '数量';
|
|
|
|
CREATE TABLE HIS_BQCWLX
|
|
(
|
|
PKEY VARCHAR2(36 BYTE) NOT NULL
|
|
, BM VARCHAR2(36 BYTE)
|
|
, MC VARCHAR2(100 BYTE)
|
|
, MS VARCHAR2(1000 BYTE)
|
|
, ICU VARCHAR2(1 BYTE) DEFAULT 0 NOT NULL
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, SCR VARCHAR2(36 BYTE)
|
|
, SCRQ DATE
|
|
, SCBZ VARCHAR2(1 BYTE) DEFAULT 1 NOT NULL
|
|
, JGID VARCHAR2(36 BYTE)
|
|
) ;
|
|
|
|
CREATE UNIQUE INDEX HIS_BQCWLX_PK ON HIS_BQCWLX (PKEY ASC) ;
|
|
|
|
CREATE UNIQUE INDEX HIS_BQCWLX_UK1 ON HIS_BQCWLX (BM ASC, JGID ASC, SCR ASC) ;
|
|
|
|
ALTER TABLE HIS_BQCWLX
|
|
ADD CONSTRAINT HIS_BQCWLX_PK PRIMARY KEY
|
|
(
|
|
PKEY
|
|
)
|
|
USING INDEX HIS_BQCWLX_PK
|
|
ENABLE;
|
|
|
|
ALTER TABLE HIS_BQCWLX
|
|
ADD CONSTRAINT HIS_BQCWLX_UK1 UNIQUE
|
|
(
|
|
BM
|
|
, JGID
|
|
, SCR
|
|
)
|
|
USING INDEX HIS_BQCWLX_UK1
|
|
ENABLE;
|
|
|
|
COMMENT ON TABLE HIS_BQCWLX IS '病区床位类型';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.BM IS '编码';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.MC IS '名称';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.MS IS '描述';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.ICU IS 'icui标志 main_zdz的bh=000001,0:是,1否';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.SCR IS '删除者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.SCRQ IS '删除日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.SCBZ IS '删除标志,main_zdz的bh=000002,1:启用,2禁用';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLX.JGID IS '所属机构';
|
|
|
|
CREATE TABLE HIS_BQCWLXFJF
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, CWLXPKEY VARCHAR2(36 BYTE)
|
|
, YZXPKEY VARCHAR2(36 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
, YZXNUM NUMBER(38, 0)
|
|
) ;
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.CWLXPKEY IS '房间主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.YZXPKEY IS '医嘱项主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.JGID IS '所属机构';
|
|
|
|
COMMENT ON COLUMN HIS_BQCWLXFJF.YZXNUM IS '医嘱项数量';
|
|
CREATE TABLE HIS_BQGLHS
|
|
(
|
|
PKEY VARCHAR2(36 BYTE)
|
|
, BQKEY VARCHAR2(36 BYTE)
|
|
, HSPKEY VARCHAR2(36 BYTE)
|
|
, CJR VARCHAR2(36 BYTE)
|
|
, CJRQ DATE
|
|
, XGR VARCHAR2(36 BYTE)
|
|
, XGRQ DATE
|
|
, JGID VARCHAR2(36 BYTE)
|
|
) ;
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.PKEY IS '主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.BQKEY IS '病区主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.HSPKEY IS '护士主键';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.CJR IS '创建者';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.CJRQ IS '创建日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.XGR IS '修改者';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.XGRQ IS '修改日期';
|
|
|
|
COMMENT ON COLUMN HIS_BQGLHS.JGID IS '所属机构';
|
|
|
|
ALTER TABLE HIS.HIS_YFYK_DBD ADD DBTYPE VARCHAR2(2) DEFAULT 'DB' NULL;
|
|
COMMENT ON COLUMN HIS.HIS_YFYK_DBD.DBTYPE IS '调拨类型 DB调拨单 LY领用单 TK退库单'; |