PackagesCanonicalsLogsProblems
    Packages
    laniado.test.fhir.r4@0.1.27
    http://fhir.laniado.org.il/StructureDefinition/laniado-location
description: Laniado Proposed Location Profile
package_name: laniado.test.fhir.r4
derivation: constraint
name: LaniadoLocation
type: Location
elements:
  identifier:
    index: 0
    elements:
      system: {index: 1}
      value: {short: The value that is unique within the system., index: 2}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        laniado:
          match: {system: 'http://fhir.laniado.org.il/Identifier/locaiton'}
          schema:
            index: 3
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/locaiton'}
                index: 4
              value:
                constraint:
                  loc-id: {human: The location id must meet the specified requirements, source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-location', severity: error, expression: 'matches(''^(dep-[0-9]{5})|(room-[0-9]{5}-.{1,4})|(bed-[0-9]{5}-.{1,4}-.{1,2})$'')'}
                index: 5
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 6
                  identifier:
                    index: 7
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 8
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 9
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 10
                required: [identifier]
  mode:
    pattern: {type: Code, value: instance}
    index: 11
  type:
    index: 12
    elements:
      coding: {index: 13}
    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: 14
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/s-yechida'}
                    index: 15
                required: [system]
        role:
          match:
            coding: {system: null}
          schema:
            binding: {strength: required, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType'}
            array: true
            index: 16
            elements:
              coding:
                index: 17
                slicing:
                  rules: open
                  discriminator:
                  - {path: code, type: value}
                  min: null
                  slices:
                    dep:
                      match: {code: HU}
                      schema:
                        index: 18
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                            index: 19
                          code:
                            pattern: {type: Code, value: HU}
                            index: 20
                          display:
                            pattern: {type: String, value: Hospital unit}
                            index: 21
                        required: [system, code]
  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: 22
  address:
    elements:
      line:
        extensions:
          floor: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator', min: 0, max: 1, type: Extension, index: 23}
          side: {url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-direction', min: 0, max: 1, type: Extension, index: 24}
        elements:
          extension:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator
            index: 23
            slicing:
              slices:
                floor:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator', index: 23}
                  min: 0
                  max: 1
                side:
                  match: {}
                  schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-direction', index: 24}
                  min: 0
                  max: 1
  physicalType:
    elements:
      coding:
        index: 25
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            dep:
              match: {code: wa}
              schema:
                index: 26
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                    index: 27
                  code:
                    pattern: {type: Code, value: wa}
                    index: 28
                  display:
                    pattern: {type: String, value: Ward}
                    index: 29
                required: [code]
            room:
              match: {code: ro}
              schema:
                index: 30
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                    index: 31
                  code:
                    pattern: {type: Code, value: ro}
                    index: 32
                  display:
                    pattern: {type: String, value: Room}
                    index: 33
                required: [code]
            bed:
              match: {code: bd}
              schema:
                index: 34
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/location-physical-type'}
                    index: 35
                  code:
                    pattern: {type: Code, value: bd}
                    index: 36
                  display:
                    pattern: {type: String, value: Bed}
                    index: 37
                required: [code]
  managingOrganization:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-organization']
    index: 38
package_version: 0.1.27
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