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

NHS North West Genomics, published by NHS North West Genomics. This guide is not an authorized publication; it is the continuous build for version 0.0.8 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/nw-gmsa/nw-gmsa.github.com/ and changes regularly. See the Directory of published versions

Data Type Profile: Attachment

Official URL: https://fhir.nwgenomics.nhs.uk/StructureDefinition/NWAttachment Version: 0.0.8
Draft as of 2025-10-30 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 of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
... contentType Σ 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
... data 0..1 base64Binary Avoid using for wider compatability reasons.
... url Σ 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.0.8 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: Filtersdoco
.. Attachment Attachment
... contentType 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
... data 0..1 base64Binary Avoid using for wider compatability reasons.
... 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.0.8 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
... id 0..1 string Unique id for inter-element referencing
... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... contentType Σ 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
... language Σ 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
... data 0..1 base64Binary Avoid using for wider compatability reasons.
... url Σ 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
... size Σ 0..1 unsignedInt Number of bytes of content (if url provided)
... hash Σ 0..1 base64Binary Hash of the data (sha-1, base64ed)
... title Σ 0..1 string Label to display in place of the data
Example General: Official Corporate Logo
... creation Σ 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.0.8 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: Filtersdoco
.. Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
... contentType Σ 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
... data 0..1 base64Binary Avoid using for wider compatability reasons.
... url Σ 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.0.8 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: Filtersdoco
.. Attachment Attachment
... contentType 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
... data 0..1 base64Binary Avoid using for wider compatability reasons.
... 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.0.8 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Attachment C 0..* Attachment Content in a format defined elsewhere
Constraints: att-1
... id 0..1 string Unique id for inter-element referencing
... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
... contentType Σ 0..1 code Mime type of the content, with charset etc.
Binding: DocumentEntry mimeType (required)
Example General: text/plain; charset=UTF-8, image/png
... language Σ 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
... data 0..1 base64Binary Avoid using for wider compatability reasons.
... url Σ 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
... size Σ 0..1 unsignedInt Number of bytes of content (if url provided)
... hash Σ 0..1 base64Binary Hash of the data (sha-1, base64ed)
... title Σ 0..1 string Label to display in place of the data
Example General: Official Corporate Logo
... creation Σ 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.0.8 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