Profiles & Operations > Structure Definition: Binary Profile

Profile: Binary

Canonical URL:http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Binary

Simplifier project page: Binary

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
language0..1codeBinding
contentTypeS Σ1..1codeBinding
securityContextΣ I0..1Reference(Resource)
dataS1..1base64Binary

Hybrid View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
contentTypeS Σ1..1codeBinding
securityContextΣ I0..1Reference(Resource)
dataS1..1base64Binary

Snapshot View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
contentTypeS Σ1..1codeBinding
securityContextΣ I0..1Reference(Resource)
dataS1..1base64Binary

Table View

Binary..
Binary.contentType..
Binary.data1..

JSON View

{
    "resourceType": "StructureDefinition",
    "url": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Binary",
    "name": "Binary",
    "status": "draft",
    "date": "2023-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",
    "differential": {
        "element":  [
            {
                "id": "Binary.contentType",
                "path": "Binary.contentType",
                "mustSupport": true,
                "binding": {
                    "strength": "required",
                    "valueSet": "http://ontariohealth.ca/fhir/ValueSet/accdr-mimetype"
                }
            },
            {
                "id": "Binary.data",
                "path": "Binary.data",
                "min": 1,
                "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