Hello
I am currently designing a patient/practice management database, this will be to retrospectively track the demographics and patient information for those who visit a particular department.
There are several divisions (roughly 3) in this department that the patient can visit.
Each division has different information that is required to track, Therefore, I have seperate tables for each area. (not sure if this is the correct approach but it seems the correct solution)
The fields were developed by each division and sent to me. The 'DoS' (date the patient came in) was common to all areas, so I put it in its own table (Encounters)
Patients
-PatientID (auto pk)
-fields for patient demographics
PatientPregnancies
-PregnancyID (auto pk)
-PatientID (fk)
-fields for each patient pregnancy
Encounters -date the patient came in - DoS and PatientID are a unique index
-EncounterID (auto pk)
-DoS (date of service)
-PatientID (fk)
Now this is where the problem begins - three tables for the divisions.
GIVisits
-GIVisitID (auto pk)
-EncounterID (fk)
-Data for GI visit
InpatientVisits
-InpatientID (auto pk)
-EncounterID (fk)
-Data for Inpatient visits
OBMedVisits
-ObMedID (auto pk)
-EncounterID (fk)
-Data for OBMed visits
And for each distinct visit in each area, there have to be diagnoses and billing information
Each visit can have one BillingCard, and each BillingCard has many Diagnoses.
VisitBillingCard
-VisitBillingCardID
-BillingCode
-Details
VisitDiagnoses
-VisitDiagnosesID
-VisitBillingCardID (fk)
-DiagnosisCode
I have no idea how to uniquely link each visit table to the one VisitBillngCard table.
Is my approach all wrong to begin with?
I am currently designing a patient/practice management database, this will be to retrospectively track the demographics and patient information for those who visit a particular department.
There are several divisions (roughly 3) in this department that the patient can visit.
Each division has different information that is required to track, Therefore, I have seperate tables for each area. (not sure if this is the correct approach but it seems the correct solution)
The fields were developed by each division and sent to me. The 'DoS' (date the patient came in) was common to all areas, so I put it in its own table (Encounters)
Patients
-PatientID (auto pk)
-fields for patient demographics
PatientPregnancies
-PregnancyID (auto pk)
-PatientID (fk)
-fields for each patient pregnancy
Encounters -date the patient came in - DoS and PatientID are a unique index
-EncounterID (auto pk)
-DoS (date of service)
-PatientID (fk)
Now this is where the problem begins - three tables for the divisions.
GIVisits
-GIVisitID (auto pk)
-EncounterID (fk)
-Data for GI visit
InpatientVisits
-InpatientID (auto pk)
-EncounterID (fk)
-Data for Inpatient visits
OBMedVisits
-ObMedID (auto pk)
-EncounterID (fk)
-Data for OBMed visits
And for each distinct visit in each area, there have to be diagnoses and billing information
Each visit can have one BillingCard, and each BillingCard has many Diagnoses.
VisitBillingCard
-VisitBillingCardID
-BillingCode
-Details
VisitDiagnoses
-VisitDiagnosesID
-VisitBillingCardID (fk)
-DiagnosisCode
I have no idea how to uniquely link each visit table to the one VisitBillngCard table.
Is my approach all wrong to begin with?