100% found this document useful (1 vote)
1K views24 pages

Hospital Management System: A Project Report On

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 24

A Project Report On

HOSPITAL MANAGEMENT SYSTEM

Submitted by
JULIE GAYARI
Class: XII Science
Roll No. 13

Under The Guidance Of

Sir Ankur Jyoti Das


Ma’am Ranjana Thakuria

Department of Informatics Practices


Saint Claret School, Borjhar

1
CERTIFICATE

This is to certify that this project is bonafide work of


Julie Gayari of XII Science, under my supervision. I
also certify that they have carried out the work with
utmost sincerity and skill.
As per CBSE guidelines, for the fulfilment of the
requirement leading to the successful completion of
the course.

Name & Signature of Signature of Principal


Supervisor

Name & Signature of External Examiner

2
SER INDEX PAGE NO

01 ACKNOWLEDGEMENT 04

02 OBJECTIVES 05

03 INTRODUCTION 06

04 HOSPITAL MANAGEMENT SYSTEM 10

05 FLOW CHART 16

06 SOURCE CODE 16

07 OUTPUT  22

11 HARDWARE AND SOFTWARE REQUIREMENTS 24

12 CONCLUSION 25

13 BIBLIOGRAPHY 26

3
ACKNOWLEDGEMENT

Apart from the efforts from me, I would like to express


my special thanks of gratitude to my Informatics Practices
teachers “Ranjana Thakuria” and “Ankur Jyoti Das”
for their able guidance and support in completing my
project.

I would also like to extend my gratitude to Principal Fr.


Benoy for providing me with all the facility that was
required, and finally my deepest acknowledgement to my
groupmates, Sagareeka Rabha and Adi Sharma from XII
Commerce, for contributing hard work and knowledge
into this project.

Julie Gayari
XII Science

4
OBJECTIVES
The aim is to create tangible and useful IT application. The learner gets
to indentify a real-world problem by exploring the environment and
acquire knowledge about functioning of organization and how data can
be generated, stored and managed.
Tangible equipments are based on three concepts:
- Interaction through physical contact, which creates responses in
the digital environment.
- the practicality in day-to-day applications that can make life easier
and are increasingly gaining market space,
- And collaborations which allows from organizing meetings to
performing remote surgeries.

The objective of this project is to let the students apply the


programming knowledge into a real- world situation/problem and
exposed the students how programming skills helps in developing a
good software.

1. Write programs utilizing modern software tools.


2. Apply object oriented programming principles effectively when
developing small to medium sized projects.
3. Write effective procedural code to solve small to medium sized
problems.
4. Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of systems, theory and
software development.
5. Students will demonstrate ability to conduct a research or applied
Computer Science project, requiring writing and presentation skills
which exemplify scholarly style in computer science.

5
INTRODUCTION
What is Python?
Python is an interpreted, object-oriented, high-level programming language with
dynamic semantics. Its high-level built in data structures, combined with dynamic
typing and dynamic binding, make it very attractive for Rapid Application
Development, as well as for use as a scripting or glue language to connect existing
components together. Python's simple, easy to learn syntax emphasizes readability
and therefore reduces the cost of program maintenance. Python supports modules
and packages, which encourages program modularity and code reuse. The Python
interpreter and the extensive standard library are available in source or binary form
without charge for all major platforms, and can be freely distributed.

What is NumPy in Python?


NumPy is the fundamental package for scientific computing in Python.
It is a Python library that provides a multidimensional array object,
various derived objects (such as masked arrays and matrices), and an
assortment of routines for fast operations on arrays, including
mathematical, logical, shape manipulation, sorting, selecting, I/O,
discrete Fourier transforms, basic linear algebra, basic statistical
operations, random simulation and much more.

At the core of the NumPy package, is the ndarray object. This


encapsulates n-dimensional arrays of homogeneous data types, with
many operations being performed in compiled code for performance.
There are several important differences between NumPy arrays and the
standard Python sequences:

6
 NumPy arrays have a fixed size at creation, unlike Python lists
(which can grow dynamically). Changing the size of
an ndarray will create a new array and delete the original.
 The elements in a NumPy array are all required to be of the same
data type, and thus will be the same size in memory. The
exception: one can have arrays of (Python, including NumPy)
objects, thereby allowing for arrays of different sized elements.

What Is Pandas In Python?


Pandas is an open source Python package that is most widely used for
data science/data analysis and machine learning tasks. It is built on top
of another package named Numpy, which provides support for multi-
dimensional arrays. As one of the most popular data wrangling
packages, Pandas works well with many other data science modules
inside the Python ecosystem, and is typically included in every Python
distribution, from those that come with your operating system to
commercial vendor distributions like ActiveState’s ActivePython. 

