摘要

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




三.数据库设计

创建数据库 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);-- 住院登记表

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

  1. java计算机毕业设计基于ssm的医院门诊电子病历管理信息系统

    项目介绍 医院门诊互联电子病历的需求和管理上的不断提升,医院门诊互联电子病历管理的潜力将无限扩大,医院门诊互联电子病历管理信息系统在业界被广泛关注,本系统对此进行总体分析,将医院门诊互联电子病历信息管 ...

  2. java计算机毕业设计基于ssm的医院门诊互联电子病历管理信息系统(源代码+数据库+Lw文档)

    项目介绍 医院门诊互联电子病历管理信息系统能够通过互联网得到广泛的.全面的宣传,让尽可能多的用户了解和熟知医院门诊互联电子病历管理信息系统的便捷高效,不仅为群众提供了服务,而且也推广了自己,让更多的群 ...

  3. 计算机毕业设计-基于SSH的医院在线挂号系统源代码和论文

    医院挂号系统主要用于实现医院的挂号,前台基本功能包括:用户注册.用户登录.医院查询.挂号.取消挂号.修改个人信息.退出等. 后台基本功能包括:系统管理员登录.医院管理.科室管理.公告管理.退出系统等. ...

  4. 2023计算机毕业设计-个人博客文章管理系统springboot-JAVA.VUE(论文+开题报告+运行)

    摘 要 博客是社会媒体网络的小成员,它是新生活学习及工作途径的一种方式.其中一些博客是关于某种课题提供相关的新闻及自己的评论,其他类似于为个人性的日记.博客的典型特征和重要要素有结合了文字.图像.其他 ...

  5. 2023计算机毕业设计SSM最新选题之javaJava青年志愿者信息管理系统15925

    2023计算机毕业设计SSM最新选题之javaJava青年志愿者信息管理系统15925 一般毕业设计指导老师会给出几个方向或者几个选题让学生选择的.软件工程专业,一般比较偏软,大部分都是做网站和系统开 ...

  6. java计算机毕业设计基于web的公益募捐网站源码+数据库+系统+lw文档+mybatis+运行部署

    java计算机毕业设计基于web的公益募捐网站源码+数据库+系统+lw文档+mybatis+运行部署 java计算机毕业设计基于web的公益募捐网站源码+数据库+系统+lw文档+mybatis+运行部 ...

  7. java计算机毕业设计基于安卓Android/微信小程序的游泳馆管理系统APP

    项目介绍 游泳馆管理系统小程序,主要对首页.个人中心.会员管理.场馆类型管理.泳池类型管理.饮食类型管理.场馆信息管理.泳池信息管理.饮食信息管理.泳池预订管理.购买信息管理.会员等级管理.会员充值管 ...

  8. java计算机毕业设计基于springboo+vue的个人家庭理财记账管理系统

    项目介绍 随着社会的发展,社会的方方面面都在利用信息化时代的优势.互联网的优势和普及使得各种系统的开发成为必需. 本文以实际运用为开发背景,运用软件工程原理和开发方法,它主要是采用java语言技术和m ...

  9. java计算机毕业设计基于springboot+vue+elementUI的口腔管理平台管理系统(前后端分离)

    项目介绍 口腔卫生是关系民生的一个重要问题.口腔健康会直接影响全身的健康,口腔基本常见的有龋齿,牙周炎等问题,而且人类的牙齿只有2次更换周期,一旦牙齿彻底完成更换终生将不再更换,所以越来越多的人开始关 ...

最新文章

  1. arm云教室服务器_成都凌点科技告诉你ARM集群服务器适合的应用场景有哪些
  2. 接口或抽象类:使用哪一个?
  3. JZOJ 5794. 2018.08.10【2018提高组】模拟A组省选 旅行
  4. MySql中truncate,delete,drop的异同点
  5. systemd      kernel
  6. LVM--逻辑卷管理
  7. 微信表情包小程序源码-更新登录接口+增加举牌功能
  8. Android常用对话框大全——Dialog
  9. 移动设备管理存在哪些威胁?
  10. 索尼PS4破解之用户层代码执行(Part2)
  11. wxpython使用_wxpython的demo使用
  12. react-navigation 6.x 学习(3)
  13. 如何关掉ie浏览器的增强安全配置?
  14. java模拟网易邮箱登录_java实现163邮箱发送邮件到qq邮箱成功案例
  15. 【面试经历】美团2020秋招测试开发一面二面
  16. pycharm报错提示:无法加载文件\venv\Scripts\activate.ps1,因为在此系统上禁止运行脚本。
  17. HTML5文本元素解析
  18. 笔记本和利用服务器算力直连,顺网云电脑技术突破:实现利用网吧空余算力
  19. Windows安全中心输入用户名密码
  20. 《炬丰科技-半导体工艺》过热蒸汽晶片清洗设备HF感应加热装置的优化设计

热门文章

  1. 近世代数--商群--群和商群是一一对应的
  2. 写c++好的软件_取名软件:起名字女孩:简单、好写、好记的女孩名字应该怎么来起名呢?...
  3. 欧科云链OKLink:区块链基建时代,你需要一个浏览器
  4. 中的9000端口代表什么_电气施工图纸中这些符号代表什么?
  5. HTML表单元素初识1——零基础自学网页制作
  6. 电子半导体废水处理,电子行业废水处理工艺
  7. selenium抓取卡推漫画--狐妖小红娘改进版
  8. 淘宝补单在补单平台的一些实用的功能
  9. 电子邮件系统哪个好?
  10. 基于MATLAB的GUI设计简易计算器