SlideShare uma empresa Scribd logo
1 de 7
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

Mais conteúdo relacionado

Mais procurados

Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sqlSumedhMasal
 
Hospital management-system
Hospital management-systemHospital management-system
Hospital management-systemsam143143
 
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 engineeringIftikhar Ahmad
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management Systemidowume
 
Hospital management system
Hospital management systemHospital management system
Hospital management systemPawan Ghewande
 
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
 
Hostpital management system(srs)
Hostpital management system(srs)Hostpital management system(srs)
Hostpital management system(srs)maamir farooq
 
Hospital Management System-out patient Detail
Hospital Management System-out patient DetailHospital Management System-out patient Detail
Hospital Management System-out patient DetailYogiji Creations
 
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
 
Hotel management-system-hms
Hotel management-system-hmsHotel management-system-hms
Hotel management-system-hmsMiran Hussen
 
ONLINE BLOOD BANKING SYSTEM
ONLINE BLOOD BANKING SYSTEMONLINE BLOOD BANKING SYSTEM
ONLINE BLOOD BANKING SYSTEMAkansha Soni
 
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
 
clinic database and software management system
clinic database and software management systemclinic database and software management system
clinic database and software management systemMujahed Ahmed
 
E-R Diagram of College Management Systems
E-R Diagram of College Management SystemsE-R Diagram of College Management Systems
E-R Diagram of College Management SystemsOmprakash Chauhan
 
Srs hospital management
Srs hospital managementSrs hospital management
Srs hospital managementmaamir farooq
 
"Hospital Management"
"Hospital Management""Hospital Management"
"Hospital Management"vivek kct
 

Mais procurados (20)

Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sql
 
Hospital management-system
Hospital management-systemHospital management-system
Hospital management-system
 
HOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project reportHOSPITAL MANAGEMENT SYSTEM project report
HOSPITAL MANAGEMENT SYSTEM project report
 
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
 
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
Hospital management systemHospital management system
Hospital 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)
 
Hostpital management system(srs)
Hostpital management system(srs)Hostpital management system(srs)
Hostpital management system(srs)
 
Hospital Management System-out patient Detail
Hospital Management System-out patient DetailHospital Management System-out patient Detail
Hospital Management System-out patient Detail
 
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
 
Hotel management-system-hms
Hotel management-system-hmsHotel management-system-hms
Hotel management-system-hms
 
ONLINE BLOOD BANKING SYSTEM
ONLINE BLOOD BANKING SYSTEMONLINE BLOOD BANKING SYSTEM
ONLINE BLOOD BANKING 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)
 
clinic database and software management system
clinic database and software management systemclinic database and software management system
clinic database and software management system
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
E-R Diagram of College Management Systems
E-R Diagram of College Management SystemsE-R Diagram of College Management Systems
E-R Diagram of College Management Systems
 
Srs hospital management
Srs hospital managementSrs hospital management
Srs hospital management
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
 
"Hospital Management"
"Hospital Management""Hospital Management"
"Hospital Management"
 

Destaque

Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management SystemPranil Dukare
 
Hospital management system
Hospital management systemHospital management system
Hospital management systemMehul Ranavasiya
 
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
 
Database Management System report
Database Management System reportDatabase Management System report
Database Management System reportNatasha Maqbool
 
Design And Purification Of Proteins
Design And Purification Of ProteinsDesign And Purification Of Proteins
Design And Purification Of Proteinssol777
 
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
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Processmussawir20
 
Comparative genomics
Comparative genomicsComparative genomics
Comparative genomicshemantbreeder
 
Database design process
Database design processDatabase design process
Database design processTayyab Hameed
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 

Destaque (20)

Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
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
 
Database Management System report
Database Management System reportDatabase Management System report
Database Management System report
 
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
 
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
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 

Semelhante a Database design

online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system designRohit Jawale
 
Hospital database management_system_sql
Hospital database management_system_sqlHospital database management_system_sql
Hospital database management_system_sqlSumedhMasal
 
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
 
Applied systems 1 vocabulary
Applied systems 1 vocabularyApplied systems 1 vocabulary
Applied systems 1 vocabularyPaola Rincón
 
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.docxbudabrooks46239
 
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 managementNirajan Silwal
 
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 StudyOllieShoresna
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESsuthi
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of dataDimara Hakim
 

Semelhante a Database design (20)

Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
 
Dbms
DbmsDbms
Dbms
 
online blood bank system design
online blood bank system designonline blood bank system design
online blood bank system design
 
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
 

Mais de Safwan Hashmi

Mais de 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
 

Último

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Último (20)

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

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