Design a Medication class which includes when to begin taking the medication, when to end, proper dosage, and frequency.
Write a function to generate a schedule of when a patient needs to take their medication.
How would you adjust your program to allow for medication which can be taken as needed. Use the Calendar API .