SlideShare a Scribd company logo
Hospital Management System
DATABASE DESIGN
1. Description
A database is a collection of information and is systematically
stored in tables in the form of rows and columns. The table in the
database has unique name that identifies its contents. The database
in turn is further described in detail giving all the fields used with the
data types, constraints available, primary key and foreign key.
Database design is used to manage large bodies of information.
In this database we describe all the 4 tables available in the software,
which are used to store all the records.
2. Data types and its description:
Fields in database table have a data type. Some of the data
types used in database table are explained below.
a) Integer:-
One optional sign character (+ or -) followed by atleast one digit
(0-9). Leading and trailing blanks are ignored. No other character
is allowed.
b) Varchar:-
It is used to store alpha numeric characters. In this data type
we can set the maximum number of characters upto 8000 ranges
by default SQL server will set the size to 50 characters large.
19
Hospital Management System
c) Date/Time:-
Date/Time data type is used for representing data or time.
Patient Table:
Fields Data Type Relationships
Pid Varchar(5) Primary Key
Name Varchar(20) Not Null
Age int Not Null
weight int Not Null
gender Varchar(10) Not null
address Varchar(50) Not Null
phoneno int Not Null
disease Varchar(20) Not Null
doctorid Varchar(5) Not Null
Doctor Table:
Fields Data Type Relationships
doctorid Varchar(5) Primary Key
doctorname Varchar(15) Not Null
dept Varchar(15) Not Null
20
Hospital Management System
Lab Table:
Fields Data Type Relationships
labno Varchar(5) Primary Key
Pid Varchar(5) Not Null
weight int Not Null
doctorid Varchar(5) Foreign Key
date Date/Time Not Null
category Varchar(15) Not Null
patient_type Varchar(15) Not Null
amount int Not Null
Inpatient Table:
Fields Data Type Relationships
Pid Varchar(5) Primary Key
room_no Varchar(50) Not Null
date_of_adm Date/Time Not Null
date_of_dis Date/Time Not Null
advance int Not Null
labno Varchar(5) Foreign Key
Outpatient Table:
Fields Data Type Relationships
Pid Varchar(5) Primary Key
date Date/Time Not Null
labno Varchar(5) Foreign Key
21
Hospital Management System
Room Table:
Fields Data Type Relationships
room_no Varchar(50) Primary Key
room_type Varchar(10) Not Null
status Varchar(10) Not Null
Bill Table:
Fields Data Type Relationships
bill_no Varchar(50) Primary Key
Pid Varchar(5) Foreign Key
patient_type Varchar(10) Allow Null
doctor_charge int Not Null
medicine_charge int Not Null
room_charge int Not Null
oprtn_charge int Allow Null
no_of_days int Allow Null
nursing_charge int Allow Null
advance int Allow Null
health_card Varchar(50) Allow Null
lab_charge int Allow Null
Bill int Not Null
E-R Diagram
Entity relationship diagram is used in modern database
software engineering to illustrate logical structure of database. It
is a relational schema database modeling method used to model a
system and approach. This approach commonly used in database
design. The diagram created using this method is called E-R
diagram.
22
Hospital Management System
The E-R diagram depicts the various relationships among
entities considering each object as entity. Entity is represented as
diamond shape and relationship is represented as rectangle. It
depicts the relationship between data objects. The E-R diagram is
the relation that is used to conduct the data modeling activity.
Entity:-
Entity is the thing which we want to store information. It is an
elementary basic building block of storing information about
business process. An entity represents an objects defined within
the information system about which you want to store information.
Relationship:-
A relationship is named connection or association between
entities used to relate two or more entities with some common
attributes of meaningful interaction between the object.
Attributes:-
Attributes are the properties of the entities and relationship.
Descriptor of the entity. Attributes are elementary pieces of
information attached to an entity.
23
Hospital Management System
Symbols Meaning
Entity
Relationship
Attribute
Key Attribute
Cardinality Ratio N: 1 for E1: E2
in R
24
Hospital Management System
E1 R E2
E-R Diagram
25
patient
pid
name
weight
doctori
d
gende
r
age
addres
s
phone
no
Consult
s
doctor
Doctorid
Doctor name
dept
Check
s
lab Report
lab no
Pid
weight
doctorid
date
category
Decid
es
inpatient outpatient
lab no
room no
pid
advanc
e
date of
admissio
n
date of
discharge
pid
lab no
date
Admitted
to to
room
status
room
no
room type
issued_
to
bill
bill no
pid
lab charge
patient
type
bill
doctor chargeadvanc
e
health
card
medicine
charge
room charge
operation
no of
nursing charge
disease
amount
Ad

