PackagesCanonicalsLogsProblems
    Packages
    fhir.dgmc@0.1.2
    http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-cml-consultation-request
description: DGMC Chameleon consultation request
package_name: fhir.dgmc
derivation: constraint
name: DGMCConsultationsRequest
type: ServiceRequest
elements:
  category:
    index: 3
    elements:
      coding:
        index: 4
        elements:
          system: {index: 5}
          code: {index: 6}
          display: {index: 7}
        required: [display, system, code]
    required: [coding]
    slicing:
      slices:
        il-core:
          match: {}
          schema:
            index: 8
            elements:
              coding: {index: 9}
            required: [coding]
  encounter:
    elements:
      reference: {index: 33}
    required: [reference]
  reasonCode:
    index: 40
    elements:
      text: {index: 41}
    required: [text]
  requester:
    elements:
      reference: {index: 34}
    required: [reference]
  id: {index: 0}
  code:
    elements:
      coding:
        array: true
        min: 2
        index: 10
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: system, type: value}
          min: 2
          slices:
            cons:
              match: {system: 'http://snomed.info/sct'}
              schema:
                _required: true
                index: 11
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 12
                  code:
                    pattern: {type: Code, value: '11429006'}
                    index: 13
                  display:
                    pattern: {type: String, value: Consultation}
                    index: 14
                required: [display, system, code]
            cons-type:
              match: {system: null}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-counseling-type'}
                _required: true
                index: 15
                elements:
                  system: {index: 16}
                  code: {index: 17}
                  display: {index: 18}
                required: [display, system, code]
  identifier:
    elements:
      system:
        binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/hospitals-uri/cml-counseling-request'}
        index: 1
      value: {index: 2}
    required: [value, system]
  orderDetail:
    index: 19
    slicing:
      rules: open
      ordered: false
      description: Slice based on the presence or absence of Coding
      discriminator:
      - {path: $this.coding, type: exists}
      min: null
      slices:
        question:
          match: {}
          schema:
            array: true
            index: 20
            extensions:
              flag:
                url: http://fhir.dgmc.health.gov.il/StructureDefinition/consultation-question-flag
                type: Extension
                index: 22
                elements:
                  value:
                    pattern: {type: Boolean, value: true}
                    choices: []
                    index: 24
            elements:
              extension:
                index: 21
                slicing:
                  slices:
                    flag:
                      match: {}
                      schema:
                        type: Extension
                        url: http://fhir.dgmc.health.gov.il/StructureDefinition/consultation-question-flag
                        index: 22
                        elements:
                          value:
                            pattern: {type: Boolean, value: true}
                            choices: []
                            index: 24
              coding: {index: 25}
              text: {index: 26}
            required: [extension, text]
        state:
          match: {}
          schema:
            array: true
            index: 27
            elements:
              coding:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-counseling-patient-state'}
                index: 28
                elements:
                  system: {index: 29}
                  code: {index: 30}
                  display: {index: 31}
                required: [display, system, code]
            required: [coding]
  subject:
    elements:
      reference: {index: 32}
    required: [reference]
  performer:
    index: 35
    slicing:
      rules: open
      ordered: false
      description: Type of performer - organization or practitioner
      discriminator:
      - {path: type, type: type}
      min: 1
      slices:
        practitioner:
          match: {}
          schema:
            type: Reference
            refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-practitioner']
            array: true
            index: 36
            elements:
              type:
                pattern: {type: Uri, value: Practitioner}
                index: 37
            required: [type]
        organization:
          match: {}
          schema:
            type: Reference
            refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
            array: true
            index: 38
            elements:
              type:
                pattern: {type: Uri, value: Organization}
                index: 39
            required: [type]
package_version: 0.1.2
class: profile
kind: resource
url: http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-cml-consultation-request
base: http://fhir.health.gov.il/StructureDefinition/il-core-service-request
version: null
required: [id, reasonCode, performer]