Profile for Get Binary API
This profile is a Binary resource used in API - Get Binary to define the actual file in the attachment in the form of binary data
These are the details for this resource:
Name | Canonical_URL | Status | Version |
---|---|---|---|
Binary | http://fhir.synapxe.sg/StructureDefinition/profile-binary | active | 5.0.0 |
Resource content
These are different views on this resource:
Binary | |
Definition | A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc. |
Cardinality | 0...* |
Comments | Typically, Binary resources are used for handling content such as:
|
Mappings |
|
Binary.id | |
Definition | The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. |
Cardinality | 0...1 |
Type | id |
Summary | True |
Comments | Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case. |
Binary.meta | |
Definition | The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. |
Cardinality | 0...1 |
Type | Meta |
Summary | True |
Invariants |
|
Mappings |
|
Binary.implicitRules | |
Definition | A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. |
Cardinality | 0...1 |
Type | uri |
Modifier | True |
Summary | True |
Comments | Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc. |
Invariants |
|
Mappings |
|
Binary.language | |
Definition | The base language in which the resource is written. |
Cardinality | 0...0 |
Type | code |
Binding | IETF language tag for a human language |
Comments | Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute). |
Invariants |
|
Mappings |
|
Binary.contentType | |
Definition | MimeType of the binary content represented as a standard MimeType (BCP 13). |
Cardinality | 1...1 |
Type | code |
Binding | The mime type of an attachment. Any valid mime type is allowed. |
Summary | True |
Comments | Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size |
Invariants |
|
Mappings |
|
Binary.securityContext | |
Definition | This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient. |
Cardinality | 0...0 |
Type | Reference(Resource) |
Summary | True |
Comments | Very often, a server will also know of a resource that references the binary, and can automatically apply the appropriate access rules based on that reference. However, there are some circumstances where this is not appropriate, e.g. the binary is uploaded directly to the server without any linking resource, the binary is referred to from multiple different resources, and/or the binary is content such as an application logo that has less protection than any of the resources that reference it. |
Invariants |
|
Mappings |
|
Binary.data | |
Definition | The actual content, base64 encoded. |
Cardinality | 1...1 |
Type | base64Binary |
Comments | If the content type is itself base64 encoding, then this will be base64 encoded twice - what is created by un-base64ing the content must be the specified content type. |
Invariants |
|
Mappings |
|
<StructureDefinition xmlns="http://hl7.org/fhir"> <url value="http://fhir.synapxe.sg/StructureDefinition/profile-binary" /> <name value="Binary" /> <status value="draft" /> <fhirVersion value="5.0.0" /> <kind value="resource" /> <abstract value="false" /> <type value="Binary" /> <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Binary" /> <derivation value="constraint" /> <differential> <element id="Binary.language"> <path value="Binary.language" /> <max value="0" /> </element> <element id="Binary.securityContext"> <path value="Binary.securityContext" /> <max value="0" /> </element> <element id="Binary.data"> <path value="Binary.data" /> <min value="1" /> </element> </differential> </StructureDefinition>
{ "resourceType": "StructureDefinition", "url": "http://fhir.synapxe.sg/StructureDefinition/profile-binary", "name": "Binary", "status": "draft", "fhirVersion": "5.0.0", "kind": "resource", "abstract": false, "type": "Binary", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Binary", "derivation": "constraint", "differential": { "element": [ { "id": "Binary.language", "path": "Binary.language", "max": "0" }, { "id": "Binary.securityContext", "path": "Binary.securityContext", "max": "0" }, { "id": "Binary.data", "path": "Binary.data", "min": 1 } ] } }
Terminology Bindings
These are the terminology bindings within this resource:
Path | Binding Strength | Value Set(Code System) | Description |
---|---|---|---|
Binary.contentType | Required | MimeTypes (HL7 FHIR) | The mime type of an attachment. Any valid mime type is allowed. |
Constraints
There are no constraints for this resource.