Shared Health Specification and Guide Version 2.0 Revision F

 

The official URL for this profile is:

http://sharedhealth.exchange/fhir/StructureDefinition/dtprofile-attachment

Download Excel representation

Description of Profiles, Differentials, Snapshots and how the different presentations work.

>

This structure is derived from Attachment

NameCard.TypeConstraints and Usage
.  Attachment 0..*att-1: It the Attachment has data, it SHALL have a contentType
Definition:
For referring to data content defined in other formats.


Comments:
When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Attachment".

..  contentType 1..1codeBinding: mimetypes (required)
Example' General': text/plain; charset=UTF-8, image/png
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.


Comments:
Identifies the mime type the binary content is expressed in

..  url 1..1uriExample' General': http://www.acme.com/logo-small.png
Definition:
An alternative location where the data can be accessed.


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

..  size 1..1unsignedIntDefinition:
The number of bytes of data that make up this attachment.


Comments:
Conformance Rule: The combined size of all attachments cannot exceed 50 MB.

..  title 0..1stringExample' General': Official Corporate Logo
Definition:
A label or set of text to display in place of the data.

This structure is derived from Attachment

Summary

Mandatory: 3 elements
Must-Support: 4 elements

NameFlagsCard.TypeDescription & Constraintsdoco
.. Attachment I0..*Content in a format defined elsewhere
... id 0..1idxml:id (or equivalent in JSON)
... extension 0..*ExtensionAdditional Content defined by implementations
... contentType SΣ1..1codeMime type of the content, with charset etc.
Binding: mimetypes (required)
Example General': text/plain; charset=UTF-8, image/png
... language Σ0..1codeHuman language of the content (BCP-47)
Binding: http://tools.ietf.org/html/bcp47 (required)
Example General': en-AU
... data 0..1base64BinaryData inline, base64ed
... url SΣ1..1uriUri where the data can be found
Example General': http://www.acme.com/logo-small.png
... size SΣ1..1unsignedIntNumber of bytes of content (if url provided)
... hash Σ0..1base64BinaryHash of the data (sha-1, base64ed)
... title SΣ0..1stringLabel to display in place of the data
Example General': Official Corporate Logo
... creation Σ0..1dateTimeDate attachment was first created

doco Documentation for this format

Grid View

This structure is derived from Attachment

NameCard.TypeConstraints and Usage
.  Attachment 0..*att-1: It the Attachment has data, it SHALL have a contentType
Definition:
For referring to data content defined in other formats.


Comments:
When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Attachment".

..  contentType 1..1codeBinding: mimetypes (required)
Example' General': text/plain; charset=UTF-8, image/png
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.


Comments:
Identifies the mime type the binary content is expressed in

..  url 1..1uriExample' General': http://www.acme.com/logo-small.png
Definition:
An alternative location where the data can be accessed.


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

..  size 1..1unsignedIntDefinition:
The number of bytes of data that make up this attachment.


Comments:
Conformance Rule: The combined size of all attachments cannot exceed 50 MB.

..  title 0..1stringExample' General': Official Corporate Logo
Definition:
A label or set of text to display in place of the data.

This structure is derived from Attachment

Summary

Mandatory: 3 elements
Must-Support: 4 elements

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Attachment I0..*Content in a format defined elsewhere
... id 0..1idxml:id (or equivalent in JSON)
... extension 0..*ExtensionAdditional Content defined by implementations
... contentType SΣ1..1codeMime type of the content, with charset etc.
Binding: mimetypes (required)
Example General': text/plain; charset=UTF-8, image/png
... language Σ0..1codeHuman language of the content (BCP-47)
Binding: http://tools.ietf.org/html/bcp47 (required)
Example General': en-AU
... data 0..1base64BinaryData inline, base64ed
... url SΣ1..1uriUri where the data can be found
Example General': http://www.acme.com/logo-small.png
... size SΣ1..1unsignedIntNumber of bytes of content (if url provided)
... hash Σ0..1base64BinaryHash of the data (sha-1, base64ed)
... title SΣ0..1stringLabel to display in place of the data
Example General': Official Corporate Logo
... creation Σ0..1dateTimeDate attachment was first created

doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathNameConformanceValueSet
Attachment.contentType?extrequiredhttp://hl7.org/fhir/ValueSet/mimetypes
Attachment.language?extrequiredhttp://tools.ietf.org/html/bcp47

Constraints

IdPathDetailsRequirements
att-1AttachmentIt the Attachment has data, it SHALL have a contentType
: data.empty() or contentType.exists()