2023计算机毕业设计-基于springnoot的医院门诊挂号缴费药品管理系统HTML-JAVA(论文+开题报告+运行)

摘要

目前各医疗机构中,绝大部分中小型医疗机构内部没有实现任何信息化管理,医院临床信息,业务流程的数据依然采取纸质记录,造成数据容易丢失,对医院造成重大损失。医院内部的挂号、收费、药房、药库、科室、病床的信息管理都存在缺漏,对患者的临床信息不能做到完整保存,高效查询,数据的容易出错、遗漏,造成换院治病难,医院不敢治,错过最佳治疗期等现状,对患者的治疗造成严重的影响。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

三.数据库设计

创建数据库 hospitaldata
CREATE DATABASE hospitaldata;

3.1.创建药品清单drugdictionary
CREATE table drugdictionary(
drugId int Not null auto_increment Primary key, – 序号
drugName Varchar(50) Not null , – 药品名称
unitId Int Not null, – 计量单位
sellingPrice Double Not null, – 售价
areaId int Not null, – 产地
typeId int Not null, – 类型
exprationDate int Not null – 保质期
);

3.2.创建计量单位unit表(连接hospitaldata表unitId)
CREATE table unit(
unitId int Not null auto_increment Primary key,-- 序号
unitName Varchar(50) Not null – 单位
);

3.3.产地area
CREATE table area(
areaId int Not null auto_increment Primary key, – 序号
areaName Varchar(50) Not null – 产地
);

3.4.类型type
CREATE table type(
typeId int Not null auto_increment Primary key, – 序号
typeName Varchar(50) Not null – 类型
);

3.5.门诊收费项目outpatienttype
create table outpatienttype(
outpatientId int Not null auto_increment Primary key ,-- 序号
projectName Varchar(300) Not null, – 项目名称
unit int Not null, – 单位
bigprojectId int Not null, – 项目分类
price double Not null – 单价
);

3.6.住院收费项目inoutpatienttype
create table inoutpatienttype(
inoutpatientId int Not null auto_increment Primary key ,-- 序号
projectName Varchar(300) Not null,-- 项目名称
unit int Not null,-- 单位
bigproJectId int Not null, – 项目分类
price double Not null – 单价
);

3.7.项目类别projecttype
CREATE TABLE projecttype(
projectId int Not null auto_increment Primary key ,-- 序号
projectName Varchar(300) Not null – 类型
);

3.8.住院收费inhospitaltype
CREATE table inhospitaltype(
inhospitalId int Not null auto_increment Primary key, – 序号
projectName Varchar(300) Not null, – 类型
unit int Not null, – 单位
price double Not null, – 单价
bigprojectId int Not null – 项目分类
);

3.9.科室departments
CREATE table departments(
departmentId int Not null auto_increment Primary key, – 序号
department Varchar(300) Not null – 类型
);

3.10.医生doctor
CREATE table doctor(
doctorId int not null auto_increment PRIMARY key, – 序号
doctorName Varchar(300) Not null, – 名称
departmentId int Not null, – 所属科室
registeredId int Not null – 挂号类型
);

3.11.挂号类型registeredtype
CREATE table registeredtype(
registeredId int Not null auto_increment Primary key, – 序号
type Varchar(300) Not null, – 类型
price double Not null – 挂号价格
);

3.12.收费类型moneytype
create table moneytype(
MoneyId int Not null auto_increment Primary key, – 序号
Moneytype Varchar(300) Not null, – 收费类型
Percent Varchar(30) Not null, – 比例
);

3.13床位bed
CREATE table bed(
bedId int Not null auto_increment Primary key, – 序号
bedname Varchar(300) Not null, – 名称
departmentId Int Not null, – 科室
state Int, – 状态
Price Double – 价钱
);

3.14供货单位upplier
CREATE table upplier(
supplierId int Not null auto_increment Primary key, – 序号
supplierName Varchar(300) Not null, – 供货单位
supplierPhone Varchar(100) ,-- 联系电话
supplierAddress Varchar(300) – 地址
);

3.15.库房warehuose
CREATE table warehuose(
warehouseId int Not null auto_increment Primary key, – 序号
supplierName Varchar(300) Not null – 库房名
);