More Related Content

What's hot (20)

Dbms mini project
Dbms mini projectDbms mini project
Dbms mini project
Home
 
HOSPITAL MANAGEMENT SYSTEM PROJECT
HOSPITAL MANAGEMENT SYSTEM PROJECTHOSPITAL MANAGEMENT SYSTEM PROJECT
HOSPITAL MANAGEMENT SYSTEM PROJECT
MUHAMMAD HUZAIFA CHAUDHARY
 
hospital management System
hospital management Systemhospital management System
hospital management System
sabin kafle
 
Hospital management final report presentation
Hospital management final report presentationHospital management final report presentation
Hospital management final report presentation
Md Abul Kalam Azad
 
Hospital Management System (2nd Task)
Hospital Management System (2nd Task)Hospital Management System (2nd Task)
Hospital Management System (2nd Task)
SN Chakraborty
 
Hospital managment system
Hospital managment systemHospital managment system
Hospital managment system
kousar Rahman
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Mohammad Safiullah
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Manpreet Singh
 
Hospital Management System-out patient Detail
Hospital Management System-out patient DetailHospital Management System-out patient Detail
Hospital Management System-out patient Detail
Yogiji Creations
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
Pranil Dukare
 
Comparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented DatabaseComparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented Database
Editor IJMTER
 
Hospital management first review
Hospital management first reviewHospital management first review
Hospital management first review
sethu institute of technology
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
RANJIT SINGH
 
Project Proposal(Hospital Management System)
Project Proposal(Hospital Management System)Project Proposal(Hospital Management System)
Project Proposal(Hospital Management System)
SN Chakraborty
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
Ahsan Rizwan
 
Dbms project.ppt
Dbms project.pptDbms project.ppt
Dbms project.ppt
Vijayeandra Parthepan
 
Hospital database management system project report
Hospital database management system project reportHospital database management system project report
Hospital database management system project report
International Islamic University Islamabad (IIUI)
 
Hospital management
Hospital managementHospital management
Hospital management
Vivek Gautam
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Adil Riaz Siddiqi
 
Restaurent management system
Restaurent management systemRestaurent management system
Restaurent management system
Smit Patel
 
Dbms mini project
Dbms mini projectDbms mini project
Dbms mini project
Home
 
hospital management System
hospital management Systemhospital management System
hospital management System
sabin kafle
 
Hospital management final report presentation
Hospital management final report presentationHospital management final report presentation
Hospital management final report presentation
Md Abul Kalam Azad
 
Hospital Management System (2nd Task)
Hospital Management System (2nd Task)Hospital Management System (2nd Task)
Hospital Management System (2nd Task)
SN Chakraborty
 
Hospital managment system
Hospital managment systemHospital managment system
Hospital managment system
kousar Rahman
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Manpreet Singh
 
Hospital Management System-out patient Detail
Hospital Management System-out patient DetailHospital Management System-out patient Detail
Hospital Management System-out patient Detail
Yogiji Creations
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
Pranil Dukare
 
Comparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented DatabaseComparison of Relational Database and Object Oriented Database
Comparison of Relational Database and Object Oriented Database
Editor IJMTER
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
RANJIT SINGH
 
Project Proposal(Hospital Management System)
Project Proposal(Hospital Management System)Project Proposal(Hospital Management System)
Project Proposal(Hospital Management System)
SN Chakraborty
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
Ahsan Rizwan
 
Hospital management
Hospital managementHospital management
Hospital management
Vivek Gautam
 
Restaurent management system
Restaurent management systemRestaurent management system
Restaurent management system
Smit Patel
 

Viewers also liked (20)

Hospital management system
Hospital management systemHospital management system
Hospital management system
Mehul Ranavasiya
 
Hospital management system project
Hospital management system projectHospital management system project
Hospital management system project
Himani Chopra
 
Bioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientistsBioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientists
unyil96
 
