SMART Health Cards: Vaccination & Testing Implementation Guide
1.0.0 - STU1 Release International flag

SMART Health Cards: Vaccination & Testing Implementation Guide, published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-shc-vaccination-ig/ and changes regularly. See the Directory of published versions

Resource Profile: COVID-19 Laboratory Result Observation Profile - Allowable Data

Official URL: http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-covid19-laboratory-result-observation-ad Version: 1.0.0
Draft as of 2023-12-27 Computable Name: SHCCovid19LaboratoryResultObservationAD

Defines a fallback (AD) profile representing a laboratory testing result for COVID-19 in a health card.

See here for implementation details.

Start here!

Description:

For representing laboratory test results related to infection with or immunity to an infectious disease.

Primary profile (DM) Fallback profile (AD) Scope of profile pair
Lab results - COVID-19 Fallback COVID-19 only
Lab results - Generic Fallback Other infectious diseases
For more information about the types of profiles in this IG, see the profiles page.

Note! This is a fallback “allowable data” (AD) profile. Implementers should validate against the primary “data minimization” (DM) profile if possible.

Usage:

Formal Views of Profile Content

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

This structure is derived from Observation

NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation Observation
... id 0..1idShould not be populated
... meta S0..1MetaMetadata about the resource
.... security S0..1CodingLimited security label to convey identity level of assurance for patient referenced by this resource.
Binding: Identity Assurance Level (required)
... status S1..1coderegistered | preliminary | final | amended +
Binding: Completed observation status (required)
... subject S1..1Reference(Patient Profile - General - Allowable Data)Patient to whom lab result applies
.... reference 1..1stringThis SHOULD use an absolute URI like `resource:0` that will resolve within the containing Bundle.
.... type 0..0
.... identifier 0..0
.... display 0..0
... effective[x] S1..1Clinically relevant time/time-period for observation
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... performer S0..1Reference(Organization)Organization which was responsible for the laboratory test result.
.... display SC1..1stringShort, human-readable text representation of the organization.
vc-should-be-under-30-chars: Length SHOULD be <30 for data minimization.
... Slices for value[x] S1..1Actual result
Slice: Unordered, Open by type:$this
.... valueQuantityQuantity
.... valueCodeableConceptCodeableConcept
.... valueStringstring
.... value[x]:valueCodeableConcept 0..1CodeableConceptActual result
Binding: Qualitative infectious disease-related lab test result codes (required)
.... value[x]:valueQuantity C0..1QuantityActual result
vc-observation-quantity-should-have-range: Quantitative lab results SHOULD include reference range
.... value[x]:valueString C0..1stringString representation of results; used ONLY when a computable representation is not possible
vc-should-be-under-20-chars: Length SHOULD be <20 for data minimization.
... referenceRange SC0..*BackboneElementProvides guide for interpretation. SHOULD include if using valueQuantity.
vc-observation-range-only-quantity-or-string: Reference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
... Slices for component 0..*BackboneElementComponent results
Slice: Unordered, Open by value:code
.... component:specimen-supervision-status S0..1BackboneElementComponent results
..... code
...... coding 1..1CodingCode defined by a terminology system
....... system 1..1uriIdentity of the terminology system
Fixed Value: http://snomed.info/sct
....... code 1..1codeSNOMED CT concept 'Type of supervision for specimen collection (observable entity)'
Fixed Value: 1208522006
..... Slices for value[x] 1..1CodeableConceptActual component result
Slice: Unordered, Open by type:$this
...... value[x]:valueCodeableConcept 1..1CodeableConceptActual component result
Binding: Specimen Collection Supervision Status (required)
....... extension 0..0
....... coding 1..1CodingCode defined by a terminology system
........ system 1..1uriIdentity of the terminology system
........ code 1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Observation.meta.securityrequiredIdentityAssuranceLevel
Observation.statusrequiredCompletedObservationStatus
Observation.coderequiredLabQualitativeTestCovidValueSet
Observation.value[x]:valueCodeableConceptrequiredLabQualitativeResultValueSet
Observation.component:specimen-supervision-status.value[x]:valueCodeableConceptrequiredSpecimenCollectionSupervisionStatus

Constraints