What Is a CSV File?


A CSV file (Comma Separated Values file) is a type of plain text file
that uses specific structuring to arrange tabular data. Because it’s a plain
text file, it can contain only actual text data—in other words,
printable ASCII or Unicode characters.

The structure of a CSV file is given away by its name. Normally, CSV
files use a comma to separate each specific data value. Here’s what that
structure looks like:

7
column 1 name,column 2 name, column 3 name
first row data 1,first row data 2,first row data 3
second row data 1,second row data 2,second row data 3
...

What is MySQL?
 MySQL is a database management system.
A database is a structured collection of data. It may be anything from a simple
shopping list to a picture gallery or the vast amounts of information in a
corporate network. To add, access, and process data stored in a computer
database, you need a database management system such as MySQL Server.
Since computers are very good at handling large amounts of data, database
management systems play a central role in computing, as standalone utilities,
or as parts of other applications.

 MySQL databases are relational.


A relational database stores data in separate tables rather than putting all the data in one big
storeroom. The database structures are organized into physical files optimized for speed.
The logical model, with objects such as databases, tables, views, rows, and columns, offers
a flexible programming environment. You set up rules governing the relationships between
different data fields, such as one-to-one, one-to-many, unique, required or optional,
and “pointers” between different tables. The database enforces these rules, so that with a
well-designed database, your application never sees inconsistent, duplicate, orphan, out-of-
date, or missing data.
The SQL part of “MySQL” stands for “Structured Query Language”. SQL is the most
common standardized language used to access databases. Depending on your programming
environment, you might enter SQL directly (for example, to generate reports), embed SQL
statements into code written in another language, or use a language-specific API that hides
the SQL syntax.
SQL is defined by the ANSI/ISO SQL Standard. The SQL standard has been evolving since
1986 and several versions exist. In this manual, “SQL-92” refers to the standard released in
1992, “SQL:1999” refers to the standard released in 1999,

Hospital Management System


The Hospital Management System (HMS) is designed for
Any Hospital to replace their existing manual, paper based
system. This System targets to provide complete solution

8
for Hospital and Health care services. This System can be
used in any Hospital, Clinic, Diagnostics or Pathology labs
for maintaining patient details and their test results. It
Integrates the entire Resources of a Hospital into One
Integrated Software Application.

System Development Life Cycle


(SDLC)

The systems development life cycle is a project


management technique that divides complex projects into smaller,
more easily managed segments or phases. Segmenting projects
allows managers to verify the successful completion of project
phases before allocating resources to subsequent phases.
9
Software development projects typically include initiation,
planning, design, development, testing, implementation, and
maintenance phases. However, the phases may be divided
differently depending on the organization involved. 

The purpose of the Initiation Phase is to:

 Identify and validate an opportunity to improve business accomplishments of the


organization or a deficiency related to a business need.
 Identify significant assumptions and constraints on solutions to that need.
 Recommend the exploration of alternative concepts and methods to satisfy the need
including questioning the need for technology, i.e., will a change in the business process
offer a solution?
 Assure executive business and executive technical sponsorship. The Sponsor designates a
Project Manager and the business need is documented in a Concept Proposal. The
Concept Proposal includes information about the business process and the relationship to
the Agency/Organization.
 Infrastructure and the Strategic Plan. A successful Concept Proposal results in a Project
Management Charter which outlines the authority of the project manager to begin
the project.

SYSTEM CONCEPT DEVELOPMENT PHASE


The System Concept Development Phase begins after a business need or
opportunity is validated by the Agency/Organization Program Leadership
and the Agency/Organization CIO.

The purpose of the System Concept Development Phase is to:

 Determine the feasibility and appropriateness of the alternatives.


 Identify system interfaces.
 Identify basic functional and data requirements to satisfy the business need.

10
 Establish system boundaries; identify goals, objectives, critical success factors, and
performance measures.
 Evaluate costs and benefits of alternative approaches to satisfy the basic functional
requirements
 Assess project risks
 Identify and initiate risk mitigation actions, and Develop high-level technical
architecture, process models, data models, and a concept of operations. This phase
explores potential technical solutions within the context of the business need.
  It may include several trade-off decisions such as the decision to use COTS software
products as opposed to developing custom software or reusing software components, or
the decision to use an incremental delivery versus a complete, onetime deployment. 
 Construction of executable prototypes is encouraged to evaluate technology to support
