AI Dictionary of Terms

FHIR (Fast Healthcare Interoperability Resources)

A modern healthcare data exchange standard developed by HL7 that defines how clinical information can be shared between systems using RESTful APIs, JSON/XML formats, and modular “resources” representing discrete clinical concepts.

The Simple Version

Before FHIR, sharing health data was like trying to send a package using a different shipping company’s rules at every border crossing. FHIR is like creating a universal shipping standard: one box format, one tracking system, one set of rules that works everywhere. It lets AI apps talk to any EHR, lab system, or pharmacy using the same simple web API language developers already know.

Detailed Explanation

FHIR (pronounced “fire”) represents a paradigm shift from document-based exchange (HL7 v2/CDA) to resource-based API exchange:

Resources: Modular building blocks representing clinical concepts (Patient, Observation, Condition, MedicationRequest, etc.). Each resource has a defined structure and can be linked to others.

RESTful APIs: Uses standard HTTP methods (GET, POST, PUT, DELETE) making FHIR accessible to web/mobile developers without healthcare IT specialization.

Profiles & Implementation Guides: Customizable extensions allowing FHIR to adapt to local workflows while maintaining core interoperability.

SMART on FHIR: Authentication and launch framework enabling secure third-party app integration within EHR contexts.

For AI developers, FHIR is the primary mechanism for accessing structured clinical data at scale and deploying AI insights back into clinical workflows.

Key Characteristics

Business Context

FHIR is the foundation of modern healthcare interoperability mandates:

Real-World Analogy

USB for healthcare data. Just as USB standardized how devices connect to computers regardless of manufacturer, FHIR standardizes how health systems exchange data regardless of vendor.

Code Example

# Querying FHIR API for patient observations
# pip install requests

import requests

base_url = "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/"
access_token = "your_oauth_token_here"

headers = {
    "Authorization": f"Bearer {access_token}",
    "Accept": "application/fhir+json"
}

# Search for glucose observations for a specific patient
params = {
    "subject": "Patient/example-patient-id",
    "code": "2345-7",  # LOINC code for Glucose [Mass/volume] in Serum or Plasma
    "_sort": "-date"
}

response = requests.get(f"{base_url}Observation", headers=headers, params=params)
data = response.json()

print(f"Found {data.get('total', 0)} glucose observations")

for entry in data.get('entry', [])[:3]:
    obs = entry['resource']
    print(f"  Date: {obs['effectiveDateTime']}")
    print(f"  Value: {obs['valueQuantity']['value']} {obs['valueQuantity']['unit']}")
    print(f"  Reference Range: {obs.get('referenceRange', 'N/A')}")
    print()

# Feed this structured data directly into AI model for CDS

Common Misconceptions

Sources & Further Reading