Database design
Database designDatabase design
Database design
baabtra.com - No. 1 supplier of quality freshers
 
Bioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAsBioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAs
Paul Gardner
 
Applying cheminformatics and bioinformatics approaches to neglected tropical ...
Applying cheminformatics and bioinformatics approaches to neglected tropical ...Applying cheminformatics and bioinformatics approaches to neglected tropical ...
Applying cheminformatics and bioinformatics approaches to neglected tropical ...
Sean Ekins
 
Solution4 1(database)
Solution4 1(database)Solution4 1(database)
Solution4 1(database)
welcometofacebook
 
Database Design
Database DesignDatabase Design
Database Design
sariatiazman
 
Database Management System report
Database Management System reportDatabase Management System report
Database Management System report
Natasha Maqbool
 
Gene expression profiling i
Gene expression profiling  iGene expression profiling  i
Gene expression profiling i
Prasanthperceptron
 
Design And Purification Of Proteins
Design And Purification Of ProteinsDesign And Purification Of Proteins
Design And Purification Of Proteins
sol777
 
Gene expression profiling in breast carcinoma
Gene expression profiling in breast carcinomaGene expression profiling in breast carcinoma
Gene expression profiling in breast carcinoma
ghoshparthanrs
 
Importance of database design (1)
Importance of database design (1)Importance of database design (1)
Importance of database design (1)
yhen06
 
Library management system
Library management systemLibrary management system
Library management system
Krishna Malhotra
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
mussawir20
 
Hospital management system (php project) web engineering
Hospital management system (php project) web engineeringHospital management system (php project) web engineering
Hospital management system (php project) web engineering
Iftikhar Ahmad
 
Comparative genomics
Comparative genomicsComparative genomics
Comparative genomics
hemantbreeder
 
Techniques for protein purification
Techniques for protein purificationTechniques for protein purification
Techniques for protein purification
University of Agriculture, FSD
 
Database design process
Database design processDatabase design process
Database design process
Tayyab Hameed
 
Protein purification
Protein purificationProtein purification
Protein purification
Christiane Riedinger
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Mehul Ranavasiya
 
Hospital management system project
Hospital management system projectHospital management system project
Hospital management system project
Himani Chopra
 
Bioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientistsBioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientists
unyil96
 
Bioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAsBioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAs
Paul Gardner
 
Applying cheminformatics and bioinformatics approaches to neglected tropical ...
Applying cheminformatics and bioinformatics approaches to neglected tropical ...Applying cheminformatics and bioinformatics approaches to neglected tropical ...
Applying cheminformatics and bioinformatics approaches to neglected tropical ...
Sean Ekins
 
Database Management System report
Database Management System reportDatabase Management System report
Database Management System report
Natasha Maqbool
 
Design And Purification Of Proteins
Design And Purification Of ProteinsDesign And Purification Of Proteins
Design And Purification Of Proteins
sol777
 
Gene expression profiling in breast carcinoma
Gene expression profiling in breast carcinomaGene expression profiling in breast carcinoma
Gene expression profiling in breast carcinoma
ghoshparthanrs
 
Importance of database design (1)
Importance of database design (1)Importance of database design (1)
Importance of database design (1)
yhen06
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
mussawir20
 
Hospital management system (php project) web engineering
Hospital management system (php project) web engineeringHospital management system (php project) web engineering
Hospital management system (php project) web engineering
Iftikhar Ahmad
 
Comparative genomics
Comparative genomicsComparative genomics
Comparative genomics
hemantbreeder
 
Database design process
Database design processDatabase design process
Database design process
Tayyab Hameed
 
Ad

Similar to Database design (20)

Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
Prof. Dr. K. Adisesha
 
Dbms
DbmsDbms
Dbms
harleenmahajan
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system design
Rohit Jawale
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
SumedhMasal
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
SumedhMasal
 
Adler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docx
Adler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docxAdler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docx
Adler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docx
nettletondevon
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabulary
Paola Rincón
 
A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...
ronaldgreaves
 
Pivoting approach-eav-data-dinu-2006
Pivoting approach-eav-data-dinu-2006Pivoting approach-eav-data-dinu-2006
Pivoting approach-eav-data-dinu-2006
Không còn Phù Hợp
 