IdGradePath(s)DetailsRequirements
vc-observation-quantity-should-have-rangewarningObservation.value[x]:valueQuantityQuantitative lab results SHOULD include reference range
: %resource.referenceRange.exists()
vc-observation-range-only-quantity-or-stringwarningObservation.referenceRangeReference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
: $this.exists() and (%resource.value.ofType(Quantity).exists() or %resource.value.ofType(string).exists())
vc-should-be-under-20-charswarningObservation.value[x]:valueStringLength SHOULD be <20 for data minimization.
: $this.length() < 20
vc-should-be-under-30-charswarningObservation.performer.displayLength SHOULD be <30 for data minimization.
: $this.length() < 30
NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation C0..*ObservationMeasurements and simple assertions
... id Σ0..1idShould not be populated
... meta SΣ0..1MetaMetadata about the resource
.... security SΣ0..1CodingLimited security label to convey identity level of assurance for patient referenced by this resource.
Binding: Identity Assurance Level (required)
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... status ?!SΣ1..1coderegistered | preliminary | final | amended +
Binding: Completed observation status (required)
... code SΣ1..1CodeableConceptType of observation (code / type)
Binding: LOINCs identifying qualitative COVID lab tests (required)
... subject SΣ1..1Reference(Patient Profile - General - Allowable Data)Patient to whom lab result applies
.... reference ΣC1..1stringThis SHOULD use an absolute URI like `resource:0` that will resolve within the containing Bundle.
... effective[x] SΣ1..1Clinically relevant time/time-period for observation
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... performer SΣ0..1Reference(Organization)Organization which was responsible for the laboratory test result.
.... display SΣC1..1stringShort, human-readable text representation of the organization.
vc-should-be-under-30-chars: Length SHOULD be <30 for data minimization.
... Slices for value[x] SΣC1..1Actual result
Slice: Unordered, Closed by type:$this
.... valueQuantityQuantity
.... valueCodeableConceptCodeableConcept
.... valueStringstring
.... value[x]:valueCodeableConcept ΣC0..1CodeableConceptActual result
Binding: Qualitative infectious disease-related lab test result codes (required)
.... value[x]:valueQuantity ΣC0..1QuantityActual result
vc-observation-quantity-should-have-range: Quantitative lab results SHOULD include reference range
.... value[x]:valueString ΣC0..1stringString representation of results; used ONLY when a computable representation is not possible
vc-should-be-under-20-chars: Length SHOULD be <20 for data minimization.
... referenceRange SC0..*BackboneElementProvides guide for interpretation. SHOULD include if using valueQuantity.
vc-observation-range-only-quantity-or-string: Reference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
... Slices for component Σ0..*BackboneElementComponent results
Slice: Unordered, Open by value:code
.... component:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

.... component:specimen-supervision-status SΣ0..1BackboneElementComponent results
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

...... coding Σ1..1CodingCode defined by a terminology system
....... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://snomed.info/sct
....... code Σ1..1codeSNOMED CT concept 'Type of supervision for specimen collection (observable entity)'
Fixed Value: 1208522006
..... Slices for value[x] Σ1..1CodeableConceptActual component result
Slice: Unordered, Closed by type:$this
...... value[x]:valueCodeableConcept Σ1..1CodeableConceptActual component result
Binding: Specimen Collection Supervision Status (required)
....... extension 0..0
....... coding Σ1..1CodingCode defined by a terminology system
........ system Σ1..1uriIdentity of the terminology system
........ code Σ1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Observation.meta.securityrequiredIdentityAssuranceLevel
Observation.statusrequiredCompletedObservationStatus
Observation.coderequiredLabQualitativeTestCovidValueSet
Observation.value[x]:valueCodeableConceptrequiredLabQualitativeResultValueSet
Observation.component.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component:specimen-supervision-status.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component:specimen-supervision-status.value[x]:valueCodeableConceptrequiredSpecimenCollectionSupervisionStatus

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorObservationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorObservationIf 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorObservationIf 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-5errorObservationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceObservationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
obs-3errorObservation.referenceRangeMust have at least a low or a high or text
: low.exists() or high.exists() or text.exists()
obs-6errorObservationdataAbsentReason SHALL only be present if Observation.value[x] is not present
: dataAbsentReason.empty() or value.empty()
obs-7errorObservationIf Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present
: value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()
vc-observation-quantity-should-have-rangewarningObservation.value[x]:valueQuantityQuantitative lab results SHOULD include reference range
: %resource.referenceRange.exists()
vc-observation-range-only-quantity-or-stringwarningObservation.referenceRangeReference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
: $this.exists() and (%resource.value.ofType(Quantity).exists() or %resource.value.ofType(string).exists())
vc-should-be-under-20-charswarningObservation.value[x]:valueStringLength SHOULD be <20 for data minimization.
: $this.length() < 20
vc-should-be-under-30-charswarningObservation.performer.displayLength SHOULD be <30 for data minimization.
: $this.length() < 30
NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation C0..*ObservationMeasurements and simple assertions
... id Σ0..1idShould not be populated
... meta SΣ0..1MetaMetadata about the resource
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ0..1idVersion specific identifier
.... lastUpdated Σ0..1instantWhen the resource version last changed
.... source Σ0..1uriIdentifies where the resource comes from
.... profile Σ0..*canonical(StructureDefinition)Profiles this resource claims to conform to
.... security SΣ0..1CodingLimited security label to convey identity level of assurance for patient referenced by this resource.
Binding: Identity Assurance Level (required)
.... tag Σ0..*CodingTags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness Identifier for observation
... basedOn Σ0..*Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest)Fulfills plan, proposal or order
... partOf Σ0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Immunization | ImagingStudy)Part of referenced event
... status ?!SΣ1..1coderegistered | preliminary | final | amended +
Binding: Completed observation status (required)
... category 0..*CodeableConceptClassification of type of observation
Binding: ObservationCategoryCodes (preferred): Codes for high level observation categories.


