mcrecord.sql

来自「十分好的一个医院管理系统」· SQL 代码 · 共 32 行

SQL
32
字号
create table mcrecord(
hoscode char(4) not null,				//医院登记号
riceiptcode char(12) not null,		//处方(住院明细)号
riceipttype tinyint not null,			//对于门诊:1-处方,2-处置,3-检查,对于住院,缺省值为1,无意义
bankriceipt char(12) null,		//与医院结算时的收据号(或银行托收号)
sicktype tinyint not null,				//看病类型
unitcode char(6) not null,				//单位登记号
personcode char(12) not null,			//医疗保险号
personcons numeric(4,2) not null,	//个人自付比例
sickdate smalldatetime not null,		//看病时间 
icdname char(60) null,					//疾病名称
listcount smallint not null,			//清单行数
sumcons numeric(8,2) not null,		//总费用
cardcons numeric(8,2) not null,		//IC卡支付
cashcons	numeric(8,2) not null,		//现金支付
fundcons numeric(8,2) not null,		//统筹支付
checkcons numeric(8,2) not null,		//核定后医保支付
department char(20) not null,			//科室
doctor char(10) not null,				//医生
operator char(10) not null,			//操作员
stateflag tinyint not null,			//状态标志,1-银行已托收,0-银行未托收
effectflag tinyint not null,			//有效标志
updateflag char(1) null,
icremain numeric(14,2) not null,		//IC卡内余额
fundadd numeric(14,2) not null,		//统筹金额累计
consadd numeric(14,2) not null,		//从上次审核后统筹支出累计
consbase numeric(14,2) not null,		//统筹支出累计基数
checker char(10) null,					//审核者姓名
checkdate smalldatetime null,			//审核时间
checkflag tinyint not null,			//审核标志,1-已审核,0-未审核
constraint p_mcrecord primary key nonclustered (hoscode,riceiptcode) on 'default');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?