Changes between Version 2 and Version 3 of Normalization
- Timestamp:
- 09/19/26 15:59:17 (4 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Normalization
v2 v3 32 32 test_id, test_name, test_description, test_cost, 33 33 lab_result_id, lab_result_value, lab_result_date, 34 performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, 34 performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at, 35 35 36 36 prescription_id, medication_name, … … 47 47 referral_id, referral_reason, referral_date, ref_from_doctor_id, ref_to_doctor_id, 48 48 report_id, report_description, report_date, report_doctor_id, 49 bill_id, total_cost, payment_status, payment_date, billing_admin_id 49 bill_id, total_cost, payment_status, payment_date, billing_admin_id, billing_created_at 50 50 } 51 51 }}} … … 131 131 F17 lab_result_id -> lab_result_value, lab_result_date, test_id 132 132 F18 performed_test_id -> pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, 133 pt_test_date, pt_notes 133 pt_test_date, pt_notes, pt_created_at 134 134 }}} 135 135 … … 167 167 168 168 {{{ 169 F24 bill_id -> total_cost, payment_status, payment_date, record_id, billing_admin_id 169 F24 bill_id -> total_cost, payment_status, payment_date, record_id, billing_admin_id, billing_created_at 170 170 }}} 171 171 … … 203 203 These chains matter because whatever gets reached this way (procedure_id, test_id, 204 204 prescription_id, record_id, patient_id, level_id, specialization_id, department_id) 205 does not need to be included in the key separately —it is already recoverable once205 does not need to be included in the key separately as it is already recoverable once 206 206 its determinant is present. 207 207 … … 278 278 279 279 From F18: 280 performed_test_id -> pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes 280 performed_test_id -> pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at 281 281 282 282 From F20: … … 299 299 300 300 From F24: 301 bill_id -> total_cost, payment_status, payment_date, record_id, billing_admin_id 301 bill_id -> total_cost, payment_status, payment_date, record_id, billing_admin_id, billing_created_at 302 302 303 303 From F25 using record_id and symptom_id: … … 437 437 lab_result_id -> lab_result_value, lab_result_date, test_id 438 438 439 performed_test_id-> pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes 439 performed_test_id-> pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at 440 440 441 441 record_id -> patient_id … … 449 449 report_id -> report_description, report_date, record_id, report_doctor_id 450 450 451 bill_id -> total_cost, payment_status, payment_date, record_id, billing_admin_id 451 bill_id -> total_cost, payment_status, payment_date, record_id, billing_admin_id, billing_created_at 452 452 453 453 {record_id, symptom_id} -> record_symptom_severity … … 480 480 LabTests(test_id, test_name, test_description, test_cost) 481 481 LabResults(lab_result_id, lab_result_value, lab_result_date, test_id) 482 PerformedLabTests(performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes )482 PerformedLabTests(performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at) 483 483 MedicalRecords(record_id, patient_id) 484 484 Allergies(allergy_id, allergy_name, allergy_severity) … … 486 486 Referrals(referral_id, referral_reason, referral_date, record_id, ref_from_doctor_id, ref_to_doctor_id) 487 487 MedicalReports(report_id, report_description, report_date, record_id, report_doctor_id) 488 Billing(bill_id, total_cost, payment_status, payment_date, record_id, billing_admin_id )488 Billing(bill_id, total_cost, payment_status, payment_date, record_id, billing_admin_id, billing_created_at) 489 489 MedicalRecordSymptoms(record_id, symptom_id, record_symptom_severity) 490 490 MedicalRecordAllergies(record_id, allergy_id, record_allergy_reaction, record_allergy_severity) … … 640 640 Dependency preservation: F17 preserved entirely in `LabResults`. 641 641 642 '''`PerformedLabTests`(performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes )'''643 644 R18 = R17 - {pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes }642 '''`PerformedLabTests`(performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at)''' 643 644 R18 = R17 - {pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at} 645 645 646 646 Lossless join: Shared column `performed_test_id`. `performed_test_id -> PerformedLabTests` holds (F18). … … 688 688 Dependency preservation: F23 preserved entirely in `MedicalReports`. 689 689 690 '''`Billing`(bill_id, total_cost, payment_status, payment_date, record_id, billing_admin_id )'''691 692 R24 = R23 - {total_cost, payment_status, payment_date, billing_admin_id }690 '''`Billing`(bill_id, total_cost, payment_status, payment_date, record_id, billing_admin_id, billing_created_at)''' 691 692 R24 = R23 - {total_cost, payment_status, payment_date, billing_admin_id, billing_created_at} 693 693 694 694 Lossless join: Shared column `bill_id`. `bill_id -> Billing` holds (F24). … … 950 950 * {{{LabTests(test_id, test_name, test_description, test_cost)}}} 951 951 * {{{LabResults(lab_result_id, lab_result_value, lab_result_date, test_id)}}} 952 * {{{PerformedLabTests(performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes )}}}952 * {{{PerformedLabTests(performed_test_id, pt_test_id, pt_patient_id, pt_doctor_id, pt_technician_id, pt_test_date, pt_notes, pt_created_at)}}} 953 953 * {{{MedicalRecords(record_id, patient_id)}}} 954 954 * {{{Referrals(referral_id, referral_reason, referral_date, record_id, ref_from_doctor_id, ref_to_doctor_id)}}} 955 955 * {{{MedicalReports(report_id, report_description, report_date, record_id, report_doctor_id)}}} 956 * {{{Billing(bill_id, total_cost, payment_status, payment_date, record_id, billing_admin_id )}}}956 * {{{Billing(bill_id, total_cost, payment_status, payment_date, record_id, billing_admin_id, billing_created_at)}}} 957 957 * {{{Prescriptions(prescription_id, medication_name)}}} 958 958 * {{{PrescriptionRestrictions(restriction_id, restriction_description, prescription_id)}}}
