HKMedicationDoseEvent.ScheduleType.asNeeded The person logged this dose event ad-hoc, outside of any scheduled reminder. Declarationcase asNeeded