A patient comes into a medical laboratory, the patient is either referred by Doctor, or from HMO or he/she just walk in(self). Both Doctor and HMO has information specific to them like doctor may have(doctor name, hospital, phone no etc), hmo may have (hmo name, hmo address etc). so the user will select from dropdown for (Doctor, HMO, Self). Two things needed,
1. how many table(s) will i create and
2. their relationshiop
What I have tried:
I created referraltype table(refid, ref name, status)
i also create Doctor table(Doctor ID, Doctor name, Doctor Phoneno, Hospital), HMO table (HMO name, HMO address, patient HMO ID, patient unit etc)