PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.uv.phd@0.2.0
    http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation
description: Observation elements that are common to all the Continua PHD Observation profiles
package_name: rs/hl7.fhir.uv.phd
derivation: constraint
name: PhdBaseObservation
type: Observation
elements:
  meta:
    index: 0
    elements:
      security:
        short: Security value set to HTEST when measurement status indicates demo or test data
        index: 1
        elements:
          system:
            pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
            type: uri
            index: 2
          code:
            pattern: {type: code, value: HTEST}
            type: code
            index: 3
        required: [code, system]
  derivedFrom: {short: Reference to the Coincident Time Stamp Observation and/or Source-Handle-Reference Observation, index: 31}
  interpretation:
    elements:
      coding:
        index: 25
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            MsmtStatusInterpretation:
              match: {system: 'http://hl7.org/fhir/uv/pocd/CodeSystem/measurement-status'}
              schema:
                short: Measurement status interpretation when questionable, calibration-ongoing, validated, early-indication, threshold exceeded, alarm inhibited
                index: 26
                elements:
                  system:
                    pattern: {type: uri, value: 'http://hl7.org/fhir/uv/pocd/CodeSystem/measurement-status'}
                    type: uri
                    index: 27
                  code: {index: 28}
                required: [code, system]
  component:
    index: 32
    slicing:
      rules: open
      discriminator:
      - {path: code, type: value}
      min: null
      slices:
        supplementalTypesComponent:
          match: {code: null}
          schema:
            short: 'Supplemental Type: A further description of the measurement type.'
            index: 33
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/CodeableConcept11073MDC'}
                index: 34
                elements:
                  coding:
                    index: 35
                    elements:
                      system:
                        pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                        type: uri
                        index: 36
                      code:
                        pattern: {type: code, value: '68193'}
                        type: code
                        index: 37
                    required: [code, system]
                  text: {index: 38}
                required: [coding]
              valueCodeableConcept:
                type: CodeableConcept
                index: 39
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        type: CodeableConcept
                        _required: true
                        index: 39
                        elements:
                          coding:
                            index: 40
                            slicing:
                              rules: open
                              discriminator:
                              - {path: system, type: value}
                              min: 1
                              slices:
                                MDCType:
                                  match: {system: 'urn:iso:std:iso:11073:10101'}
                                  schema:
                                    short: Required MDC code entry.
                                    _required: true
                                    index: 41
                                    elements:
                                      system:
                                        pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                        type: uri
                                        index: 42
                                      code: {index: 43}
                                    required: [code, system]
                        required: [coding]
              dataAbsentReason: {index: 44}
            required: [valueCodeableConcept]
        relativeTimeComponent:
          match: {code: null}
          schema:
            short: Relative time stamp of the measurement reported by the PHD.
            index: 45
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/Quantity11073MDC'}
                index: 46
                elements:
                  coding:
                    index: 47
                    elements:
                      system:
                        pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                        type: uri
                        index: 48
                      code:
                        pattern: {type: code, value: '67985'}
                        type: code
                        index: 49
                    required: [code, system]
                  text: {index: 50}
                required: [coding]
              valueQuantity:
                type: Quantity
                index: 51
                slicing:
                  slices:
                    valueQuantity:
                      match: {}
                      schema:
                        type: Quantity
                        _required: true
                        index: 51
                        elements:
                          value: {index: 52}
                          system:
                            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                            type: uri
                            index: 53
                          code:
                            pattern: {type: code, value: us}
                            type: code
                            index: 54
                        required: [code, system, value]
              dataAbsentReason: {index: 55}
            required: [valueQuantity]
        hiresRelativeTimeComponent:
          match: {code: null}
          schema:
            short: Hi-Resolution Relative time stamp of the measurement reported by the PHD.
            index: 56
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/Quantity11073MDC'}
                index: 57
                elements:
                  coding:
                    index: 58
                    elements:
                      system:
                        pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                        type: uri
                        index: 59
                      code:
                        pattern: {type: code, value: '68073'}
                        type: code
                        index: 60
                    required: [code, system]
                  text: {index: 61}
                required: [coding]
              valueQuantity:
                type: Quantity
                index: 62
                slicing:
                  slices:
                    valueQuantity:
                      match: {}
                      schema:
                        type: Quantity
                        _required: true
                        index: 62
                        elements:
                          value: {short: Numerical value, index: 63}
                          system:
                            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                            type: uri
                            index: 64
                          code:
                            pattern: {type: code, value: us}
                            type: code
                            index: 65
                        required: [code, system, value]
              dataAbsentReason: {index: 66}
            required: [valueQuantity]
  extension:
    short: Extension for the PHG
    index: 4
    elements:
      url:
        short: Url indicating this is the gateway device extension
        pattern: {type: uri, value: 'http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice'}
        type: uri
        index: 5
      valueReference: {type: Reference, short: Reference to the Personal Health Gateway (PHG) Device, index: 6}
    required: [valueReference]
  status: {index: 11}
  effective:
    constraint:
      phd-obs-1: {human: Either an effectiveDateTime or effectivePeriod shall be present, severity: error, expression: effectiveDateTime.exists() or effectivePeriod.exists().exists()}
    choices: []
    index: 24
  code:
    index: 12
    elements:
      coding:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            MDCType:
              match: {system: 'urn:iso:std:iso:11073:10101'}
              schema:
                short: The 11073-10101 MDC code for the measurement
                _required: true
                index: 14
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                    type: uri
                    index: 15
                  code: {index: 16}
                required: [code, system]
            LoincCoding:
              match: {system: 'http://loinc.org'}
              schema:
                short: The LOINC code for the measurement
                index: 17
                elements:
                  system:
                    pattern: {type: uri, value: 'http://loinc.org'}
                    type: uri
                    index: 18
                  code: {index: 19}
                required: [code, system]
      text: {short: It is recommended to display at least the reference identifier for the MDC code, index: 20}
    required: [coding]
  identifier:
    short: Unique identifier of this measurement for a given patient and device
    index: 7
    slicing:
      slices:
        conditionalCreate:
          match: {}
          schema:
            short: Unique identifier of this measurement for a given patient and device
            index: 7
            elements:
              type: {index: 8}
              system: {index: 9}
              value: {index: 10}
            required: [value]
  device:
    index: 29
    elements:
      reference: {short: Reference to the device responsible for the measurement, index: 30}
    required: [reference]
  subject:
    index: 21
    elements:
      reference: {index: 22}
    required: [reference]
package_version: 0.2.0
extensions: {}
class: profile
kind: resource
url: http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 0.2.0
required: [device, effective, meta, subject]