We use cookies to enhance your browsing experience and analyse our traffic. Nothing beyond essential cookies runs until you choose. You can change your mind any time in our Cookie Policy.
TL;DR: Clinical records are now available in Terra API. With one permission on their iPhone, your users can send their lab results, conditions, medications and the rest of their Apple Health Records to your app. Each record reaches your backend exactly as their clinic or hospital wrote it, in FHIR, through the same Terra integration you already use for their wearable and health app data. You can set it all up from the new Clinical records page in the dashboard, and watch your own records arrive before your app ships.
A person with an iPhone can link their clinic or hospital in the Apple Health app, and from then on their medical records download to the phone whenever the health system has something new. With Terra API, that person can now share those records with your app as well, choosing which kinds of record to share in Apple's own Health Records sheet. Your backend then receives their lab results, conditions, medications and six other kinds of record, starting with the whole history the phone holds the first time they share.
Teams already sending Apple Health data through Terra have asked us whether the hospital records people see in the Health app come along too. HealthKit, Apple's framework for health data on iPhone, keeps those records behind a permission of their own, and from today an app built on Terra can ask the person for it.
Which clinical records your app receives from Apple Health
Nine kinds of clinical record come through: lab results, vital signs, conditions, medications, allergies, immunizations, procedures, clinical notes and insurance coverage. When Apple adds a new kind of record in a future version of iOS, Terra stores and delivers that as well, under the name Apple uses for it, and you can filter for it on the day it appears.
The first time a person shares, the Terra SDK sends every clinical record on their phone. Apple Health dates each record by when the phone downloaded it from the hospital's patient portal (the website where patients see their own records), which can be years after the visit itself, so the SDK applies no date cut-off at all. The lab results and prescriptions a person has collected over the years are in your app on the day they first share.
Health Records is supported at more than 9,000 healthcare institutions, see the figures Apple published in June 2025, and your users can share records from the clinics and hospitals across the US that offer it.
Get the latest Terra Research reports and insights every week as soon as they're published.
FHIR, which stands for Fast Healthcare Interoperability Resources, is the standard format that health systems use to exchange medical records, and it is the format the hospital served to the phone in the first place. Clinical records are the one data type that Terra API passes through without normalising it into Terra's own data models. The resource reaches you as the health system wrote it, in FHIR R4 or the older DSTU2 release, with nothing removed but extra whitespace. Decimal places, units, reference ranges, the lab's codes (LOINC, the standard naming system for lab tests) and the formatting of clinical notes are all left alone.
A lab result below the detection limit, written "<2.0", keeps its "<", so nobody further down the line reads it as a measured 2.0. Each record also carries a SHA-256 checksum and its size in bytes.
What you can build with your users' clinical records
Because the records come through the same Terra integration as your users' wearable, health app and lab data, they land in the same backend and belong to the same user, which opens up a few things that used to need a separate project of their own:
Coaching that takes a person's conditions and medications into account from the start, so that the advice for someone managing type 2 diabetes on metformin begins from where they actually are.
Onboarding that skips the intake form, because a person's diagnoses, medications and allergies arrive already filled in.
Care programmes and clinical studies that start from a person's real medical history, shared with their consent.
How clinical records reach your backend: a webhook event and a REST endpoint
Records reach you in two ways, with the same record shape in both, and one parser covers them. Terra sends a unified_api.clinical_record.updated event to your destination whenever new or changed records come in. You can also read a user's records at any time from GET /v2/clinicalRecord, which lets you filter by clinical_type (for example lab_result) or by FHIR resource type, ask only for records received since a given time, and page through the results with a cursor, up to 100 records a page.
Each real-world record keeps one stable record_id, even when the phone downloads it again or the hospital reissues it, and a newer version replaces the one you already hold. If a phone uploads a record that hasn't changed, Terra sends nothing, so every event your server gets is a record that is new or has actually changed.
How consent and privacy work for clinical records
The person stays in charge of what is shared the whole way through. Your app asks with a single call, and Apple shows its own Health Records sheet, which is separate from the one for activity and sleep, where the person turns on each kind of record they are happy to share. The records download from the hospital directly to the phone over an encrypted connection, as Apple describes in its platform security guide.
From the phone, records reach Terra only through the signed upload of the Terra SDK, and each developer's records belong to that developer's own connection with the person, so two different apps that the same person uses never see each other's medical records. There is no local copy for the app to read on the device either: the records go to Terra and on to your backend, where you decide what to store and show.
How to set up clinical records from the Terra dashboard
The new Clinical records page in the Terra dashboard walks you through the setup one step at a time, and ticks each step off as you finish it:
Turn clinical records on for your environment. The page shows you a sample patient's records first, which is a quick way to see what the payloads look like.
Enable Apple Health as a source, which adds it to the connect screen your users see.
In Xcode, tick Clinical Health Records under the HealthKit capability, add the two usage descriptions Apple shows the person to your Info.plist, and call permissions.requestClinicalRecords() from a button in your app.
No iOS app yet? Pair Terra Grip, our own iPhone app, from the same page, share your own records from it, and they show up in the dashboard shortly afterwards.