PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.dgmc@0.4.0
    http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-encounter-case
description: DGMC Encounter Namer Case
package_name: il.fhir.r4.dgmc
derivation: constraint
name: DGMCEncounterNamerCase
type: Encounter
elements:
  meta:
    elements:
      security:
        elements:
          system:
            pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality'}
            type: uri
            index: 0
          code:
            pattern: {type: code, value: R}
            type: code
            index: 1
          display:
            pattern: {type: string, value: restricted}
            type: string
            index: 2
        required: [code, display, system]
  serviceProvider:
    elements:
      reference: {index: 34}
    required: [reference]
  reasonCode:
    index: 24
    elements:
      coding:
        elements:
          system:
            pattern: {type: uri, value: 'http://fhir.health.gov.il/cs/patient-visit-reason-moh'}
            type: uri
            index: 25
  type:
    binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/admission-type'}
    index: 8
    slicing:
      slices:
        admission-type:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/admission-type'}
            index: 8
            elements:
              coding:
                elements:
                  system: {index: 9}
                  code: {index: 10}
                  display: {index: 11}
                required: [code, display, system]
        home-check-in:
          match: {}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: '9', system: 'http://fhir.dgmc.health.gov.il/cs/home-check-in'}
            type: CodeableConcept
            index: 12
            elements:
              coding:
                index: 13
                elements:
                  system: {index: 14}
                  code: {index: 15}
                  display: {index: 16}
                required: [code, display, system]
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: pattern}
                  min: 1
                  slices:
                    dgmc:
                      match: {code: '9', system: 'http://fhir.dgmc.health.gov.il/cs/home-check-in'}
                      schema:
                        pattern:
                          type: Coding
                          value: {code: '9', system: 'http://fhir.dgmc.health.gov.il/cs/home-check-in'}
                        _required: true
                        type: Coding
                        index: 17
                        elements:
                          display:
                            pattern: {type: string, value: צ'ק-אין מהבית}
                            type: string
                            index: 18
            required: [coding]
  class:
    elements:
      system:
        pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
        type: uri
        index: 7
  identifier:
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        nmr-case:
          match: {system: null}
          schema:
            _required: true
            index: 4
            elements:
              system:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/nmr-case-number-uri'}
                index: 5
              value: {index: 6}
            required: [system, value]
  hospitalization:
    elements:
      origin:
        type: Reference
        refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
        index: 26
        elements:
          identifier:
            elements:
              system:
                pattern: {type: uri, value: 'http://institutions.health.gov.il/Institutions'}
                type: uri
                index: 27
      admitSource:
        binding: {strength: extensible, valueSet: 'http://fhir.health.gov.il/ValueSet/patient-admit-source-moh'}
        index: 28
        elements:
          coding:
            index: 29
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.health.gov.il/cs/patient-admit-source-moh'}
                type: uri
                index: 30
              code: {index: 31}
              display: {index: 32}
            required: [code, display, system]
        required: [coding]
      dietPreference:
        binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/encounter-diet-pref-uri'}
        index: 33
    required: [admitSource]
  period:
    elements:
      start: {index: 23}
    required: [start]
  subject:
    extensions:
      visitor-type:
        url: null
        index: 19
        elements:
          value:
            choices: []
            index: 21
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: uri, value: 'http://fhir.dgmc.health.gov.il/cs/patient-visitor-type'}
                    type: uri
                    index: 22
    elements:
      extension:
        index: 19
        slicing:
          slices:
            visitor-type:
              match: {}
              schema:
                index: 19
                elements:
                  value:
                    choices: []
                    index: 21
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: uri, value: 'http://fhir.dgmc.health.gov.il/cs/patient-visitor-type'}
                            type: uri
                            index: 22
package_version: 0.4.0
class: profile
kind: resource
url: http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-encounter-case
base: http://fhir.health.gov.il/StructureDefinition/il-core-encounter
version: 0.2.0
required: [identifier]