A hospital management system, HMS, requires registering patients as In-Patient and Out-Patient. It is also required to delete the In-Patient detail when they are discharged. There must be a provision to display the detail of the In-Patients and Out-Patients.
In-Patient detail includes patient id, patient name, date of birth, date of admission, date of discharge and the doctor name to whom the patient is attached.
Out-patient detail includes patient id, patient name, date of birth and date of next visit.