PackagesCanonicalsLogsProblems
    Packages
    fhir.outburn.co.il@0.1.0
    http://outburn.co.il/fhir/oncology/StructureDefinition/lrc-onco-result
description: LRC Test Result
package_name: fhir.outburn.co.il
derivation: constraint
name: LrcResult
type: Observation
elements:
  category:
    index: 4
    slicing:
      rules: open
      description: Slice for hl7 category codes
      discriminator:
      - {path: coding, type: pattern}
      min: 1
      slices:
        hl7-lab:
          match: {coding: null}
          schema:
            _required: true
            index: 5
            elements:
              coding:
                index: 6
                slicing:
                  rules: open
                  description: Slice for hl7 code for laboratory result
                  discriminator:
                  - {path: $this, type: pattern}
                  min: 1
                  slices:
                    hl7:
                      match: {}
                      schema:
                        _required: true
                        index: 7
                        elements:
                          system:
                            pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/observation-category'}
                            type: uri
                            index: 8
                          code:
                            pattern: {type: code, value: laboratory}
                            type: code
                            index: 9
                          display:
                            pattern: {type: string, value: Laboratory}
                            type: string
                            index: 10
                        required: [code, system]
            required: [coding]
  referenceRange:
    elements:
      low:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-common'}
        index: 23
        elements:
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            type: uri
            index: 24
      high:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-common'}
        index: 25
        elements:
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            type: uri
            index: 26
    required: [high, low]
  value[x]:
    elements:
      system: {index: 22}
    required: [system]
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 21
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, index: 21}
  value:
    choices: [valueQuantity]
    index: 20
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema:
            choices: [valueQuantity]
            index: 20
  component:
    index: 27
    slicing:
      rules: open
      ordered: false
      description: Textual or Nominal
      discriminator:
      - {path: code, type: value}
      min: null
      slices:
        textual:
          match: {code: null}
          schema:
            index: 28
            elements:
              code:
                elements:
                  coding:
                    index: 29
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 30
                      code:
                        pattern: {type: code, value: '117444000'}
                        type: code
                        index: 31
                      display:
                        pattern: {type: string, value: Text value}
                        type: string
                        index: 32
                required: [coding]
              value:
                choices: [valueString]
                index: 37
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        choices: [valueString]
                        _required: true
                        index: 37
                      min: 1
                      max: 1
              valueString:
                type: string
                choiceOf: value
                index: 38
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, choiceOf: value, _required: true, index: 38}
                      min: 1
                      max: 1
            required: [value, valueString]
        nominal:
          match: {code: null}
          schema:
            index: 39
            elements:
              code:
                elements:
                  coding:
                    index: 40
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 41
                      code:
                        pattern: {type: code, value: '117362005'}
                        type: code
                        index: 42
                      display:
                        pattern: {type: string, value: Nominal value}
                        type: string
                        index: 43
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 48
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        choices: [valueCodeableConcept]
                        index: 48
              valueCodeableConcept:
                type: CodeableConcept
                choiceOf: value
                index: 49
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {type: CodeableConcept, choiceOf: value, index: 49}
              value[x]:
                elements:
                  coding: {index: 50}
                required: [coding]
  code:
    binding: {strength: extensible, valueSet: 'http://outburn.co.il/fhir/oncology/ValueSet/lrc-result-codes'}
    index: 11
    elements:
      coding:
        index: 12
        slicing:
          rules: open
          ordered: false
          description: Loinc Lab report
          discriminator:
          - {path: $this, type: value}
          min: 1
          slices:
            loinc-lab:
              match: {}
              schema:
                _required: true
                index: 13
                elements:
                  system:
                    pattern: {type: uri, value: 'http://loinc.org'}
                    type: uri
                    index: 14
                  code: {index: 15}
                required: [code, system]
    required: [coding]
  identifier:
    index: 0
    elements:
      system: {index: 1}
      value: {index: 2}
    required: [system, value]
  basedOn:
    type: Reference
    refers: ['http://outburn.co.il/fhir/oncology/StructureDefinition/lrc-referral']
    index: 3
  subject:
    type: Reference
    refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-patient']
    index: 16
    elements:
      reference: {index: 17}
    required: [reference]
  performer: {index: 18}
package_version: 0.1.0
class: profile
kind: resource
url: http://outburn.co.il/fhir/oncology/StructureDefinition/lrc-onco-result
base: http://fhir.health.gov.il/StructureDefinition/il-core-observation
version: null
required: [category, identifier, performer]