PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.dgmc@0.1.5
    http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-cml-consultation-request
description: DGMC Consultation Request
package_name: il.fhir.r4.dgmc
derivation: constraint
name: DGMCConsultationRequest
type: ServiceRequest
elements:
  category:
    index: 3
    slicing:
      slices:
        il-core:
          match: {}
          schema: {index: 4}
          max: 0
        consult:
          match: {}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: '409063005', system: 'http://snomed.info/sct'}
            _required: true
            index: 5
            elements:
              coding:
                index: 6
                elements:
                  display:
                    pattern: {type: String, value: Counseling (procedure)}
                    index: 7
                required: [display]
            required: [coding]
  encounter:
    elements:
      reference: {index: 29}
    required: [reference]
  reasonCode:
    index: 37
    elements:
      text: {index: 38}
    required: [text]
  requester:
    elements:
      reference: {index: 30}
    required: [reference]
  id: {index: 0}
  code:
    elements:
      coding:
        array: true
        min: 2
        max: 2
        index: 8
        elements:
          system: {index: 9}
          code: {index: 10}
          display: {index: 11}
        required: [display, system, code]
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: $this, type: pattern}
          min: 2
          max: 2
          slices:
            cons:
              match: {code: '11429006', system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {code: '11429006', system: 'http://snomed.info/sct'}
                _required: true
                index: 12
                elements:
                  display:
                    pattern: {type: String, value: Consultation}
                    index: 13
            cons-type:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-counseling-type'}
                _required: true
                index: 14
              min: 1
              max: 1
  identifier:
    elements:
      system:
        binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-counseling-request-uri'}
        index: 1
      value: {index: 2}
    required: [value, system]
  orderDetail:
    index: 15
    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: 16
            extensions:
              flag:
                url: http://fhir.dgmc.health.gov.il/StructureDefinition/consultation-question-flag
                type: Extension
                index: 18
                elements:
                  value:
                    pattern: {type: Boolean, value: true}
                    choices: []
                    index: 20
            elements:
              extension:
                index: 17
                slicing:
                  slices:
                    flag:
                      match: {}
                      schema:
                        type: Extension
                        url: http://fhir.dgmc.health.gov.il/StructureDefinition/consultation-question-flag
                        index: 18
                        elements:
                          value:
                            pattern: {type: Boolean, value: true}
                            choices: []
                            index: 20
              coding: {index: 21}
              text: {index: 22}
            required: [extension, text]
        state:
          match: {}
          schema:
            array: true
            index: 23
            elements:
              coding:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/cml-counseling-patient-state'}
                index: 24
                elements:
                  system: {index: 25}
                  code: {index: 26}
                  display: {index: 27}
                required: [display, system, code]
            required: [coding]
  subject:
    elements:
      reference: {index: 28}
    required: [reference]
  performer:
    index: 31
    elements:
      type: {index: 32}
    required: [type]
    slicing:
      rules: closed
      ordered: false
      description: Type of performer - organization or practitioner
      discriminator:
      - {path: type, type: value}
      min: 1
      slices:
        practitioner:
          match: {type: Practitioner}
          schema:
            type: Reference
            refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-practitioner']
            array: true
            index: 33
            elements:
              type:
                pattern: {type: Uri, value: Practitioner}
                index: 34
        organization:
          match: {type: Organization}
          schema:
            type: Reference
            refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
            array: true
            index: 35
            elements:
              type:
                pattern: {type: Uri, value: Organization}
                index: 36
package_version: 0.1.5
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: 0.1.5
required: [id, reasonCode, performer]