PackagesCanonicalsLogsProblems
    Packages
    rs/il.fhir.r4.dgmc@0.1.20
    http://fhir.dgmc.health.gov.il/StructureDefinition/dgmc-encounter-case
description: DGMC Encounter Namer Case
package_name: rs/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: 31}
    required: [reference]
  reasonCode:
    index: 21
    elements:
      coding:
        elements:
          system:
            pattern: {type: uri, value: 'http://fhir.health.gov.il/cs/patient-visit-reason-moh'}
            type: uri
            index: 22
  type:
    index: 8
    slicing:
      slices:
        admission-type:
          match: {}
          schema:
            index: 8
            elements:
              coding:
                binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/admission-type'}
                index: 9
                elements:
                  system: {index: 10}
                  code: {index: 11}
                  display: {index: 12}
                required: [code, display, system]
        home-check-in:
          match: {}
          schema:
            index: 13
            elements:
              coding:
                pattern:
                  type: Coding
                  value: {code: '9', system: 'http://fhir.dgmc.health.gov.il/cs/home-check-in'}
                type: Coding
                index: 14
                elements:
                  display:
                    pattern: {type: string, value: צ'ק-אין מהבית}
                    type: string
                    index: 15
                required: [display]
            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: 23
        elements:
          identifier:
            elements:
              system:
                pattern: {type: uri, value: 'http://institutions.health.gov.il/Institutions'}
                type: uri
                index: 24
      admitSource:
        index: 25
        elements:
          coding:
            binding: {strength: extensible, valueSet: 'http://fhir.health.gov.il/ValueSet/patient-admit-source-moh'}
            index: 26
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.health.gov.il/cs/patient-admit-source-moh'}
                type: uri
                index: 27
              code: {index: 28}
              display: {index: 29}
            required: [code, display, system]
        required: [coding]
      dietPreference:
        binding: {strength: required, valueSet: 'http://fhir.dgmc.health.gov.il/ValueSet/encounter-diet-pref-uri'}
        index: 30
    required: [admitSource]
  period:
    elements:
      start: {index: 20}
    required: [start]
  subject:
    extensions:
      visitor-type:
        url: null
        index: 16
        elements:
          value:
            choices: []
            index: 18
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: uri, value: 'http://fhir.dgmc.health.gov.il/cs/patient-visitor-type'}
                    type: uri
                    index: 19
    elements:
      extension:
        index: 16
        slicing:
          slices:
            visitor-type:
              match: {}
              schema:
                index: 16
                elements:
                  value:
                    choices: []
                    index: 18
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: uri, value: 'http://fhir.dgmc.health.gov.il/cs/patient-visitor-type'}
                            type: uri
                            index: 19
package_version: 0.1.20
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.1.20
required: [identifier]