PackagesCanonicalsLogsProblems
    Packages
    laniado.test.fhir.r4@0.1.62
    http://fhir.laniado.org.il/StructureDefinition/laniado-patient
description: Laniado Proposed Patient Resource
package_name: laniado.test.fhir.r4
derivation: constraint
name: LaniadoPatient
type: Patient
elements:
  meta:
    elements:
      tag:
        index: 0
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: value}
          min: null
          slices:
            redacted:
              match: {}
              schema:
                index: 1
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue'}
                    index: 2
                  code:
                    pattern: {type: Code, value: REDACTED}
                    index: 3
                  display:
                    pattern: {type: String, value: redacted}
                    index: 4
  deceasedDateTime: {type: dateTime, choiceOf: deceased, index: 44}
  birthDate:
    extensions:
      dataAbsentReason:
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        type: Extension
        index: 39
        elements:
          value:
            pattern: {type: Code, value: unknown}
            choices: []
            index: 41
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        index: 39
        slicing:
          slices:
            dataAbsentReason:
              match: {}
              schema:
                type: Extension
                url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                index: 39
                elements:
                  value:
                    pattern: {type: Code, value: unknown}
                    choices: []
                    index: 41
  deceased:
    choices: [deceasedDateTime]
    index: 43
  extension:
    index: 5
    slicing:
      slices:
        hmo:
          match: {}
          schema:
            _required: true
            index: 6
            elements:
              value[x]:
                elements:
                  coding:
                    index: 7
                    slicing:
                      rules: open
                      discriminator:
                      - {path: system, type: value}
                      min: 1
                      slices:
                        laniado:
                          match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-kupat-cholim'}
                          schema:
                            _required: true
                            index: 8
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-kupat-cholim'}
                                index: 9
                            required: [system]
                        hmo:
                          match: {system: 'http://fhir.health.gov.il/cs/paying-entity-moh'}
                          schema:
                            index: 10
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/paying-entity-moh'}
                                index: 11
                            required: [system]
                        unk:
                          match: {system: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor'}
                          schema:
                            index: 12
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor'}
                                index: 13
                              code:
                                pattern: {type: Code, value: UNK}
                                index: 14
                              display:
                                pattern: {type: String, value: unknown}
                                index: 15
                            required: [system]
                required: [coding]
        birthPlace:
          match: {}
          schema:
            index: 16
            elements:
              value[x]:
                elements:
                  country:
                    index: 17
                    extensions:
                      countryCode: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-laniado-country', min: 0, max: 1, type: Extension, index: 18}
                      dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 19}
                    elements:
                      extension:
                        type: Extension
                        url: http://fhir.laniado.org.il/StructureDefinition/ext-laniado-country
                        index: 18
                        slicing:
                          slices:
                            countryCode:
                              match: {}
                              schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-laniado-country', index: 18}
                              min: 0
                              max: 1
                            dataAbsentReason:
                              match: {}
                              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 19}
                              min: 0
                              max: 1
                required: [country]
              value:
                elements:
                  country:
                    extensions: {}
                    elements:
                      extension:
                        elements:
                          value:
                            pattern: {type: Code, value: unknown}
                            choices: []
                            index: 21
        religion:
          match: {}
          schema:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/patient-religion
            index: 22
            elements:
              value[x]:
                elements:
                  coding:
                    index: 23
                    slicing:
                      rules: open
                      discriminator:
                      - {path: system, type: value}
                      min: null
                      slices:
                        laniado:
                          match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-dat-leom'}
                          schema:
                            index: 24
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-dat-leom'}
                                index: 25
                            required: [system]
  communication:
    index: 48
    elements:
      language:
        elements:
          coding:
            index: 49
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                bcp:
                  match: {system: 'urn:ietf:bcp:47'}
                  schema:
                    index: 50
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:bcp:47'}
                        index: 51
                    required: [system]
                laniado:
                  match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-safa'}
                  schema:
                    binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/k-safa'}
                    index: 52
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-safa'}
                        index: 53
                    required: [system]
  identifier:
    short: Number of a person's identification document, usually a passport number.
    mustSupport: true
    index: 26
    slicing:
      slices:
        passport:
          match: {}
          schema:
            short: Number of a person's identification document, usually a passport number.
            mustSupport: true
            index: 26
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/passport'}
                index: 27
              value: {short: 'The number of a person''s identification document, usually a passport number.', index: 28}
        temp:
          match: {}
          schema:
            short: Temporary patient ID
            mustSupport: true
            index: 29
            elements:
              use:
                pattern: {type: Code, value: temp}
                index: 30
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/temp-patient'}
                index: 31
              value:
                short: A temporary patient identifier
                constraint:
                  patient-temp-id-chk: {human: Laniado temporary patient ID must be 9-digits, source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-patient', severity: error, expression: 'matches(''^[0-9]{9}$'')'}
                index: 32
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 33
                  identifier:
                    index: 34
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 35
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 36
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 37
                required: [identifier]
  telecom:
    constraint:
      phone-or-fax-number: {human: A phone number or fax number SHALL begin with one of the specified prefixes followed by 6-7 digits separated by a '-'., source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-patient', severity: error, expression: '(system=''phone'' or system=''fax'') implies value.matches(''^(02|03|04|050|051|052|053|054|055|056|058|059|072|073|074|076|077|08|09)-[0-9]{6,7}$'')'}
    index: 38
  maritalStatus:
    elements:
      coding:
        index: 45
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            laniado:
              match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-matzav-mishp'}
              schema:
                index: 46
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-matzav-mishp'}
                    index: 47
                required: [system]
package_version: 0.1.62
extensions:
  hmo:
    url: null
    _required: true
    index: 6
    elements:
      value[x]:
        elements:
          coding:
            index: 7
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: 1
              slices:
                laniado:
                  match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-kupat-cholim'}
                  schema:
                    _required: true
                    index: 8
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-kupat-cholim'}
                        index: 9
                    required: [system]
                hmo:
                  match: {system: 'http://fhir.health.gov.il/cs/paying-entity-moh'}
                  schema:
                    index: 10
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/paying-entity-moh'}
                        index: 11
                    required: [system]
                unk:
                  match: {system: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor'}
                  schema:
                    index: 12
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor'}
                        index: 13
                      code:
                        pattern: {type: Code, value: UNK}
                        index: 14
                      display:
                        pattern: {type: String, value: unknown}
                        index: 15
                    required: [system]
        required: [coding]
  birthPlace:
    url: null
    index: 16
    elements:
      value[x]:
        elements:
          country:
            index: 17
            extensions:
              countryCode: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-laniado-country', min: 0, max: 1, type: Extension, index: 18}
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 19}
            elements:
              extension:
                type: Extension
                url: http://fhir.laniado.org.il/StructureDefinition/ext-laniado-country
                index: 18
                slicing:
                  slices:
                    countryCode:
                      match: {}
                      schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-laniado-country', index: 18}
                      min: 0
                      max: 1
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 19}
                      min: 0
                      max: 1
        required: [country]
      value:
        elements:
          country:
            extensions: {}
            elements:
              extension:
                elements:
                  value:
                    pattern: {type: Code, value: unknown}
                    choices: []
                    index: 21
  religion:
    url: http://hl7.org/fhir/StructureDefinition/patient-religion
    type: Extension
    index: 22
    elements:
      value[x]:
        elements:
          coding:
            index: 23
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                laniado:
                  match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-dat-leom'}
                  schema:
                    index: 24
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-dat-leom'}
                        index: 25
                    required: [system]
class: profile
kind: resource
url: http://fhir.laniado.org.il/StructureDefinition/laniado-patient
base: http://fhir.health.gov.il/StructureDefinition/il-core-patient
version: null
required: [extension]