# Medications in Apple Health Are Read-Only for Apps: What That Means for Your Log

By The Optimized Team (Product). Published: 2026-11-27T11:47:09.623359+00:00. Updated: 2026-11-27T11:47:10.122009+00:00.
Canonical: https://optimizedtracker.com/blog/apple-health-medication-data-read-only-for-apps

An Apple engineer says medication data is read-only in HealthKit. That shapes what an app can see in Health and how a separate log should sit beside it.

Apps cannot write medication data into Apple Health. They can only read it, and only for the medications you choose to share. An Apple engineer put it plainly on the developer forums, and that one fact decides how a separate log should relate to Health. This article covers record-keeping only. It says nothing about what anyone should take.

## What read-only means here

In October 2025, a developer asked Apple whether an app can insert medication data into HealthKit, the way apps add steps or weight. The reply came from an engineer in Apple's developer relations team: ["No, that isn't allowed. Medication data is read-only in HealthKit."](https://developer.apple.com/forums/thread/803954)

Two cautions. First, this is a short forum answer, not a reference page. It does not describe the permission flow or list every type affected. Second, the developer's code asked to write medication dose events, and that is the request the answer rules out. Apple's own WWDC25 session on the medications API shows an app saving symptom samples such as headache and nausea, but it shows medications and doses only being read.

For your log, the meaning is simple. No outside app can add, edit or backfill a medication entry in Health. An entry exists in Health because someone logged it in Health. If you also keep a separate log, the two records are written by different hands and never merge on their own. The same logic applies to other protected types: [HealthKit samples are immutable](/blog/healthkit-samples-immutable-which-entries-an-app-can-change), so an app that did write an entry cannot quietly rewrite it later either.

## What an app can see

Reading is allowed, with your permission. [Apple's WWDC25 session on the HealthKit medications API](https://developer.apple.com/videos/play/wwdc2025/321/) describes two pieces:

- **Medications** are objects, represented by `HKUserAnnotatedMedication`. An app fetches them with a dedicated query, and can filter by whether a medication is archived or has a schedule.
- **Dose events** are samples, represented by `HKMedicationDoseEvent`. They record the doses logged for a medication, and an app reads them with the ordinary sample, anchored object and observer queries, filtering by medication and by log status.

Permission works per medication, not per category. The app asks, and Health shows a list of the medications you have added. You toggle the ones you want to share, then tap Allow. In the session's words, "my app will only see medications for which someone has granted authorization." Authorizing a medication also grants access to its doses, so there is no second prompt for doses. When you add a new medication later, Health shows a switch where you can choose whether to share it with that app.

Two consequences follow for anyone reading their own data back out of an app:

1. A gap in an app's medication view may only mean the medication was never shared with that app. It does not say the medication was missing from Health.
2. Archived medications are kept apart from active ones in Health. Whether an app sees them depends on how it queries and on what you shared.

If you have not looked at your sharing choices in a while, [reviewing which apps can read and write your Health data](/blog/review-apple-health-app-permissions-read-write) takes a few minutes.

## Where Health's own record comes from

Health's medication record is built inside Health. [Apple's guide to tracking medications](https://support.apple.com/guide/iphone/track-your-medications-iph811670c81/ios) explains that you add a medication, set a schedule if it has one, and log each dose as Taken or Skipped. As-needed medications are logged with Taken when they are used. On supported models, Siri can log scheduled medications too. Reminders can follow up if nothing is logged 30 minutes after the scheduled time.

The detail that matters for record-keeping is what the record contains. Per the WWDC25 session, a dose event is saved for every scheduled dose. A skipped dose is stored with a skipped status and a quantity of zero. A reminder that was snoozed or ignored also produces an event with a matching status. So a medication's history in Health holds statuses as well as times: taken, skipped, and the in-between cases.

Health also offers two ways to move the record out. You can share your list, or specific medications, with another person through Health's sharing settings, and you can export your current medications as a PDF. Neither one hands your history to an app for editing.

## Two records, two sets of timestamps

Health holds one record of medication events, and it is read-only for apps. A separate log holds another, written by you in your own words and on your own schedule. They describe the same days, and they will not always match.

A few ordinary reasons they drift apart:

- You logged a dose in Health when the reminder fired, and wrote the same entry in your own log that evening.
- Health shows a skipped status, while your note says you were away and the reminder never reached you.
- A medication was shared with an app after the fact, so the app's view begins later than Health's.

None of this is a fault. That is just what two sources look like. The useful habit is to label them. Note which record each entry came from, and [record when you wrote it](/blog/entry-written-time-vs-event-time-in-a-log), not only when the event happened. When the two disagree, write down the gap instead of editing one record to match the other. The reasons are the ones covered in [why two records of the same doses disagree](/blog/self-report-vs-electronic-monitor-why-records-disagree): each source has its own blind spots, and a mismatch is information about the sources, not a verdict on either.

Read-only access also protects you here. Because no app can overwrite Health's medication entries, whatever Health shows is what was logged in Health. Your own log can then play a different role: context. Why a reminder was missed, what the entry refers to, and which entries you backfilled later all belong in a record you control.

## Conclusion

Medication data in Health is read-only for apps, so Health's record stays Health's. A separate log stays its own, and OptimizedTracker keeps entries in that second role: your words, your timestamps, labeled by source. Think of the two as neighbors, not copies, and note where they differ. Nothing here is a reason to change what anyone takes. This site only covers the record.
