Why EHR integration is important
Patient-reported data is invaluable, but it has limitations: participants may not know their exact lab values, may misremember medication doses, or may not be aware of diagnoses documented in their records. EHR-sourced data provides clinically precise, longitudinal records that complement what participants report.
The good news: federal law (the 21st Century Cures Act) now requires EHR vendors to provide patient access to their data, and your registry can leverage this.
C-CDA: The Legacy Standard
What is C-CDA?
The Consolidated Clinical Document Architecture (C-CDA) is an HL7 XML standard for clinical documents, the format EHRs have used for years to exchange participant records. When a participant "downloads" their health records from a patient portal, they typically receive a C-CDA document (or a PDF).
C-CDA documents include sections for:
- Problems (diagnoses, coded in SNOMED CT or ICD-10)
- Medications (RxNorm)
- Allergies
- Lab results (LOINC)
- Procedures
- Vital signs
- Immunizations
- Social history
C-CDA for registries
Participants can download their C-CDA from their patient portal and upload it to your registry. Your platform can then parse the XML to extract structured data, diagnoses, labs, medications, without the participant needing to manually enter it.
Limitations of C-CDA:
- Snapshot in time (not continuously updated)
- Inconsistent implementation across EHR vendors
- XML parsing requires technical infrastructure
- Requires participant action to download and upload
FHIR: The Modern Standard
What is FHIR?
HL7 FHIR (Fast Healthcare Interoperability Resources) is the modern standard for healthcare data exchange. Unlike C-CDA's document-based approach, FHIR uses a RESTful API model, meaning data can be queried, retrieved, and continuously synchronized, just like any web API.
FHIR represents data as Resources, discrete objects like Participant, Condition, Observation, Medication, and Procedure. Each resource has a defined structure, standard fields, and uses standard terminologies (SNOMED CT, LOINC, RxNorm).
FHIR R4 is the current stable version. FHIR R5 is available but not yet widely implemented.
FHIR for registries
With FHIR APIs, your registry can:
- Pull a participant's diagnoses, labs, and medications directly from their EHR in real time
- Receive automatic updates when new lab results are available
- Query across multiple participants at clinical sites that grant API access
- Submit data back to EHRs (e.g., registry-generated phenotype scores visible to the treating physician)
SMART on FHIR
SMART on FHIR is a framework that enables third party apps (like your registry) to securely access EHR data with patient authorization. It uses OAuth 2.0 for authorization, the same standard that powers "Login with Google."
A participant can:
- Visit your registry's patient portal
- Click "Connect my health records"
- Authenticate with their EHR's patient portal (e.g., MyChart)
- Authorize specific data types to be shared with your registry
- Your registry receives a FHIR access token and can pull their records
Key FHIR Resources for registries
| FHIR Resource | What it contains | Terminology |
|---|---|---|
Patient |
Demographics, identifiers | , |
Condition |
Diagnoses, problems | SNOMED CT, ICD-10 |
Observation |
Lab results, vital signs, survey answers | LOINC |
MedicationRequest |
Prescribed medications | RxNorm |
Procedure |
Procedures performed | SNOMED CT, CPT |
DiagnosticReport |
Lab panels, imaging reports | LOINC |
DocumentReference |
Clinical notes, C-CDA documents | LOINC |
Questionnaire / QuestionnaireResponse |
Structured forms and participant responses | LOINC |
Implementation considerations
Site agreements
Pulling FHIR data from clinical sites (rather than directly from participants) requires:
- Data Use Agreement with the health system
- IRB approval covering EHR data access
- Possible Business Associate Agreement (BAA) under HIPAA
Bulk FHIR
For population level data extraction (pulling data for many participants at once), use the FHIR Bulk Data Access specification, designed for exactly this use case.
Checklist
- [ ] Determined whether participant-initiated C-CDA upload or SMART on FHIR is the right approach
- [ ] Selected platform with FHIR R4 support
- [ ] Mapped registry data elements to FHIR resources
- [ ] Drafted site agreements for clinical site FHIR access
- [ ] Confirmed IRB protocol covers EHR data collection
- [ ] Tested SMART on FHIR patient authorization flow
Key resources
← Module 8 | Module 10: Patient-Reported Data & 21st Century Cures →