PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.uv.phd@1.1.0
    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: 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-observation, 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-observation}
                    type: code
                    index: 21
                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: 42}
  interpretation:
    elements:
      coding:
        index: 36
        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: 37
                elements:
                  system:
                    pattern: {type: uri, value: 'http://hl7.org/fhir/uv/pocd/CodeSystem/measurement-status'}
                    type: uri
                    index: 38
                  code: {index: 39}
                required: [code, system]
    required: [coding]
  component:
    index: 43
    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: 44
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/CodeableConcept11073MDC'}
                index: 45
                elements:
                  coding:
                    index: 46
                    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: 47
                            elements:
                              system:
                                pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                type: uri
                                index: 48
                              code:
                                pattern: {type: code, value: '68193'}
                                type: code
                                index: 49
                            required: [code, system]
                  text: {index: 50}
                required: [coding]
              value:
                choices: []
                index: 52
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        choices: [valueCodeableConcept]
                        _required: true
                        index: 54
                      min: 1
                      max: 1
              valueCodeableConcept:
                type: CodeableConcept
                choiceOf: value
                index: 55
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {type: CodeableConcept, choiceOf: value, _required: true, index: 55}
                      min: 1
                      max: 1
              value[x]:
                elements:
                  coding:
                    index: 56
                    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: 57
                            elements:
                              system:
                                pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                type: uri
                                index: 58
                              code: {index: 59}
                            required: [code, system]
                required: [coding]
              dataAbsentReason: {index: 60}
            required: [value, valueCodeableConcept]
        relativeTimeComponent:
          match: {code: null}
          schema:
            short: Relative time stamp of the measurement reported by the PHD.
            index: 61
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/Quantity11073MDC'}
                index: 62
                elements:
                  coding:
                    index: 63
                    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: 64
                            elements:
                              system:
                                pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                type: uri
                                index: 65
                              code:
                                pattern: {type: code, value: '67985'}
                                type: code
                                index: 66
                            required: [code, system]
                  text: {index: 67}
                required: [coding]
              value:
                choices: []
                index: 69
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueQuantity:
                      match: {}
                      schema:
                        choices: [valueQuantity]
                        _required: true
                        index: 71
                      min: 1
                      max: 1
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 72
                slicing:
                  slices:
                    valueQuantity:
                      match: {}
                      schema: {type: Quantity, choiceOf: value, _required: true, index: 72}
                      min: 1
                      max: 1
              value[x]:
                elements:
                  value: {index: 73}
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 74
                  code:
                    pattern: {type: code, value: us}
                    type: code
                    index: 75
                required: [code, system, value]
              dataAbsentReason: {index: 76}
            required: [value, valueQuantity]
        hiresRelativeTimeComponent:
          match: {code: null}
          schema:
            short: Hi-Resolution Relative time stamp of the measurement reported by the PHD.
            index: 77
            elements:
              code:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/phd/ValueSet/Quantity11073MDC'}
                index: 78
                elements:
                  coding:
                    index: 79
                    slicing:
                      rules: open
                      description: Slice by coding...
                      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: 80
                            elements:
                              system:
                                pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                                type: uri
                                index: 81
                              code:
                                pattern: {type: code, value: '68073'}
                                type: code
                                index: 82
                            required: [code, system]
                  text: {index: 83}
                required: [coding]
              value:
                choices: []
                index: 85
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueQuantity:
                      match: {}
                      schema:
                        choices: [valueQuantity]
                        _required: true
                        index: 87
                      min: 1
                      max: 1
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 88
                slicing:
                  slices:
                    valueQuantity:
                      match: {}
                      schema: {type: Quantity, choiceOf: value, _required: true, index: 88}
                      min: 1
                      max: 1
              value[x]:
                elements:
                  value: {short: Numerical value, index: 89}
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 90
                  code:
                    pattern: {type: code, value: us}
                    type: code
                    index: 91
                required: [code, system, value]
              dataAbsentReason: {index: 92}
            required: [value, valueQuantity]
  extension:
    short: Extension for the PHG
    index: 5
    extensions: {}
    elements:
      extension: {index: 6}
      url:
        short: Url indicating this is the gateway device extension
        pattern: {type: uri, value: 'http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice'}
        type: uri
        index: 7
      value:
        short: Reference to the Personal Health Gateway (PHG) Device
        choices: [valueReference]
        index: 9
      valueReference: {type: Reference, short: Reference to the Personal Health Gateway (PHG) Device, choiceOf: value, index: 10}
    required: [value, valueReference]
  effectiveDateTime: {type: dateTime, choiceOf: effective, index: 34}
  status: {index: 16}
  effective:
    choices: [effectiveDateTime, effectivePeriod]
    index: 33
  code:
    elements:
      coding:
        index: 22
        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: 23
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:iso:std:iso:11073:10101'}
                    type: uri
                    index: 24
                  code: {index: 25}
                required: [code, system]
            LoincCoding:
              match: {system: 'http://loinc.org'}
              schema:
                short: The LOINC code for the measurement
                index: 26
                elements:
                  system:
                    pattern: {type: uri, value: 'http://loinc.org'}
                    type: uri
                    index: 27
                  code: {index: 28}
                required: [code, system]
      text: {short: It is recommended to display at least the reference identifier for the MDC code, index: 29}
    required: [coding]
  identifier:
    index: 11
    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: 12
            elements:
              type: {index: 13}
              system: {index: 14}
              value: {index: 15}
            required: [value]
  device:
    index: 40
    elements:
      reference: {short: Reference to the device responsible for the measurement, index: 41}
    required: [reference]
  subject:
    index: 30
    elements:
      reference: {index: 31}
    required: [reference]
  effectivePeriod: {type: Period, choiceOf: effective, index: 35}
package_version: 1.1.0
extensions: {}
class: profile
kind: resource
url: http://hl7.org/fhir/uv/phd/StructureDefinition/PhdBaseObservation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.1.0
required: [category, device, effective, effectiveDateTime, effectivePeriod, meta, subject]