3.16.药品仓库drugstore
CREATE table drugstore(
rugstoreId int Not null auto_increment Primary key,-- 序号
drugstoreName Varchar(100) Not null, – 药品名称
supplierId int , – 供货单位Foreign key
skullId int , – 经办人Foreign key
warehouseId int , – 库房Foreign key
unit int Not null , – 计量单位
tradePrice double Not null , – 批发价
sellingPrice Double Not null , – 售价
area int Not null , – 产地Foreign key
type int Not null , – 类型Foreign key
produceDate date Not null , – 生产日期
validDate Date Not null , – 有效期
drugstorenum Int Not null , – 数量
batch Varchar(200) not null-- 批号
);

3.17.经办人skull
create table skull(
skullId int Not null auto_increment Primary key, – 序号
skullName Varchar(300) Not null – 经办人
);

3.18.药房pharmacy
create table pharmacy(
pharmacyId int Not null auto_increment Primary key,-- 序号
pharmacyName Varchar(50) Not null,-- 药品名称
drugstoreId int ,-- 领货单位Foreign key
skullId int ,-- 经办人Foreign key
warehouseId int ,-- 库房Foreign key
unit int Not null, – 计量单位
sellingPrice Double Not null,-- 售价
area int Not null ,-- 产地
type int Not null ,-- 类型
produceDate date Not null ,-- 生产日期
validDate Date Not null ,-- 有效期
drugstorenum Int Not null ,-- 数量
skullbatch Varchar(200) Not null – 批号

);

3.19.挂号report
create table report(
reportId int Not null auto_increment Primary key ,-- 序号
reportName Varchar(100) Not null ,-- 姓名
sex varchar(10) Not null, – 性别
age int Not null ,-- 年龄
department int Not null,-- 科室fOREIGN key
doctor int Not null,-- 医生fOREIGN key
reportType int Not null,-- 挂号类别fOREIGN key
price double Not null ,-- 挂号费
time Date Not null ,-- 时间
users Varchar(100) Not null ,-- 操作员
state Int – 状态
);

3.20.门诊收费cashier
create table cashier(
cashier int Not null auto_increment Primary key ,-- 序号
reportId Int Not null,-- 挂号idForeign key
cashierType int not null ,-- 收费类型
durgname Varchar(500) Not null,-- 名称
durgnum int Not null,-- 次数
repiceprice double Not null ,-- 单价
repicetotal double Not null ,-- 小计
ctime date,
state int – 价钱
);

3.21.住院登记register
create table register(
registerid int Not null auto_increment Primary key, – 序号
userName Varchar(200) Not null , – 患者名字
age Int Not null , – 年龄
sex Varchar(20) Not null , – 性别
department int Not null , – 科室 FOREIGN
doctor int Not null , – 医生FOREIGN
diagnose Varchar(500) , – 入院诊断
address Varchar(500) , – 地址
Phone Varchar(30) , – 电话
Idcard Varchar(60) , – 身份证号
registerDate Date , – 入院日期
bedNum int , – 床号FOREIGN
Operator Varchar(200) , – 操作员
money double , – 预交金
state Int – 状态
);

3.22.住院收费hospitalprice
create table hospitalprice(
hospitalpriceid int Not null auto_increment Primary key , – 序号
registerId Int Not null , – 住院idForeign key
durgname Varchar(500) Not null , – 名称
durgnum int Not null , – 数量
repiceprice double Not null , – 价钱
repicetotal double Not null , – 小计
htime date,
state int – 判断是药品还是收费项目
);

3.23预交金记录
create table pay(
payid int not null auto_increment primary key
registerId int,-- 主院id
money double ,-- 预交款
payDate datetime --交款时间
)

3.24外键
ALTER TABLE drugdictionary ADD CONSTRAINT fk_unitid FOREIGN KEY(unitId) REFERENCES unit(unitId);
ALTER TABLE drugdictionary ADD CONSTRAINT fk_areaId FOREIGN KEY(areaId) REFERENCES area(areaId);
ALTER TABLE drugdictionary ADD CONSTRAINT fk_typeId FOREIGN KEY(typeId) REFERENCES type(typeId);

alter table outpatienttype add CONSTRAINT fk_outpatienttype FOREIGN key(bigprojectId) REFERENCES projecttype(projectId);
ALTER TABLE outpatienttype ADD CONSTRAINT fk_outunit FOREIGN KEY(unit) REFERENCES unit(unitId);

