How participants share an export
- Open HealthSave on your iPhone and grant access to the Apple Health metrics the study requests.
- Open Export. Choose the date range, metrics, time zone and CSV or JSON format specified by the study. Export the file and save it to Files using the iPhone share sheet.
- Open the study’s upload link, choose the file you saved and submit it to the study’s own server. Use the participant code and file naming instructions your study provides.
Pin and cite the app version
Before enrolment, choose an app version and check a sample export against your import script. On study-managed iPhones, keep the tested version installed during collection. Ask participants to record the version shown in HealthSave Settings with each export so you can flag any changes.
In your methods, cite HealthSave for iPhone, the version used, the export format, the date range, the selected metrics and the time zone setting.
CSV and JSON data dictionary
This describes the standard iPhone app export. CSV uses one row per exported record. JSON contains an array of record objects. Both can include metrics such as steps, heart rate and sleep, depending on what the participant selects and authorizes. The app also exports PDF reports.
| CSV column | JSON key | Meaning |
|---|---|---|
Date | date | Record date and time in ISO 8601, with a UTC offset or Z. |
Metric | metric | Name of the exported metric. |
Value | value | Numeric value. For a medication event, 1 means taken and 0 means another recorded status. |
Unit | unit | Unit of the value. For medication events this is dose. |
Source | source | Name of the data source reported by Apple Health. HealthSave writes three values itself: the combined daily total of a metric that adds up over the day, such as steps, says Total (deduplicated); each night’s sleep_total row says HealthKit (deduplicated); workout rows add the workout type in brackets after the source, for example (Running). |
Date (YYYY-MM-DD) | — | Calendar day from the timestamp. |
Time (HH:MM:SS) | — | Time of day from the timestamp. |
Time Zone | — | UTC offset for the displayed day and time. |
Medication fields
The medication columns are blank for other records. JSON includes medication keys only when their values are available.
| CSV column | JSON key | Meaning |
|---|---|---|
Medication Name | medication_name | Medication name. |
Medication Status | medication_status | Status of the logged event. |
Dose Quantity | dose_quantity | Amount logged for the event, when available. |
Scheduled Dose Quantity | scheduled_dose_quantity | Amount scheduled for the event, when available. |
Medication Unit | medication_unit | Unit for the logged or scheduled amount. |
Scheduled Date | scheduled_date | Scheduled date and time, when available. |
Medication Concept ID | medication_concept_id | Medication concept identifier, when available. |
| — | medication_metric | Metric identifier for the medication series. |
Contact
Tell us which metrics and date ranges your study needs. Please send questions to the support address and send participant files through your study’s own upload portal.