FHIR (Fast Healthcare Interoperability Resources) R4 has become the dominant standard for exchanging clinical data between healthcare systems. For lab data, the key resources are DiagnosticReport and Observation, which together represent a complete lab report with its individual test results.
DiagnosticReport and Observation
A DiagnosticReport resource acts as the container. It references the patient, the performing laboratory, the clinical context, and a list of Observation resources. Each Observation carries the actual result: a LOINC code identifying the test, the measured value with its unit, the reference range, and an interpretation flag such as normal, high, or critical.
Practical integration concerns
When integrating FHIR lab data into an EHR, the receiving system must handle several practical concerns. Duplicate detection is essential since the same report may arrive through multiple channels. The system should match on a combination of the report identifier, patient reference, and observation dates. Reference range handling varies between labs, so normalization logic must account for differences in format and units.
Bundle transactions
Bundle transactions simplify ingestion. Rather than posting individual resources, a FHIR Transaction Bundle packages the DiagnosticReport and all associated Observations into a single atomic request. The server processes everything together, maintaining referential integrity. This approach reduces network overhead and prevents partial ingestion failures.
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"resource": {
"resourceType": "DiagnosticReport",
"status": "final",
"code": {
"coding": [{
"system": "http://loinc.org",
"code": "58410-2",
"display": "CBC panel"
}]
}
}
}
]
}
From PDF to FHIR
For organizations processing paper or PDF lab reports, the workflow starts with AI extraction, followed by structured parsing, LOINC mapping, and finally FHIR resource generation. The output is a standards-compliant Bundle ready for submission to any R4-capable endpoint. This pipeline eliminates manual data entry and reduces transcription errors that can have clinical consequences.
Related Articles
Why LOINC Matters for Lab Interoperability
LOINC codes are the universal language of laboratory data. Learn why mapping your lab results to LOINC is critical for health data exchange.
Extraction Accuracy in Healthcare Documents
How modern AI extraction engines achieve clinical-grade accuracy on medical lab reports, and what techniques push extraction quality above 99 percent.
Complete Guide to LOINC Code Extraction
Everything about automated LOINC code extraction from lab reports: process, challenges, dictionaries, and best practices.