Australian Digital Health Agency FHIR Implementation Guide
1.2.0-ci-build - draft
Australian Digital Health Agency FHIR Implementation Guide, published by Australian Digital Health Agency. This guide is not an authorized publication; it is the continuous build for version 1.2.0-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/AuDigitalHealth/ci-fhir-r4/ and changes regularly. See the Directory of published versions
Draft as of 2024-09-12 |
Definitions for the dh-attachment-hl7-base64-1 extension.
Guidance on how to interpret the contents of this table can be found here
0. Extension | |
Definition | An alternate HL7 format of the content as an attachment with the actual content conveyed directly as data inline, base64 encoded. |
Short | Alternate HL7 format of the content as an attachment, data inline, base64 encoded |
Control | 0..1 |
2. Extension.url | |
Fixed Value | http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-attachment-hl7-base64-1 |
4. Extension.value[x] | |
Definition | The actual data - a sequence of bytes, base64 encoded. |
Short | Data inline, base64ed |
Control | 1..1 |
Type | Attachment, date, Meta, Address, integer, Count, DataRequirement, Dosage, uuid, Identifier, Coding, SampledData, id, positiveInt, Distance, Period, Duration, canonical, Range, RelatedArtifact, base64Binary, UsageContext, Timing, decimal, CodeableConcept, ParameterDefinition, dateTime, code, string, Contributor, oid, instant, ContactPoint, HumanName, Money, markdown, Ratio, Age, Reference, TriggerDefinition, Quantity, uri, url, Annotation, ContactDetail, boolean, Expression, Signature, unsignedInt, time |
[x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
6. Extension.value[x].contentType | |
Short | x-application/hl7-v2+er7 | x-application/hl7-v2+xml | x-application/hl7-v3+xml | x-application/fhir+xml | x-application/fhir+json | x-application/xml+cda |
Control | 1..? |
8. Extension.value[x].data | |
Control | 1..? |
Guidance on how to interpret the contents of this table can be found here
0. Extension | |
Definition | An alternate HL7 format of the content as an attachment with the actual content conveyed directly as data inline, base64 encoded. Optional Extension Element - found in all resources. |
Short | Alternate HL7 format of the content as an attachment, data inline, base64 encodedOptional Extensions Element |
Control | 0..1* This element is affected by the following invariants: ele-1 |
Is Modifier | false |
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists() )ext-1: Must have either extensions or value[x], not both (extension.exists() != value.exists()) |
2. Extension.url | |
Definition | Source of the definition for the extension code - a logical name or a URL. |
Short | identifies the meaning of the extension |
Comments | The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension. |
Control | 1..1 |
Type | uri |
Is Modifier | false |
XML Format | In the XML format, this property is represented as an attribute. |
Summary | false |
Fixed Value | http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-attachment-hl7-base64-1 |
4. Extension.value[x] | |
Definition | The actual data - a sequence of bytes, base64 encoded. Value of extension - must be one of a constrained set of the data types (see Extensibility for a list). |
Short | Data inline, base64edValue of extension |
Control | 10..1 |
Type | Attachment, date, Meta, Address, integer, Count, DataRequirement, Dosage, uuid, Identifier, Coding, SampledData, id, positiveInt, Distance, Period, Duration, canonical, Range, RelatedArtifact, base64Binary, UsageContext, Timing, decimal, CodeableConcept, ParameterDefinition, dateTime, code, string, Contributor, oid, instant, ContactPoint, HumanName, Money, markdown, Ratio, Age, Reference, TriggerDefinition, Quantity, uri, url, Annotation, ContactDetail, boolean, Expression, Signature, unsignedInt, time |
[x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
Is Modifier | false |
Summary | false |
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
6. Extension.value[x].contentType | |
Definition | Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate. |
Short | x-application/hl7-v2+er7 | x-application/hl7-v2+xml | x-application/hl7-v3+xml | x-application/fhir+xml | x-application/fhir+json | x-application/xml+cdaMime type of the content, with charset etc. |
Control | 10..1 |
Binding | The codes SHALL be taken from Mime Typeshttp://hl7.org/fhir/ValueSet/mimetypes|4.0.1 (required to http://hl7.org/fhir/ValueSet/mimetypes|4.0.1 )The mime type of an attachment. Any valid mime type is allowed. |
Type | code |
Is Modifier | false |
Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
Summary | true |
Requirements | Processors of the data need to be able to know how to interpret the data. |
Example | <br/><b>General</b>:text/plain; charset=UTF-8, image/png |
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
8. Extension.value[x].data | |
Definition | The actual data of the attachment - a sequence of bytes, base64 encoded. |
Short | Data inline, base64ed |
Comments | The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON. |
Control | 10..1 |
Type | base64Binary |
Is Modifier | false |
Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
Summary | false |
Requirements | The data needs to able to be transmitted inline. |
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
Guidance on how to interpret the contents of this table can be found here
0. Extension | |||||
Definition | An alternate HL7 format of the content as an attachment with the actual content conveyed directly as data inline, base64 encoded. | ||||
Short | Alternate HL7 format of the content as an attachment, data inline, base64 encoded | ||||
Control | 0..1 This element is affected by the following invariants: ele-1 | ||||
Is Modifier | false | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) )ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists() ) | ||||
2. Extension.id | |||||
Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. | ||||
Short | Unique id for inter-element referencing | ||||
Control | 0..1 | ||||
Type | string | ||||
Is Modifier | false | ||||
XML Format | In the XML format, this property is represented as an attribute. | ||||
Summary | false | ||||
4. Extension.extension | |||||
Definition | May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. | ||||
Short | Additional content defined by implementations | ||||
Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
Control | 0..* | ||||
Type | Extension | ||||
Is Modifier | false | ||||
Summary | false | ||||
Alternate Names | extensions, user content | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) )ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists() ) | ||||
Slicing | This element introduces a set of slices on Extension.extension . The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
6. Extension.url | |||||
Definition | Source of the definition for the extension code - a logical name or a URL. | ||||
Short | identifies the meaning of the extension | ||||
Comments | The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension. | ||||
Control | 1..1 | ||||
Type | uri | ||||
Is Modifier | false | ||||
XML Format | In the XML format, this property is represented as an attribute. | ||||
Summary | false | ||||
Fixed Value | http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-attachment-hl7-base64-1 | ||||
8. Extension.value[x] | |||||
Definition | The actual data - a sequence of bytes, base64 encoded. | ||||
Short | Data inline, base64ed | ||||
Control | 1..1 | ||||
Type | Attachment | ||||
[x] Note | SeeChoice of Data Typesfor further information about how to use [x] | ||||
Is Modifier | false | ||||
Summary | false | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
10. Extension.value[x].id | |||||
Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. | ||||
Short | Unique id for inter-element referencing | ||||
Control | 0..1 | ||||
Type | string | ||||
Is Modifier | false | ||||
XML Format | In the XML format, this property is represented as an attribute. | ||||
Summary | false | ||||
12. Extension.value[x].extension | |||||
Definition | May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. | ||||
Short | Additional content defined by implementations | ||||
Comments | There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | ||||
Control | 0..* | ||||
Type | Extension | ||||
Is Modifier | false | ||||
Summary | false | ||||
Alternate Names | extensions, user content | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) )ext-1: Must have either extensions or value[x], not both ( extension.exists() != value.exists() ) | ||||
Slicing | This element introduces a set of slices on Extension.value[x].extension . The slices areUnordered and Open, and can be differentiated using the following discriminators: | ||||
14. Extension.value[x].contentType | |||||
Definition | Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate. | ||||
Short | x-application/hl7-v2+er7 | x-application/hl7-v2+xml | x-application/hl7-v3+xml | x-application/fhir+xml | x-application/fhir+json | x-application/xml+cda | ||||
Control | 1..1 | ||||
Binding | The codes SHALL be taken from Mime Types (required to http://hl7.org/fhir/ValueSet/mimetypes|4.0.1 )The mime type of an attachment. Any valid mime type is allowed. | ||||
Type | code | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | Processors of the data need to be able to know how to interpret the data. | ||||
Example | <br/><b>General</b>:text/plain; charset=UTF-8, image/png | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
16. Extension.value[x].language | |||||
Definition | The human language of the content. The value can be any valid value according to BCP 47. | ||||
Short | Human language of the content (BCP-47) | ||||
Control | 0..1 | ||||
Binding | The codes SHOULD be taken from CommonLanguages (preferred to http://hl7.org/fhir/ValueSet/languages )A human language.
| ||||
Type | code | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | Users need to be able to choose between the languages in a set of attachments. | ||||
Example | <br/><b>General</b>:en-AU | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
18. Extension.value[x].data | |||||
Definition | The actual data of the attachment - a sequence of bytes, base64 encoded. | ||||
Short | Data inline, base64ed | ||||
Comments | The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON. | ||||
Control | 1..1 | ||||
Type | base64Binary | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | false | ||||
Requirements | The data needs to able to be transmitted inline. | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
20. Extension.value[x].url | |||||
Definition | A location where the data can be accessed. | ||||
Short | Uri where the data can be found | ||||
Comments | If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data. | ||||
Control | 0..1 | ||||
Type | url | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | The data needs to be transmitted by reference. | ||||
Example | <br/><b>General</b>:http://www.acme.com/logo-small.png | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
22. Extension.value[x].size | |||||
Definition | The number of bytes of data that make up this attachment (before base64 encoding, if that is done). | ||||
Short | Number of bytes of content (if url provided) | ||||
Comments | The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference. | ||||
Control | 0..1 | ||||
Type | unsignedInt | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all. | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
24. Extension.value[x].hash | |||||
Definition | The calculated hash of the data using SHA-1. Represented using base64. | ||||
Short | Hash of the data (sha-1, base64ed) | ||||
Comments | The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see Provenance.signature for mechanism to protect a resource with a digital signature. | ||||
Control | 0..1 | ||||
Type | base64Binary | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | Included so that applications can verify that the contents of a location have not changed due to technical failures (e.g., storage rot, transport glitch, incorrect version). | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
26. Extension.value[x].title | |||||
Definition | A label or set of text to display in place of the data. | ||||
Short | Label to display in place of the data | ||||
Control | 0..1 | ||||
Type | string | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer. | ||||
Example | <br/><b>General</b>:Official Corporate Logo | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) | ||||
28. Extension.value[x].creation | |||||
Definition | The date that the attachment was first created. | ||||
Short | Date attachment was first created | ||||
Control | 0..1 | ||||
Type | dateTime | ||||
Is Modifier | false | ||||
Primitive Value | This primitive element may be present, or absent, or replaced by an extension | ||||
Summary | true | ||||
Requirements | This is often tracked as an integrity issue for use of the attachment. | ||||
Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count()) ) |