... code SΣ1..1CodeableConceptType of observation (code / type)
Binding: LOINCs identifying qualitative COVID lab tests (required)
... subject SΣ1..1Reference(Patient Profile - General - Allowable Data)Patient to whom lab result applies
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringThis SHOULD use an absolute URI like `resource:0` that will resolve within the containing Bundle.
... focus Σ0..*Reference(Resource)What the observation is about, when it is not about the subject of record
... encounter Σ0..1Reference(Encounter)Healthcare event during which this observation is made
... effective[x] SΣ1..1Clinically relevant time/time-period for observation
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... issued Σ0..1instantDate/Time this version was made available
... performer SΣ0..1Reference(Organization)Organization which was responsible for the laboratory test result.
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC0..1stringLiteral reference, Relative, internal or absolute URL
.... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
.... display SΣC1..1stringShort, human-readable text representation of the organization.
vc-should-be-under-30-chars: Length SHOULD be <30 for data minimization.
... Slices for value[x] SΣC1..1Actual result
Slice: Unordered, Closed by type:$this
.... valueQuantityQuantity
.... valueCodeableConceptCodeableConcept
.... valueStringstring
.... value[x]:valueCodeableConcept ΣC0..1CodeableConceptActual result
Binding: Qualitative infectious disease-related lab test result codes (required)
.... value[x]:valueQuantity ΣC0..1QuantityActual result
vc-observation-quantity-should-have-range: Quantitative lab results SHOULD include reference range
.... value[x]:valueString ΣC0..1stringString representation of results; used ONLY when a computable representation is not possible
vc-should-be-under-20-chars: Length SHOULD be <20 for data minimization.
... dataAbsentReason C0..1CodeableConceptWhy the result is missing
Binding: DataAbsentReason (extensible): Codes specifying why the result (Observation.value[x]) is missing.

... interpretation 0..*CodeableConceptHigh, low, normal, etc.
Binding: ObservationInterpretationCodes (extensible): Codes identifying interpretations of observations.


... note 0..*AnnotationComments about the observation
... bodySite 0..1CodeableConceptObserved body part
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.

... method 0..1CodeableConceptHow it was done
Binding: ObservationMethods (example): Methods for simple observations.

... specimen 0..1Reference(Specimen)Specimen used for this observation
... device 0..1Reference(Device | DeviceMetric)(Measurement) Device
... referenceRange SC0..*BackboneElementProvides guide for interpretation. SHOULD include if using valueQuantity.
vc-observation-range-only-quantity-or-string: Reference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... low C0..1SimpleQuantityLow Range, if relevant
.... high C0..1SimpleQuantityHigh Range, if relevant
.... type 0..1CodeableConceptReference range qualifier
Binding: ObservationReferenceRangeMeaningCodes (preferred): Code for the meaning of a reference range.

.... appliesTo 0..*CodeableConceptReference range population
Binding: ObservationReferenceRangeAppliesToCodes (example): Codes identifying the population the reference range applies to.


.... age 0..1RangeApplicable age range, if relevant
.... text 0..1stringText based reference range in an observation
... hasMember Σ0..*Reference(Observation | QuestionnaireResponse | MolecularSequence)Related resource that belongs to the Observation group
... derivedFrom Σ0..*Reference(DocumentReference | ImagingStudy | Media | QuestionnaireResponse | Observation | MolecularSequence)Related measurements the observation is made from
... Slices for component Σ0..*BackboneElementComponent results
Slice: Unordered, Open by value:code
.... component:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

