bi in healthcare
TRANSCRIPT
Agenda
Importance of data warehouse in hospitals
Multi Valued Dimension
Super type & Sub type
Measure Type Dimension for Sparse Facts
Administrative
Data
Name
Age
Address
Check-in
Checkout
Time
Health
Plan
Bill
Payment
Insurance
Information
Retrieve patient’s all the demographic information
Easy to track bill payments ,regular payer or defaulter
Administrative Data Benefits
Leverage information more effectively, Data is now more
convenient and immediate to access.
Better healthcare services
Best outcomes with impact resource utilization
Many-to-Many dimension
Fact table
Time_key
Patient_key
Insurance_key
Location_key
Diagnosis_key
Treatment_key
Billedtoinsurance
Billedtopatient
Time Dimension
Insurance Dimension
Diagnosis Dimension
Patient Dimension
Location Dimension
Treatment Dimension
Many-to-Many dimension
Time_key Patient_ke
y
Insurance_
Key
Diagnosis_
group_key
Treatment
_key
billedtoins
urance
billedtopati
ent
1 P1 I1 D1 T1 100$ 10$
1 P1 I1 D2 T1 100$ 10$
1 P1 I1 D3 T1 100$ 10$
2 P2 I2 D4 T2 200$ 25$
2 P2 I2 D5 T2 200$ 25$
Problems with multivalued dimension
▪ Query complexity
▪ Usability-double counting
Problems with multivalued
dimension
Helper Table
Diagnosis_Primary_Key
Diagnosis Attribute
Diagnosis_group_key
Diagnosis_key
Weighing_factor
Time_key
Patient_key
Insurance_key
Location_key
Diagnosis_grp_key
Treatment_key
BilledToPatient
BilledToInsurance
Diagnosis
Dimension
Diagnosis Group
Bridge Table
Hospital Invoice
rows Fact table
Tabular Representation
Time_key Patient_ke
y
Insurance_Ke
y
Diagnosis_group_ke
y
Treatment_ke
y
billedtoinsuranc
e
billedtopatient
1/15/16 P1 I1 DG1 T1 100$ 10$
2/15/16 P2 I2 DG2 T2 200$ 25$
Diagnos
is_group
_key
Diagnos
is_Key
Weightage
DG1 D1 1
DG1 D2 2
DG2 D3 1
Diagnosis_Key Description
D1 High Blood pressure
D2 Diabetes
D3 Meningitis
Supertype:
An entity type that has got relationship with one or more subtypes and contains attributes that are common to its subtypes
Supertype and Subtype
Subtype:
Entities that have
unique attributes , but
they will be different
from each other.
Party
Organization Party
subtype
Individual Party
subtype
Individual Party
Organization Party
phone
number,
address,
street
address,
name
Common
attributes
gender, and
marital status
Accumulating snapshot for hospital stay charges
Two physician roles:
Admitting physician
Attending physician.
Treatment Date Key (FK)
Primary Insurance Billing Date Key (FK)
Secondary Insurance Billing Date Key (FK)
Responsible Party Billing Date Key (FK)
Last Primary Insurance Payment Date Key (FK)
Last Secondary Insurance Payment Date Key (FK)
Last Responsible Party Payment Date Key (FK)
Zero Balance Date Key (FK)
Patient Key (FK)
Admitting Physician Key (FK)
Admitting Physician Organization Key (FK)
Attending Physician Key (FK)
Attending Physician Organization Key (FK)
Procedure Key (FK)
Facility Key (FK)
Admitting Diagnosis Group Key (FK)
Discharge Diagnosis Group Key (FK)
Primary Insurance Organization Key (FK)
Secondary Insurance Organization Key (FK)
Responsible Party Key (FK)
Employer Key (FK)
Example:
▪ A heart transplant operation, whole teams of specialists and assistants are assembled.
A multivalued
bridge table
Fact table:
Primary responsible physician
Other
physicians
and medical
staff
Quiz time
▪ All instances of the subtypes must be an instance of the supertype. True or False?
True
False
Measure Type Dimension for Sparse Facts
Lab Test Result Fact
TestID(PK)
PatientID(FK)
OrderDate(FK)
TestDate(FK)
PhsicianKey(FK)
HBG
WBC
RBC
Na
K
Urea
Bilrubin
Cholestrol
Patient
PatientID(PK)
PatientName
Gender
DOB
Contact
Physician
PhysicianKey(PK)
PhysicianName
Specialization
Contact
Date
OrderDate
TestDate
Contd..
Fact_BloodTest
Test
ID
Patient
ID
Order
Date
Test
Date
Physici
canKey
HGB(g/
dL)
WBC RBC N
a
K Urea Bilrubin Albumin Chole
strol
T01 P01 5/8/15 5/9/15 111 14.1 - - - - - - - 3.7
T02 P02 5/8/15 5/8/15 123 13.0 4.68 4.49 - - - - - -
T03 P01 7/8/15 7/8/15 111 - - - - - 8.1 - - -
T04 P03 7/8/15 8/8/15 143 - - - - 4.2 - - - 3.7
T05 P04 8/8/15 8/8/15 210 - - - - - - 4 48 3.7
T06 P05 8/8/15 9/8/15 100 - 4.49 - - - - - - -
T07 P06 9/8/15 9/8/15 123 14.0 4.78 4.68 - - - - - -
mmol/L*10^9/L
Granularity???
Test
ID
Patient
ID
Order
Date
Test
Date
Physici
canKey
HGB(g/
dL)
WBC RBC N
a
K Urea Bilrubin Albumin Chole
strol
T01 P01 5/8/15 5/9/15 111 14.1 - - - - - - - 3.7
T02 P02 5/8/15 5/8/15 123 13.0 4.68 4.49 - - - - - -
T03 P01 7/8/15 7/8/15 111 - - - - - 8.1 - - -
T04 P03 7/8/15 8/8/15 143 - - - - 4.2 - - - 3.7
T05 P04 8/8/15 8/8/15 210 - - - - - - 4 48 3.7
T06 P05 8/8/15 9/8/15 100 - 4.49 - - - - - - -
T07 P06 9/8/15 9/8/15 123 14.0 4.78 4.68 - - - - - -
Observations
▪ one row per event
▪ Denser Facts (Many Rows)
▪ Not Flexible ( Hard Time while adding new measure)
Measurement Type Dimension
Lab Test Result Facts
Order Date Key (FK)
Test Date Key (FK)
Patient Key (FK)
Physican Key (FK)
Lab Test Key (FK)
Lab Test Measurement Type Key (FK)
Observed Test Result Value
Lab Test Measurement Type
Dimension
Lab Test Measurement Type Key (PK)
Lab Test Measurement Type
Description
Lab Test Measurement Type Unit of
Measure
Contd..
Measureme
ntType
Description Unit
1 HGB g/dL
2 WBC *10^9/L
3 RBC *10^9/L
4 Na mmol/L
5 K mmol/L
6 Urea mmol/L
7 Bilrubin mmol/L
8 Albumin mmol/L
9 Cholestrol mmol/L
TestKey Measur
ementT
ype
OrderDa
te
TestDat
e
PtKey PhKey TestRes
ult
T01 1 5/8/15 5/9/15 P01 111 14.1
T01 9 5/8/15 5/9/15 P01 111 3.7
T02 1 5/8/15 5/8/15 P02 123 13.0
T02 2 5/8/15 5/8/15 P02 123 4.68
T02 3 5/8/15 5/8/15 P02 123 4.49
T03 6 7/8/15 7/8/15 P01 111 8.1
Observations
▪ one row per measurement per event
▪ Eliminates Nulls
▪ Flexible
▪ Can add new measurement types simply by adding new rows in the measurement type dimension, not by altering the structure of the fact table.
Granularity??
TestKey Measur
ementT
ype
OrderDa
te
TestDat
e
PtKey PhKey TestRes
ult
T01 1 5/8/15 5/9/15 P01 111 14.1
T01 9 5/8/15 5/9/15 P01 111 3.7
T02 1 5/8/15 5/8/15 P02 123 13.0
T02 2 5/8/15 5/8/15 P02 123 4.68
T02 3 5/8/15 5/8/15 P02 123 4.49
T03 6 7/8/15 7/8/15 P01 111 8.1