Hello Everyone,
I am working on a project to create a cube for healthcare.
I have 3 fact tables.
1. Main Fact table : This is at the granularity of the visit-providerrole.
2. Diagnosis Fact Table: This is at the granularity of visit-diagnosiscode
Above fact table has multiple diagnosis for each visit that the reason i am splitting into diagnosis fact table, to handle the table efficiently instead of dumping it in one Main Fact table. This was as per kimball to put it seperate so that it will not blow up the main fact table.
3. Similarly Procedure Fact table : This is at the granularity of Visit-procedurecode
I have total of 5 dimensions
Date,Patient and Provider for Main Fact table
Diagnosis Dimension for Diagnosis fact table
Procedure Dimension for Procedure Fact Table
I have attached the diagram of my cube in the image.
i am also loading sample data to clearly understand underlying data.
Now, i am having issue with the 3 fact tables communication.
Say i want to traverse from DiagFact table to main fact table to get patientid and his demographics i am unable to do it. i know i am doing something wrong somewhere but unable to move forward.(This is when i browse the cube)
Same issue with Procedure Fact too.
Do i need to create FK relationship between MainFact tabel - DiagnosisFactTabel and MainFact Table - ProcedureFact Table,
which i did in the cube by dragging and dropping the common column visit in each fact table to Main fact table as a FK relationship.
Moreover, is it possible to get patient info or do i need to have patient id in diagnosis fact table and tie diagnosis fact table to patient dimension.
Please help in this regard.