Systems, devices, and techniques are disclosed for administering and tracking medicine to patients and providing health management capabilities for patients and caregivers. In some aspects, a method includes receiving one or more analyte values associated with a health condition of the patient user; receiving contextual data associated with the patient user obtained by the mobile computing device, where the obtained contextual data includes information associated with a meal; determining a medicine metric value associated with an amount of medicine active in the body of the patient user; autonomously calculating a dose of the medicine without input from the user based at least on the one or more analyte values, the medicine metric value, and the information associated with a meal; and continuously displaying the calculated dose of the medicine.