SPD - Service Provider Directory
0.2.0 - draft Estonia flag

SPD - Service Provider Directory, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-spd/ and changes regularly. See the Directory of published versions

Resource Profile: EE SPD Location

Official URL: https://fhir.ee/spd/StructureDefinition/ee-spd-location Version: 0.2.0
Draft as of 2025-05-14 Computable Name: EESPDLocation

TEGEVUSKOHT (näiteks korpus, osakond, korrus, palat jne). Location in SPD.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* EEBaseLocation(2.0.0) Details and position information for a place
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... description Σ 0..1 markdown If location has no other characteristic
... address 0..1 EEBaseAddress(2.0.0) AdrId is mandatory
.... id 1..1 id Unique id for inter-element referencing
.... Slices for extension Content/Rules for all slices
..... extension:adsAdrId 0..1 Coding ADS AdrId
URL: https://fhir.ee/base/StructureDefinition/ee-ads-adr-id
Binding: ADS AdrId (required)
..... extension:adsOid 0..1 Coding ADS Oid
URL: https://fhir.ee/base/StructureDefinition/ee-ads-oid
Binding: ADS Oid (required)
..... extension:ehak 0..1 Coding EHAK code
URL: https://fhir.ee/base/StructureDefinition/ee-ehak
..... extension:official 0..1 boolean Indicator of address of residency
URL: http://hl7.org/fhir/StructureDefinition/address-official
..... extension:notice 0..* Coding Address notices and warnings
URL: https://fhir.ee/base/StructureDefinition/ee-address-notice
.... use ?!Σ 1..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address (home / work / etc.).
Example General: home
.... country Σ 1..1 string Should use a 2 digit country code
Binding: Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . (required)
... managingOrganization Σ 1..1 Reference(EE SPD Organization) Organization responsible for provisioning and upkeep
... partOf 0..1 Reference(EE SPD Location) Another Location this one is physically a part of

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.country Base required Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . ⏿2022v1 term.tehik.ee

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Location If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from EEBaseLocation

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* EEBaseLocation(2.0.0) Details and position information for a place
... description 0..1 markdown If location has no other characteristic
... address 0..1 EEBaseAddress(2.0.0) AdrId is mandatory
.... id 1..1 id Unique id for inter-element referencing
... position 0..0 The absolute geographic location
... partOf 0..1 Reference(EE SPD Location) Another Location this one is physically a part of
... characteristic 0..0 Collection of characteristics (attributes)
... hoursOfOperation 0..0 What days/times during a week is this location usually open (including exceptions)
... virtualService 0..0 Connection details of a virtual service (e.g. conference call)
... endpoint 0..0 Technical endpoints providing access to services operated for the location

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* EEBaseLocation(2.0.0) Details and position information for a place
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Unique code or number identifying the location to its users
... status ?!Σ 0..1 code active | suspended | inactive
Binding: LocationStatus (required): Indicates whether the location is still in use.
... operationalStatus Σ 0..1 Coding The operational status of the location (typically only for a bed/room)
Binding: hl7VS-bedStatus (preferred): The operational status if the location (where typically a bed/room).
... name Σ 0..1 string Name of the location as used by humans
... alias 0..* string A list of alternate names that the location is known as, or was known as, in the past
... description Σ 0..1 markdown If location has no other characteristic
... mode Σ 0..1 code instance | kind
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.
... type Σ 0..* CodeableConcept Type of function performed
Binding: ServiceDeliveryLocationRoleType (extensible): Indicates the type of function performed at the location.
... contact 0..* ExtendedContactDetail Official contact details for the location
... address 0..1 EEBaseAddress(2.0.0) AdrId is mandatory
.... id 1..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... extension:adsAdrId 0..1 Coding ADS AdrId
URL: https://fhir.ee/base/StructureDefinition/ee-ads-adr-id
Binding: ADS AdrId (required)
..... extension:adsOid 0..1 Coding ADS Oid
URL: https://fhir.ee/base/StructureDefinition/ee-ads-oid
Binding: ADS Oid (required)
..... extension:ehak 0..1 Coding EHAK code
URL: https://fhir.ee/base/StructureDefinition/ee-ehak
..... extension:official 0..1 boolean Indicator of address of residency
URL: http://hl7.org/fhir/StructureDefinition/address-official
..... extension:notice 0..* Coding Address notices and warnings
URL: https://fhir.ee/base/StructureDefinition/ee-address-notice
.... use ?!Σ 1..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address (home / work / etc.).
Example General: home
.... type Σ 0..1 code postal | physical | both
Binding: AddressType (required): The type of an address (physical / postal).
Example General: both
.... text Σ 0..1 string Text representation of the address
Example General: 137 Nowhere Street, Erewhon 9132
.... line Σ 0..* string Street name, number, direction & P.O. Box etc.
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
..... id 0..1 string xml:id (or equivalent in JSON)
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:censusTract 0..1 string A geographic sub-unit delineated for demographic purposes.
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract
...... extension:streetName 0..1 string Street name
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
...... extension:streetNameBase 0..1 string The base name of a roadway or artery recognized by a municipality (excluding street type and direction).
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameBase
...... extension:houseNumber 0..1 string House number
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
...... extension:additionalLocator 0..1 string Additional locator
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator
..... value 0..1 string Primitive value for string
Max Length:1048576
.... city Σ 0..1 string Name of city, town etc.
Example General: Erewhon
.... district Σ 0..1 string Administrative or political subdivision of a state or city
Example General: Madison
.... state Σ 0..1 string Sub-unit of country
.... postalCode Σ 0..1 string Postal code for area
Example General: 9132
.... country Σ 1..1 string Should use a 2 digit country code
Binding: Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . (required)
.... period Σ 0..1 Period Time period when address was/is in use
Example General: {"start":"2010-03-23","end":"2010-07-01"}
... form Σ 0..1 CodeableConcept Physical form of the location
Binding: LocationForm (example): Physical form of the location.
... managingOrganization Σ 1..1 Reference(EE SPD Organization) Organization responsible for provisioning and upkeep
... partOf 0..1 Reference(EE SPD Location) Another Location this one is physically a part of

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.language Base required All Languages 📍5.0.0 FHIR Std.
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.operationalStatus Base preferred hl7VS-bedStatus 📦2.0.0 THO v6.5
Location.mode Base required Location Mode 📍5.0.0 FHIR Std.
Location.type Base extensible ServiceDeliveryLocationRoleType 📦3.0.0 THO v6.5
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.type Base required AddressType 📍5.0.0 FHIR Std.
Location.address.country Base required Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . ⏿2022v1 term.tehik.ee
Location.form Base example Location Form 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Location If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from EEBaseLocation

