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.
| Resource | DocumentReference |
|---|---|
| FHIR version | R4 (4.0.1) |
| Canonical URL | http://hl7.org/fhir/StructureDefinition/DocumentReference |
| Required elements | status (1..1), content (1..*) |
| IG profiles in this catalog | 1 |
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 DocumentReferenceWire it into your AI agent:
claude mcp add pidgeon -- npx -y @pidgeonhealth/mcpDownload Post free to browse this reference with generation attached.