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

More Related Content

What's hot

Hospital management system
Hospital management systemHospital management system
Hospital management system
Mohammad Safiullah
 
Use case of hospital managment system
Use case of hospital managment systemUse case of hospital managment system
Use case of hospital managment system
Mohin Uddin Majumder (Sanofi Mohin)
 
Design and Implementation of Hospital Management System Using Java
Design and Implementation of Hospital Management System Using JavaDesign and Implementation of Hospital Management System Using Java
Design and Implementation of Hospital Management System Using Java
IOSR Journals
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
RashmikaJava
 
Healthcare Management System
Healthcare Management SystemHealthcare Management System
Healthcare Management System
Pragmatic Techsoft
 
Hospital Management System Project Report
Hospital Management System Project Report Hospital Management System Project Report
Hospital Management System Project Report
Sarfaraj Alam
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Manpreet Singh
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ARADHYAYANA
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Uml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemUml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemPradeep Bhosale
 
Hospital management synopsis
Hospital management synopsisHospital management synopsis
Hospital management synopsis
YogeshDhamke2
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system design
Rohit Jawale
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
Adil Riaz Siddiqi
 
Hospital management system
Hospital management systemHospital management system
Hospital management systemsubu
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
Vishal Anand
 
Design and implementation of a hospital management system
Design and implementation of a hospital management systemDesign and implementation of a hospital management system
Design and implementation of a hospital management system
Overcomer Michael
 
Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Projecthani2253
 
Database Management System report
Database Management System reportDatabase Management System report
Database Management System report
Natasha Maqbool
 
Software Engineering- ERD DFD Decision Tree and Table
Software Engineering- ERD DFD Decision Tree and TableSoftware Engineering- ERD DFD Decision Tree and Table
Software Engineering- ERD DFD Decision Tree and Table
Nishu Rastogi
 

What's hot (20)

Hospital management system
Hospital management systemHospital management system
Hospital management system
 
Use case of hospital managment system
Use case of hospital managment systemUse case of hospital managment system
Use case of hospital managment system
 
Design and Implementation of Hospital Management System Using Java
Design and Implementation of Hospital Management System Using JavaDesign and Implementation of Hospital Management System Using Java
Design and Implementation of Hospital Management System Using Java
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
 
Healthcare Management System
Healthcare Management SystemHealthcare Management System
Healthcare Management System
 
Hospital Management System Project Report
Hospital Management System Project Report Hospital Management System Project Report
Hospital Management System Project Report
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Uml diagram for_hospital_management_system
Uml diagram for_hospital_management_systemUml diagram for_hospital_management_system
Uml diagram for_hospital_management_system
 
Hospital management synopsis
Hospital management synopsisHospital management synopsis
Hospital management synopsis
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system design
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Design and implementation of a hospital management system
Design and implementation of a hospital management systemDesign and implementation of a hospital management system
Design and implementation of a hospital management system
 
Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Project
 
Database Management System report
Database Management System reportDatabase Management System report
Database Management System report
 
Software Engineering- ERD DFD Decision Tree and Table
Software Engineering- ERD DFD Decision Tree and TableSoftware Engineering- ERD DFD Decision Tree and Table
Software Engineering- ERD DFD Decision Tree and Table
 
DFD for HMS
DFD for HMSDFD for HMS
DFD for HMS
 

Viewers also liked

Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
Pranil Dukare
 
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 projectHimani Chopra
 
Bioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientistsBioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientistsunyil96
 
Bioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAsBioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAsPaul 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
 
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 carcinomaghoshparthanrs
 
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 Processmussawir20
 
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 genomicshemantbreeder
 
Database design process
Database design processDatabase design process
Database design process
Tayyab Hameed
 

Viewers also liked (20)

Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
Hospital management system project
Hospital management system projectHospital management system project
Hospital management system project
 
Bioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientistsBioinformatics—an introduction for computer scientists
Bioinformatics—an introduction for computer scientists
 
Database design
Database designDatabase design
Database design
 
Bioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAsBioinformatic approaches to functionally characterise RNAs
Bioinformatic approaches to functionally characterise RNAs
 
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 ...
 
Solution4 1(database)
Solution4 1(database)Solution4 1(database)
Solution4 1(database)
 
Database Design
Database DesignDatabase Design
Database Design
 
Gene expression profiling i
Gene expression profiling  iGene expression profiling  i
Gene expression profiling i
 
Design And Purification Of Proteins
Design And Purification Of ProteinsDesign And Purification Of Proteins
Design And Purification Of Proteins
 
Gene expression profiling in breast carcinoma
Gene expression profiling in breast carcinomaGene expression profiling in breast carcinoma
Gene expression profiling in breast carcinoma
 
Importance of database design (1)
Importance of database design (1)Importance of database design (1)
Importance of database design (1)
 
Library management system
Library management systemLibrary management system
Library management system
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
 
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
 
Comparative genomics
Comparative genomicsComparative genomics
Comparative genomics
 
Techniques for protein purification
Techniques for protein purificationTechniques for protein purification
Techniques for protein purification
 
Database design process
Database design processDatabase design process
Database design process
 
Protein purification
Protein purificationProtein purification
Protein purification
 

Similar to Database design

Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
Prof. Dr. K. Adisesha
 
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 vocabularyPaola Rincón
 
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 vocabularyPaola 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 3askme
 
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
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of dataDimara Hakim
 
nithin raj ppt.ppt
nithin raj ppt.pptnithin raj ppt.ppt
nithin raj ppt.ppt
NithinRaj247269
 

Similar to Database design (20)

Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
 
Dbms
DbmsDbms
Dbms
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
 
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
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabulary
 
Pivoting approach-eav-data-dinu-2006
Pivoting approach-eav-data-dinu-2006Pivoting approach-eav-data-dinu-2006
Pivoting approach-eav-data-dinu-2006
 
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
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabulary
 
Data resource management
Data resource managementData resource management
Data resource management
 
E-R diagram & SQL
E-R diagram & SQLE-R diagram & SQL
E-R diagram & SQL
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 
Database Management SystemCase Study
Database Management SystemCase StudyDatabase Management SystemCase Study
Database Management SystemCase Study
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
 
inbound4905258819833329216.pptx
inbound4905258819833329216.pptxinbound4905258819833329216.pptx
inbound4905258819833329216.pptx
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of data
 
DBMS (1).pptx
DBMS (1).pptxDBMS (1).pptx
DBMS (1).pptx
 
nithin raj ppt.ppt
nithin raj ppt.pptnithin raj ppt.ppt
nithin raj ppt.ppt
 
nnr.ppt
nnr.pptnnr.ppt
nnr.ppt
 
T-SQL Overview
T-SQL OverviewT-SQL Overview
T-SQL Overview
 

More from Safwan Hashmi

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
 

More from Safwan Hashmi (16)

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

Recently uploaded

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 

Recently uploaded (20)

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 

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