..... value[x] Σ0..1Actual component result
...... valueQuantityQuantity
...... valueCodeableConceptCodeableConcept
...... valueStringstring
...... valueBooleanboolean
...... valueIntegerinteger
...... valueRangeRange
...... valueRatioRatio
...... valueSampledDataSampledData
...... valueTimetime
...... valueDateTimedateTime
...... valuePeriodPeriod
..... dataAbsentReason C0..1CodeableConceptWhy the component result is missing
Binding: DataAbsentReason (extensible): Codes specifying why the result (Observation.value[x]) is missing.

..... interpretation 0..*CodeableConceptHigh, low, normal, etc.
Binding: ObservationInterpretationCodes (extensible): Codes identifying interpretations of observations.


..... referenceRange 0..*See referenceRange (Observation)Provides guide for interpretation of component result
.... component:specimen-supervision-status SΣ0..1BackboneElementComponent results
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ1..1CodingCode defined by a terminology system
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://snomed.info/sct
....... version Σ0..1stringVersion of the system - if relevant
....... code Σ1..1codeSNOMED CT concept 'Type of supervision for specimen collection (observable entity)'
Fixed Value: 1208522006
....... display Σ0..1stringRepresentation defined by the system
....... userSelected Σ0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... Slices for value[x] Σ1..1CodeableConceptActual component result
Slice: Unordered, Closed by type:$this
...... value[x]:valueCodeableConcept Σ1..1CodeableConceptActual component result
Binding: Specimen Collection Supervision Status (required)
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..0
....... coding Σ1..1CodingCode defined by a terminology system
........ id 0..1stringUnique id for inter-element referencing
........ extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
........ system Σ1..1uriIdentity of the terminology system
........ version Σ0..1stringVersion of the system - if relevant
........ code Σ1..1codeSymbol in syntax defined by the system
........ display Σ0..1stringRepresentation defined by the system
........ userSelected Σ0..1booleanIf this coding was chosen directly by the user
....... text Σ0..1stringPlain text representation of the concept
..... dataAbsentReason C0..1CodeableConceptWhy the component result is missing
Binding: DataAbsentReason (extensible): Codes specifying why the result (Observation.value[x]) is missing.

..... interpretation 0..*CodeableConceptHigh, low, normal, etc.
Binding: ObservationInterpretationCodes (extensible): Codes identifying interpretations of observations.


..... referenceRange 0..*See referenceRange (Observation)Provides guide for interpretation of component result

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Observation.meta.securityrequiredIdentityAssuranceLevel
Observation.meta.tagexampleCommonTags
Observation.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Observation.statusrequiredCompletedObservationStatus
Observation.categorypreferredObservationCategoryCodes
Observation.coderequiredLabQualitativeTestCovidValueSet
Observation.performer.typeextensibleResourceType
Observation.value[x]:valueCodeableConceptrequiredLabQualitativeResultValueSet
Observation.dataAbsentReasonextensibleDataAbsentReason
Observation.interpretationextensibleObservationInterpretationCodes
Observation.bodySiteexampleSNOMEDCTBodyStructures
Observation.methodexampleObservationMethods
Observation.referenceRange.typepreferredObservationReferenceRangeMeaningCodes
Observation.referenceRange.appliesToexampleObservationReferenceRangeAppliesToCodes
Observation.component.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component.dataAbsentReasonextensibleDataAbsentReason
Observation.component.interpretationextensibleObservationInterpretationCodes
Observation.component:specimen-supervision-status.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component:specimen-supervision-status.value[x]:valueCodeableConceptrequiredSpecimenCollectionSupervisionStatus
Observation.component:specimen-supervision-status.dataAbsentReasonextensibleDataAbsentReason
Observation.component:specimen-supervision-status.interpretationextensibleObservationInterpretationCodes

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorObservationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorObservationIf 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorObservationIf 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-5errorObservationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceObservationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
obs-3errorObservation.referenceRangeMust have at least a low or a high or text
: low.exists() or high.exists() or text.exists()
obs-6errorObservationdataAbsentReason SHALL only be present if Observation.value[x] is not present
: dataAbsentReason.empty() or value.empty()
obs-7errorObservationIf Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present
: value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()
vc-observation-quantity-should-have-rangewarningObservation.value[x]:valueQuantityQuantitative lab results SHOULD include reference range
: %resource.referenceRange.exists()
vc-observation-range-only-quantity-or-stringwarningObservation.referenceRangeReference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
: $this.exists() and (%resource.value.ofType(Quantity).exists() or %resource.value.ofType(string).exists())
vc-should-be-under-20-charswarningObservation.value[x]:valueStringLength SHOULD be <20 for data minimization.
: $this.length() < 20
vc-should-be-under-30-charswarningObservation.performer.displayLength SHOULD be <30 for data minimization.
: $this.length() < 30

This structure is derived from Observation

Summary

