0.1.0 - ci-build

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

Extension: SENAITE Specimen Barcode

Official URL: https://fhir.senaite.org/StructureDefinition/SenaiteSpecimenBarcode Version: 0.1.0
Draft as of 2026-11-05 Computable Name: SenaiteSpecimenBarcode

The barcode label for the specimen container, as a base64-encoded PDF or image. The barcode encodes the Sample ID by default, or the Client Sample ID where the deployment is configured to use it. Populated by SENAITE on every Specimen it returns; never accepted on create.

Context of Use

    This extension may be used on the following element(s)

Usage info

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Extension Content

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

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..1 Extension Barcode label for the specimen container (base64 PDF or image)
Extension.extension 0..0 Extension
Extension.url 1..1 uri "https://fhir.senaite.org/StructureDefinition/SenaiteSpecimenBarcode"
Extension.value[x] 1..1 Attachment Barcode label (PDF or image)
Extension.value[x].extension 0..0 Extension
Extension.value[x].contentType 1..1 code application/pdf or an image MIME type (e.g. image/png, image/svg+xml)
Extension.value[x].language 0..0 Human language of the content (BCP-47)
Extension.value[x].data 1..1 base64Binary Base64-encoded PDF or image barcode label
Extension.value[x].url 0..0 Uri where the data can be found
Extension.value[x].size 0..0 Number of bytes of content (if url provided)
Extension.value[x].hash 0..0 Hash of the data (sha-1, base64ed)
Extension.value[x].title 0..0 Label to display in place of the data
Extension.value[x].creation 0..0 Date attachment was first created
Extension.value[x].height 0..0 Height of the image in pixels (photo/video)
Extension.value[x].width 0..0 Width of the image in pixels (photo/video)
Extension.value[x].frames 0..0 Number of frames if > 1 (photo)
Extension.value[x].duration 0..0 Length in seconds (audio / video)
Extension.value[x].pages 0..0 Number of printed pages

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..1 Extension Barcode label for the specimen container (base64 PDF or image)
Extension.id 0..1 id Unique id for inter-element referencing
Extension.extension 0..0 Extension
Slice: Unordered, Open by value:url
Extension.url 1..1 uri "https://fhir.senaite.org/StructureDefinition/SenaiteSpecimenBarcode"
Extension.value[x] 1..1 Attachment Barcode label (PDF or image)
Extension.value[x].id 0..1 id Unique id for inter-element referencing
Extension.value[x].extension 0..0 Extension
Slice: Unordered, Open by value:url
Extension.value[x].contentType This element is included in summaries. C 1..1 code application/pdf or an image MIME type (e.g. image/png, image/svg+xml)
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
Example General: text/plain; charset=UTF-8, image/png
Extension.value[x].data C 1..1 base64Binary Base64-encoded PDF or image barcode label

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Attachment: The barcode label for the specimen container, as a base64-encoded PDF or image. The barcode encodes the Sample ID by default, or the Client Sample ID where the deployment is configured to use it. Populated by SENAITE on every Specimen it returns; never accepted on create.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..1 Extension Barcode label for the specimen container (base64 PDF or image)
Extension.extension 0..0 Extension
Extension.url 1..1 uri "https://fhir.senaite.org/StructureDefinition/SenaiteSpecimenBarcode"
Extension.value[x] 1..1 Attachment Barcode label (PDF or image)
Extension.value[x].extension 0..0 Extension
Extension.value[x].contentType 1..1 code application/pdf or an image MIME type (e.g. image/png, image/svg+xml)
Extension.value[x].language 0..0 Human language of the content (BCP-47)
Extension.value[x].data 1..1 base64Binary Base64-encoded PDF or image barcode label
Extension.value[x].url 0..0 Uri where the data can be found
Extension.value[x].size 0..0 Number of bytes of content (if url provided)
Extension.value[x].hash 0..0 Hash of the data (sha-1, base64ed)
Extension.value[x].title 0..0 Label to display in place of the data
Extension.value[x].creation 0..0 Date attachment was first created
Extension.value[x].height 0..0 Height of the image in pixels (photo/video)
Extension.value[x].width 0..0 Width of the image in pixels (photo/video)
Extension.value[x].frames 0..0 Number of frames if > 1 (photo)
Extension.value[x].duration 0..0 Length in seconds (audio / video)
Extension.value[x].pages 0..0 Number of printed pages

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..1 Extension Barcode label for the specimen container (base64 PDF or image)
Extension.id 0..1 id Unique id for inter-element referencing
Extension.extension 0..0 Extension
Slice: Unordered, Open by value:url
Extension.url 1..1 uri "https://fhir.senaite.org/StructureDefinition/SenaiteSpecimenBarcode"
Extension.value[x] 1..1 Attachment Barcode label (PDF or image)
Extension.value[x].id 0..1 id Unique id for inter-element referencing
Extension.value[x].extension 0..0 Extension
Slice: Unordered, Open by value:url
Extension.value[x].contentType This element is included in summaries. C 1..1 code application/pdf or an image MIME type (e.g. image/png, image/svg+xml)
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
Example General: text/plain; charset=UTF-8, image/png
Extension.value[x].data C 1..1 base64Binary Base64-encoded PDF or image barcode label

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Attachment: The barcode label for the specimen container, as a base64-encoded PDF or image. The barcode encodes the Sample ID by default, or the Client Sample ID where the deployment is configured to use it. Populated by SENAITE on every Specimen it returns; never accepted on create.

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

Path Status Usage ValueSet Version Source
Extension.value[x].contentType Base required Mime Types 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
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()