NHS North West Genomics
2.2.5 - ci-build United Kingdom flag

NHS North West Genomics - Local Development build (v2.2.5) 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/StructureDefinition/NWAttachment Version: 2.2.5
Draft as of 2026-11-05 Computable Name: NWAttachment

DRAFT: Additional conformance on FHIR Attachment data type.

In HL7 FHIR this is likely to be a Binary resource and in HL7 v2 the OBX segment. When laboratory reports include a url link in DiagnosticReport, the FHIR Bundle should also include a FHIR DocumentReference providing additional document metadata.

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.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 📦2.2.5 This IG

Constraints

Id Grade Path(s) Description Expression

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..0 Data inline, base64ed
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 📦2.2.5 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.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 📦2.2.5 This IG
Attachment.language Base preferred Common Languages 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression

This structure is derived from Attachment

Summary

Prohibited: 1 element

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.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 📦2.2.5 This IG

Constraints

Id Grade Path(s) Description Expression

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..0 Data inline, base64ed
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 📦2.2.5 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.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 📦2.2.5 This IG
Attachment.language Base preferred Common Languages 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression

This structure is derived from Attachment

Summary

Prohibited: 1 element

 

Other representations of profile: CSV, Excel, Schematron