SlideShare a Scribd company logo
1 of 4
THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM
Hospital Management System
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
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
THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM
Outpatient Table:
Fields Data Type Relationships
pid Varchar(5) Primary Key
date Date/Time Not Null
labno Varchar(5) Foreign Key
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.
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.
THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM
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 relationshipis 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 and information attached to an entity.
Symbols Their Respective Meaning
Symbols Meaning
Entity
Relationship
Attribute
Key Attribute
Cardinality Ratio N: 1 for E1: E2 in R
E1 R E2
THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM
patient
weight
doctorid
gender
address
phone
no Consults
doctor
Doctorid
Doctor name
dept
Checks
labReport
labno
Pid
weight
doctorid
date
category
Decides
inpatient outpatient
labno
room no
pid
advance
date of
admission
date of
discharge
pid
labno
date
Admitted to
to
room
status
room no
room type
issued_to
bill
bill no
pid
labcharge
patienttype
bill
doctor chargeadvance
health
card
medicine charge
room charge
operation charge
no of days
nursing charge
disease
amount
pid
name
age

More Related Content

What's hot

Online doctor appointment
Online doctor appointmentOnline doctor appointment
Online doctor appointmentAmna Nawazish
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management Systemkataria Arvind
 
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 JavaIOSR Journals
 
Hospital management final report presentation
Hospital management final report presentationHospital management final report presentation
Hospital management final report presentationMd Abul Kalam Azad
 
Software Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management SystemSoftware Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management SystemUttam Singh Chaudhary
 
Hotel management system project
Hotel management system projectHotel management system project
Hotel management system projectMohammed Al Babeli
 
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 systemOvercomer Michael
 
Online doctor appointment and emr system
Online doctor appointment and emr systemOnline doctor appointment and emr system
Online doctor appointment and emr systemAnjelika Parasar
 
Full report on blood bank management system
Full report on  blood bank management systemFull report on  blood bank management system
Full report on blood bank management systemJawhar Ali
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Harshil Darji
 
Blood Bank Management System
Blood Bank Management SystemBlood Bank Management System
Blood Bank Management SystemChirag N Jain
 
Synopsis of hms(Hospital Management System)
Synopsis of hms(Hospital Management System)Synopsis of hms(Hospital Management System)
Synopsis of hms(Hospital Management System)Farooq Stanikzai
 
Hospital Management System SRS
Hospital Management System SRSHospital Management System SRS
Hospital Management System SRSChandresh Prasad
 
Hospital management synopsis
Hospital management synopsisHospital management synopsis
Hospital management synopsisYogeshDhamke2
 

What's hot (20)

Hospital database management system project report
Hospital database management system project reportHospital database management system project report
Hospital database management system project report
 
Online doctor appointment
Online doctor appointmentOnline doctor appointment
Online doctor appointment
 
HOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project reportHOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project report
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management System
 
Hospital management system
Hospital management systemHospital management system
Hospital management 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
 
Java presentation
Java presentationJava presentation
Java presentation
 
Hospital management final report presentation
Hospital management final report presentationHospital management final report presentation
Hospital management final report presentation
 
MEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEMMEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEM
 
Software Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management SystemSoftware Requirement Specification Of Hotel Management System
Software Requirement Specification Of Hotel Management System
 
Hotel management system project
Hotel management system projectHotel management system project
Hotel management system project
 
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
 
Online doctor appointment and emr system
Online doctor appointment and emr systemOnline doctor appointment and emr system
Online doctor appointment and emr system
 
Full report on blood bank management system
Full report on  blood bank management systemFull report on  blood bank management system
Full report on blood bank management system
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)
 
Blood Bank Management System
Blood Bank Management SystemBlood Bank Management System
Blood Bank Management System
 
Synopsis of hms(Hospital Management System)
Synopsis of hms(Hospital Management System)Synopsis of hms(Hospital Management System)
Synopsis of hms(Hospital Management System)
 
Hospital Management System SRS
Hospital Management System SRSHospital Management System SRS
Hospital Management System SRS
 
Hospital management synopsis
Hospital management synopsisHospital management synopsis
Hospital management synopsis
 
Use case of hospital managment system
Use case of hospital managment systemUse case of hospital managment system
Use case of hospital managment system
 

Similar to Hospital Management system Database design

Administrator table
Administrator tableAdministrator table
Administrator tableRaoof Smko
 
databases3b
databases3bdatabases3b
databases3bc.west
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3askme
 
Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling
Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modelingBeit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling
Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modelingbabak danyal
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
 
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.docxnettletondevon
 
