In: Computer Science
Below is the ER diagram of the given entities. The business rules goes as follows-
A Patient make many appointment to the doctor and a doctor accepts appointment with many patients. Each appointment refers to only one patient.
When the Patient visit doctor, the visit yield diagnosis and when appropriate Treatment is carried out by the doctor.
Each treatment creates a Bill and patient is billed by one doctor .
Each bill must be paid, however it may be paid in installment.
Patient may pay bill directly or by means of an Insurance.