PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.phd@2.0.0-ballot2
    http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation
description: Common base profile with the elements that are common to the PHD IG Observation profiles.
package_name: hl7.fhir.uv.phd
derivation: constraint
name: PhdBaseObservation
abstract: true
type: Observation
elements:
  category:
    index: 17
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: coding.code, type: value}
      - {path: coding.system, type: value}
      min: 1
      slices:
        PHD-Observation:
          match:
            coding: {code: phd, system: 'http://hl7.org/fhir/uv/phd/CodeSystem/PhdObservationCategories'}
          schema:
            _required: true
            index: 18
            elements:
              coding:
                index: 19
                elements:
                  system:
                    pattern: {type: uri, value: 'http://hl7.org/fhir/uv/phd/CodeSystem/PhdObservationCategories'}
                    type: uri
                    index: 20
                  code:
                    pattern: {type: code, value: phd}
                    type: code
                    index: 21
                required: [code, system]
            required: [coding]
  hasMember:
    type: Reference
    short: Other PHD Observations that are part of this group observation.
    refers: ['http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation']
    index: 49
  meta:
    elements:
      security:
        index: 1
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          - {path: code, type: value}
          min: null
          slices:
            PhdHtest:
              match: {system: 'http://terminology.hl7.org/CodeSystem/v3-ActReason', code: HTEST}
              schema:
                short: Security value set to HTEST when measurement status indicates demo or test data
                index: 2
                elements:
                  system:
                    pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
                    type: uri
                    index: 3
                  code:
                    pattern: {type: code, value: HTEST}
                    type: code
                    index: 4
                required: [code, system]
  derivedFrom:
    type: Reference
    short: A source the measurement data is derived from.
    refers: ['http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation']
    index: 50
  interpretation:
    index: 42
    elements:
      coding:
        index: 43
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          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
                _required: true
                index: 44
                elements:
                  system:
                    pattern: {type: uri, value: 'http://hl7.org/fhir/uv/pocd/CodeSystem/measurement-status'}
                    type: uri
                    index: 45
                  code: {index: 46}
                required: [code, system]
    required: [coding]
  value:
    choices: []
    index: 39
  component:
    index: 51
    slicing:
      rules: open
      discriminator:
      - {path: code, type: value}
      min: null
      slices:
        supplementalTypesComponent:
          match:
            code:
              coding:
              - {code: '68193', system: 'urn:iso:std:iso:11073:10101'}
          schema:
            short: 'Supplemental Type: A further description of the measurement type.'
            array: true
            index: 52
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '68193', system: 'urn:iso:std:iso:11073:10101'}
                type: CodeableConcept
                index: 53
                elements:
                  coding:
                    index: 54
                    elements:
                      system:
                        pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                        type: uri
                        index: 55
                      code:
                        pattern: {type: code, value: '68193'}
                        type: code
                        index: 56
                      display: {index: 57}
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 59
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 60}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                        type: uri
                        index: 61
                      code: {index: 62}
                    required: [code, system]
              dataAbsentReason: {index: 63}
  effective[x]:
    elements:
      start: {index: 36}
      end: {index: 37}
  extension:
    index: 5
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        GatewayDevice:
          match: {url: null}
          schema:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice|4.0.1
            index: 6
            elements:
              value:
                short: Reference to the PHG Device
                choices: [valueReference]
                index: 8
              valueReference:
                type: Reference
                short: Reference to the PHG Device
                choiceOf: value
                refers: ['http://hl7.org/fhir/uv/phd/StructureDefinition/PhgDevice']
                index: 9
        CoincidentTimeStamp:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/uv/phd/StructureDefinition/CoincidentTimeStampReference', index: 10}
          min: 0
          max: 1
  effectiveDateTime:
    type: dateTime
    choiceOf: effective
    index: 32
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, index: 32}
          min: 0
          max: 1
  status: {index: 16}
  effective:
    choices: [effectivePeriod]
    index: 34
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            choices: [effectivePeriod]
            index: 34
          min: 0
          max: 1
  id: {index: 0}
  code:
    binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/MDCnotObject'}
    constraint:
      mdc-1: {human: A published MDC Code is preferred but private MDC codes are allowed as well., source: 'http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation', severity: warning, expression: 'coding.exists() and coding.where(system = ''urn:iso:std:iso:11073:10101'').exists()'}
    index: 22
    elements:
      coding:
        elements:
          system: {index: 23}
          code: {index: 24}
  identifier:
    index: 11
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        conditionalCreate:
          match: {system: 'http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation'}
          schema:
            short: Unique identifier of this measurement for a given patient and device
            index: 12
            elements:
              type: {index: 13}
              system:
                pattern: {type: uri, value: 'http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation'}
                type: uri
                index: 14
              value: {index: 15}
            required: [system, value]
  device:
    type: Reference
    refers: ['http://hl7.org/fhir/uv/phd/StructureDefinition/PhdDevice']
    index: 47
    elements:
      reference: {short: Reference to the device responsible for the measurement, index: 48}
    required: [reference]
  subject:
    type: Reference
    short: Reference to the patient or the PhdDevice that is the subject of the observation
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/uv/phd/StructureDefinition/PhdDevice']
    index: 25
  dataAbsentReason:
    short: This element is populated when the Measurement Status indicates invalid, not available or measurement-ongoing.
    index: 40
    elements:
      coding:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/data-absent-reason'}
        index: 41
  effectivePeriod:
    type: Period
    choiceOf: effective
    index: 35
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, choiceOf: effective, index: 35}
          min: 0
          max: 1
package_version: 2.0.0-ballot2
extensions:
  GatewayDevice:
    url: http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice|4.0.1
    type: Extension
    index: 6
    elements:
      value:
        short: Reference to the PHG Device
        choices: [valueReference]
        index: 8
      valueReference:
        type: Reference
        short: Reference to the PHG Device
        choiceOf: value
        refers: ['http://hl7.org/fhir/uv/phd/StructureDefinition/PhgDevice']
        index: 9
  CoincidentTimeStamp: {url: 'http://hl7.org/fhir/uv/phd/StructureDefinition/CoincidentTimeStampReference', min: 0, max: 1, type: Extension, index: 10}
class: profile
kind: resource
url: http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2.0.0-ballot2
required: [category, device, effective, effectiveDateTime, effectivePeriod, extension, subject]