Importing and updating Organization information from SOR and FK-Organisation into eHealth Infrastructure
Introduction
The eHealth Infrastructure performs the import of organizations' information from Sundhedsvæsnets Organisationsregister (SOR) and KOMBIT Fælleskommunalt (FK) Organisation (formerly Støttesystemet Organisation (STS-ORG)) to the eHealth Infrastructure daily.
During the import, new or updated information in SOR and FK Organisation is updated in the eHealth Infrastructure.
A relationship between the FK Organization and the SOR-imported counterpart must be established.
This relationship can be established in two ways:
The customers provide mapping as MS Excel files to the Systematic AO team, which then triggers the relationship being created.
The customer provides the organisation relationship file(s) containing mappings between KOMBIT STS Organization and SOR identifiers. This input is provided to an operation in the eHealth system by SRE. The operation will then process the file line-by-line and establish the relevant related-to relationships in the FHIR Organization resources.FUT Infrastructure automatically creates the relationship during import from FK Organisation if the SOR code is available in FK Organisation.
The Municipalities FK Organisation administrator registers the SOR kode in the FK Organisation system (as address of type SOR ID), and the FUT infrastructure will automatically create the relationship during import.
eHealth Infrastructure imports from Sundhedsvæsnets Organisationsregister (SOR)
The eHealth Infrastructure imports organization information from Sundhedsvæsnets Organisationsregister (SOR).
See https://sundhedsdatastyrelsen.dk/data-og-registre/nationale-sundhedsregistre/sundhedsvaesenets-organisationsregister/ and the guideline for IT developers on SOR data usage, Vejledning SOR data anvendelse.pdf .
The import is based on a SOR XML data file generated nightly by SOR containing all organizations in SOR. The production data file is published at http://filer.nsi.dk/sor/data/sor/sorxml/v_3_0_0/Sor.zip .
The import occurs every night approximately 1 hour after SOR publishes the daily data file. See Automated Processing | Timerbased for when the import is performed.
The import excludes the organization tree below 'Sundhedsdatastyrelsen' (SOR Identifier 634491000016008), and all children found below that organization.
All non-excluded InstitutionOwner, HealthInstitution and OrganizationalUnit resources found in the data file are transformed into eHealth Organization resources and imported.
SOR’s production environment data is imported and used in all FUT environments (exttest, devenvcgi, test002 (education), pre-prod, production).
Data Mapping Overview
The import respects the address inheritance rules defined by SOR by copying the relevant addresses from parents if none is specified explicitly for a githe current organization.
The import also respects the EAN / GLN inheritance rules defined by SOR, by copying the relevant EAN / GLN, including period and status from parents, if EanLocationCodeOption.EanLocationCodeEntity.sor1:OnlyInternalIndicator is false. Note that if child organizations have their own EanLocationCodeOption.EanLocationCodeEntity.sor1:EanLocationCode, then that takes precedence.
The import does not copy other attributes and values from the parent, and the current organizations are imported as-is.
The following table explains how each of the attributes on the FHIR resource is mapped from the SOR data model.
See SOR XML Dokumentation (version 3.0.0) for a description of the SOR XML extract used as source.
See ehealth-organization for a description of the FHIR Organization model used for each imported organization (as destination).
FHIR Organization (profile ehealth-organization) element | Source from SOR | Description |
|---|---|---|
| N/A | Generated by FHIR server |
| N/A | Generated by FHIR server |
| N/A |
|
| N/A |
|
| N/A |
|
| N/A |
|
| N/A |
|
| N/A |
|
|
| Always set to |
| N/A |
|
|
| Always set to SOR’s NamingSystem OID type value, |
|
| The SOR identifier is stored in eHealth Infrastructure |
|
|
|
|
|
|
| N/A |
|
| Computed based on | Set to true when: sor1:ToDate is not set or is in the future and sor1:FirstFromDate is not a future date. Set to false when: sor1:ToDate is in the past or sor1:FirstFromDate is a future date. sor1:FirstFromDate is preferred over the sor1:FromDate as the sor1:FirstFromDate is used in SOR to set organizations active. sor1:FromDate is set when other data on the organization changes. |
|
|
|
|
|
|
| Concatenation of | Example: For SorIdentifier=914571000016002 with the name "KOL Klinik" the constructed alias will be: "Region Midtjylland, Aarhus Universitetshospital, Lungesygdomme, Lungesygdomme Klinik, KOL Klinik" |
|
| If the SOR organization has a CVR number, it is stored. Only if available on the current SOR entity. (no inheritance) |
|
| Always set to SOR. See Organization Source. |
| Calculated from | Relationships defining the organization trees are reflected in the FHIR id for the parent organization according to the SOR hierarchy. |
|
|
|
| Code calculated from
| Stored as ContactPoints See https://hl7.org/fhir/R4/valueset-contact-point-system.html If not present on the current element the VirtualAddressInformation is inherited from the SOR parent. |
| Two addresses will be stored in FHIR.
And either an
|
Then a prioritized select of The SOR XML data file documentation describes the inheritance of addresses in the SOR structure (translated to English):
After applying the inheritance logic the values are copied to the FHIR model. Ie. addresses are not left blank in the FHIR model. |
|
|
|
|
|
|
| Either a |
|
| N/A | Not created during import. |
|
|
|
|
|
|
|
| Translates to the Danish 'Ydernummer' |
|
|
|
|
| The |
|
| No mapping to |
|
| Translates to the Danish |
| N/A | Fixed value |
|
|
|
|
| As described above, ToDate also influences status |
|
|
|
Organization.endpoint reflects the currently defined Location code from SOR.
The accumulated Location code history from SOR could have been represented in Organization.endpoint as the element supports zero to many Endpoint where each has a validity period, Endpoint.period. No immediate need has been identified.
Please consult previous technical versions of an Organization (the resource’s history) to see changes of time if needed.
eHealth Infrastructure imports from KOMBIT Fælleskommunalt (FK) Organisation
The eHealth Infrastructure imports municipal organization information from the FK Organisation every night around Midnight.
Import for a municipality requires that a Service Agreement in KOMBIT Serviceplatform has been established for the municipality.
The import performs the following:
Processes every municipality that has agreed to a Service Agreement (could be all 98 municipalities)
For an OrganisationEnhed to be imported, either the OrganisationEnhed itself or one of its children (transitively) must have KLE code ‘
29.70.10 Telesundhed' and/or '29.70.20 Telemedicin' assigned as Opgaver as eitherudførendeoransvarlig.
Imports and updates information from each municipality individually
eHealth Environment | Service Agreements in place | KOMBIT Environment imported from | FK Organisation Service |
|---|---|---|---|
Production | For all municipalities | PROD |
|
Non-production (e.g. EXTTEST) | For fewer municipalities (at the time of writing) | TEST |
|
Organization discovery
For each municipality, the import starts by
Search for all OrganisationEnhed having the KLE code ‘
29.70.10 Telesundhed' or'29.70.20 Telemedicin' assigned as Opgaver as eitherudførendeoransvarlig.For all found OrganisationEnhed their parent organizational tree is found using the
RelationListe.Overordnetattributes.For OrganisationEnhed not having a RelationListe.Overordnet the RelationListe.Tilhoerer attribute will be used to retrieve the Organisation.
Then the Virksomhed is referenced by the Organisation's RelationList.Virksomhed attribute will be retrieved.
Lastly, the referenced addresses will be retrieved from the Adresser service and Danish Adresse Register (DAR).
The found OrganisationEnhed resources are transformed into eHealth Organization resources and imported.
Prior to FUT-I Release 2024.3, the FK Organisation object type Organisation was transformed and maintained as the top-level FHIR Organization in a municipal organization tree. With FUT-I Release 2024.3 these have been inactived (FHIR Organization.active = false).
Data mapping overview
Data mapping from FK Organisation objects to FHIR Organization of profile ehealth-organization :
The following table explains how each of the attributes on the FHIR resource is mapped from the FK Organisation data model
ehealth-organization element | FK Organisation Source | Comment |
|---|---|---|
|
| Generated by FHIR server |
|
| Generated by FHIR server |
|
| N/A |
|
| N/A |
|
| N/A |
|
| N/A |
|
| N/A |
|
| A relation to corresponding FHIR Organization with the given SOR Id is established. Adresse resources with Rolle ' |
|
| N/A |
|
| Always set to |
|
| Not used |
|
| For FK Organisation always |
| OrganisationEnhed |
|
| OrganisationEnhed |
|
| If OrganisationEnhed |
|
|
| Not used |
| | See https://ehealth.sundhed.dk/fhir/CodeSystem-ehealth-oio-organization-type.html |
| OrganisationEnhed | Has to be Aktiv for If value is “Inaktiv”, then |
| OrganisationEnhed |
|
|
| Concatenation of 'name' from the top of the tree down to and including the current entity. |
| OrganisationEnhed.OverordnetTarget: |