DocumentReference Profile¶
| Canonical | ../StructureDefinition/nexus-emr-core-documentreference |
|---|---|
| Status | draft · 1.26.0 |
| Base | DocumentReference (constraint) |
| CQL primary code path | type — what this means |
| Source | FSH · JSON |
Nexus EMR profile for an ATTACHED DOCUMENT -- a clinical document that exists as a file:
scanned paper, incoming faxes, external consult letters received as PDF, signed consent forms,
patient-uploaded files. FHIR holds the metadata and clinical context; the bytes live in
document storage and are reached through content.attachment.url.
Examples
Allergy Consult Letter (challenge refuted) · Anemia Consultation Document · Cardiology Consult Letter (received) · Consent Withdrawal Evidence Document · Hrm discharge summary 20260618 · WSIB Form 8 (filed) · WSIB Form 8 Template (with field mapping)
WSIB Form 8 Template (with field mapping)
The tenant-wide blank of WSIB Form 8 -- subject-less, marked under nexus-form-template, readonly because it is system-provisioned -- carrying the field mapping that pre-fills the patient's name, date of birth, sex, phone and address into the file's own field names when a form is started from it
DocumentReference/wsib-form-8-template — claims conformance to DocumentReference Profile
{
"resourceType": "DocumentReference",
"id": "wsib-form-8-template",
"meta": {
"profile": [
"../StructureDefinition/nexus-emr-core-documentreference"
],
"tag": [
{
"system": "../CodeSystem/document-reference-readonly",
"code": "true",
"display": "Readonly"
}
]
},
"extension": [
{
"url": "../StructureDefinition/nexus-form-template-field-mapping",
"extension": [
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatlastname"
},
{
"url": "chartValue",
"valueCode": "patient.lastName"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatfirstname"
},
{
"url": "chartValue",
"valueCode": "patient.firstName"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatdob d"
},
{
"url": "chartValue",
"valueCode": "patient.birthDate.day"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatdob m"
},
{
"url": "chartValue",
"valueCode": "patient.birthDate.month"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatdob y"
},
{
"url": "chartValue",
"valueCode": "patient.birthDate.year"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "cbsex"
},
{
"url": "chartValue",
"valueCode": "patient.gender"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpattel"
},
{
"url": "chartValue",
"valueCode": "patient.phone"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatsin"
},
{
"url": "chartValue",
"valueCode": "patient.socialInsuranceNumber"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpataddress"
},
{
"url": "chartValue",
"valueCode": "patient.address.street"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatcity"
},
{
"url": "chartValue",
"valueCode": "patient.address.city"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatPROVINCE"
},
{
"url": "chartValue",
"valueCode": "patient.address.province"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatpostcode"
},
{
"url": "chartValue",
"valueCode": "patient.address.postalCode"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtempname"
},
{
"url": "staticValue",
"valueString": "Main Street Clinic"
}
]
},
{
"url": "template",
"extension": [
{
"url": "name",
"valueString": "Quick referral"
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatlastname"
},
{
"url": "chartValue",
"valueCode": "patient.lastName"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "txtpatfirstname"
},
{
"url": "chartValue",
"valueCode": "patient.firstName"
}
]
},
{
"url": "rule",
"extension": [
{
"url": "field",
"valueString": "cbconsent"
},
{
"url": "staticValue",
"valueString": "Yes"
}
]
}
]
}
]
}
],
"identifier": [
{
"system": "../NamingSystem/nexus-form-template",
"value": "wsib-form-8"
}
],
"status": "current",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "51851-4",
"display": "Administrative Note"
}
],
"text": "Form template"
},
"date": "2026-08-24T09:00:00-04:00",
"description": "WSIB Form 8 - Health Professional's Report",
"content": [
{
"attachment": {
"contentType": "application/pdf",
"language": "en",
"title": "WSIB Form 8 (blank)",
"data": "JVBERi0xLjUKJYCBgoMKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1DQSkgPj4KZW5kb2JqCjIgMCBvYmoKPDwvVHlwZS9QYWdlcy9Db3VudC8xL0tpZHNbIDQgMCBSXSA+PgplbmRvYmoK",
"size": 126
}
}
],
"text": {
"status": "generated",
"div": "<div xmlns="http://www.w3.org/1999/xhtml">The tenant-wide blank of WSIB Form 8. Carries no subject: a template is about no patient. It still carries a custodian -- the tenant that holds it -- because being held by someone and being about someone are different questions. Marked readonly because it is system-provisioned. Its field mapping pre-fills the patient's name, date of birth, sex, phone, Social Insurance Number and address from the chart when a form is started from it: each rule names one of the file's own fillable fields, verbatim, and the chart value that fills it.</div>"
},
"custodian": {
"reference": "Organization/cedarbrook-clinic"
}
}