SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build

SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions

## Resource Profile: SGHI Specimen

Official URL: https://fhir.slade360.co.ke/fhir/StructureDefinition/specimen | Version: 0.1.0
Draft as of 2026-04-27 | Computable Name: SGHISpecimen

A sample to be used for analysis.

Usages:

- Examples for this Profile: Specimen/ExampleSGHISpecimen

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.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | Specimen | Sample for analysis
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Identifier
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
accessionIdentifier | Σ | 1..1 | Identifier | Identifier assigned by the lab
status | ?!Σ | 1..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): Codes providing the status/availability of a specimen.
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance, a biologically-derived product, or a device
receivedTime | Σ | 1..1 | dateTime | The time when specimen is received by the testing laboratory
role |  | 1..* | SGHICodeableConcept | The role the specimen serves Binding: SpecimenRole (preferred): Codes describing specimen role.
collection |  | 1..1 | BackboneElement | Collection details
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
collector | Σ | 0..1 | SGHIReference(SGHI Practitioner) | Who collected the specimen
collected[x] | Σ | 1..1 |  | Collection time
collectedDateTime |  |  | dateTime |
collectedPeriod |  |  | Period |
processing |  | 1..1 | BackboneElement | Processing and processing step details
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
method |  | 1..1 | SGHICodeableConcept | Indicates the treatment step applied to the specimen Binding: Specimen Type Value Sets (required)
additive |  | 0..* | SGHIReference(Substance) | Material used in the processing step
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Specimen.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Specimen.status | Base | required | Specimen Status | 📍5.0.0 | FHIR Std.
Specimen.role | Base | preferred | Specimen Role | 📍5.0.0 | FHIR Std.
Specimen.processing.​method | Base | required | Specimen Type Value Sets | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | A resource should have narrative for robust management | `text.`div`.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 Specimen

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | Specimen | Sample for analysis
identifier |  | 1..* | Identifier | External Identifier
use |  | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type |  | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system |  | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
assigner |  | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
accessionIdentifier |  | 1..1 | Identifier | Identifier assigned by the lab
status |  | 1..1 | code | available | unavailable | unsatisfactory | entered-in-error
subject |  | 1..1 | SGHIReference(SGHI Patient) | Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance, a biologically-derived product, or a device
receivedTime |  | 1..1 | dateTime | The time when specimen is received by the testing laboratory
role |  | 1..* | SGHICodeableConcept | The role the specimen serves
collection |  | 1..1 | BackboneElement | Collection details
collector |  | 0..1 | SGHIReference(SGHI Practitioner) | Who collected the specimen
collected[x] |  | 1..1 | dateTime, Period | Collection time
processing |  | 1..1 | BackboneElement | Processing and processing step details
method |  | 1..1 | SGHICodeableConcept | Indicates the treatment step applied to the specimen Binding: Specimen Type Value Sets (required)
additive |  | 0..* | SGHIReference(Substance) | Material used in the processing step
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Specimen.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Specimen.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Specimen.processing.​method | Base | required | Specimen Type Value Sets | 📦0.1.0 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | Specimen | Sample for analysis
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Identifier
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
accessionIdentifier | Σ | 1..1 | Identifier | Identifier assigned by the lab
status | ?!Σ | 1..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): Codes providing the status/availability of a specimen.
type | Σ | 0..1 | CodeableConcept | Kind of material that forms the specimen Binding: hl7VS-specimenType (example): The type of the specimen.
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance, a biologically-derived product, or a device
receivedTime | Σ | 1..1 | dateTime | The time when specimen is received by the testing laboratory
parent |  | 0..* | Reference(Specimen) | Specimen from which this specimen originated
request |  | 0..* | Reference(ServiceRequest) | Why the specimen was collected
combined | Σ | 0..1 | code | grouped | pooled Binding: SpecimenCombined (required): Codes for the combined status of a specimen.
role |  | 1..* | SGHICodeableConcept | The role the specimen serves Binding: SpecimenRole (preferred): Codes describing specimen role.
feature |  | 0..* | BackboneElement | The physical feature of a specimen
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type |  | 1..1 | CodeableConcept | Highlighted feature Binding: SNOMEDCTBodyStructures (example): SNOMED CT Body site concepts
description |  | 1..1 | string | Information about the feature
collection |  | 1..1 | BackboneElement | Collection details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
collector | Σ | 0..1 | SGHIReference(SGHI Practitioner) | Who collected the specimen
collected[x] | Σ | 1..1 |  | Collection time
collectedDateTime |  |  | dateTime |
collectedPeriod |  |  | Period |
duration | Σ | 0..1 | Duration | How long it took to collect specimen
quantity |  | 0..1 | SimpleQuantity(5.0.0) | The quantity of specimen collected
method |  | 0..1 | CodeableConcept | Technique used to perform collection Binding: FHIRSpecimenCollectionMethod (example): The technique that is used to perform the procedure.
device |  | 0..1 | CodeableReference(Device) | Device used to perform collection Binding Description: (example): The device that was used to obtain the specimen (e.g. a catheter or catheter part used to draw the blood via a central line).
procedure |  | 0..1 | Reference(Procedure) | The procedure that collects the specimen
bodySite |  | 0..1 | CodeableReference(BodyStructure) | Anatomical collection site Binding: SNOMEDCTBodyStructures (example): SNOMED CT Body site concepts
fastingStatus[x] | Σ | 0..1 |  | Whether or how long patient abstained from food and/or drink Binding: hl7VS-relevantClincialInformation (extensible): Codes describing the fasting status of the patient.
fastingStatusCodeableConcept |  |  | CodeableConcept |
fastingStatusDuration |  |  | Duration |
processing |  | 1..1 | BackboneElement | Processing and processing step details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
description |  | 0..1 | string | Textual description of procedure
method |  | 1..1 | SGHICodeableConcept | Indicates the treatment step applied to the specimen Binding: Specimen Type Value Sets (required)
additive |  | 0..* | SGHIReference(Substance) | Material used in the processing step
time[x] |  | 0..1 |  | Date and time of specimen processing
timeDateTime |  |  | dateTime |
timePeriod |  |  | Period |
container |  | 0..* | BackboneElement | Direct container of specimen (tube/slide, etc.)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
device |  | 1..1 | Reference(Device) | Device resource for the container
location |  | 0..1 | Reference(Location) | Where the container is
specimenQuantity |  | 0..1 | SimpleQuantity(5.0.0) | Quantity of specimen within container
condition | Σ | 0..* | CodeableConcept | State of the specimen Binding: hl7VS-specimenCondition (extensible): Codes describing the state of the specimen.
note |  | 0..* | Annotation | Comments
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Specimen.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Specimen.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Specimen.status | Base | required | Specimen Status | 📍5.0.0 | FHIR Std.
Specimen.type | Base | example | hl7VS-specimenType | 📦3.0.0 | THO v7.1
Specimen.combined | Base | required | Specimen Combined | 📍5.0.0 | FHIR Std.
Specimen.role | Base | preferred | Specimen Role | 📍5.0.0 | FHIR Std.
Specimen.feature.type | Base | example | SNOMED CT Body Structures | 📍5.0.0 | FHIR Std.
Specimen.collection.​method | Base | example | FHIR Specimen Collection Method | 📍5.0.0 | FHIR Std.
Specimen.collection.​device | Base | example |  | Not State | Unknown
Specimen.collection.​bodySite | Base | example | SNOMED CT Body Structures | 📍5.0.0 | FHIR Std.
Specimen.collection.​fastingStatus[x] | Base | extensible | hl7VS-relevantClincialInformation | 📦3.0.0 | THO v7.1
Specimen.processing.​method | Base | required | Specimen Type Value Sets | 📦0.1.0 | This IG
Specimen.condition | Base | extensible | hl7VS-specimenCondition | 📦3.0.0 | THO v7.1

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | A resource should have narrative for robust management | `text.`div`.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 Specimen

