CSC 307 Assignment
CSC 307 Assignment
1. Patient:
2. Office Visit:
3. Prescription:
4. Bill:
Bill ID (PK): Unique identifier for each bill, critical for tracking
financial records.
Visit ID (FK): Associates the bill with the visit it covers.
Total Amount: Specifies the total charges for the visit, including
consultation, tests, and procedures.
Billing Date: The date the bill was generated.
Payment Status: Tracks whether the bill is paid, unpaid, or partially
paid.
5. Payment:
6. Doctor:
Choice of Relationships
1. Patient ↔ Office Visit (1-to-Many):
A patient can have multiple visits, but each visit belongs to only one
patient.
This relationship is necessary for tracking all visits made by a patient for
a complete medical history.
This relationship ensures that all medications are tied to the specific
reason for the visit.
3. Office Visit ↔ Bill (1-to-1):
Each office visit generates one bill, and each bill corresponds to one
specific visit.
A doctor can oversee multiple visits, but each visit is managed by only
one doctor.