Mandatory: 4 elements (9 nested mandatory elements)
Must-Support: 11 elements
Fixed Value: 2 elements
Prohibited: 4 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element Observation.value[x] is sliced based on the value of type:$this
  • The element Observation.component is sliced based on the value of value:code
  • The element Observation.component.value[x] is sliced based on the value of type:$this

Differential View

This structure is derived from Observation

NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation Observation
... id 0..1idShould not be populated
... meta S0..1MetaMetadata about the resource
.... security S0..1CodingLimited security label to convey identity level of assurance for patient referenced by this resource.
Binding: Identity Assurance Level (required)
... status S1..1coderegistered | preliminary | final | amended +
Binding: Completed observation status (required)
... subject S1..1Reference(Patient Profile - General - Allowable Data)Patient to whom lab result applies
.... reference 1..1stringThis SHOULD use an absolute URI like `resource:0` that will resolve within the containing Bundle.
.... type 0..0
.... identifier 0..0
.... display 0..0
... effective[x] S1..1Clinically relevant time/time-period for observation
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... performer S0..1Reference(Organization)Organization which was responsible for the laboratory test result.
.... display SC1..1stringShort, human-readable text representation of the organization.
vc-should-be-under-30-chars: Length SHOULD be <30 for data minimization.
... Slices for value[x] S1..1Actual result
Slice: Unordered, Open by type:$this
.... valueQuantityQuantity
.... valueCodeableConceptCodeableConcept
.... valueStringstring
.... value[x]:valueCodeableConcept 0..1CodeableConceptActual result
Binding: Qualitative infectious disease-related lab test result codes (required)
.... value[x]:valueQuantity C0..1QuantityActual result
vc-observation-quantity-should-have-range: Quantitative lab results SHOULD include reference range
.... value[x]:valueString C0..1stringString representation of results; used ONLY when a computable representation is not possible
vc-should-be-under-20-chars: Length SHOULD be <20 for data minimization.
... referenceRange SC0..*BackboneElementProvides guide for interpretation. SHOULD include if using valueQuantity.
vc-observation-range-only-quantity-or-string: Reference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
... Slices for component 0..*BackboneElementComponent results
Slice: Unordered, Open by value:code
.... component:specimen-supervision-status S0..1BackboneElementComponent results
..... code
...... coding 1..1CodingCode defined by a terminology system
....... system 1..1uriIdentity of the terminology system
Fixed Value: http://snomed.info/sct
....... code 1..1codeSNOMED CT concept 'Type of supervision for specimen collection (observable entity)'
Fixed Value: 1208522006
..... Slices for value[x] 1..1CodeableConceptActual component result
Slice: Unordered, Open by type:$this
...... value[x]:valueCodeableConcept 1..1CodeableConceptActual component result
Binding: Specimen Collection Supervision Status (required)
....... extension 0..0
....... coding 1..1CodingCode defined by a terminology system
........ system 1..1uriIdentity of the terminology system
........ code 1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Observation.meta.securityrequiredIdentityAssuranceLevel
Observation.statusrequiredCompletedObservationStatus
Observation.coderequiredLabQualitativeTestCovidValueSet
Observation.value[x]:valueCodeableConceptrequiredLabQualitativeResultValueSet
Observation.component:specimen-supervision-status.value[x]:valueCodeableConceptrequiredSpecimenCollectionSupervisionStatus

Constraints

