description: A DocumentReference resource is used to index a document, clinical note, and other binary objects to make them available to a healthcare system. A document is some sequence of bytes that is identifiable, establishes its own context (e.g., what subject, author, etc. can be displayed to the user), and has defined update management. The DocumentReference resource can be used with any document format that has a recognized mime type and that conforms to this definition package_name: ca.on.oh derivation: constraint name: EReferralDocumentReference type: DocumentReference elements: meta: mustSupport: true index: 0 elements: profile: {mustSupport: true, index: 1} required: [profile] docStatus: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/composition-status'} index: 3 content: index: 16 elements: attachment: elements: contentType: {mustSupport: true, index: 17} language: {mustSupport: true, index: 18} data: {mustSupport: true, index: 19} url: {mustSupport: true, index: 20} size: {mustSupport: true, index: 21} hash: {mustSupport: true, index: 22} title: {mustSupport: true, index: 23} type: elements: coding: mustSupport: false index: 4 elements: system: {mustSupport: false, index: 5} code: {mustSupport: false, index: 6} display: {mustSupport: false, index: 7} required: [display, system, code] text: {mustSupport: false, index: 8} author: type: Reference refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Practitioner', 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole'] index: 11 elements: reference: {index: 12} required: [reference] status: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/document-reference-status'} pattern: {type: Code, value: current} index: 2 relatesTo: mustSupport: false index: 13 elements: code: {mustSupport: false, index: 14} target: {mustSupport: false, index: 15} context: elements: related: type: Reference refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-ServiceRequest'] index: 24 elements: reference: {index: 25} required: [reference] subject: type: Reference refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Patient'] index: 9 elements: reference: {index: 10} required: [reference] package_version: erec-0.12.1-alpha1.0.1 class: profile kind: resource url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-DocumentReference base: http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-DocumentReference version: 1.1.0 required: [meta]