topic: StructureDefinition-Binary

Profiles & Operations > Structure Definition: Binary Profile

Profile: Binary

Canonical URL:http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-binary

Simplifier project page: Binary EHR

Derived from: Binary(R4)

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work

Differential View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
languageS0..1codeBinding
contentTypeS Σ1..1codeBinding
securityContextΣ C0..1Reference(Resource)
id0..1string
ext-attachment-metadataS C0..1Extension(Complex)
value0..1System.String

Hybrid View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
languageS0..1codeBinding
contentTypeS Σ1..1codeBinding
securityContextΣ C0..1Reference(Resource)
id0..1string
ext-attachment-metadataS C0..1Extension(Complex)
value0..1System.String

Snapshot View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
languageS0..1codeBinding
contentTypeS Σ1..1codeBinding
securityContextΣ C0..1Reference(Resource)
id0..1string
ext-attachment-metadataS C0..1Extension(Complex)
value0..1System.String

Table View

Binary..
Binary.language..
Binary.contentType..
Binary.data1..
Binary.data.extension..
Binary.data.extension:ext-attachment-metadataExtension0..1

JSON View

{
"resourceType": "StructureDefinition",
"id": "structuredefinition-binary",
"url": "http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-binary",
"version": "1.0.0",
"name": "BinaryEHR",
"title": "Binary EHR",
"status": "active",
"date": "2025-06-06T16:31:10.0976344+00:00",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "Binary",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Binary",
"derivation": "constraint",
"element": [
{
"id": "Binary.language",
"path": "Binary.language",
"mustSupport": true,
"binding": {
"strength": "required",
"valueSet": "http://ehealthontario.ca/fhir/ValueSet/human-language"
}
},
{
"id": "Binary.contentType",
"path": "Binary.contentType",
"mustSupport": true,
"binding": {
"strength": "required",
"description": "Attachment mime type supported by Ontario Health interfaces.",
"valueSet": "http://ontariohealth.ca/fhir/ehr/ValueSet/mime-type"
}
},
{
"id": "Binary.data",
"path": "Binary.data",
"min": 1,
"mustSupport": true
},
{
"id": "Binary.data.extension",
"path": "Binary.data.extension",
"slicing": {
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "Binary.data.extension:ext-attachment-metadata",
"path": "Binary.data.extension",
"sliceName": "ext-attachment-metadata",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://ontariohealth.ca/fhir/ehr/StructureDefinition/ext-attachment-metadata"
]
}
],
"mustSupport": true
}
]
}
}

Usage

The binary resource captures the base64Encoded data in the document such as PDF, image, etc. If they are present, they will be part of Composition.section.entry.

Notes

.contentType

  • SHALL contain a code indicating the type of binary content, e.g. PDF, jpg, tiff, etc.

.data

  • SHALL contain the base64encoded content of the data