Search for organization by business identifier
General information
Purpose
Business identifiers are identifiers that exist outside of the Swedish Catalog of Organization, Offerings and Contract. While you can interact with HVOOrganizations and HVOOrganizationalUnits using their logical IDs as designated by the catalog, they can sometimes not be known. Since all organizations and organizational units in the healthcare sector have known business identifiers, these can be leveraged to interact with their corresponding records in the catalog.
Background
Organizations in Sweden can or must have different identifiers depending on where in the organizational hierarchy they are. Top level organizations or sole traders, represented in the catalog as HVOOrganizations, must have an organization identifier (sv: organisationsnummer) supplied by Bolagsverket. The ID can be either a 10 digit value or, for sole traders, a personal identity number (sv: personnummer). In the healthcare sector, organizations that are not top level but not considered units have one or more HSA identifiers.
Organizational units, represented in the catalog as HVOOrganizationalUnits, in the healthcare sector a HSA identifier.
Structure
Business identifiers are always defined by a system ID, for example an OID or a URI. In FHIR, this is the ID that goes in the Identifier.system element. The value of the identifier goes in the Identifier.value element.
Common business identifiers for organizations in Sweden are
- organization identifier (sv: organisationsnummer) with system ID urn:oid:2.5.4.97.
- personal identity number (sv: personnummer) with system http://electronichealth.se/identifier/personnummer. This is technically also an organization identifier, but a different system ID is used so that the format of the value can be validated accordingly.
- HSA identifier with system ID urn:oid:1.2.752.29.4.19. Note that an organization can have multiple of these.
When using the Identifier datatype to consume the API, the identifier system should always be provided. This is done in the following format:
GET <base>/Organization?identifier=<system>|<value>
Examples
Search using organization identifier
Invocation
The following example shows how to search for a HVOOrganization with an organization identifier with value 5565932521. The system for organization identifier is urn:oid:2.5.4.97.
GET <base>/Organization?identifier=urn:oid:2.5.4.97|5565932521
Result
The following example shows the return body of the search above. All search queries return a Bundle, even though it is expected only to find one Organization from the query. Note that the returned Organization has the corresponding identifier.system and identifier.value as the query searched for. The link.url element shows the query as the server interpreted it.
Bundle |
id : SearchResultOrganizationIdentifier |
link |
relation : self |
url : [base]/Organization?identifier=urn%3Aoid%3A2.5.4.97%7C5565932521 |
entry |
resource |
id : OrganizationInstance1 |
meta |
profile : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization |
identifier |
system : urn:oid:2.5.4.97 |
value : 5565932521 |
extension |
url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension |
value : True |
extension |
value |
start : 2000-06-14 |
url : http://hl7.org/fhir/StructureDefinition/organization-period |
extension |
url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationLegalFormExtension |
value |
code : 49 |
system : http://electronichealth.se/CodeSystem/skatteverket-jurform |
display : Övriga aktiebolag |
extension |
url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationOwnershipExtension |
value |
code : 42 |
system : http://electronichealth.se/CodeSystem/organization-ownership-scb |
display : Privat svenskkontrollerade enheter med koncerntillhörighet |
type |
coding |
code : 143591000052106 |
system : http://snomed.info/sct |
version : http://snomed.info/sct/45991000052106 |
display : vårdgivare |
contact |
address |
line : Wollmar Yxkullsgatan 25 |
postalCode : 118 50 |
city : Stockholm |
country : Sverige |
purpose |
coding |
code : ADMIN |
system : http://terminology.hl7.org/CodeSystem/contactentity-type |
display : Administrativt |
period |
start : 2000-06-14T00:00:00+01:00 |
contact |
period |
start : 2022-01-01T00:00:00+01:00 |
telecom |
value : https://meliva.se/vardcentral-soderdoktorn/ |
system : url |
purpose |
coding |
code : PATINF |
system : http://terminology.hl7.org/CodeSystem/contactentity-type |
display : Patient |
name : Meliva Vårdcentral Söderdoktorn AB |
type : searchset |
total : 1 |
Search using personal identity number
Invocation
The following examples shows how to search for a HVOOrganization with a personal identitiy number as an organization identifier, with value 199509203303. The system for organization identifier is http://electronichealth.se/identifier/personnummer.
GET <base>/Organization?identifier=http://electronichealth.se/identifier/personnummer|199509203303
Result
The following example shows the return body of the search above. All search queries return a Bundle, even though it is expected only to find one Organization from the query. Note that the returned Organization has the corresponding identifier.system and identifier.value as the query searched for. The link.url element shows the query as the server interpreted it.
Bundle |
id : SearchResultPersonalIdentityNumber |
link |
relation : self |
url : [base]/Organization?identifier=http%3A%2F%2Felectronichealth.se%2Fidentifier%2Fpersonnummer%7C198001032385 |
entry |
resource |
id : SoleTraderOrganization1 |
meta |
profile : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganization |
identifier |
system : http://electronichealth.se/identifier/personnummer |
value : 198001032385 |
extension |
url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationActiveStatusExtension |
value : True |
extension |
value |
start : 1970-01-01T00:00:00+01:00 |
url : http://hl7.org/fhir/StructureDefinition/organization-period |
extension |
url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationLegalFormExtension |
value |
code : 10 |
system : http://electronichealth.se/CodeSystem/skatteverket-jurform |
extension |
url : http://electronichealth.se/fhir/hvo/StructureDefinition/HVOOrganizationOwnershipExtension |
value |
code : 41 |
system : http://electronichealth.se/CodeSystem/organization-ownership-scb |
type |
coding |
code : 143591000052106 |
system : http://snomed.info/sct |
version : http://snomed.info/sct/45991000052106 |
name : SoleTrader |
type : searchset |
total : 1 |