Summary

Mandatory: 1 element(1 nested mandatory element)
Prohibited: 5 elements

Structures

This structure refers to these other structures:

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* EEBaseLocation(2.0.0) Details and position information for a place
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... description Σ 0..1 markdown If location has no other characteristic
... address 0..1 EEBaseAddress(2.0.0) AdrId is mandatory
.... id 1..1 id Unique id for inter-element referencing
.... Slices for extension Content/Rules for all slices
..... extension:adsAdrId 0..1 Coding ADS AdrId
URL: https://fhir.ee/base/StructureDefinition/ee-ads-adr-id
Binding: ADS AdrId (required)
..... extension:adsOid 0..1 Coding ADS Oid
URL: https://fhir.ee/base/StructureDefinition/ee-ads-oid
Binding: ADS Oid (required)
..... extension:ehak 0..1 Coding EHAK code
URL: https://fhir.ee/base/StructureDefinition/ee-ehak
..... extension:official 0..1 boolean Indicator of address of residency
URL: http://hl7.org/fhir/StructureDefinition/address-official
..... extension:notice 0..* Coding Address notices and warnings
URL: https://fhir.ee/base/StructureDefinition/ee-address-notice
.... use ?!Σ 1..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address (home / work / etc.).
Example General: home
.... country Σ 1..1 string Should use a 2 digit country code
Binding: Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . (required)
... managingOrganization Σ 1..1 Reference(EE SPD Organization) Organization responsible for provisioning and upkeep
... partOf 0..1 Reference(EE SPD Location) Another Location this one is physically a part of

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.country Base required Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . ⏿2022v1 term.tehik.ee

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Location If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from EEBaseLocation

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* EEBaseLocation(2.0.0) Details and position information for a place
... description 0..1 markdown If location has no other characteristic
... address 0..1 EEBaseAddress(2.0.0) AdrId is mandatory
.... id 1..1 id Unique id for inter-element referencing
... position 0..0 The absolute geographic location
... partOf 0..1 Reference(EE SPD Location) Another Location this one is physically a part of
... characteristic 0..0 Collection of characteristics (attributes)
... hoursOfOperation 0..0 What days/times during a week is this location usually open (including exceptions)
... virtualService 0..0 Connection details of a virtual service (e.g. conference call)
... endpoint 0..0 Technical endpoints providing access to services operated for the location

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Location 0..* EEBaseLocation(2.0.0) Details and position information for a place
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Unique code or number identifying the location to its users
... status ?!Σ 0..1 code active | suspended | inactive
Binding: LocationStatus (required): Indicates whether the location is still in use.
... operationalStatus Σ 0..1 Coding The operational status of the location (typically only for a bed/room)
Binding: hl7VS-bedStatus (preferred): The operational status if the location (where typically a bed/room).
... name Σ 0..1 string Name of the location as used by humans
... alias 0..* string A list of alternate names that the location is known as, or was known as, in the past
... description Σ 0..1 markdown If location has no other characteristic
... mode Σ 0..1 code instance | kind
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.
... type Σ 0..* CodeableConcept Type of function performed
Binding: ServiceDeliveryLocationRoleType (extensible): Indicates the type of function performed at the location.
... contact 0..* ExtendedContactDetail Official contact details for the location
... address 0..1 EEBaseAddress(2.0.0) AdrId is mandatory
.... id 1..1 id Unique id for inter-element referencing
.... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... extension:adsAdrId 0..1 Coding ADS AdrId
URL: https://fhir.ee/base/StructureDefinition/ee-ads-adr-id
Binding: ADS AdrId (required)
..... extension:adsOid 0..1 Coding ADS Oid
URL: https://fhir.ee/base/StructureDefinition/ee-ads-oid
Binding: ADS Oid (required)
..... extension:ehak 0..1 Coding EHAK code
URL: https://fhir.ee/base/StructureDefinition/ee-ehak
..... extension:official 0..1 boolean Indicator of address of residency
URL: http://hl7.org/fhir/StructureDefinition/address-official
..... extension:notice 0..* Coding Address notices and warnings
URL: https://fhir.ee/base/StructureDefinition/ee-address-notice
.... use ?!Σ 1..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address (home / work / etc.).
Example General: home
.... type Σ 0..1 code postal | physical | both
Binding: AddressType (required): The type of an address (physical / postal).
Example General: both
.... text Σ 0..1 string Text representation of the address
Example General: 137 Nowhere Street, Erewhon 9132
.... line Σ 0..* string Street name, number, direction & P.O. Box etc.
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
..... id 0..1 string xml:id (or equivalent in JSON)
..... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
...... extension:censusTract 0..1 string A geographic sub-unit delineated for demographic purposes.
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-censusTract
...... extension:streetName 0..1 string Street name
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
...... extension:streetNameBase 0..1 string The base name of a roadway or artery recognized by a municipality (excluding street type and direction).
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetNameBase
...... extension:houseNumber 0..1 string House number
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
...... extension:additionalLocator 0..1 string Additional locator
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator
..... value 0..1 string Primitive value for string
Max Length:1048576
.... city Σ 0..1 string Name of city, town etc.
Example General: Erewhon
.... district Σ 0..1 string Administrative or political subdivision of a state or city
Example General: Madison
.... state Σ 0..1 string Sub-unit of country
.... postalCode Σ 0..1 string Postal code for area
Example General: 9132
.... country Σ 1..1 string Should use a 2 digit country code
Binding: Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . (required)
.... period Σ 0..1 Period Time period when address was/is in use
Example General: {"start":"2010-03-23","end":"2010-07-01"}
... form Σ 0..1 CodeableConcept Physical form of the location
Binding: LocationForm (example): Physical form of the location.
... managingOrganization Σ 1..1 Reference(EE SPD Organization) Organization responsible for provisioning and upkeep
... partOf 0..1 Reference(EE SPD Location) Another Location this one is physically a part of

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Location.language Base required All Languages 📍5.0.0 FHIR Std.
Location.status Base required Location Status 📍5.0.0 FHIR Std.
Location.operationalStatus Base preferred hl7VS-bedStatus 📦2.0.0 THO v6.5
Location.mode Base required Location Mode 📍5.0.0 FHIR Std.
Location.type Base extensible ServiceDeliveryLocationRoleType 📦3.0.0 THO v6.5
Location.address.use Base required AddressUse 📍5.0.0 FHIR Std.
Location.address.type Base required AddressType 📍5.0.0 FHIR Std.
Location.address.country Base required Riikide ja territooriumide klassifikaator (ISO 3166-1 alpha-2) . ⏿2022v1 term.tehik.ee
Location.form Base example Location Form 📍5.0.0 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Location If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Location If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Location If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Location If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Location A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from EEBaseLocation

Summary

Mandatory: 1 element(1 nested mandatory element)
Prohibited: 5 elements

Structures

This structure refers to these other structures:

 

Other representations of profile: CSV, Excel, Schematron