description: The IE Core Location Profile is based upon the core FHIR Location Resource and defines the minimum set of data required to query and retrieve location information within the Irish healthcare system. It covers details such as the location name, type, address, and managing organization. package_name: nostalgic-ie.fhir.core derivation: constraint name: IECoreLocation type: Location elements: description: {short: Additional details about the location, mustSupport: true, index: 8} address: short: Physical location address mustSupport: true index: 15 elements: line: {mustSupport: true, index: 16} city: {mustSupport: true, index: 17} state: short: County binding: {strength: extensible, valueSet: 'https://hl7-ie.github.io/ie-core/fhir/ie/core/ValueSet/ie-core-county'} mustSupport: true index: 18 postalCode: {short: Eircode or postal code, mustSupport: true, index: 19} country: {mustSupport: true, index: 20} managingOrganization: type: Reference short: Organization responsible for provisioning and upkeep mustSupport: true refers: ['https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-organization'] index: 25 name: {short: Name of the location as used by humans, mustSupport: true, index: 6} mode: {mustSupport: true, index: 9} type: short: Type of function performed at the location binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType'} mustSupport: true index: 10 alias: {mustSupport: true, index: 7} status: {mustSupport: true, index: 4} identifier: short: Unique code or number identifying the location to its users mustSupport: true index: 0 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: GLN: match: {system: 'http://www.gs1.org/gln'} schema: constraint: ie-loc-gln-1: {human: GLN SHALL be 13 digits with a valid GS1 mod-10 check digit (HIQA EP/PS 2.11), source: 'https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-location', severity: error, expression: 'value.matches(''^[0-9]{13}$'') and (((10 - ((value.substring(0,1).toInteger() + value.substring(1,1).toInteger()*3 + value.substring(2,1).toInteger() + value.substring(3,1).toInteger()*3 + value.substring(4,1).toInteger() + value.substring(5,1).toInteger()*3 + value.substring(6,1).toInteger() + value.substring(7,1).toInteger()*3 + value.substring(8,1).toInteger() + value.substring(9,1).toInteger()*3 + value.substring(10,1).toInteger() + value.substring(11,1).toInteger()*3) mod 10)) mod 10) = value.substring(12,1).toInteger())'} short: Global Location Number (GLN) mustSupport: true index: 1 elements: system: pattern: {type: Uri, value: 'http://www.gs1.org/gln'} mustSupport: true index: 2 value: {mustSupport: true, index: 3} required: [value, system] position: mustSupport: true index: 22 elements: longitude: {mustSupport: true, index: 23} latitude: {mustSupport: true, index: 24} telecom: short: Contact details of the location mustSupport: true index: 11 elements: system: {mustSupport: true, index: 12} value: {mustSupport: true, index: 13} use: {mustSupport: true, index: 14} operationalStatus: {mustSupport: true, index: 5} partOf: type: Reference mustSupport: true refers: ['https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-location'] index: 26 physicalType: {mustSupport: true, index: 21} endpoint: {mustSupport: true, index: 27} package_version: 0.2.0 class: profile kind: resource url: https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-location base: http://hl7.eu/fhir/base/StructureDefinition/location-eu-core version: 0.2.0