PackagesCanonicalsLogsProblems
    Packages
    il.laniado.fhir.r4@0.2.3
    http://fhir.laniado.org.il/StructureDefinition/laniado-location
description: Laniado Proposed Location Profile
package_name: il.laniado.fhir.r4
derivation: constraint
name: LaniadoLocation
type: Location
elements:
  address:
    elements:
      line:
        extensions:
          floor: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator', min: 0, max: 1, type: Extension, index: 54}
          side: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-direction', min: 0, max: 1, type: Extension, index: 55}
        elements:
          extension:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator
            index: 54
            slicing:
              slices:
                floor:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator', index: 54}
                  min: 0
                  max: 1
                side:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-direction', index: 55}
                  min: 0
                  max: 1
  meta:
    elements:
      security:
        index: 0
        elements:
          system: {index: 1}
          code: {index: 2}
        required: [system, code]
        slicing:
          rules: closed
          description: ILHDP codes only
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            HDP:
              match: {system: 'http://fhir.health.gov.il/cs/il-hdp-information-buckets'}
              schema:
                _required: true
                index: 3
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-hdp-information-buckets'}
                    index: 4
                  code:
                    pattern: {type: Code, value: organization}
                    index: 5
                  display:
                    pattern: {type: String, value: יחידה ארגונית}
                    index: 6
    required: [security]
  managingOrganization:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-organization']
    index: 69
  mode:
    pattern: {type: Code, value: instance}
    index: 36
  type:
    index: 37
    elements:
      coding: {index: 38}
    required: [coding]
    slicing:
      rules: open
      discriminator:
      - {path: coding.system, type: value}
      min: null
      slices:
        s-yechida:
          match:
            coding: {system: 'http://fhir.laniado.org.il/CodeSystem/s-yechida'}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/s-yechida'}
            index: 39
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/s-yechida'}
                    index: 40
                required: [system]
        lab:
          match:
            coding: {system: 'http://fhir.laniado.org.il/CodeSystem/k-lab-group'}
          schema:
            index: 41
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-lab-group'}
                    index: 42
                required: [system]
        role:
          match:
            coding: {system: null}
          schema:
            binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType'}
            array: true
            index: 43
            elements:
              coding:
                index: 44
                slicing:
                  rules: open
                  discriminator:
                  - {path: code, type: value}
                  min: null
                  slices:
                    dep:
                      match: {code: HU}
                      schema:
                        index: 45
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                            index: 46
                          code:
                            pattern: {type: Code, value: HU}
                            index: 47
                          display:
                            pattern: {type: String, value: Hospital unit}
                            index: 48
                        required: [system, code]
                    lab:
                      match: {code: HLAB}
                      schema:
                        index: 49
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                            index: 50
                          code:
                            pattern: {type: Code, value: HLAB}
                            index: 51
                          display:
                            pattern: {type: String, value: hospital laboratory}
                            index: 52
                        required: [system, code]
  extension:
    index: 7
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        dep-bed-sort:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-dep-bed-sort', index: 8}
          min: 0
          max: 1
  identifier:
    index: 9
    elements:
      system: {index: 10}
      value: {short: The value that is unique within the system., index: 11}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        id:
          match: {system: 'http://fhir.laniado.org.il/Identifier/id-location'}
          schema:
            short: Strong location identification.
            _required: true
            index: 12
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/id-location'}
                index: 13
              value: {short: Strong location identification., index: 14}
        yechida:
          match: {system: 'http://fhir.laniado.org.il/Identifier/k-yechidot'}
          schema:
            index: 15
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/k-yechidot'}
                index: 16
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 17
                  identifier:
                    index: 18
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 19
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 20
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 21
                required: [identifier]
        dep-bed:
          match: {system: 'http://fhir.laniado.org.il/Identifier/k-lan-dep-beds'}
          schema:
            index: 22
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/k-lan-dep-beds'}
                index: 23
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 24
                  identifier:
                    index: 25
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 26
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 27
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 28
                required: [identifier]
        lab:
          match: {system: 'http://fhir.laniado.org.il/Identifier/k-lab'}
          schema:
            index: 29
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/k-lab'}
                index: 30
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 31
                  identifier:
                    index: 32
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 33
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 34
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 35
                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-location', 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: 53
  physicalType:
    elements:
      coding:
        index: 56
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            dep:
              match: {code: wa}
              schema:
                index: 57
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                    index: 58
                  code:
                    pattern: {type: Code, value: wa}
                    index: 59
                  display:
                    pattern: {type: String, value: Ward}
                    index: 60
                required: [code]
            room:
              match: {code: ro}
              schema:
                index: 61
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                    index: 62
                  code:
                    pattern: {type: Code, value: ro}
                    index: 63
                  display:
                    pattern: {type: String, value: Room}
                    index: 64
                required: [code]
            bed:
              match: {code: bd}
              schema:
                index: 65
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                    index: 66
                  code:
                    pattern: {type: Code, value: bd}
                    index: 67
                  display:
                    pattern: {type: String, value: Bed}
                    index: 68
                required: [code]
package_version: 0.2.3
extensions:
  dep-bed-sort: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-dep-bed-sort', min: 0, max: 1, type: Extension, index: 8}
class: profile
kind: resource
url: http://fhir.laniado.org.il/StructureDefinition/laniado-location
base: http://fhir.health.gov.il/StructureDefinition/il-core-location
version: null
required: [identifier]