PackagesCanonicalsLogsProblems
    Packages
    il.szmc.fhir.r4@0.3.0
    http://fhir.szmc.org.il/StructureDefinition/szmc-patient
description: SZMC Patient profile based on the ILCore Patient profile
package_name: il.szmc.fhir.r4
derivation: constraint
name: SzmcPatient
type: Patient
elements:
  extension:
    index: 0
    slicing:
      slices:
        hmo:
          match: {}
          schema: {_required: true, index: 1}
          min: 1
        citizenship:
          match: {}
          schema:
            type: Extension
            short: 'Extension: Patient Citizenship'
            url: http://hl7.org/fhir/StructureDefinition/patient-citizenship
            index: 2
            extensions:
              code:
                url: null
                index: 3
                elements:
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/citizenship'}
                            index: 4
                        required: [system]
            elements:
              extension:
                index: 3
                slicing:
                  slices:
                    code:
                      match: {}
                      schema:
                        index: 3
                        elements:
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/citizenship'}
                                    index: 4
                                required: [system]
        nationality:
          match: {}
          schema:
            type: Extension
            short: 'Extension: Patient Nationality'
            url: http://hl7.org/fhir/StructureDefinition/patient-nationality
            index: 5
            extensions:
              code:
                url: null
                index: 6
                elements:
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/nationality'}
                            index: 7
                        required: [system]
            elements:
              extension:
                index: 6
                slicing:
                  slices:
                    code:
                      match: {}
                      schema:
                        index: 6
                        elements:
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/nationality'}
                                    index: 7
                                required: [system]
  identifier:
    index: 8
    slicing:
      slices:
        ppn:
          match: {}
          schema:
            index: 8
            elements:
              type:
                elements:
                  coding:
                    elements:
                      system:
                        extensions: {}
                        elements:
                          extension:
                            index: 9
                            extensions: {}
                            elements:
                              extension: {index: 10}
                              url:
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason'}
                                index: 11
                              value:
                                choices: []
                                index: 13
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: 1
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: unknown}
                                        choices: [valueCode]
                                        _required: true
                                        index: 15
                                      min: 1
                                      max: 1
                              valueCode:
                                type: code
                                pattern: {type: Code, value: unknown}
                                choiceOf: value
                                index: 16
                                slicing:
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        type: code
                                        pattern: {type: Code, value: unknown}
                                        choiceOf: value
                                        _required: true
                                        index: 16
                                      min: 1
                                      max: 1
                            required: [valueCode, value]
        tmp:
          match: {}
          schema:
            short: Temporary Patient Identifier
            array: true
            index: 17
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.szmc.org.il/identifier/temp-patient'}
                index: 18
              value: {short: Temporary patient ID value, index: 19}
        baby:
          match: {}
          schema:
            short: Baby Patient Identifier
            array: true
            index: 20
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.szmc.org.il/identifier/baby-patient'}
                index: 21
              value: {short: Baby patient ID value, index: 22}
package_version: 0.3.0
extensions:
  hmo: {url: null, min: 1, _required: true, index: 1}
  citizenship:
    url: http://hl7.org/fhir/StructureDefinition/patient-citizenship
    type: Extension
    short: 'Extension: Patient Citizenship'
    index: 2
    extensions:
      code:
        url: null
        index: 3
        elements:
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/citizenship'}
                    index: 4
                required: [system]
    elements:
      extension:
        index: 3
        slicing:
          slices:
            code:
              match: {}
              schema:
                index: 3
                elements:
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/citizenship'}
                            index: 4
                        required: [system]
  nationality:
    url: http://hl7.org/fhir/StructureDefinition/patient-nationality
    type: Extension
    short: 'Extension: Patient Nationality'
    index: 5
    extensions:
      code:
        url: null
        index: 6
        elements:
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/nationality'}
                    index: 7
                required: [system]
    elements:
      extension:
        index: 6
        slicing:
          slices:
            code:
              match: {}
              schema:
                index: 6
                elements:
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://fhir.szmc.org.il/cs/nationality'}
                            index: 7
                        required: [system]
class: profile
kind: resource
url: http://fhir.szmc.org.il/StructureDefinition/szmc-patient
base: http://fhir.health.gov.il/StructureDefinition/il-core-patient
version: null
required: [extension]