3.23.6 StructureDefinition: Shared Health Attachment - Detailed Descriptions
Definitions for the dtprofile-attachment Profile.
Attachment | |
Definition | For referring to data content defined in other formats. |
Control | 0..* |
Comments | When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Attachment". |
Max Length | 0 |
Invariants | Defined on this element att-1: It the Attachment has data, it SHALL have a contentType (: data.empty() or contentType.exists()) |
Attachment.id | |
Definition | unique id for the element within a resource (for internal references). |
Control | 0..1 |
Type | id |
Max Length | 0 |
Attachment.extension | |
Definition | May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. |
Control | 0..* |
Type | Extension |
Alternate Names | extensions, user content |
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. |
Max Length | 0 |
Attachment.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. |
Control | 1..1 |
Binding | The mime type of an attachment. Any valid mime type is allowed. The codes SHALL be taken from http://hl7.org/fhir/ValueSet/mimetypes |
Type | code |
Must Support | true |
Requirements | Processors of the data need to be able to know how to interpret the data. |
Comments | Identifies the mime type the binary content is expressed in |
Max Length | 0 |
Example | General:text/plain; charset=UTF-8, image/png |
Attachment.language | |
Definition | The human language of the content. The value can be any valid value according to BCP 47. |
Control | 0..1 |
Binding | A human language. The codes SHALL be taken from http://tools.ietf.org/html/bcp47 |
Type | code |
Requirements | Users need to be able to choose between the languages in a set of attachments. |
Max Length | 0 |
Example | General:en-AU |
Attachment.data | |
Definition | The actual data of the attachment - a sequence of bytes. In XML, represented using base64. |
Control | 0..1 |
Type | base64Binary |
Requirements | The data needs to able to be transmitted inline. |
Comments | The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON. |
Max Length | 0 |
Attachment.url | |
Definition | An alternative location where the data can be accessed. |
Control | 1..1 |
Type | uri |
Must Support | true |
Requirements | The data needs to be transmitted by reference. |
Comments | Conformance Rule: This will be expressed as a URL on the server - https://EnvironmentSpecificHost/EnvironmentSpecificPathInbox/Binary/[guid]. The attachment content SHALL be PUT to the same URL either immediately before or after posting the message containing this attachment |
Max Length | 0 |
Example | General:http://www.acme.com/logo-small.png |
Attachment.size | |
Definition | The number of bytes of data that make up this attachment. |
Control | 1..1 |
Type | unsignedInt |
Must Support | 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. |
Comments | Conformance Rule: The combined size of all attachments cannot exceed 50 MB. |
Max Length | 0 |
Attachment.hash | |
Definition | The calculated hash of the data using SHA-1. Represented using base64. |
Control | 0..1 |
Type | base64Binary |
Requirements | Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature. |
Max Length | 0 |
Attachment.title | |
Definition | A label or set of text to display in place of the data. |
Control | 0..1 |
Type | string |
Must Support | 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. |
Max Length | 0 |
Example | General:Official Corporate Logo |
Attachment.creation | |
Definition | The date that the attachment was first created. |
Control | 0..1 |
Type | dateTime |
Requirements | This is often tracked as an integrity issue for use of the attachment. |
Max Length | 0 |