# text.div
Name | Flags | Card. | Type | Description & Constraints
Attachment | | 0..* | Attachment | Content in a format defined elsewhere

attachment-sha256

0..1

(Complex)

Extension
URL: http://ontoserver.csiro.au/profiles/attachment-sha256

attachment-len

0..1

(Complex)

Extension
URL: http://ontoserver.csiro.au/profiles/attachment-len

Documentation for this format

# description
Metadata (len, SHA256) of Attachment used in CodeSystem Provenance extension.

# snapshot.element[].definition
For referring to data content defined in other formats.

# snapshot.element[].comment
When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Signed Procedure Consent".

# snapshot.element[].constraint[].human
If the Attachment has data, it SHALL have a contentType

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].definition
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

# snapshot.element[].slicing.description
Extensions are always sliced by (at least) url

# snapshot.element[].short
Additional content defined by implementations

# snapshot.element[].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.

# snapshot.element[].comment
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.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].constraint[].human
Must have either extensions or value[x], not both

# snapshot.element[].definition
Optional Extension Element - found in all resources.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].constraint[].human
Must have either extensions or value[x], not both

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].constraint[].human
Must have either extensions or value[x], not both

# snapshot.element[].short
Mime type of the content, with charset etc.

# snapshot.element[].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.

# snapshot.element[].requirements
Processors of the data need to be able to know how to interpret the data.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].binding.description
The mime type of an attachment. Any valid mime type is allowed.

# snapshot.element[].mapping[].map
ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used

# snapshot.element[].definition
The human language of the content. The value can be any valid value according to BCP 47.

# snapshot.element[].requirements
Users need to be able to choose between the languages in a set of attachments.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].definition
The actual data of the attachment - a sequence of bytes, base64 encoded.

# snapshot.element[].comment
The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.

# snapshot.element[].requirements
The data needs to able to be transmitted inline.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].definition
A location where the data can be accessed.

# snapshot.element[].comment
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.

# snapshot.element[].requirements
The data needs to be transmitted by reference.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].mapping[].map
RP.1+RP.2 - if they refer to a URL (see v2.6)

# snapshot.element[].short
Number of bytes of content (if url provided)

# snapshot.element[].definition
The number of bytes of data that make up this attachment (before base64 encoding, if that is done).

# snapshot.element[].comment
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.

# snapshot.element[].requirements
Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].definition
The calculated hash of the data using SHA-1. Represented using base64.

# snapshot.element[].comment
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](http://hl7.org/fhir/R4/provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature.

# snapshot.element[].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).

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].definition
A label or set of text to display in place of the data.

# snapshot.element[].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.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())

# snapshot.element[].definition
The date that the attachment was first created.

# snapshot.element[].requirements
This is often tracked as an integrity issue for use of the attachment.

# snapshot.element[].constraint[].human
All FHIR elements must have a @value or children

# snapshot.element[].constraint[].expression
hasValue() or (children().count() > id.count())