Blogger introduction: ✌Programmer Brother Xu, 7 years of experience as a programmer in a large factory. 300,000+ fans across the entire network, Csdn blog expert, high-quality author on Nuggets/Huawei Cloud/Alibaba Cloud/InfoQ and other platforms, focusing on Java technology and graduation project practice✌
Article directory
1. Effect demonstration
2. Introduction
Today, with the rapid development of the Internet, all areas of our lives involve computer applications, including network applications for community hospital management service systems. Online management systems are already a very common method in foreign countries, but domestic management systems may still be In its infancy. The community hospital management service system has the option of community hospital information management functions. The community hospital management service system uses Java technology, is developed based on the springboot framework and mysql database, and implements home page, personal center, user management, doctor management, appointment doctor management, medical consultation information management, diagnosis and treatment plan management, medical record information management, and health file management. , cost information management, system management and other contents are managed. This system has good compatibility and adaptability, provides users with more community hospital management service information, and also provides a good platform, thereby improving the core competitiveness of the system.
This article first introduces the design background and research purpose, then introduces the system-related technologies, focusing on the system function analysis and detailed design, and finally summarizes the system development experience.
3. Technology stack
Development language: Java
Framework: springboot
JDK version: JDK1.8
Server: tomcat7
Database: mysql 5.7 (must be version 5.7)
Database tool: Navicat11
Development software: eclipse/myeclipse/idea
Maven package: Maven3.3.9
Browser: Google Chrome
4 system design
4.1 Database design
The efficiency and effectiveness of the information management system completely depend on the quality of the database structure design. In order to ensure the integrity of data and improve the efficiency of database storage, it is necessary to design the database structure uniformly and reasonably. Database design generally includes the following steps:
(1) According to user needs, determine the database information and save it
Analysis of user needs is the first stage of database design. User needs research, familiarity with community operation processes, and system requirements are all based on the conceptual model.
(3) Database logical structure analysis
After the database conceptual structure is designed, the database concept can be transformed into an actual data model. This is a logical structure of the database, which is to match the conceptual structure with the model that supports the database management system. The specific table design is as follows:
Table 4-1: Health records
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
yonghuzhanghao | varchar | 200 | user account | ||
yonghuxingming | varchar | 200 | username | ||
xingbie | varchar | 200 | gender | ||
nianling | varchar | 200 | age | ||
yonghudianhua | varchar | 200 | User phone number | ||
touxiang | varchar | 200 | avatar | ||
yaowuguomin | varchar | 200 | Drug allergy | ||
zhongdabingshi | varchar | 200 | significant medical history | ||
jiazubingshi | varchar | 200 | Family history | ||
zhuyuanjilu | longtext | 4294967295 | hospitalization records | ||
danganxinxi | longtext | 4294967295 | Archive information | ||
dengjishijian | datetime | check-in time | |||
beizhu | longtext | 4294967295 | Remark | ||
yishengzhanghao | varchar | 200 | Doctor account | ||
yishengxingming | varchar | 200 | Doctor's name | ||
userid | bigint | user id |
Table 4-3: Configuration file
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
name | varchar | 100 | Configuration parameter name | ||
value | varchar | 100 | Configuration parameter values |
Table 4-4: Diagnosis and treatment plan
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
zhenliaobianhao | varchar | 200 | Treatment number | ||
yonghuzhanghao | varchar | 200 | user account | ||
yonghuxingming | varchar | 200 | username | ||
yishengzhanghao | varchar | 200 | Doctor account | ||
yishengxingming | varchar | 200 | Doctor's name | ||
dengjishijian | date | check-in time | |||
zhenliaofangan | longtext | 4294967295 | Diagnosis and treatment plan | ||
zhenliaoxiangqing | longtext | 4294967295 | Diagnosis and treatment details |
Table 4-5: Medical record information
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
binglibianhao | varchar | 200 | Medical record number | ||
yishengzhanghao | varchar | 200 | Doctor account | ||
yishengxingming | varchar | 200 | Doctor's name | ||
yonghuzhanghao | varchar | 200 | user account | ||
yonghuxingming | varchar | 200 | username | ||
dengjishijian | date | check-in time | |||
zhenduanneirong | longtext | 4294967295 | Diagnosis content | ||
zhenduanjieguo | longtext | 4294967295 | diagnostic result | ||
zhenduanyijian | longtext | 4294967295 | diagnosis | ||
binglimiaoshu | longtext | 4294967295 | Medical record description | ||
zhuyishixiang | longtext | 4294967295 | Precautions | ||
userid | bigint | user id |
Table 4-6: Make a doctor’s appointment
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
yuyuebianhao | varchar | 200 | Appointment number | ||
yishengzhanghao | varchar | 200 | Doctor account | ||
yishengxingming | varchar | 200 | Doctor's name | ||
yuyueshijian | date | Appointment | |||
cash | varchar | 200 | Department | ||
yonghuzhanghao | varchar | 200 | user account | ||
yonghuxingming | varchar | 200 | username | ||
sfsh | varchar | 200 | Whether to review | no | |
shhf | longtext | 4294967295 | moderation reply |
Table 4-7: Users
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
yonghuzhanghao | varchar | 200 | user account | ||
mima | varchar | 200 | password | ||
yonghuxingming | varchar | 200 | username | ||
xingbie | varchar | 200 | gender | ||
yonghudianhua | varchar | 200 | User phone number | ||
nianling | varchar | 200 | age | ||
touxiang | varchar | 200 | avatar |
Table 4-8: Doctor
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
addtime | timestamp | creation time | CURRENT_TIMESTAMP | ||
yishengzhanghao | varchar | 200 | Doctor account | ||
mima | varchar | 200 | password | ||
yishengxingming | varchar | 200 | Doctor's name | ||
xingbie | varchar | 200 | gender | ||
yishengdianhua | varchar | 200 | doctor phone number | ||
touxiang | varchar | 200 | avatar | ||
cash | varchar | 200 | Department | ||
zhicheng | varchar | 200 | job title | ||
jianjie | longtext | 4294967295 | Introduction |
Table 4-9: User table
Field Name | type | length | Field description | primary key | default value |
---|---|---|---|---|---|
id | bigint | primary key | primary key | ||
username | varchar | 100 | username | ||
password | varchar | 100 | password | ||
role | varchar | 100 | Role | 管理员 | |
addtime | timestamp | 新增时间 | CURRENT_TIMESTAMP |
4.2系统整体设计
4.2.1 系统设计思想
系统确定了各项需求,完成了系统的分析和数据库的设计,它就可以根据网站的特点决定网站的发展模式,才能实现代码。通过对网站的分析,这个网站是属于一个小项目,所完成的功能相对简单,就是对数据的基本操作。从而决定采用B/S开发模式。该模型的基本过程是:当用户访问网站的浏览器,或从用户向服务器发送请求时,通过接收请求,然后调用数据访问逻辑运算如比,将结果返回给将结果返回到用户通过浏览器。
使用开发的模型时,我们要把一些常用的,可以重复使用了java技术。当用户浏览网页,很多网页上的信息是从数据库动态删除,这就要求网页必须有数据库操作的能力,如连接数据库和数据表,更新。一个网站包含多个相同的网页,实现数据库操作功能的、代码就需要在不一样的网页中重复的被使用,这样不仅降低了工作的效率,一般也会给维护带来较大的麻烦。为了弥补这一缺陷,功能代码应该在java中完整的数据库操作,可以使用在每一个页面上。
4.2.2系统流程图
下图是用户进入这个社区医院管理服务系统后,基本的操作流程。一进入首页便可以进行各种社区医院管理服务信息的浏览,包括社区医院管理服务信息等,用户可以根据自身的需求来找适合自己的社区医院管理服务,如果有合适的社区医院管理服务信息时,就能进行相应的操作,但前提是必须是登录的用户,不然系统会提示需重新登录才可操作。用户也可通过公告的消息,了解实时的情况,这样有助于结合自身,更好的适应社区医院管理服务的管理需求,最后用户可以根据自己获得信息的满意程度来进行操作。
5系统详细设计
5.1系统功能模块
社区医院管理服务系统,在系统首页可以查看首页、医生、公告资讯、个人中心、后台管理等内容进行详细操作,如图5-1所示。
用户注册,在用户注册页面通过填写用户账号、密码、确认密码、用户姓名、用户电话、年龄等信息完成用户注册,如图5-2所示。
医生,在医生页面中可以查看医生账号、医生姓名、性别、医生电话、科室、职称等内容进行简介等详细操作,如图5-3所示。
个人中心,在个人中心页面通过填写个人中心,用户账号、密码、用户姓名、性别、用户电话、年龄、图片等内容进行更新信息等操作,如图5-4所示。
5.2管理员功能模块
管理员登录,在系统页面中通过填写用户名、密码等信息,选择角色进行登录,就可以使用了,如图5-5所示。
图5-5管理员登录界面图
管理员登录系统后,可以对首页、个人中心、用户管理、医生管理、预约医生管理、就诊信息管理、诊疗方案管理、病历信息管理、健康档案管理、费用信息管理、系统管理等内容,进行详细的操作,如图5-6所示。
图5-6管理员功能界面图