Changes between Version 10 and Version 11 of ERModel
- Timestamp:
- 09/18/26 15:14:47 (5 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ERModel
v10 v11 581 581 each doctor belongs to one department, a department employs many doctors. 582 582 583 === identifies (Users ↔ Patients / Doctors / Admin / Lab_Technician, 1:1) === 584 a user account links to exactly one underlying person record, depending on role. 583 === identifies_patient (Users ↔ Patients, 1:1) === 584 a Users row optionally links to one Patients row, when the account belongs to a patient. 585 586 === identifies_doctor (Users ↔ Doctors, 1:1) === 587 a Users row optionally links to one Doctors row, when the account belongs to a doctor. 588 589 === identifies_admin (Users ↔ Admin, 1:1) === 590 a Users row optionally links to one Admin row, when the account belongs to an administrator. 591 592 === identifies_lab_technician (Users ↔ Lab_Technician, 1:1) === 593 a Users row optionally links to one Lab_Technician row, when the account belongs to a lab technician. 594 595 Constraint for identifies relations: Exactly one of the four relationships above must be populated for a given Users row, depending on its role. 585 596 586 597 === has_allergies (Patients ↔ Allergies, M:N via Patient_Allergies) === … … 612 623 613 624 === requires (Diagnosis ↔ Procedures, M:N via Diagnosis_Procedures) === 614 a diagnosis can require multiple procedures, and the same procedure can be linked to multiple diagnoses ,in addition to the direct diagnosis_id FK each procedure row already carries.625 a diagnosis can require multiple procedures, and the same procedure can be linked to multiple diagnoses, in addition to the direct 1:N relationship each procedure already has with its primary diagnosis. 615 626 616 627 === produces (Procedures ↔ Procedure_Results, 1:N) === … … 627 638 628 639 === tested_as (Lab_Tests ↔ Performed_Lab_Tests, 1:N) === 629 a catalog test can be performed many times ;each performed test refers to one catalog test.640 a catalog test can be performed many times, each performed test refers to one catalog test. 630 641 631 642 === takes_test (Patients ↔ Performed_Lab_Tests, 1:N) === … … 700 711 === generates_bill (Medical_Records ↔ Billing, 1:N) === 701 712 a record can generate multiple bills, each bill is tied to one record. 702
