A medical facility needs a system that keeps a record of each patient. Each record contains an integer identification of the patient and strings for date of the visit, the reason of the visit, and the treatment prescribed. The system needs to provide three operations:
- Search for a patient at a specific date and return the record of this visit showing the reason of visit and the treatment if found.
- Find the total number of visits a specific patient made.
- Add a new record to the system specifying: the patient id, date of visit, reason of visit, and the treatment.