the business process. The System Boundary Document serves as an important reference
document to support the Information Technology Project Request (ITPR) process. 
 The ITPR must be approved by the State CIO before the project can move forward.

PICTORIAL REPRESENTATION OF SDLC:

REQUIREMENTS  ANALYSIS  PHASE

The purposes of this phase are to:

11
 Further define and refine the functional and data requirements and document
them in the Requirements Document,
 Complete business process reengineering of the functions to be supported
(i.e., verify what information drives the business process, what information
is generated, who generates it, where does the information go, and who
processes it),
 Develop detailed data and process models (system inputs, outputs, and the
process.
 Develop the test and evaluation requirements that will be used to determine
acceptable system performance.

DESIGN PHASE
During this phase, the system is designed to satisfy the functional
requirements identified in the previous phase. Since problems in the design
phase could be very expensive to solve in the later stage of the software
development, a variety of elements are considered in the design to mitigate
risk. These include:

 Identifying potential risks and defining mitigating design features.


 Performing a security risk assessment. Developing a conversion plan to migrate current
data to the new system.
 Determining the operating environment.
 Defining major subsystems and their inputs and outputs.
 Allocating processes to resources.
 Preparing detailed logic specifications for each software module. The result is a draft
System Design Document which captures the preliminary design for the system.
 Everything requiring user input or approval is documented and reviewed by the user.
Once these documents have been approved by the Agency CIO and Business Sponsor,
the final System Design Document is created to serve as the Critical/Detailed Design for
the system. 
 This document receives a rigorous review byAgency technical and functional
representatives to ensure that it satisfies the business requirements. Concurrent with the
development of the system design, the Agency Project Manager begins development of
the Implementation Plan, Operations and Maintenance Manual, and the Training Plan.

12
INTEGRATION AND TEST PHASE

Multiple levels of testing are performed, including:

 Testing at the development facility by the contractor and possibly supported by end users
 Testing as a deployed system with end users working together with contract personnel
 Operational testing by the end user alone performing all functions. Requirements are
traced throughout  testing ,a final Independent Verification & Validation evaluation is
performed and all documentation is reviewed and accepted prior to acceptance of the
system.

OPERATIONS AND MAINTENANCE PHASE


The system operation is ongoing. The system is monitored for
continued performance in accordance with user requirements and needed
system modifications are incorporated. Operations continue as long as the
system can be effectively adapted to respond to the organization’s needs.
When modifications or changes are identified, the system may re enter the
planning phase. 

The purpose of this phase is to:

 Operate, maintain, and enhance the system.


 Certify that the system can process sensitive information.
 Conduct periodic assessments of the system to ensure the functional requirements
continue to be satisfied.
 Determine when the system needs to be modernized, replaced, or retired.

FLOW CHART

13
Source Code
import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='',database=

'project')

if conn.is_connected():

  print('successfully connected')

c1=conn.cursor()

print('---------------------------------------------')

print("HOSPITAL MANAGEMENT SYSTEM")

print('---------------------------------------------')

print('"GOD WISHES YOU"')

print("1.LOGIN")

print("2.EXIT")

choice=int(input("ENTER YOUR CHOICE:"))

if choice==1:

  u1=input("enter user name:")

  pwd1=input("enter the password:")

14
  while u1=='vasu'and pwd1=='vasu6072':

    print('connected')

  

    print("WELCOME TO HOSPITAL")

    print("successfully connected")

    print('1.RegisteringPatient details')

    print('2.RegisteringDoctor details')

    print('3.RegisteringWorker details')

    print("4.total patient details")

    print("5.total doctor details")

    print("6.total worker details")

    print('7.Patient detail')

    print('8.Doctor detail')

    print('9.Worker detail')

    print('10.Exit')

    choice=int(input('ENTER YOUR CHOICE:'))

    if choice==1:

      p_name=input('Enter Patient Name:')

      p_age=int(input('Enter Age:'))

      p_problems=input('Enter the Problem/Disease:')

      p_phono=int(input('Enter Phone number:'))

      sql_insert="insert into patient_details

