Binary

The Binary resource stores the following types of information:

  • Attached Document

Attached Document

Attached Document is used to store documents of various types and are linked to a variety of resources.

Requirements

  • store the mime type of the attachment
  • the document can be any size
  • For security it must have a reference to the Requestor Role of the related request. Here are the different profiles that store Attached Documents and which element contains the related Requestor Role
    • Client Communication, Communication.partOf = Requestor Role
    • Outgoing To Prescriber, Communication.partOf = Requestor Role
    • Questionnaire Response, QuestionnaireResponse.author = Requestor Role
    • Request PDF, DocumentReference.author = Requestor Role

Profile - Attached Document

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
contentTypeΣ1..1codeBinding
securityContextΣ C0..1Reference(FlexFormsRole)
data0..1base64Binary

Example - Attached Document that passed validation

Command 'json' could not render: File not found for 'subject=Example-Binary'

Example - Attached Document that is stored externally

{
"resourceType": "Binary",
"id": "41d28865-8a6b-4a83-858a-75abe920120e",
"meta": {
"versionId": "1",
"lastUpdated": "2021-09-20T18:03:02.057+00:00",
"source": "#CSBsHw2CGuR8DDj7",
"profile": [
"https://health.gov.on.ca/sadie/fhir/StructureDefinition/AttachedDocument"
]
},
"contentType": "application/pdf",
"reference": "PractitionerRole/eeb8a591-c435-4060-9cc4-464da59c0286"
},
"_data": {
{
"url": "http://hapifhir.io/fhir/StructureDefinition/externalized-binary-id",
"valueString": "8KubzBKbx2CE7nYkBkPc50F7yqlL33DekvYQWZ14X2nPUYKCwGts4XEIwKvYRPRs2wP8m7sKVLAdPT2Hi4YnvWw5J0luU2O8MTy4"
}
]
}
}