The present invention provides a method and a system for controlling the dispensation of medications from a medication dispenser, which includes medication packages containing medications to be taken at predetermined taking times. The method comprises several steps, including providing the medication dispenser with a medication profile of a patient and notifying the medication dispenser of a period of absence of the patient. Thereafter, the medications that should be taken by the patient during the period of absence are determined and the appropriate medications delivered to the patient.