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 system includes an injection pen device in communication with a mobile communication device having a software application to determine a recommended dose based on prior dose data, analyte data, and nutrient data and to generate a report illustrative of a relationship between the medicine data, the health data, and the contextual data.