0% found this document useful (0 votes)
3 views16 pages

SP Project

The Hospital Management System project facilitates patient registration, appointment booking, and management of hospital staff and resources through a user-friendly interface. It consists of multiple modules for administration, patient management, and internal hospital operations, ensuring data security and efficient processing. The system automates hospital activities, providing advantages such as time-saving and instant billing, while also requiring a large database and internet connectivity.

Uploaded by

easin4733
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)
3 views16 pages

SP Project

The Hospital Management System project facilitates patient registration, appointment booking, and management of hospital staff and resources through a user-friendly interface. It consists of multiple modules for administration, patient management, and internal hospital operations, ensuring data security and efficient processing. The system automates hospital activities, providing advantages such as time-saving and instant billing, while also requiring a large database and internet connectivity.

Uploaded by

easin4733
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

Hospital Management System

Course code: CSE237,317


Course Titel: SP IV & V
Submitted To
Rahim Iqbal
Department of CSE
Daffodil International University

Submitted By
Yeasin Mia
ID: 203-15-14543
Section: A(Batch-57)
Report: Hospital Management System.

Abstract:
Our project Hospital Management system includes registration of patients, storing
their details into the system, and also booking their appointments with doctors.
Our software has the facility to give a unique id for every patient and stores the
details of every patient and the staff automatically. User can search availability of
a doctor and the details of a patient using the id. The Hospital Management
System can be entered using a username and password. It is accessible either by an
administrator or receptionist. Only they can add data into the database. The data
can be retrieved easily. The interface is very user-friendly. The data are well
protected for personal use and makes the data processing very fast.

It is having mainly two modules. One is at Administration Level and other one is
of user I.e. of patients and doctors. The Application maintains authentication in
order to access the application. Administrator task includes managing doctors
information, patient’s information. To achieve this aim a database was designed
one for the patient and other for the doctors which the admin can access. The
complaints which are given by user will be referred by authorities.

The Patient modules include checking appointments, prescription. User can also
pay doctor’s Fee online.

Introduction:
This Hospital management system application software is built upon React Js and
Firebase. Admin can easily manage their Hospitals or clinics with this software.
It includes 14+ modules. 6 modules to manage their hospital employee ( Doctors,
Nurses, Laboratories, Pharmacist, Accountant, Receptionist ), One Module for
patients management, and 6 Modules to manage their hospital internal things
(Medicines, Blood Bag, Bed Allotment, Operation Report, Birth Report, Death
Report) and 2 modules to manage [Link]. The project Hospital Management
system includes registration of patients, storing their detailsinto the system, and
also computerized billing in the pharmacy, and labs. The software has thefacility
to give a unique id for every patient and stores the details of every patient and the
staffautomatically. It includes a search facility to know the current status of each
room. User cansearch availability of a doctor and the details of a patient using the
[Link] Hospital Management System can be entered using a username and
password. It isaccessible either by an administrator or receptionist. Only they can
add data into the [Link] data can be retrieved easily. The interface is very
user-friendly. The data are well protected for personal use and makes the data
processing very fast.

Softwares needed:
 Visual Studio Code.
 Node Version.
 JDK.
 ReactJs.

Preliminary:
My project name is my Hospital Management System.

MODULES:
The entire project mainly consists of 7 modules, which are
 Admin module
 User module (patient)
 Doctor module
 Nurse module
 Pharmacist module
 Laboratorist module
 Accountant module
Method:

Home page

Patients Booking,
Update your slot,

Booking Details,
Admin can delete an employee by pressing the delete button. this button popup a
dialog box that is a confirmation dialog box.
Doctors Booking,

Login penal,
This is the main dashboard page

Patient page contains all patient details. here admin can add update
and delete the patient details.
Admin can add the patient through filling a form. which includes all about
patient details. this add person form is also open when the admin adds an
employee other.

Admin can delete an employee by pressing the delete button. this button
popup a dialog box that is a confirmation dialog box.
Code,
JS [Link],

const express = require('express');


const bodyParser = require('body-parser');
const _ = require('lodash');
const path = require('path');
const favicon = require('serve-favicon');
const cookieParser = require('cookie-parser');
const exphbs = require('express-handlebars');
const expressValidator = require('express-validator');
const session = require('express-session');
const flash = require('connect-flash');
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
const mongo = require('mongodb');
var {mongoose} = require('./server/db/[Link]');

/*
View Engine
*/
var app = express();
// [Link]([path,] callback [, callback...]) -> puts middleware fot the app
[Link]([Link](__dirname + '/views'));
[Link]([Link]([Link](__dirname, '/public')));
[Link](favicon(__dirname + '/public/[Link]'));
// [Link]('.extenionName', renderingEngine) -> renders files
[Link]('handlebars', exphbs({defaultLayout: 'layout'}));
// [Link]('view engine', 'engineToUse') -> sets default viewing engine
[Link]('view engine', 'handlebars');

/*
Bodyparser Middleware + Express session
*/
[Link]([Link]());
[Link]([Link]({extended: true}));
[Link](cookieParser());
// session -> keep the user loggin after he login in on the website
// -> creates an object [Link], where you can add properties
// -> (ex: [Link].page_views, to count how many times he entered on the page)
[Link](session({
secret: 'secret',
saveUninitialized: true,
resave: true
}));

