PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh-olis@2.0.0-0.0.1
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Observation
description: null
package_name: ca.on.oh-olis
derivation: constraint
name: Observation
type: Observation
elements:
  category:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-observation-category'}
    mustSupport: true
    index: 17
    elements:
      coding:
        mustSupport: true
        index: 18
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            mustSupport: true
            index: 19
          code: {mustSupport: true, index: 20}
        required: [system, code]
    required: [coding]
  referenceRange:
    mustSupport: true
    index: 68
    elements:
      low:
        mustSupport: true
        index: 69
        elements:
          value: {mustSupport: true, index: 70}
          unit: {mustSupport: true, index: 71}
      high:
        mustSupport: true
        index: 72
        elements:
          value: {mustSupport: true, index: 73}
          unit: {mustSupport: true, index: 74}
      appliesTo:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-observation-abnormal-nature'}
        mustSupport: true
        array: true
        max: 2
        index: 75
        elements:
          coding:
            mustSupport: true
            index: 76
            elements:
              system:
                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0080'}
                mustSupport: true
                index: 77
              code: {mustSupport: true, index: 78}
              display: {mustSupport: true, index: 79}
            required: [display, system, code]
        required: [coding]
      text: {mustSupport: true, index: 80}
  meta:
    mustSupport: true
    index: 1
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Observation|2.0.0'}
        index: 2
    required: [profile]
  interpretation:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-observation-interpretation'}
    mustSupport: true
    index: 50
    elements:
      coding:
        mustSupport: true
        index: 51
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation'}
            mustSupport: true
            index: 52
          code: {mustSupport: true, index: 53}
          display: {mustSupport: true, index: 54}
        required: [display, system, code]
    required: [coding]
  method:
    mustSupport: true
    index: 64
    elements:
      text: {mustSupport: true, index: 65}
    required: [text]
  valueTime:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: time
    mustSupport: true
    choiceOf: value
    index: 44
  specimen:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Specimen']
    index: 66
    elements:
      reference: {mustSupport: true, index: 67}
  valueQuantity:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: Quantity
    mustSupport: true
    choiceOf: value
    index: 36
  value:
    choices: [valueCodeableConcept]
    index: 48
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            choices: [valueCodeableConcept]
            index: 48
  valueString:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: string
    mustSupport: true
    choiceOf: value
    index: 38
  valueRatio:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: Ratio
    mustSupport: true
    choiceOf: value
    index: 42
  valueBoolean:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: boolean
    mustSupport: true
    choiceOf: value
    index: 39
  valueDateTime:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: dateTime
    mustSupport: true
    choiceOf: value
    index: 45
  note:
    mustSupport: true
    index: 55
    extensions:
      source-of-comment:
        url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-note-source
        type: Extension
        index: 57
        elements:
          value[x]:
            elements:
              coding:
                elements:
                  code: {index: 58}
    elements:
      extension:
        index: 56
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            source-of-comment:
              match: {url: null}
              schema:
                type: Extension
                url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-note-source
                index: 57
                elements:
                  value[x]:
                    elements:
                      coding:
                        elements:
                          code: {index: 58}
      author:
        mustSupport: true
        choices: [authorReference]
        index: 60
      authorReference:
        type: Reference
        mustSupport: true
        choiceOf: author
        refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Organization']
        index: 61
      author[x]:
        elements:
          reference: {mustSupport: true, index: 62}
        required: [reference]
      text: {mustSupport: true, index: 63}
    required: [author, extension, authorReference]
  extension:
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        ext-ObservationSortKey:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-sort-key
            index: 4
            elements:
              value:
                mustSupport: true
                choices: []
                index: 6
        ObservationValueAttachment:
          match: {url: 'http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value'}
          schema:
            constraint:
              obs-valueAttachment-1: {human: 'If ObservationValueAttachment is present and has value, Observation.value[x] SHALL not be present.', severity: error}
            short: Base64encoded observation data such as PDF, etc
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value
            index: 7
            elements:
              url:
                pattern: {type: Uri, value: 'http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value'}
                index: 8
  valueSampledData:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: SampledData
    mustSupport: true
    choiceOf: value
    index: 43
  effectiveDateTime: {type: dateTime, mustSupport: true, choiceOf: effective, index: 30}
  status:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-observation-status'}
    mustSupport: true
    index: 16
  effective:
    mustSupport: true
    choices: [effectiveDateTime]
    index: 29
  id: {mustSupport: true, index: 0}
  code:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-observation-codes'}
    mustSupport: true
    index: 21
    elements:
      coding:
        mustSupport: true
        index: 22
        elements:
          system: {mustSupport: true, index: 23}
          code: {mustSupport: true, index: 24}
          display: {mustSupport: true, index: 25}
        required: [display, system, code]
      text: {mustSupport: true, index: 26}
    required: [coding, text]
  identifier:
    mustSupport: true
    index: 9
    elements:
      system: {mustSupport: true, index: 10}
      value: {mustSupport: true, index: 11}
      assigner:
        type: Reference
        mustSupport: true
        refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Organization']
        index: 12
        elements:
          reference: {mustSupport: true, index: 13}
        required: [reference]
    required: [assigner, value, system]
  valueCodeableConcept:
    type: CodeableConcept
    choiceOf: value
    index: 49
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: value, index: 49}
  issued: {mustSupport: true, index: 31}
  valuePeriod:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: Period
    mustSupport: true
    choiceOf: value
    index: 46
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-ServiceRequest']
    index: 14
    elements:
      reference: {mustSupport: true, index: 15}
  valueRange:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: Range
    mustSupport: true
    choiceOf: value
    index: 41
  valueInteger:
    constraint:
      obs-value-1: {human: 'if value[x] is present, Observation.extension:ObservationValueAttachment SHALL be blank', severity: error}
    type: integer
    mustSupport: true
    choiceOf: value
    index: 40
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Patient']
    index: 27
  performer:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Organization', 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Practitioner']
    index: 32
    elements:
      reference: {index: 33}
    required: [reference]
package_version: 2.0.0-0.0.1
extensions:
  ext-ObservationSortKey:
    url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-sort-key
    type: Extension
    mustSupport: true
    index: 4
    elements:
      value:
        mustSupport: true
        choices: []
        index: 6
  ObservationValueAttachment:
    url: http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value
    constraint:
      obs-valueAttachment-1: {human: 'If ObservationValueAttachment is present and has value, Observation.value[x] SHALL not be present.', severity: error}
    short: Base64encoded observation data such as PDF, etc
    type: Extension
    mustSupport: true
    index: 7
    elements:
      url:
        pattern: {type: Uri, value: 'http://hl7.org/fhir/3.0/StructureDefinition/extension-Observation.value'}
        index: 8
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Observation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2.0.0
required: [effectiveDateTime, issued, basedOn, id, identifier, subject, meta, effective, performer]