IdGradePath(s)DetailsRequirements
vc-observation-quantity-should-have-rangewarningObservation.value[x]:valueQuantityQuantitative lab results SHOULD include reference range
: %resource.referenceRange.exists()
vc-observation-range-only-quantity-or-stringwarningObservation.referenceRangeReference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
: $this.exists() and (%resource.value.ofType(Quantity).exists() or %resource.value.ofType(string).exists())
vc-should-be-under-20-charswarningObservation.value[x]:valueStringLength SHOULD be <20 for data minimization.
: $this.length() < 20
vc-should-be-under-30-charswarningObservation.performer.displayLength SHOULD be <30 for data minimization.
: $this.length() < 30

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation C0..*ObservationMeasurements and simple assertions
... id Σ0..1idShould not be populated
... meta SΣ0..1MetaMetadata about the resource
.... security SΣ0..1CodingLimited security label to convey identity level of assurance for patient referenced by this resource.
Binding: Identity Assurance Level (required)
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... status ?!SΣ1..1coderegistered | preliminary | final | amended +
Binding: Completed observation status (required)
... code SΣ1..1CodeableConceptType of observation (code / type)
Binding: LOINCs identifying qualitative COVID lab tests (required)
... subject SΣ1..1Reference(Patient Profile - General - Allowable Data)Patient to whom lab result applies
.... reference ΣC1..1stringThis SHOULD use an absolute URI like `resource:0` that will resolve within the containing Bundle.
... effective[x] SΣ1..1Clinically relevant time/time-period for observation
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... performer SΣ0..1Reference(Organization)Organization which was responsible for the laboratory test result.
.... display SΣC1..1stringShort, human-readable text representation of the organization.
vc-should-be-under-30-chars: Length SHOULD be <30 for data minimization.
... Slices for value[x] SΣC1..1Actual result
Slice: Unordered, Closed by type:$this
.... valueQuantityQuantity
.... valueCodeableConceptCodeableConcept
.... valueStringstring
.... value[x]:valueCodeableConcept ΣC0..1CodeableConceptActual result
Binding: Qualitative infectious disease-related lab test result codes (required)
.... value[x]:valueQuantity ΣC0..1QuantityActual result
vc-observation-quantity-should-have-range: Quantitative lab results SHOULD include reference range
.... value[x]:valueString ΣC0..1stringString representation of results; used ONLY when a computable representation is not possible
vc-should-be-under-20-chars: Length SHOULD be <20 for data minimization.
... referenceRange SC0..*BackboneElementProvides guide for interpretation. SHOULD include if using valueQuantity.
vc-observation-range-only-quantity-or-string: Reference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
... Slices for component Σ0..*BackboneElementComponent results
Slice: Unordered, Open by value:code
.... component:All Slices Content/Rules for all slices
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

.... component:specimen-supervision-status SΣ0..1BackboneElementComponent results
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

...... coding Σ1..1CodingCode defined by a terminology system
....... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://snomed.info/sct
....... code Σ1..1codeSNOMED CT concept 'Type of supervision for specimen collection (observable entity)'
Fixed Value: 1208522006
..... Slices for value[x] Σ1..1CodeableConceptActual component result
Slice: Unordered, Closed by type:$this
...... value[x]:valueCodeableConcept Σ1..1CodeableConceptActual component result
Binding: Specimen Collection Supervision Status (required)
....... extension 0..0
....... coding Σ1..1CodingCode defined by a terminology system
........ system Σ1..1uriIdentity of the terminology system
........ code Σ1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Observation.meta.securityrequiredIdentityAssuranceLevel
Observation.statusrequiredCompletedObservationStatus
Observation.coderequiredLabQualitativeTestCovidValueSet
Observation.value[x]:valueCodeableConceptrequiredLabQualitativeResultValueSet
Observation.component.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component:specimen-supervision-status.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component:specimen-supervision-status.value[x]:valueCodeableConceptrequiredSpecimenCollectionSupervisionStatus

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorObservationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorObservationIf 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorObservationIf 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-5errorObservationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceObservationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
obs-3errorObservation.referenceRangeMust have at least a low or a high or text
: low.exists() or high.exists() or text.exists()
obs-6errorObservationdataAbsentReason SHALL only be present if Observation.value[x] is not present
: dataAbsentReason.empty() or value.empty()
obs-7errorObservationIf Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present
: value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()
vc-observation-quantity-should-have-rangewarningObservation.value[x]:valueQuantityQuantitative lab results SHOULD include reference range
: %resource.referenceRange.exists()
vc-observation-range-only-quantity-or-stringwarningObservation.referenceRangeReference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
: $this.exists() and (%resource.value.ofType(Quantity).exists() or %resource.value.ofType(string).exists())
vc-should-be-under-20-charswarningObservation.value[x]:valueStringLength SHOULD be <20 for data minimization.
: $this.length() < 20
vc-should-be-under-30-charswarningObservation.performer.displayLength SHOULD be <30 for data minimization.
: $this.length() < 30

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation C0..*ObservationMeasurements and simple assertions
... id Σ0..1idShould not be populated
... meta SΣ0..1MetaMetadata about the resource
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ0..1idVersion specific identifier
.... lastUpdated Σ0..1instantWhen the resource version last changed
.... source Σ0..1uriIdentifies where the resource comes from
.... profile Σ0..*canonical(StructureDefinition)Profiles this resource claims to conform to
.... security SΣ0..1CodingLimited security label to convey identity level of assurance for patient referenced by this resource.
Binding: Identity Assurance Level (required)
.... tag Σ0..*CodingTags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness Identifier for observation
... basedOn Σ0..*Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest)Fulfills plan, proposal or order
... partOf Σ0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Immunization | ImagingStudy)Part of referenced event
... status ?!SΣ1..1coderegistered | preliminary | final | amended +
Binding: Completed observation status (required)
... category 0..*CodeableConceptClassification of type of observation
Binding: ObservationCategoryCodes (preferred): Codes for high level observation categories.