/*
Initialize Passport (authetification) to keep persisten login data (i.e in cookies)
*/
[Link]([Link]());
[Link]([Link]());

/*
Validator to validate data incoming with the re object to the server
*/
[Link](expressValidator({
errorFormatter: function(param, msg, value) {
var namespace = [Link]('.')
, root = [Link]()
, formParam = root;

while([Link]) {
formParam += '[' + [Link]() + ']';
}
return {
param : formParam,
msg : msg,
value : value
};
}
}));

/*
Flash to pop-up mesages in the browser
*/
[Link](flash());
[Link](function (req, res, next) {
[Link].success_msg = [Link]('success_msg');
[Link].error_msg = [Link]('error_msg');
[Link] = [Link]('error');
[Link] = [Link] || null;
next();
});
/*
Ensure authetification
*/
[Link]('/app', (req, res, next) => {
// check to be authentificated
if ([Link]()) { // if yes, continue
return next();
} else { // if no, login
// [Link]('error_msg', 'You are not logged in');
[Link]('/');
}
});

/*
Website routes
*/
var login = require('./routes/login');
var users = require('./routes/users');
var appRoute = require('./routes/app');
var patients = require('./routes/patients');
var settings = require('./routes/settings');
var diseases = require('./routes/diseases');
var rooms = require('./routes/rooms');

[Link]
/*
GET /app/addpatient -> go to addPatient page
POST /app/addpatient -> add a patient in the database
GET /app/getpatients -> get a JSON with all patients
GET /app/patient/:hospitalNumber -> get one patiente data
GET /app/getpatient/:hospitalNumber-> get JSON of a patiente data
POST /app/updatepatient/:hospitalNumber -> update disease & score for patient
POST /app/delete/:hospitalNumber -> detele a patient from the system
*/

const express = require('express');


const _ = require('lodash');
const router = [Link]();

var {scoreOfDisease, Disease} = require('./../server/models/[Link]');


var {Patient} = require('./../server/models/[Link]');
var {rooms, Room} = require('./../server/models/[Link]');
var isValidDate = require('is-valid-date');
const {ObjectID} = require('mongodb');

/*
GET /app/addpatient -> go to addPatient page
*/
[Link]('/app/addpatient', (req, res) => {
[Link]('addpatient', {pageTitle: "Add patient"});
});

/*
POST /addPatient -> add new patient
*/
[Link]('/app/addpatient', (req, res) => {
// receive the diseases from the form in the array PD, each element being a String with the disease
name
var PD = [Link];
var dateOfBirth = [Link];

// [Link](dateOfBirth);
// [Link](isValidDate(dateOfBirth));

if (_.isEmpty(PD)) { // check if no disease is selected


PD = [];
}

// Check for empty fields


if (_.isEmpty([Link]) || _.isEmpty([Link]) ||
_.isEmpty([Link]) || !isValidDate(dateOfBirth)) {
if (_.isEmpty([Link])) [Link]('error_msg', 'Please enter the first name.');
if (_.isEmpty([Link])) [Link]('error_msg', 'Please enter the last name.');
if (_.isEmpty([Link])) [Link]('error_msg', 'Please enter the hospital number.');
if (!isValidDate(dateOfBirth)) [Link]('error_msg', 'The date is not valid.');

[Link](400).redirect('/app/addpatient');
} else {
// set the sex of the new patient
var sex = [Link];
if (sex === "male") {
sex = true;
} else {
sex = false;
}

// make a new patient and add it in the database


var patient = Patient({
firstName: _.capitalize([Link]),
lastName: _.capitalize([Link]),
sex: sex,
dateOfBirth: dateOfBirth,
hospitalNumber: _.toUpper([Link]),
diseases: PD,
lastUpdate: (new Date().getTime())
});

[Link]().then((patient) => {
[Link]();
[Link](200).redirect('/app');
}).catch((err) => {
[Link](err);
[Link](400).redirect('/app');
});
}
});
Advantages:

 The system automates the manual procedure of managing hospital activities.


 Doctors can view their patients’ treatment records and details easily.
 It even generates an instant bill.
 The system is convenient and flexible to be used.
 It saves their time, efforts, money and resources.

Disadvantages:
 Requires large database.
 The admin has to manually keep updating the information by entering the
details in the system.
 Need Internet connection.

Conclusion: Working on the project was an excellent experience. It


helped us to understand the importance of planning, designing and
implementation so far we have learnt in our theory books. It helped us
unleashing our creativity while working in a team. It also realized the
importance of team working, communication as a part of this project.

This project focused that scheduling a project and adhering to that


schedule creates ahard sense of time- management. It has also let us
known that co-operative teamwork always produce effective results.

It comes with a lot of useful features that enable users to keep track of
their healthcare data, transactions, and more. An admin can manage
patients, doctors, their departments, treatment types, and medical
records. A clean and simple dashboard is presented with simple color
combinations for greater user experience.
THANK YOU

You might also like