simio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docx
simio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docxsimio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docx
simio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docx
budabrooks46239
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabulary
Paola Rincón
 
Data resource management
Data resource managementData resource management
Data resource management
Nirajan Silwal
 
E-R diagram & SQL
E-R diagram & SQLE-R diagram & SQL
E-R diagram & SQL
Abdullah Almasud
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme
 
Database Management SystemCase Study
Database Management SystemCase StudyDatabase Management SystemCase Study
Database Management SystemCase Study
OllieShoresna
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
suthi
 
inbound4905258819833329216.pptx
inbound4905258819833329216.pptxinbound4905258819833329216.pptx
inbound4905258819833329216.pptx
CristineJoyTPrisima
 
Spreadsheet-Essentials-Functions-and-Use-Cases (1).pptx
Spreadsheet-Essentials-Functions-and-Use-Cases (1).pptxSpreadsheet-Essentials-Functions-and-Use-Cases (1).pptx
Spreadsheet-Essentials-Functions-and-Use-Cases (1).pptx
WaqarAhmadAlvi
 
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
projectpointforcs
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of data
Dimara Hakim
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system design
Rohit Jawale
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
SumedhMasal
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
SumedhMasal
 
Adler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docx
Adler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docxAdler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docx
Adler, P. S., Forbes, L. C., & Willmott, H. (2007). Critical man.docx
nettletondevon
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabulary
Paola Rincón
 
A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...A database is a means of storing information in such a way that information c...
A database is a means of storing information in such a way that information c...
ronaldgreaves
 
simio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docx
simio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docxsimio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docx
simio_HW.DS_Storesimio_HWHW4.JPGsimio_HWModel7.1.pdf.docx
budabrooks46239
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabulary
Paola Rincón
 
Data resource management
Data resource managementData resource management
Data resource management
Nirajan Silwal
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme
 
Database Management SystemCase Study
Database Management SystemCase StudyDatabase Management SystemCase Study
Database Management SystemCase Study
OllieShoresna
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
suthi
 
Spreadsheet-Essentials-Functions-and-Use-Cases (1).pptx
Spreadsheet-Essentials-Functions-and-Use-Cases (1).pptxSpreadsheet-Essentials-Functions-and-Use-Cases (1).pptx
Spreadsheet-Essentials-Functions-and-Use-Cases (1).pptx
WaqarAhmadAlvi
 
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
projectpointforcs
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of data
Dimara Hakim
 
Ad

More from Safwan Hashmi (16)

MODERAN BLOCK CIPHER
MODERAN BLOCK CIPHER MODERAN BLOCK CIPHER
MODERAN BLOCK CIPHER
Safwan Hashmi
 
Dark web
Dark webDark web
Dark web
Safwan Hashmi
 
CEASER & VIGENERE CIPHER IMPLEMENTATION
CEASER & VIGENERE CIPHER IMPLEMENTATIONCEASER & VIGENERE CIPHER IMPLEMENTATION
CEASER & VIGENERE CIPHER IMPLEMENTATION
Safwan Hashmi
 
Incident managment plan
Incident managment planIncident managment plan
Incident managment plan
Safwan Hashmi
 
Business continuity plan
Business continuity planBusiness continuity plan
Business continuity plan
Safwan Hashmi
 
Sql injection
Sql injectionSql injection
Sql injection
Safwan Hashmi
 
Soap xp-wg
Soap xp-wgSoap xp-wg
Soap xp-wg
Safwan Hashmi
 
Sql security
Sql securitySql security
Sql security
Safwan Hashmi
 
Alpha beta prouning
Alpha beta prouningAlpha beta prouning
Alpha beta prouning
Safwan Hashmi
 
Color and color models
Color and color modelsColor and color models
Color and color models
Safwan Hashmi
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
Safwan Hashmi
 
Democracy.s
Democracy.sDemocracy.s
Democracy.s
Safwan Hashmi
 
Democracy01
Democracy01Democracy01
Democracy01
Safwan Hashmi
 
Democracy.ppt
Democracy.pptDemocracy.ppt
Democracy.ppt
Safwan Hashmi
 
Calunization
CalunizationCalunization
Calunization
Safwan Hashmi
 
Development
DevelopmentDevelopment
Development
Safwan Hashmi
 