... code SΣ1..1CodeableConceptType of observation (code / type)
Binding: LOINCs identifying qualitative COVID lab tests (required)
... subject SΣ1..1Reference(Patient Profile - General - Allowable Data)Patient to whom lab result applies
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC1..1stringThis SHOULD use an absolute URI like `resource:0` that will resolve within the containing Bundle.
... focus Σ0..*Reference(Resource)What the observation is about, when it is not about the subject of record
... encounter Σ0..1Reference(Encounter)Healthcare event during which this observation is made
... effective[x] SΣ1..1Clinically relevant time/time-period for observation
.... effectiveDateTimedateTime
.... effectivePeriodPeriod
... issued Σ0..1instantDate/Time this version was made available
... performer SΣ0..1Reference(Organization)Organization which was responsible for the laboratory test result.
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC0..1stringLiteral reference, Relative, internal or absolute URL
.... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ0..1IdentifierLogical reference, when literal reference is not known
.... display SΣC1..1stringShort, human-readable text representation of the organization.
vc-should-be-under-30-chars: Length SHOULD be <30 for data minimization.
... Slices for value[x] SΣC1..1Actual result
Slice: Unordered, Closed by type:$this
.... valueQuantityQuantity
.... valueCodeableConceptCodeableConcept
.... valueStringstring
.... value[x]:valueCodeableConcept ΣC0..1CodeableConceptActual result
Binding: Qualitative infectious disease-related lab test result codes (required)
.... value[x]:valueQuantity ΣC0..1QuantityActual result
vc-observation-quantity-should-have-range: Quantitative lab results SHOULD include reference range
.... value[x]:valueString ΣC0..1stringString representation of results; used ONLY when a computable representation is not possible
vc-should-be-under-20-chars: Length SHOULD be <20 for data minimization.
... dataAbsentReason C0..1CodeableConceptWhy the result is missing
Binding: DataAbsentReason (extensible): Codes specifying why the result (Observation.value[x]) is missing.

... interpretation 0..*CodeableConceptHigh, low, normal, etc.
Binding: ObservationInterpretationCodes (extensible): Codes identifying interpretations of observations.


... note 0..*AnnotationComments about the observation
... bodySite 0..1CodeableConceptObserved body part
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.

... method 0..1CodeableConceptHow it was done
Binding: ObservationMethods (example): Methods for simple observations.

... specimen 0..1Reference(Specimen)Specimen used for this observation
... device 0..1Reference(Device | DeviceMetric)(Measurement) Device
... referenceRange SC0..*BackboneElementProvides guide for interpretation. SHOULD include if using valueQuantity.
vc-observation-range-only-quantity-or-string: Reference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... low C0..1SimpleQuantityLow Range, if relevant
.... high C0..1SimpleQuantityHigh Range, if relevant
.... type 0..1CodeableConceptReference range qualifier
Binding: ObservationReferenceRangeMeaningCodes (preferred): Code for the meaning of a reference range.

.... appliesTo 0..*CodeableConceptReference range population
Binding: ObservationReferenceRangeAppliesToCodes (example): Codes identifying the population the reference range applies to.


.... age 0..1RangeApplicable age range, if relevant
.... text 0..1stringText based reference range in an observation
... hasMember Σ0..*Reference(Observation | QuestionnaireResponse | MolecularSequence)Related resource that belongs to the Observation group
... derivedFrom Σ0..*Reference(DocumentReference | ImagingStudy | Media | QuestionnaireResponse | Observation | MolecularSequence)Related measurements the observation is made from
... Slices for component Σ0..*BackboneElementComponent results
Slice: Unordered, Open by value:code
.... component:All Slices Content/Rules for all slices
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

..... value[x] Σ0..1Actual component result
...... valueQuantityQuantity
...... valueCodeableConceptCodeableConcept
...... valueStringstring
...... valueBooleanboolean
...... valueIntegerinteger
...... valueRangeRange
...... valueRatioRatio
...... valueSampledDataSampledData
...... valueTimetime
...... valueDateTimedateTime
...... valuePeriodPeriod
..... dataAbsentReason C0..1CodeableConceptWhy the component result is missing
Binding: DataAbsentReason (extensible): Codes specifying why the result (Observation.value[x]) is missing.

..... interpretation 0..*CodeableConceptHigh, low, normal, etc.
Binding: ObservationInterpretationCodes (extensible): Codes identifying interpretations of observations.


..... referenceRange 0..*See referenceRange (Observation)Provides guide for interpretation of component result
.... component:specimen-supervision-status SΣ0..1BackboneElementComponent results
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... code Σ1..1CodeableConceptType of component observation (code / type)
Binding: LOINCCodes (example): Codes identifying names of simple observations.

