The domain object representing a pill regimen. This is the top level entity in this module.
PillRegimen(String externalId, Set<Dosage> dosages, DailyScheduleDetails scheduleDetails)¶
Constructs a pill regimen.
- externalId – the external ID tied to this pill regimen, used for tying patients with the regimen.
- dosages – medicine dosages belonging to this pill regimen
- scheduleDetails – the schedule details for this pill regimen
Returns the number of times a pill reminder was set for the given dosage. This is done using only a calculation based on the schedule for this regimen and the details from the dosage.
- dosage – the dosage to check
the number of time a pill reminder was sent for the dosage
Calculates the total number of times the pill reminder for this regimen will be sent, in case the patient does not provide an adherence response.
Returns: the maximum number of reminders that will be sent for this regimen