ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

DocumentReference — Clinical document pointer

PDF report, clinical photo, CDA, ePub: DocumentReference is the FHIR pointer to any clinical document. The IHE XDS gateway in REST mode.

Purpose

DocumentReference is the metadata of a clinical document stored somewhere (HTTP URL, inline base64, IHE XDS). It carries type (LOINC), category, author, authenticator, custodian, context (Encounter, Period), links to previous documents (replaces, appends, signs, transforms), and the effective pointer to the content (content[].attachment).

Key fields

FieldTypeCardinalityRole
identifierIdentifier[]0..*External identifiers.
versionstring0..1Business version.
basedOnReference(Any)[]0..*Parent requests.
statuscode1..1Mandatory. current, superseded, entered-in-error.
docStatuscode0..1Editorial state: preliminary, final, amended, entered-in-error.
modalityCodeableConcept[]0..*Production modality.
typeCodeableConcept0..1Document type (LOINC).
categoryCodeableConcept[]0..*High-level category (clinical-note, lab, radiology…).
subjectReference(...)0..1Patient or other subject.
contextReference(...)[]0..*Contexts (Encounter, EpisodeOfCare, Period).
eventCodeableReference[]0..*Documented events.
bodySiteCodeableReference[]0..*Anatomical sites.
facilityTypeCodeableConcept0..1Facility type.
practiceSettingCodeableConcept0..1Practice setting.
periodPeriod0..1Covered period.
dateinstant0..1Entry date.
authorReference(...)[]0..*Author(s).
attesterBackboneElement[]0..*Attesters.
custodianReference(Organization)0..1Custodian organization.
relatesToBackboneElement[]0..*Document links: replaces, transforms, signs, appends.
descriptionmarkdown0..1Description.
securityLabelCodeableConcept[]0..*Confidentiality labels.
contentBackboneElement[]1..*Mandatory. Attachment(s) + IHE format(s).

JSON example

Final chest CT report that appends a preliminary report:

json documentreference-radio-report.json
{
  "resourceType": "DocumentReference",
  "id": "dr-radio-report-001",
  "identifier": [{
    "system": "urn:oid:1.2.34",
    "value": "DR-2026-RADIO-001"
  }],
  "status": "current",
  "docStatus": "final",
  "type": {
    "coding": [{
      "system": "http://loinc.org",
      "code": "11503-0",
      "display": "Medical records"
    }, {
      "system": "http://loinc.org",
      "code": "59776-5",
      "display": "Procedure note"
    }]
  },
  "category": [{
    "coding": [{
      "system": "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category",
      "code": "clinical-note"
    }]
  }],
  "subject": { "reference": "Patient/doe-john" },
  "date": "2026-05-15T16:00:00+02:00",
  "author": [
    { "reference": "Practitioner/dr-radiologist-bernard" }
  ],
  "authenticator": { "reference": "Practitioner/dr-radiologist-bernard" },
  "custodian": { "reference": "Organization/radiology-dept" },
  "relatesTo": [{
    "code": {
      "coding": [{
        "system": "http://hl7.org/fhir/document-relationship-type",
        "code": "appends"
      }]
    },
    "target": { "reference": "DocumentReference/dr-radio-prelim-001" }
  }],
  "description": "Chest CT report 2026-05-15, pulmonary embolism excluded",
  "content": [{
    "attachment": {
      "contentType": "application/pdf",
      "language": "en-US",
      "url": "https://docs.hospital-1.example.org/reports/2026/05/RADIO-001.pdf",
      "size": 245678,
      "hash": "...",
      "title": "Chest CT report",
      "creation": "2026-05-15T15:45:00+02:00"
    },
    "format": {
      "system": "http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem",
      "code": "urn:ihe:rad:TEXT"
    }
  }],
  "context": [
    { "reference": "Encounter/enc-radio-2026-05-15" }
  ]
}

Common pitfalls

  • Confusing status and docStatus — status = resource lifecycle (current/superseded), docStatus = editorial document state (preliminary/final).
  • No category — makes search difficult: querying all radiology reports for a patient without category is slow.
  • Inline base64 for large files — an inline 5 MB PDF bloats the resource. Prefer external URL + Binary.
  • Missing relatesTo — without a link to the previous version, the editorial history is lost.
  • No authenticator — without a document signer, reduced legal value (signed=false).