...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ1..1CodingCode defined by a terminology system
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://snomed.info/sct
....... version Σ0..1stringVersion of the system - if relevant
....... code Σ1..1codeSNOMED CT concept 'Type of supervision for specimen collection (observable entity)'
Fixed Value: 1208522006
....... display Σ0..1stringRepresentation defined by the system
....... userSelected Σ0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... Slices for value[x] Σ1..1CodeableConceptActual component result
Slice: Unordered, Closed by type:$this
...... value[x]:valueCodeableConcept Σ1..1CodeableConceptActual component result
Binding: Specimen Collection Supervision Status (required)
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..0
....... coding Σ1..1CodingCode defined by a terminology system
........ id 0..1stringUnique id for inter-element referencing
........ extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
........ system Σ1..1uriIdentity of the terminology system
........ version Σ0..1stringVersion of the system - if relevant
........ code Σ1..1codeSymbol in syntax defined by the system
........ display Σ0..1stringRepresentation defined by the system
........ userSelected Σ0..1booleanIf this coding was chosen directly by the user
....... text Σ0..1stringPlain text representation of the concept
..... dataAbsentReason C0..1CodeableConceptWhy the component result is missing
Binding: DataAbsentReason (extensible): Codes specifying why the result (Observation.value[x]) is missing.

..... interpretation 0..*CodeableConceptHigh, low, normal, etc.
Binding: ObservationInterpretationCodes (extensible): Codes identifying interpretations of observations.


..... referenceRange 0..*See referenceRange (Observation)Provides guide for interpretation of component result

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Observation.meta.securityrequiredIdentityAssuranceLevel
Observation.meta.tagexampleCommonTags
Observation.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Observation.statusrequiredCompletedObservationStatus
Observation.categorypreferredObservationCategoryCodes
Observation.coderequiredLabQualitativeTestCovidValueSet
Observation.performer.typeextensibleResourceType
Observation.value[x]:valueCodeableConceptrequiredLabQualitativeResultValueSet
Observation.dataAbsentReasonextensibleDataAbsentReason
Observation.interpretationextensibleObservationInterpretationCodes
Observation.bodySiteexampleSNOMEDCTBodyStructures
Observation.methodexampleObservationMethods
Observation.referenceRange.typepreferredObservationReferenceRangeMeaningCodes
Observation.referenceRange.appliesToexampleObservationReferenceRangeAppliesToCodes
Observation.component.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component.dataAbsentReasonextensibleDataAbsentReason
Observation.component.interpretationextensibleObservationInterpretationCodes
Observation.component:specimen-supervision-status.codeexampleLOINCCodes (a valid code from LOINC)
Observation.component:specimen-supervision-status.value[x]:valueCodeableConceptrequiredSpecimenCollectionSupervisionStatus
Observation.component:specimen-supervision-status.dataAbsentReasonextensibleDataAbsentReason
Observation.component:specimen-supervision-status.interpretationextensibleObservationInterpretationCodes

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorObservationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorObservationIf 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorObservationIf 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-5errorObservationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceObservationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
obs-3errorObservation.referenceRangeMust have at least a low or a high or text
: low.exists() or high.exists() or text.exists()
obs-6errorObservationdataAbsentReason SHALL only be present if Observation.value[x] is not present
: dataAbsentReason.empty() or value.empty()
obs-7errorObservationIf Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present
: value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()
vc-observation-quantity-should-have-rangewarningObservation.value[x]:valueQuantityQuantitative lab results SHOULD include reference range
: %resource.referenceRange.exists()
vc-observation-range-only-quantity-or-stringwarningObservation.referenceRangeReference range SHOULD be included for quantitative lab results, MAY be included for free text (string) results, and SHOULD NOT be included otherwise
: $this.exists() and (%resource.value.ofType(Quantity).exists() or %resource.value.ofType(string).exists())
vc-should-be-under-20-charswarningObservation.value[x]:valueStringLength SHOULD be <20 for data minimization.
: $this.length() < 20
vc-should-be-under-30-charswarningObservation.performer.displayLength SHOULD be <30 for data minimization.
: $this.length() < 30

This structure is derived from Observation

Summary

Mandatory: 4 elements (9 nested mandatory elements)
Must-Support: 11 elements
Fixed Value: 2 elements
Prohibited: 4 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element Observation.value[x] is sliced based on the value of type:$this
  • The element Observation.component is sliced based on the value of value:code
  • The element Observation.component.value[x] is sliced based on the value of type:$this

 

Other representations of profile: CSV, Excel, Schematron