Question: Design and create a ERD diagram for a database for Doctors Office One patient can see many doctors in the same office on the same
Design and create a ERD diagram for a database for Doctors Office
- One patient can see many doctors in the same office on the same day.
- One doctor can also see many patients. On the same day.
- If one doctor sees the same patient multiple times in one day, then its only recorded once in the database.
- For each patient we are recording primary and secondary phone numbers.
- A doctor can also be a patient.
- A doctor cannot be his/her own patient.
- Each patient will get 0 to 10 prescriptions(medicine).
- Each patient can be given 0-5 tests (medical test).
- A patient cannot be given a new prescription, test without first visiting the doctor.
- Make sure that the Doctor ID is first 2 letter of his first name followed by number. Eg. If the Doctors name is Ron Gates, then his DoctorID can be RO3283.
- Patient ID is a system generated number.
- Data retrieval speed is a priority. Use techniques to make it faster.
The list of all the attributes are -
| DoctorOffice |
| Patient Id |
| Name |
| Patient Address (ex of address 1234, street, city, state, Zip) |
| Patient primary phone number |
| Patient secondary number |
| Patient date of birth |
| Doctor Name |
| Visit date |
| Doctor phone number |
| Doctor Specialty |
| Prescription 1, Prescription 2 .. Prescription 10 |
| Test 1, Test 2 .. Test 10 |
| Doctor note ( 300 char length) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
