Enterprise Imaging (Proof of Concept)
0.1.0 - proof-of-concept United Kingdom flag

Enterprise Imaging (Proof of Concept) - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Data Type Profile: Attachment

Official URL: https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/NWAttachment Version: 0.1.0
Draft as of 2026-11-01 Computable Name: NWAttachment

DRAFT: Additional conformance on FHIR Attachment data type. Copied from the NW GMSA FHIR IG.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description Differentials, Snapshots, and other representations.

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
Attachment.contentType This element is included in summaries. 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
Attachment.data 0..1 base64Binary Avoid using for wider compatability reasons.
Attachment.url This element is included in summaries. 0..1 url Uri where the data can be found. Mandatory for PDF or FHIR Documents
Example General: http://www.acme.com/logo-small.png

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Attachment.contentType Base required DocumentEntry mimeType 📦0.1.0 This IG

Constraints

Id Grade Path(s) Description Expression
att-1 error Attachment If the Attachment has data, it SHALL have a contentType data.empty() or contentType.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())

This structure is derived from Attachment

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Attachment Attachment
Attachment.contentType 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Attachment.data 0..1 base64Binary Avoid using for wider compatability reasons.
Attachment.url 0..1 url Uri where the data can be found. Mandatory for PDF or FHIR Documents

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Attachment.contentType Base required DocumentEntry mimeType 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
Attachment.id 0..1 string Unique id for inter-element referencing
Attachment.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Attachment.contentType This element is included in summaries. 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
Attachment.language This element is included in summaries. 0..1 code Human language of the content (BCP-47)
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding

Example General: en-AU
Attachment.data 0..1 base64Binary Avoid using for wider compatability reasons.
Attachment.url This element is included in summaries. 0..1 url Uri where the data can be found. Mandatory for PDF or FHIR Documents
Example General: http://www.acme.com/logo-small.png
Attachment.size This element is included in summaries. 0..1 unsignedInt Number of bytes of content (if url provided)
Attachment.hash This element is included in summaries. 0..1 base64Binary Hash of the data (sha-1, base64ed)
Attachment.title This element is included in summaries. 0..1 string Label to display in place of the data
Example General: Official Corporate Logo
Attachment.creation This element is included in summaries. 0..1 dateTime Date attachment was first created

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Attachment.contentType Base required DocumentEntry mimeType 📦0.1.0 This IG
Attachment.language Base preferred Common Languages 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
att-1 error Attachment If the Attachment has data, it SHALL have a contentType data.empty() or contentType.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Attachment

Summary

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
Attachment.contentType This element is included in summaries. 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
Attachment.data 0..1 base64Binary Avoid using for wider compatability reasons.
Attachment.url This element is included in summaries. 0..1 url Uri where the data can be found. Mandatory for PDF or FHIR Documents
Example General: http://www.acme.com/logo-small.png

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Attachment.contentType Base required DocumentEntry mimeType 📦0.1.0 This IG

Constraints

Id Grade Path(s) Description Expression
att-1 error Attachment If the Attachment has data, it SHALL have a contentType data.empty() or contentType.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())

Differential View

This structure is derived from Attachment

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Attachment Attachment
Attachment.contentType 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Attachment.data 0..1 base64Binary Avoid using for wider compatability reasons.
Attachment.url 0..1 url Uri where the data can be found. Mandatory for PDF or FHIR Documents

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Attachment.contentType Base required DocumentEntry mimeType 📦0.1.0 This IG

Snapshot ViewView

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
Attachment.id 0..1 string Unique id for inter-element referencing
Attachment.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Attachment.contentType This element is included in summaries. 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
Attachment.language This element is included in summaries. 0..1 code Human language of the content (BCP-47)
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding

Example General: en-AU
Attachment.data 0..1 base64Binary Avoid using for wider compatability reasons.
Attachment.url This element is included in summaries. 0..1 url Uri where the data can be found. Mandatory for PDF or FHIR Documents
Example General: http://www.acme.com/logo-small.png
Attachment.size This element is included in summaries. 0..1 unsignedInt Number of bytes of content (if url provided)
Attachment.hash This element is included in summaries. 0..1 base64Binary Hash of the data (sha-1, base64ed)
Attachment.title This element is included in summaries. 0..1 string Label to display in place of the data
Example General: Official Corporate Logo
Attachment.creation This element is included in summaries. 0..1 dateTime Date attachment was first created

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Attachment.contentType Base required DocumentEntry mimeType 📦0.1.0 This IG
Attachment.language Base preferred Common Languages 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
att-1 error Attachment If the Attachment has data, it SHALL have a contentType data.empty() or contentType.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Attachment

Summary

 

Other representations of profile: CSV, Excel, Schematron