Skip to content

DocumentReference resource (FHIR R4)

DocumentReference is a FHIR R4 resource. The Pidgeon engine generates synthetic DocumentReference instances and validates them against the R4 structure definitions.

ResourceDocumentReference
FHIR versionR4 (4.0.1)
Canonical URLhttp://hl7.org/fhir/StructureDefinition/DocumentReference
Required elementsstatus (1..1), content (1..*)
IG profiles in this catalog1

Example

{
  "resourceType": "DocumentReference",
  "id": "documentreference-20730ad42ef29b0a5e16dcd42c9f7d44",
  "status": "current",
  "type": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "omitted",
        "display": "LOINC code omitted from this published example"
      }
    ],
    "text": "Progress note"
  },
  "subject": {
    "reference": "Patient/patient-L46A6EIB9J"
  },
  "date": "2026-07-01T12:00:00Z",
  "content": [
    {
      "attachment": {
        "contentType": "application/pdf",
        "url": "http://hospital.example.org/documents/documentreference-20730ad42ef29b0a5e16dcd42c9f7d44.pdf",
        "title": "Progress note",
        "creation": "2026-07-01T12:00:00Z"
      }
    }
  ]
}

Generated by the Pidgeon engine: pidgeon generate DocumentReference --seed 20260722. Codes from licensed terminologies (LOINC, SNOMED CT, CPT, RxNorm) are omitted from published examples.

Validation context

  • strict pidgeon validate grades a DocumentReference instance against the base R4 structure definition: missing required elements raise REQUIRED_FIELD_MISSING and cardinality violations raise CARDINALITY_MIN or CARDINALITY_MAX.(REQUIRED_FIELD_MISSING)
  • strict Profile validation grades the same instance against an installed IG profile: profile cardinality findings carry FHIR-PROFILE-CARDINALITY and terminology binding findings carry FHIR-PROFILE-BINDING.(FHIR-PROFILE-CARDINALITY)

This answer, in your terminal

pidgeon lookup DocumentReference

Wire it into your AI agent:

claude mcp add pidgeon -- npx -y @pidgeonhealth/mcp

Download Post free to browse this reference with generation attached.

FHIR® R4 © Health Level Seven International. FHIR R4 specification content is used under its CC0 license; this page is a derivative work and is not endorsed by HL7 International.

HL7® and FHIR® are registered trademarks of Health Level Seven International.

Published by Pattern Engine LLC (Pidgeon Health).

Rendered from the same machine-readable definitions the Pidgeon engine validates against. Exported from the Pidgeon engine's FHIR R4 definitions (CC0); example generated with seed 20260722.