values(""'"+p_name+"',"+str(p_age)

+",'"+p_problems+"',"+str(p_phono)+")"

15
      c1.execute(sql_insert)

      print('SUCCESSFULLY REGISTERED')

      conn.commit()

      

    elif choice==2:

      d_name=input('Enter Doctor Name:')

      d_age=int(input('Enter Age:'))

      d_department=input('Enter the Department:')

      d_phono=int(input('Enter Phone number:'))

      sql_insert="insert into doctor_details

values(""'"+d_name+"',"+str(d_age)

+",'"+d_department+"',"+str(d_phono)+")"

      c1.execute(sql_insert)

      print('successfully registered')

      conn.commit()

      

    elif choice==3:

      w_name=input('Enter Worker Name:')

      w_age=int(input('Enter Age:'))

      w_workname=input('Enter type of work:')

      w_phono=int(input('Enter Phone number:'))

      sql_insert="insert into worker_details

values(""'"+w_name+"',"+str(w_age)

+",'"+w_workname+"',"+str(w_phono)+")"

16
      c1.execute(sql_insert)

      print('successfully registered')

      conn.commit()

      

    elif choice==4:

      sql_w='select*from patient_details '

      c1.execute(sql_w)

      r = c1.fetchall()

      for i in r :

        print(i)

        

    elif choice==5:

      sql_x="select*from doctor_details"

      c1.execute(sql_x)

      s=c1.fetchall()

      for i in s:

        print(i)

        

    elif choice==6:

      sql_y="select*from worker_details"

      c1.execute(sql_y)

      t=c1.fetchall()

      for i in t:

        print(i)

17
        

    elif choice==7:

      h=input("Enter the name:")

      sql_w='select*from patient_details where

p_name=("{}")'.format(h)

      c1.execute(sql_w)

      u = c1.fetchall()

      for i in u:

        print(i)

        

    elif choice==8:

      d=input("Enter the name:")

      sql_d='select*from doctor_details where

p_name=("{}")'.format(d)

      c1.execute(sql_d)

      v=c1.fetchall()

      for i in v:

        print(i)

        

    elif choice==9:

      f=input("Enter the name:")

      sql_f='select*from worker_details where

p_name=("{}")'.format(f)

      c1.execute(sql_f)

18
      w=c1.fetchall()

      for i in w:

        print(i)

        

    elif choice==10:

      exit()

      break

  else:

    print('wrong username&password')

if choice==2:

  exit()

                 

OUTPUT
Login output:

19
After login:

After choosing choice:

20
21
HARDWARE AND SOFTWARE
REQUIREMENTS

I.OPERATING SYSTEM WINDOWS 10 & ABOVE


II. PROCESSOR : PENTIUM(ANY) OR AMD 
ATHALON(3800+- 4200+
DUAL CORE)
III. MOTHERBOARD : 1.845 OR 915,995 FOR
PENTIUM 0R MSI 
K9MM-V
K8M800+8237R
PLUS CHIPSET FOR AMD
ATHALON
IV. RAM : 512MB+
V. Hard Disk : SATA 40 GB OR ABOVE
VI. CD/DVD r/w multi drive combo: (If back up required)
VIII. MONITOR : 14.1 or 15 -17 inch
IX. Key board and mouse
X. Printer :
XI. Windows OS
XII. Python

22
CONCLUSION
This project has described how a number of important data technologies work and  it
has provided guidelines on the right way to use those technologies. We have covered
technologies for storing data, accessing data, processing data, and publishing data on
the web. We have also focused on writing computer languages.

We have looked at the advantages and disadvantages of different storage options, we


have looked at how to design data storage efficiently, and we have discussed how to
write good computer code.

There are a number of important ideas to take away from this book.

One of these is that the computer is a very flexible and powerful tool, and it is a tool
that is ours to control. Files and documents, especially those in open standard formats,
can be manipulated using a variety of software tools, not just one specific piece of
software. A programming language is a tool that allows us to manipulate data stored
in files and to manipulate data held in RAM in unlimited ways. Even with a basic
knowledge of programming, we can perform a huge variety of data processing tasks.

A related idea is that computer code is the preferred approach to communicating our
instructions to the computer. This approach allows us to be precise and expressive, it
provides a complete record of our actions, and it allows others to replicate our work.

23
BIBLIOGRAPHY

1. Computer science With Python -  Class XI By : Sumita


Arora

2. A Project Report On Blood Bank Management System


(BBMS)
By : Praveen M Jigajinni

3. https://www.w3resource.com/

4. https://www.coursera.org/articles

5. https://www.python.org/doc/essays/blurb/

6. https://www.youtube.com/watch?v=c-6PjpGPxaI&t=418s

7. https://www.youtube.com/watch?
v=NOkQLnyFC80&t=1776s

8. Informatics practices – a textbook for XII By: Sumita


Arora

9. https://dev.mysql.com/doc/refman/8.0/en/what-is-
mysql.html

24

You might also like