Hospital managemnt uml
Hospital managemnt umlHospital managemnt uml
Hospital managemnt umlPawan Kumar
 
Database Management System
Database Management System Database Management System
Database Management System FellowBuddy.com
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxMwangaPrayGod
 
Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation Abhishek Patel
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sqlSumedhMasal
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sqlSumedhMasal
 
Safti net overview ahrq stakeholders mtg oct 2011
Safti net overview ahrq stakeholders mtg oct 2011Safti net overview ahrq stakeholders mtg oct 2011
Safti net overview ahrq stakeholders mtg oct 2011Marion Sills
 
databases2
databases2databases2
databases2c.west
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Typesaakanksha s
 
IoT Lecture MaterialLecture Material.pdf
IoT Lecture MaterialLecture Material.pdfIoT Lecture MaterialLecture Material.pdf
IoT Lecture MaterialLecture Material.pdfsaimawarsi
 

Similar to Hospital Management system Database design (20)

Administrator table
Administrator tableAdministrator table
Administrator table
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
databases3b
databases3bdatabases3b
databases3b
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 
Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling
Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modelingBeit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling
Beit 381 se lec 19 - 18 - 12 apr24 - eraa and data modeling
 
inbound4905258819833329216.pptx
inbound4905258819833329216.pptxinbound4905258819833329216.pptx
inbound4905258819833329216.pptx
 
Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
Database schema
Database schemaDatabase schema
Database schema
 
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
 
Hospital managemnt uml
Hospital managemnt umlHospital managemnt uml
Hospital managemnt uml
 
Database Management System
Database Management System Database Management System
Database Management System
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
 
Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation Online Fitness Gym Project Presentation
Online Fitness Gym Project Presentation
 
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
 
Safti net overview ahrq stakeholders mtg oct 2011
Safti net overview ahrq stakeholders mtg oct 2011Safti net overview ahrq stakeholders mtg oct 2011
Safti net overview ahrq stakeholders mtg oct 2011
 
databases2
databases2databases2
databases2
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
 
IoT Lecture MaterialLecture Material.pdf
IoT Lecture MaterialLecture Material.pdfIoT Lecture MaterialLecture Material.pdf
IoT Lecture MaterialLecture Material.pdf
 

More from Elias Dinsa

planes and distances
planes and distancesplanes and distances
planes and distancesElias Dinsa
 
the cross product of vectors
the cross product of vectorsthe cross product of vectors
the cross product of vectorsElias Dinsa
 
dot product of vectors
dot product of vectorsdot product of vectors
dot product of vectorsElias Dinsa
 
diff. of functions
diff. of functionsdiff. of functions
diff. of functionsElias Dinsa
 
limits and continuity
limits and continuitylimits and continuity
limits and continuityElias Dinsa
 
eliodinsulenapier
eliodinsulenapiereliodinsulenapier
eliodinsulenapierElias Dinsa
 

More from Elias Dinsa (8)

eliodinsule
eliodinsuleeliodinsule
eliodinsule
 
planes and distances
planes and distancesplanes and distances
planes and distances
 
the cross product of vectors
the cross product of vectorsthe cross product of vectors
the cross product of vectors
 
dot product of vectors
dot product of vectorsdot product of vectors
dot product of vectors
 
diff. of functions
diff. of functionsdiff. of functions
diff. of functions
 
Limits3a
Limits3aLimits3a
Limits3a
 
limits and continuity
limits and continuitylimits and continuity
limits and continuity
 
eliodinsulenapier
eliodinsulenapiereliodinsulenapier
eliodinsulenapier
 

Hospital Management system Database design

  • 1. THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM Hospital Management System 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 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
  • 2. THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM Outpatient Table: Fields Data Type Relationships pid Varchar(5) Primary Key date Date/Time Not Null labno Varchar(5) Foreign Key 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. 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.
  • 3. THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM 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 relationshipis 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 and information attached to an entity. Symbols Their Respective Meaning Symbols Meaning Entity Relationship Attribute Key Attribute Cardinality Ratio N: 1 for E1: E2 in R E1 R E2
  • 4. THE ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM patient weight doctorid gender address phone no Consults doctor Doctorid Doctor name dept Checks labReport labno Pid weight doctorid date category Decides inpatient outpatient labno room no pid advance date of admission date of discharge pid labno date Admitted to to room status room no room type issued_to bill bill no pid labcharge patienttype bill doctor chargeadvance health card medicine charge room charge operation charge no of days nursing charge disease amount pid name age