0% found this document useful (0 votes)
32 views20 pages

Project Documentaion

The document is a project proposal for a Hospital Management System web application. It outlines the objectives, motivation, prior work, deliverables, resources, engineering knowledge, design, timeline, and milestones for the project. The project will use Spring Boot and develop entity classes, controllers, repositories, and business services to create a functional web application to manage hospital data like patients, doctors, and nurses. It will be implemented over 7 weeks following an outlined timeline.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views20 pages

Project Documentaion

The document is a project proposal for a Hospital Management System web application. It outlines the objectives, motivation, prior work, deliverables, resources, engineering knowledge, design, timeline, and milestones for the project. The project will use Spring Boot and develop entity classes, controllers, repositories, and business services to create a functional web application to manage hospital data like patients, doctors, and nurses. It will be implemented over 7 weeks following an outlined timeline.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Sejong University

Department of Computer Science and Engineering

Project Proposal
ISLAM MD SHAFIQUL-19012773
2022-1st semester

Project Title: Hospital Management System. (Web Application)


Executive Summary:

Nowadays data is a crucial part of our everyday technical life. I am going to implement a student
management system project based on real time data base. I my project this system I will implement
is called Rest services, which is going to extends other business services. Using this services admin
can add new student data, update, and delete from the database.

Objective:

By the end of the semester my plan to achieve form my project is a total runnable web application.
Which I can test by myself a client or as a user that is it 100 percent working or not and it would
work obviously. I hope from my project my other course mates will learn something new and get
inspired to do so.

Motivation:

It is a desire for me to accomplish a Rest API based Student Management System web application.

Prior Work:

I have been learning lots of frontend based work for an HTML web page since long time , in this
project I am going to implement of those programming stuffs I have learned throughout last years.

Deliverables:

I will develop a web application using one of Java frameworks called Spring boot. Later on we
can make it as an exe application if we want.

Resources;

Java JDK, IntelliJ IDEA, Spring boot latest version, hibernate , SQL/ MySQL database , JDBC
Connector, Thymeleaf , Html5 & CSS3
Engineering Knowledge:

Basically in my project I will need a wide range of computer science knowledge like programing
and if I want to explain more specifically then I need to tell about my project is , first of all I have
to how design and develop web pages and how to connect them with template engine and right
after that as it is a fully object oriented project and in this project I will heavily use classes
interfaces , methods and threads (Multithreads) , streams etc. Incase of programming
language I want to add something more about Array List, different data types , data structure and
last but not the least is Database. And we can add different type of relations among the tables using
One to One and many to may relations using foreign key and primary key(FK,PK ).

Engineering Design: Please indicate in what ways the project will draw on your engineering
design skills.

For a programmer it’s a plus to know how to design


a flow chart for his/ her coding implementing path.
For that reason knowing and designing a flow of
work would be best practice , which has a great
impact on engineering design skills.

Here I am going to add an flow char of my project .


Time-line; Using a table, indicate the timeline for this project

Week Tasks
4 Proposal submits | and Frontend design
5 Creating Entity classes Connection building with database
6 Building Controller Class as a Request handler, Repositories
7 Creating Business Services classes, and testing classes and Finally Run the project

Milestones:

❖ Proposal submits and Frontend Design (week-4)


❖ Creating Entity classes
❖ Connection building with database (week-5)
❖ Building Controller Class
❖ Building Request handler methods
❖ Building Repositories (week-6)
❖ Creating Business Services class & Respective methods
❖ Testing units and Finally Run the project (week-7)
❖ All functionality implementation (week 9- until project submission)

References. https://www.baeldung.com
Database creating for my project:
As my project name is Hospital management system:
So my Database name is “hospital_management_system”
created by performing this query
CREATE DATABASE hospital_management_system;

Home page
of my web
site
DDL writing for tables:
We can see that there is no table called “nurse”

create table nurse(


after performing this query name varchar(20) not null,
positio varchar(10),
salary numeric(10,2)
check(salary>18000),
date_of_birth date,
unit_name varchar(20),
primary key(name),
foreign key(unit_name)
references unit(unit_name)
);

Table nurse has been


generated

Rest of the tables are same way created


Performing
“alter”

The 12 tables:

