---
title: scheduleType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkmedicationdoseevent/scheduletype-swift.property
---

# scheduleType

The scheduling context for this logged dose event.

## Declaration

```swift
var scheduleType: HKMedicationDoseEvent.ScheduleType { get }
```

## Discussion

Discussion The system sets this to HKMedicationDoseEvent.ScheduleType.asNeeded when the person logs a dose without a schedule and HKMedicationDoseEvent.ScheduleType.schedule when a person logs a dose from a scheduled medication reminder.
