This page is part of the FHIR Specification (v4.2.0: R5 Preview #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
FHIR Infrastructure Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Not linked to any defined compartments |
Raw JSON (canonical form + also see JSON Format Specification)
StructureDefinition for binary
{ "resourceType" : "StructureDefinition", "id" : "Binary", "meta" : { "lastUpdated" : "2019-12-31T21:03:40.621+11:00" }, "text" : { "status" : "generated", "div" : "<div>!-- Snipped for Brevity --></div>" }, "extension" : [{ "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode" : "normative" }, { "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode" : "4.0.0" }, { "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger" : 5 }, { "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category", "valueCode" : "not-classified" }, { "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode" : "fhir" }], "url" : "http://hl7.org/fhir/StructureDefinition/Binary", "version" : "4.2.0", "name" : "Binary", "status" : "active", "date" : "2019-12-31T21:03:40+11:00", "publisher" : "Health Level Seven International (FHIR Infrastructure)", "contact" : [{ "telecom" : [{ "system" : "url", "value" : "http://hl7.org/fhir" }] }, { "telecom" : [{ "system" : "url", "value" : "http://www.hl7.org/Special/committees/fiwg/index.cfm" }] }], "description" : "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.", "purpose" : "There are situations where it is useful or required to handle pure binary content using the same framework as other resources.", "fhirVersion" : "4.2.0", "mapping" : [{ "identity" : "rim", "uri" : "http://hl7.org/v3", "name" : "RIM Mapping" }], "kind" : "resource", "abstract" : false, "type" : "Binary", "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Resource", "derivation" : "specialization", "snapshot" : { "element" : [{ "id" : "Binary", "path" : "Binary", "short" : "Pure binary content defined by a format other than FHIR", "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.", "comment" : "Typically, Binary resources are used for handling content such as: \n\n* CDA Documents (i.e. with XDS) \n* PDF Documents \n* Images.", "min" : 0, "max" : "*", "base" : { "path" : "Binary", "min" : 0, "max" : "*" }, "isModifier" : false, "isSummary" : false, "mapping" : [{ "identity" : "rim", "map" : "Entity. Role, or Act" }, { "identity" : "rim", "map" : "ED" }] }, { "id" : "Binary.id", "path" : "Binary.id", "short" : "Logical id of this artifact", "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "min" : 0, "max" : "1", "base" : { "path" : "Resource.id", "min" : 0, "max" : "1" }, "type" : [{ "extension" : [{ "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUri" : "id" }], "code" : "http://hl7.org/fhirpath/System.String" }], "isModifier" : false, "isSummary" : true }, { "id" : "Binary.meta", "path" : "Binary.meta", "short" : "Metadata about the resource", "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.", "min" : 0, "max" : "1", "base" : { "path" : "Resource.meta", "min" : 0, "max" : "1" }, "type" : [{ "code" : "Meta" }], "constraint" : [{ "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }], "isModifier" : false, "isSummary" : true }, { "id" : "Binary.implicitRules", "path" : "Binary.implicitRules", "short" : "A set of rules under which this content was created", "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.", "comment" : "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 it's narrative along with other profiles, value sets, etc.", "min" : 0, "max" : "1", "base" : { "path" : "Resource.implicitRules", "min" : 0, "max" : "1" }, "type" : [{ "code" : "uri" }], "constraint" : [{ "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }], "isModifier" : true, "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", "isSummary" : true }, { "id" : "Binary.language", "path" : "Binary.language", "short" : "Language of the resource content", "definition" : "The base language in which the resource is written.", "comment" : "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).", "min" : 0, "max" : "1", "base" : { "path" : "Resource.language", "min" : 0, "max" : "1" }, "type" : [{ "code" : "code" }], "constraint" : [{ "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }], "isModifier" : false, "isSummary" : false, "binding" : { "extension" : [{ "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "Language" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true }], "strength" : "preferred", "description" : "A human language.", "valueSet" : "http://hl7.org/fhir/ValueSet/languages" } }, { "id" : "Binary.contentType", "path" : "Binary.contentType", "short" : "MimeType of the binary content", "definition" : "MimeType of the binary content represented as a standard MimeType (BCP 13).", "min" : 1, "max" : "1", "base" : { "path" : "Binary.contentType", "min" : 1, "max" : "1" }, "type" : [{ "code" : "code" }], "constraint" : [{ "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }], "isModifier" : false, "isSummary" : true, "binding" : { "extension" : [{ "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "MimeType" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true }], "strength" : "required", "description" : "The mime type of an attachment. Any valid mime type is allowed.", "valueSet" : "http://hl7.org/fhir/ValueSet/mimetypes|4.2.0" }, "mapping" : [{ "identity" : "rim", "map" : "ED.mediaType" }] }, { "id" : "Binary.securityContext", "path" : "Binary.securityContext", "short" : "Identifies another resource to use as proxy when enforcing access control", "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.", "comment" : "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.", "min" : 0, "max" : "1", "base" : { "path" : "Binary.securityContext", "min" : 0, "max" : "1" }, "type" : [{ "code" : "Reference", "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"] }], "constraint" : [{ "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }], "isModifier" : false, "isSummary" : true, "mapping" : [{ "identity" : "rim", "map" : "n/a" }] }, { "id" : "Binary.data", "path" : "Binary.data", "short" : "The actual content", "definition" : "The actual content, base64 encoded.", "comment" : "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.", "min" : 0, "max" : "1", "base" : { "path" : "Binary.data", "min" : 0, "max" : "1" }, "type" : [{ "code" : "base64Binary" }], "constraint" : [{ "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }], "isModifier" : false, "isSummary" : false, "mapping" : [{ "identity" : "rim", "map" : "ED.data" }] }] }, "differential" : { "element" : [{ "id" : "Binary", "path" : "Binary", "short" : "Pure binary content defined by a format other than FHIR", "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.", "comment" : "Typically, Binary resources are used for handling content such as: \n\n* CDA Documents (i.e. with XDS) \n* PDF Documents \n* Images.", "min" : 0, "max" : "*", "mapping" : [{ "identity" : "rim", "map" : "ED" }] }, { "id" : "Binary.contentType", "path" : "Binary.contentType", "short" : "MimeType of the binary content", "definition" : "MimeType of the binary content represented as a standard MimeType (BCP 13).", "min" : 1, "max" : "1", "type" : [{ "code" : "code" }], "isSummary" : true, "binding" : { "extension" : [{ "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "MimeType" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true }], "strength" : "required", "description" : "The mime type of an attachment. Any valid mime type is allowed.", "valueSet" : "http://hl7.org/fhir/ValueSet/mimetypes|4.2.0" }, "mapping" : [{ "identity" : "rim", "map" : "ED.mediaType" }] }, { "id" : "Binary.securityContext", "path" : "Binary.securityContext", "short" : "Identifies another resource to use as proxy when enforcing access control", "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.", "comment" : "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.", "min" : 0, "max" : "1", "type" : [{ "code" : "Reference", "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Resource"] }], "isSummary" : true, "mapping" : [{ "identity" : "rim", "map" : "n/a" }] }, { "id" : "Binary.data", "path" : "Binary.data", "short" : "The actual content", "definition" : "The actual content, base64 encoded.", "comment" : "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.", "min" : 0, "max" : "1", "type" : [{ "code" : "base64Binary" }], "isSummary" : false, "mapping" : [{ "identity" : "rim", "map" : "ED.data" }] }] } }
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.