/*the autority table seems has typo so let's

rename the table name to authority using alter

and rename */

alter table autority


rename to authority;
Performing
“string operation” from “nurse” table

select* from nurse


where
locate ('priya',name);

Performing
“order by ASC” date of birth in “doctor” table

SELECT *
FROM doctor
ORDER BY date_of_birth ASC;
Performing
“order by DESC” date of birth in “doctor” table
SELECT *
FROM doctor
ORDER BY date_of_birth DESC;

Performing
“Set operation” between “doctor”& nurse tables
Using “Union”
SELECT doctor_name
AS employe_name,
designation,salary,date_of_birth FROM doctor
UNION
SELECT nurse_name
AS employe_name,
designation,salary,date_of_birth FROM nurse;
Doctor
table

Doctor table

union
Nurse
table Nurse table

Performing
“Set operation” between “employee ”& doctor
tables
Using “intersect”

SELECT DISTINCT name FROM


employee
WHERE name IN (SELECT
doctor_name FROM doctor);
Performing
“Aggregate functions

SELECT
AVG(salary)
FROM doctor;

SELECT
MAX(salary)
FROM doctor;

SELECT
MIN(salary)
FROM doctor;

SELECT
sum(salary)
FROM doctor;

SELECT
count(*)
FROM doctor;
Performing
“nested subqueries”

SELECT customer_name
from
customerreview
WHERE doctor_name IN
(SELECT doctor_name
FROM doctor
WHERE unit_name='burn');

SELECT customer_phone
FROM
reservation
WHERE unit_name IN
(SELECT unit_name
FROM customerreview
WHERE unit_name='burn');

SELECT nurse_name,designation
FROM
nurse
WHERE salary>
(SELECT avg(salary) from
nurse);
Performing
“Modification” (delete)

before query perform

delete
FROM
doctor
WHERE unit_name='ear';

after query perform

The row was containing unit name ear has been deleted
Performing
“Modification” (insertion)
Inerstion has been perfomed in the sql file;

Performing
“Modification” (updating)

Before

UPDATE authority
SET authority_salary =
authority_salary*1.03
WHERE after
authority_salary<=120000
Performing
“Join operation”
normal join

SELECT*FROM expenses
JOIN doctor
ON expenses.id = doctor.id;
Left join

select*from doctor
left join nurse
on doctor.id = nurse.id;

select*from doctor
right join nurse
on doctor.id = nurse.id;
Right join
Performing
Query for “View” generation

We can see that there is no view


existed in the schema; Lets
perform the query for view
creating.

CREATE VIEW unionOfDoctorAndNurse AS


SELECT doctor_name AS
employe_name,designation,salary,date_of_birth FROM doctor
UNION
SELECT nurse_name AS
employe_name,designation,salary,date_of_birth FROM nurse;

Now we can see that unionOfDoctorAndNurse


View is created.
Now let’s call this view

SELECT*FROM
unionofdoctorandnurse;

Performing
“Integrity constraints”
When I have created the relations there were some field where I have mentioned some integrity
constraints, for example in my nurse table the name of the nurse is not null that means this field
can not leave empty. Some of integrity constraints are “not null, check, primary key, foreign key”.

create table nurse(


id int,
nurse_name varchar(20) not null,
designation varchar(10),
salary numeric(10,2) check(salary>18000),
date_of_birth date,
unit_name varchar(20),
primary key(nurse_name),
foreign key(unit_name) references
unit(unit_name)
);
Performing
“index”
for creating the index we have to use this syntax
CREATE INDEX expenses_index ON expenses (id);

for calling the created index


SELECT*
this is the syntax FROM expenses WITH (INDEX(expenses_index))
WHERE id =1;

Performing
“Function/ procedures”
create procedure hospital_procedure

as print'welcome to united hospital';


exec hospital_procedure;
Attachments
For my website I have uploaded in Github:
https://github.com/DevAtShafiq/Hospital-management-system-Database-course-project-

Note: In my project frontend part I could not show lot’s of part because my screen recorder
was not paid version and It had a time limit of recording, that’s why I have concise the video
length.
for my video presentation of frontend part, the link in below:
https://drive.google.com/file/d/1_uvYrMlJf1y2UiraUp1_YsjateTmCyE3/view?usp=sharing

You might also like