Summary

Mandatory: 13 elements

Structures

This structure refers to these other structures:

- SGHI CodeableConcept (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept)
- SGHI Reference (https://fhir.slade360.co.ke/fhir/StructureDefinition/reference)
- SGHI Organization (https://fhir.slade360.co.ke/fhir/StructureDefinition/organization)
- SGHI Patient (https://fhir.slade360.co.ke/fhir/StructureDefinition/patient)
- SGHI Practitioner (https://fhir.slade360.co.ke/fhir/StructureDefinition/practitioner)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | Specimen | Sample for analysis
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Identifier
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
accessionIdentifier | Σ | 1..1 | Identifier | Identifier assigned by the lab
status | ?!Σ | 1..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): Codes providing the status/availability of a specimen.
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance, a biologically-derived product, or a device
receivedTime | Σ | 1..1 | dateTime | The time when specimen is received by the testing laboratory
role |  | 1..* | SGHICodeableConcept | The role the specimen serves Binding: SpecimenRole (preferred): Codes describing specimen role.
collection |  | 1..1 | BackboneElement | Collection details
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
collector | Σ | 0..1 | SGHIReference(SGHI Practitioner) | Who collected the specimen
collected[x] | Σ | 1..1 |  | Collection time
collectedDateTime |  |  | dateTime |
collectedPeriod |  |  | Period |
processing |  | 1..1 | BackboneElement | Processing and processing step details
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
method |  | 1..1 | SGHICodeableConcept | Indicates the treatment step applied to the specimen Binding: Specimen Type Value Sets (required)
additive |  | 0..* | SGHIReference(Substance) | Material used in the processing step
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Specimen.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Specimen.status | Base | required | Specimen Status | 📍5.0.0 | FHIR Std.
Specimen.role | Base | preferred | Specimen Role | 📍5.0.0 | FHIR Std.
Specimen.processing.​method | Base | required | Specimen Type Value Sets | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | A resource should have narrative for robust management | `text.`div`.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()`

Differential View

This structure is derived from Specimen

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | Specimen | Sample for analysis
identifier |  | 1..* | Identifier | External Identifier
use |  | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type |  | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system |  | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
assigner |  | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
accessionIdentifier |  | 1..1 | Identifier | Identifier assigned by the lab
status |  | 1..1 | code | available | unavailable | unsatisfactory | entered-in-error
subject |  | 1..1 | SGHIReference(SGHI Patient) | Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance, a biologically-derived product, or a device
receivedTime |  | 1..1 | dateTime | The time when specimen is received by the testing laboratory
role |  | 1..* | SGHICodeableConcept | The role the specimen serves
collection |  | 1..1 | BackboneElement | Collection details
collector |  | 0..1 | SGHIReference(SGHI Practitioner) | Who collected the specimen
collected[x] |  | 1..1 | dateTime, Period | Collection time
processing |  | 1..1 | BackboneElement | Processing and processing step details
method |  | 1..1 | SGHICodeableConcept | Indicates the treatment step applied to the specimen Binding: Specimen Type Value Sets (required)
additive |  | 0..* | SGHIReference(Substance) | Material used in the processing step
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Specimen.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Specimen.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Specimen.processing.​method | Base | required | Specimen Type Value Sets | 📦0.1.0 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Specimen |  | 0..* | Specimen | Sample for analysis
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Identifier
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
accessionIdentifier | Σ | 1..1 | Identifier | Identifier assigned by the lab
status | ?!Σ | 1..1 | code | available | unavailable | unsatisfactory | entered-in-error Binding: SpecimenStatus (required): Codes providing the status/availability of a specimen.
type | Σ | 0..1 | CodeableConcept | Kind of material that forms the specimen Binding: hl7VS-specimenType (example): The type of the specimen.
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance, a biologically-derived product, or a device
receivedTime | Σ | 1..1 | dateTime | The time when specimen is received by the testing laboratory
parent |  | 0..* | Reference(Specimen) | Specimen from which this specimen originated
request |  | 0..* | Reference(ServiceRequest) | Why the specimen was collected
combined | Σ | 0..1 | code | grouped | pooled Binding: SpecimenCombined (required): Codes for the combined status of a specimen.
role |  | 1..* | SGHICodeableConcept | The role the specimen serves Binding: SpecimenRole (preferred): Codes describing specimen role.
feature |  | 0..* | BackboneElement | The physical feature of a specimen
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type |  | 1..1 | CodeableConcept | Highlighted feature Binding: SNOMEDCTBodyStructures (example): SNOMED CT Body site concepts
description |  | 1..1 | string | Information about the feature
collection |  | 1..1 | BackboneElement | Collection details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
collector | Σ | 0..1 | SGHIReference(SGHI Practitioner) | Who collected the specimen
collected[x] | Σ | 1..1 |  | Collection time
collectedDateTime |  |  | dateTime |
collectedPeriod |  |  | Period |
duration | Σ | 0..1 | Duration | How long it took to collect specimen
quantity |  | 0..1 | SimpleQuantity(5.0.0) | The quantity of specimen collected
method |  | 0..1 | CodeableConcept | Technique used to perform collection Binding: FHIRSpecimenCollectionMethod (example): The technique that is used to perform the procedure.
device |  | 0..1 | CodeableReference(Device) | Device used to perform collection Binding Description: (example): The device that was used to obtain the specimen (e.g. a catheter or catheter part used to draw the blood via a central line).
procedure |  | 0..1 | Reference(Procedure) | The procedure that collects the specimen
bodySite |  | 0..1 | CodeableReference(BodyStructure) | Anatomical collection site Binding: SNOMEDCTBodyStructures (example): SNOMED CT Body site concepts
fastingStatus[x] | Σ | 0..1 |  | Whether or how long patient abstained from food and/or drink Binding: hl7VS-relevantClincialInformation (extensible): Codes describing the fasting status of the patient.
fastingStatusCodeableConcept |  |  | CodeableConcept |
fastingStatusDuration |  |  | Duration |
processing |  | 1..1 | BackboneElement | Processing and processing step details
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
description |  | 0..1 | string | Textual description of procedure
method |  | 1..1 | SGHICodeableConcept | Indicates the treatment step applied to the specimen Binding: Specimen Type Value Sets (required)
additive |  | 0..* | SGHIReference(Substance) | Material used in the processing step
time[x] |  | 0..1 |  | Date and time of specimen processing
timeDateTime |  |  | dateTime |
timePeriod |  |  | Period |
container |  | 0..* | BackboneElement | Direct container of specimen (tube/slide, etc.)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
device |  | 1..1 | Reference(Device) | Device resource for the container
location |  | 0..1 | Reference(Location) | Where the container is
specimenQuantity |  | 0..1 | SimpleQuantity(5.0.0) | Quantity of specimen within container
condition | Σ | 0..* | CodeableConcept | State of the specimen Binding: hl7VS-specimenCondition (extensible): Codes describing the state of the specimen.
note |  | 0..* | Annotation | Comments
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Specimen.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Specimen.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Specimen.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Specimen.status | Base | required | Specimen Status | 📍5.0.0 | FHIR Std.
Specimen.type | Base | example | hl7VS-specimenType | 📦3.0.0 | THO v7.1
Specimen.combined | Base | required | Specimen Combined | 📍5.0.0 | FHIR Std.
Specimen.role | Base | preferred | Specimen Role | 📍5.0.0 | FHIR Std.
Specimen.feature.type | Base | example | SNOMED CT Body Structures | 📍5.0.0 | FHIR Std.
Specimen.collection.​method | Base | example | FHIR Specimen Collection Method | 📍5.0.0 | FHIR Std.
Specimen.collection.​device | Base | example |  | Not State | Unknown
Specimen.collection.​bodySite | Base | example | SNOMED CT Body Structures | 📍5.0.0 | FHIR Std.
Specimen.collection.​fastingStatus[x] | Base | extensible | hl7VS-relevantClincialInformation | 📦3.0.0 | THO v7.1
Specimen.processing.​method | Base | required | Specimen Type Value Sets | 📦0.1.0 | This IG
Specimen.condition | Base | extensible | hl7VS-specimenCondition | 📦3.0.0 | THO v7.1

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Specimen | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Specimen | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Specimen | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Specimen | A resource should have narrative for robust management | `text.`div`.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 Specimen

Summary

Mandatory: 13 elements

Structures

This structure refers to these other structures:

- SGHI CodeableConcept (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept)
- SGHI Reference (https://fhir.slade360.co.ke/fhir/StructureDefinition/reference)
- SGHI Organization (https://fhir.slade360.co.ke/fhir/StructureDefinition/organization)
- SGHI Patient (https://fhir.slade360.co.ke/fhir/StructureDefinition/patient)
- SGHI Practitioner (https://fhir.slade360.co.ke/fhir/StructureDefinition/practitioner)

Other representations of profile: CSV, Excel, Schematron