– 住院收费项目
alter table inoutpatienttype add CONSTRAINT fk_inoutpatienttype FOREIGN key(bigproJectId) REFERENCES projecttype(projectId);
ALTER TABLE inoutpatienttype ADD CONSTRAINT fk_intunit FOREIGN KEY(unit) REFERENCES unit(unitId);

– 住院收费
alter table inhospitaltype add CONSTRAINT fk_inhospitaltype FOREIGN key(bigproJectId) REFERENCES projecttype(projectId);
ALTER TABLE inhospitaltype ADD CONSTRAINT fk_inhunit FOREIGN KEY(unit) REFERENCES unit(unitId);
– 医生
alter table doctor add CONSTRAINT fk_department FOREIGN key(departmentId) REFERENCES departments(departmentId);-- 连所属科室
alter table doctor add CONSTRAINT fk_registeredtype FOREIGN key(registeredId) REFERENCES registeredtype(registeredId);-- 连挂号类型

– 床位
ALTER table bed add CONSTRAINT fk_bedDepartmentid FOREIGN key (departmentId) REFERENCES departments(departmentId);-- 连接对应科室

– 药品仓库
ALTER table drugstore add CONSTRAINT fk_supplierId FOREIGN key (supplierId) REFERENCES upplier(supplierId);-- 连接供货单位
ALTER table drugstore add CONSTRAINT fk_skullId FOREIGN key (skullId) REFERENCES skull(skullId);-- 连接经办人
ALTER table drugstore add CONSTRAINT fk_warehouseId FOREIGN key (warehouseId) REFERENCES warehuose(warehouseId);-- 连接库房
ALTER table drugstore add CONSTRAINT fk_dgarea FOREIGN key(area) REFERENCES area(areaId);-- 连接产地
ALTER table drugstore add CONSTRAINT fk_dgunit FOREIGN key (unit) REFERENCES unit(unitId);-- 计量单位
ALTER table drugstore add CONSTRAINT fk_dtype FOREIGN key (type) REFERENCES type(typeId);-- 类型

– 药房
ALTER table pharmacy add CONSTRAINT fk_drugstoreIdp FOREIGN key (drugstoreId) REFERENCES drugstore(rugstoreId);-- 连接西中(药房)
ALTER table pharmacy add CONSTRAINT fk_skullIdp FOREIGN key (skullId) REFERENCES skull(skullId);-- 连接经办人
ALTER table pharmacy add CONSTRAINT fk_warehouseIdp FOREIGN key (warehouseId) REFERENCES warehuose(warehouseId);-- 连接库房
ALTER table pharmacy add CONSTRAINT fk_dgareap FOREIGN key(area) REFERENCES area(areaId);-- 连接产地
ALTER table pharmacy add CONSTRAINT fk_unitp FOREIGN key (unit) REFERENCES unit(unitId);-- 计量单位
ALTER table pharmacy add CONSTRAINT fk_typep FOREIGN key (type) REFERENCES type(typeId);-- 类型

– 挂号
ALTER table report add CONSTRAINT fk_departmentr FOREIGN key (department) REFERENCES departments(departmentId);-- 连接科室
ALTER table report add CONSTRAINT fk_doctor FOREIGN key (doctor) REFERENCES doctor(doctorId);-- 连接医生
ALTER table report add CONSTRAINT fk_reportType FOREIGN key (reportType) REFERENCES registeredtype(registeredId);-- 连接挂号类别

– 门诊收费
ALTER table cashier add CONSTRAINT fk_reportId FOREIGN key (reportId) REFERENCES report(reportId);-- 连接挂号表
ALTER table cashier add CONSTRAINT fk_cashierType FOREIGN key (cashierType) REFERENCES moneytype(MoneyId);-- 连接收费类型

– 住院登记
ALTER table register add CONSTRAINT fk_regdepartment FOREIGN key (department) REFERENCES departments(departmentId);-- 科室
ALTER table register add CONSTRAINT fk_regdoctor FOREIGN key (doctor) REFERENCES doctor(doctorId);-- 医生

– 住院收费
ALTER table hospitalprice add CONSTRAINT fk_registerId FOREIGN key (registerId) REFERENCES register(registerid);-- 住院登记表

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值