Building on a medical records retrieval API: how it fits into your product
How a medical records retrieval API fits into a legal, claims or clinical trial product, from the patient link and the providers you already know to records delivered as FHIR and as the original documents.
By Prabha Dublish, CEO
If your product runs on patient records, such as a legal case platform, a claims system or a clinical trial workflow, the hard part usually isn't reading a PDF. It's knowing when the records are ready, from which provider, and for which of your cases. A medical records retrieval API should answer those questions for you.
This guide walks through how Hubble's API fits into your product, from starting a request to getting records back.
The flow in four steps
- Start a request. Your system creates a request for a patient and gets back a patient link. You can tag it with your own case or patient id, and fill in what you already know.
- The patient verifies and authorizes. You send the link through any channel you already use: your app, email, text or a QR code. The patient verifies their identity, picks the providers they've been seen by, and signs one authorization. This is patient-mediated access, built on the HIPAA right of access, so there's no contract with each provider.
- Hubble retrieves. Records come back from each provider on its own timeline. Electronic sources are fast. Offices Hubble reaches by fax and phone take longer.
- You're notified, then you read. Hubble tells your system as records come back from each provider, and you pull them through one API.
Pass in the providers you already know
Legal and claims teams often know which providers a patient has seen before the patient does. You can pass those providers in when you start a request, along with your own id for each one, so records that come back map straight to the right row in your system.
The patient still sees the full list and can add anyone you missed, so you get both what you knew and what they remember.
Use an authorization you already have
Some teams already hold a HIPAA authorization the patient signed for them. You can attach that signed authorization to a request, and Hubble requests records from the facilities it covers, with no extra step for the patient. This is available on request, after Hubble reviews your authorization template.
If you don't have one, the patient signs Hubble's one-page authorization in the same flow, and it covers every provider they choose.
Notified when records arrive
Because providers respond at different speeds, checking every open request for days doesn't scale. Hubble notifies your system as records come back from each provider, so your app can act on them right away: update the case, alert the team, or start a review.
What comes back
Records come back two ways, so you can use them however your product needs:
- FHIR. Structured, machine-readable data for your own systems, so you can pull out diagnoses, medications, visits and more without parsing documents.
- The raw records. The original documents as PDFs, including one combined PDF per provider when you need a single file to send on or add to a case file.
Getting started
You can build the whole flow in the sandbox with test data. If you're still comparing approaches, our guide on how to choose a medical records retrieval vendor covers the questions worth asking. For how we protect patient data, see security.
Frequently asked questions
How does a medical records retrieval API work?
Your system starts a request and gets a patient link. The patient verifies their identity and authorizes the request. Hubble retrieves records from each provider, notifies your system as records arrive, and delivers them as FHIR and as the original documents.
Can I tell Hubble which providers a patient has seen?
Yes. You can pass in the providers you already know when you start a request, and the patient can add any you missed.
Can I use my own HIPAA authorization?
Yes, on request. Once Hubble has reviewed your authorization template, you can attach an authorization the patient signed to the request, and Hubble requests records from the facilities it covers.
How do I know when records are ready?
Hubble notifies your system as records come back from each provider, so you don't have to keep checking.
What formats does the API return records in?
Structured FHIR for your own systems, and the raw records as PDFs, including one combined PDF per provider.