PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.uv.phd@2.0.0-ballot
    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: rs/hl7.fhir.uv.phd
derivation: constraint
name: PhdBaseObservation
abstract: true
type: Observation
elements:
  category:
    index: 13
    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-observation, system: 'http://hl7.org/fhir/uv/phd/CodeSystem/PhdObservationCategories'}
          schema:
            _required: true
            index: 14
            elements:
              coding:
                index: 15
                elements:
                  system:
                    pattern: {type: uri, value: 'http://hl7.org/fhir/uv/phd/CodeSystem/PhdObservationCategories'}
                    type: uri
                    index: 16
                  code:
                    pattern: {type: code, value: phd-observation}
                    type: code
                    index: 17
                required: [code, system]
            required: [coding]
  meta:
    index: 0
    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: {short: Reference to the Coincident Time Stamp Observation and/or Source-Handle-Reference Observation, index: 38}
  interpretation:
    elements:
      coding:
        index: 32
        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: 33
                elements:
                  system:
                    pattern: {type: uri, value: 'http://hl7.org/fhir/uv/pocd/CodeSystem/measurement-status'}
                    type: uri
                    index: 34
                  code: {index: 35}
                required: [code, system]
    required: [coding]
  component:
    index: 39
    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.'
            array: true
            index: 40
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/CodeableConcept11073MDC'}
                index: 41
                elements:
                  coding:
                    index: 42
                    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: 43
                            elements:
                              system:
                                pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                type: uri
                                index: 44
                              code:
                                pattern: {type: code, value: '68193'}
                                type: code
                                index: 45
                            required: [code, system]
                  text: {index: 46}
                required: [coding]
              value:
                choices: []
                index: 48
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        choices: [valueCodeableConcept]
                        _required: true
                        index: 50
                      min: 1
                      max: 1
              valueCodeableConcept:
                type: CodeableConcept
                choiceOf: value
                index: 51
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {type: CodeableConcept, choiceOf: value, _required: true, index: 51}
                      min: 1
                      max: 1
              value[x]:
                elements:
                  coding:
                    index: 52
                    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: 53
                            elements:
                              system:
                                pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                type: uri
                                index: 54
                              code: {index: 55}
                            required: [code, system]
                required: [coding]
              dataAbsentReason: {index: 56}
            required: [value, valueCodeableConcept]
  extension:
    index: 5
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        GatewayDevice:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice', index: 6}
          min: 0
          max: 1
  effectiveDateTime: {type: dateTime, choiceOf: effective, index: 30}
  status: {index: 12}
  effective:
    choices: [effectiveDateTime, effectivePeriod]
    index: 29
  code:
    elements:
      coding:
        index: 18
        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: 19
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                    type: uri
                    index: 20
                  code: {index: 21}
                required: [code, system]
            LoincCoding:
              match: {system: 'http://loinc.org'}
              schema:
                short: The LOINC code for the measurement
                index: 22
                elements:
                  system:
                    pattern: {type: uri, value: 'http://loinc.org'}
                    type: uri
                    index: 23
                  code: {index: 24}
                required: [code, system]
      text: {short: It is recommended to display at least the reference identifier for the MDC code, index: 25}
    required: [coding]
  identifier:
    index: 7
    slicing:
      rules: open
      discriminator:
      - {path: value, type: exists}
      - {path: system, type: exists}
      - {path: type, type: exists}
      min: null
      slices:
        conditionalCreate:
          match: {}
          schema:
            short: Unique identifier of this measurement for a given patient and device
            index: 8
            elements:
              type: {index: 9}
              system: {index: 10}
              value: {index: 11}
            required: [value]
  device:
    index: 36
    elements:
      reference: {short: Reference to the device responsible for the measurement, index: 37}
    required: [reference]
  subject:
    index: 26
    elements:
      reference: {index: 27}
    required: [reference]
  effectivePeriod: {type: Period, choiceOf: effective, index: 31}
package_version: 2.0.0-ballot
extensions:
  GatewayDevice: {url: 'http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice', min: 0, max: 1, type: Extension, index: 6}
class: profile
kind: resource
url: http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2.0.0-ballot
required: [category, device, effective, effectiveDateTime, effectivePeriod, meta, subject]