PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.bars.r4@1.34.0
    https://fhir.hl7.org.uk/StructureDefinition/BARSLocation-incident-location
description: Defines the UK Core constraints and extensions on the Location resource for the minimal set of data to query and retrieve location information.
package_name: uk.nhsdigital.bars.r4
derivation: constraint
name: BARSLocationIncidentLocation
type: Location
elements:
  identifier:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        odsSiteCode:
          match: {system: 'https://fhir.nhs.uk/Id/ods-site-code'}
          schema:
            short: ODS Site code to identify the organisation at site level
            index: 1
            elements:
              system:
                short: ODS Code
                pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-site-code'}
                index: 2
              value: {index: 3}
              assigner:
                type: Reference
                refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization']
                index: 4
            required: [value, system]
  type:
    index: 5
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/location-types-bars'}
            index: 6
          code:
            pattern: {type: Code, value: ILOC}
            index: 7
        required: [system, code]
  managingOrganization:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization']
    index: 8
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization']
            index: 9
  partOf:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location']
    index: 10
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization']
            index: 11
  endpoint:
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization']
            index: 12
package_version: 1.34.0
class: profile
kind: resource
url: https://fhir.hl7.org.uk/StructureDefinition/BARSLocation-incident-location
base: http://hl7.org/fhir/StructureDefinition/Location
version: 1.0.0
required: [type]