Recently uploaded (20)

Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 

Database design

  • 1. Hospital Management System DATABASE DESIGN 1. Description A database is a collection of information and is systematically stored in tables in the form of rows and columns. The table in the database has unique name that identifies its contents. The database in turn is further described in detail giving all the fields used with the data types, constraints available, primary key and foreign key. Database design is used to manage large bodies of information. In this database we describe all the 4 tables available in the software, which are used to store all the records. 2. Data types and its description: Fields in database table have a data type. Some of the data types used in database table are explained below. a) Integer:- One optional sign character (+ or -) followed by atleast one digit (0-9). Leading and trailing blanks are ignored. No other character is allowed. b) Varchar:- It is used to store alpha numeric characters. In this data type we can set the maximum number of characters upto 8000 ranges by default SQL server will set the size to 50 characters large. 19
  • 2. Hospital Management System c) Date/Time:- Date/Time data type is used for representing data or time. Patient Table: Fields Data Type Relationships Pid Varchar(5) Primary Key Name Varchar(20) Not Null Age int Not Null weight int Not Null gender Varchar(10) Not null address Varchar(50) Not Null phoneno int Not Null disease Varchar(20) Not Null doctorid Varchar(5) Not Null Doctor Table: Fields Data Type Relationships doctorid Varchar(5) Primary Key doctorname Varchar(15) Not Null dept Varchar(15) Not Null 20
  • 3. Hospital Management System Lab Table: Fields Data Type Relationships labno Varchar(5) Primary Key Pid Varchar(5) Not Null weight int Not Null doctorid Varchar(5) Foreign Key date Date/Time Not Null category Varchar(15) Not Null patient_type Varchar(15) Not Null amount int Not Null Inpatient Table: Fields Data Type Relationships Pid Varchar(5) Primary Key room_no Varchar(50) Not Null date_of_adm Date/Time Not Null date_of_dis Date/Time Not Null advance int Not Null labno Varchar(5) Foreign Key Outpatient Table: Fields Data Type Relationships Pid Varchar(5) Primary Key date Date/Time Not Null labno Varchar(5) Foreign Key 21
  • 4. Hospital Management System Room Table: Fields Data Type Relationships room_no Varchar(50) Primary Key room_type Varchar(10) Not Null status Varchar(10) Not Null Bill Table: Fields Data Type Relationships bill_no Varchar(50) Primary Key Pid Varchar(5) Foreign Key patient_type Varchar(10) Allow Null doctor_charge int Not Null medicine_charge int Not Null room_charge int Not Null oprtn_charge int Allow Null no_of_days int Allow Null nursing_charge int Allow Null advance int Allow Null health_card Varchar(50) Allow Null lab_charge int Allow Null Bill int Not Null E-R Diagram Entity relationship diagram is used in modern database software engineering to illustrate logical structure of database. It is a relational schema database modeling method used to model a system and approach. This approach commonly used in database design. The diagram created using this method is called E-R diagram. 22
  • 5. Hospital Management System The E-R diagram depicts the various relationships among entities considering each object as entity. Entity is represented as diamond shape and relationship is represented as rectangle. It depicts the relationship between data objects. The E-R diagram is the relation that is used to conduct the data modeling activity. Entity:- Entity is the thing which we want to store information. It is an elementary basic building block of storing information about business process. An entity represents an objects defined within the information system about which you want to store information. Relationship:- A relationship is named connection or association between entities used to relate two or more entities with some common attributes of meaningful interaction between the object. Attributes:- Attributes are the properties of the entities and relationship. Descriptor of the entity. Attributes are elementary pieces of information attached to an entity. 23 Hospital Management System
  • 6. Symbols Meaning Entity Relationship Attribute Key Attribute Cardinality Ratio N: 1 for E1: E2 in R 24 Hospital Management System E1 R E2
  • 7. E-R Diagram 25 patient pid name weight doctori d gende r age addres s phone no Consult s doctor Doctorid Doctor name dept Check s lab Report lab no Pid weight doctorid date category Decid es inpatient outpatient lab no room no pid advanc e date of admissio n date of discharge pid lab no date Admitted to to room status room no room type issued_ to bill bill no pid lab charge patient type bill doctor chargeadvanc e health card medicine charge room charge operation no of nursing charge disease amount