Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Navitabs
rootSOR Enkeltopslagsservice (SORES)
includeroottrue


Table of Contents

Introduktion

SOR Enkeltopslagsservice er en støtte-service på NSP, der tillader enkelt-opslag af SOR enheder og SHAK-, CVR-mapninger gennem en JSON-snitflade.
Snitfladen er designet med BRS, MinSpærring, IDSAS og graviditetsmappen in mente, men alle NSP services, hvis behov opfyldes af de udstillede data, er velkomne til at kalde SORES's snitflade.

De udstillede data stammer fra den XML fil som SOR stiller til rådighed på deres hjemmeideSOR2-importeren, som indlæser det til stamdata-databasen. En delmængde af data caches i memory og cachen refreshes i produktion af en særskilt cron-container, hvis der er opdatede opdaterede data i databasen.

Snitfladebeskrivelsen indeholder - udover beskrivelse af selve snitfladen - et par eksempler på request og responserequests og responses.

Warning

SORES er kun til internt brug på NSP, den må ikke kaldes af eksterne anvendere. Der henvises til SORLS i stedet for.

Snitfladebeskrivelse

Generelt

Servletten udstiller et par funktioner via GET, mens selve opslags-funktionaliteten udstilles via en kommandostruktur sendt via POST.

Endpoints

SORES har to endpoints, hvor v2-udgaven medsender ejer-organisationens ID for SOR-entiteter.

Service

Endpoint

SORES/sores
SORESv2/sores/v2
SORESv3/sores/v3

GET-funktioner

Funktion

Beskrivelse

/statusHTTP-response-code angiver servicens tilgængelighed
/versionVersions-nummeret sendes som response-text
/reloadGenindlæser data fra databasen

POST-operationer

Operation

Parametre

Beskrivelse
GetSorEntitySorIds: Array af SOR-Id'er, der ønskes fremsøgt
[Date]: Datagrundlags-dato
Returnerer information for hver af de forespurgte SOR entiteter, der gjaldt på den angivne dato*
Operationen hed i første udgave af servicen BRSGetSorEntity, hvilket stadig understøttes som alias.
SearchAllChildrenSorIds: Array af SOR-Id'er, hvis under-entiteter ønskes fremsøgt
[Date]: Datagrundlags-dato
Returnerer information for alle under-entiteter for hver af de forespurgte SOR entiteter, der gjaldt på den angivne dato*
Operationen hed i første udgave af servicen BRSSearchAllChildren, hvilket stadig understøttes som alias.
MapShakToSorShakId: SHAK id, der ønskes mappet
[Date]: Datagrundlags-dato
Returnerer information for de SOR-entiteter, der på den angivne dato* havde det forespurgte SHAK id.
Operationen hed i første udgave af servicen BRSMapShakToSor, hvilket stadig understøttes som alias.
GetSorEntityByProviderProviderIds: Array af ydernumre
[Date]: Datagrundlags-dato
Returnerer information for (en liste af) alle SOR entiteter, der var tildelt det angivne ydernummer på den angivne dato*
IsSorEntityDescendantOfSorEntitySorIdAndParentSorIdPairs: Todimensionelt array af SOR-Id-par 
[Date]: Datagrundlags-dato
Returnerer et array af booleans - for hvert par af id'er [id, mulig forælder] - om den pågældende enhed hørte under den mulige forælder i hierarkiet på den angivne dato*
EntityNameLookup

MatchEntityName: Streng, der matches på som en del af enhedsnavnet
CVR: CVR-nummer på den enhed, hvis undersåtter udgør søgeområdet
EntityTypeNames: Liste af entitets-type-navne, der medtages
[Date]: Datagrundlags-dato

Returnerer information for et mindre antal SOR entiteter, hvis navn indeholder den angivne søgestreng begrænset af at entiteten:

  • ligger i SOR-træet under en entitet med det givne CVR-nummer 
  • har en entitets-type, der findes i den givne liste af entitets-typer
  • var gyldig på den angivne dato, eller dags dato, hvis ingen dato er angivet

Hvis intet CVR-nummer er angivet, søges i hele SOR-træet.
Hvis entitets-type listen ikke er angivet eller er tom, returneres entiteter uanset deres type.
Det anbefales på det kraftigste at anvende filtrering i videst mulige omfang.

Såfremt søgningen matcher flere SOR entiteter end servicen er konfigureret til at returnere, indkluderer responset json-markøren AdditionalRecordsExist med værdien True.

InstitutionOwnerCvrNumber

SorIds: Array af SOR-Id'er, der ønskes fremsøgt
[Date]: Datagrundlags-dato

Returnerer CVR nummeret på den Institutionsejer som den forespurgte SOR enhed hørte under på den angivne dato*

InstitutionOwnerCvrNumberByShak

ShakIds: Array af SHAK-Id'er, der ønskes fremsøgt

Returnerer CVR nummeret på den Institutionsejer som den forespurgte SHAK enhed hører under

Eksempler

Herunder illustreres et par eksempel-requests og de tilhørende responses for operationerne.

GetSorEntity

. Der tjekkes udelukkende på de fire første cifre af SHAK-id'et

BatchedOperations

Operations: Array af operationer

Returnerer et array med resultaterne fra de forskellige operationer i den rækkefølge som de er komme i. 

ReplacedSORMap

SorIds: Array af SOR-Id'er, der ønskes fremsøgt

Tager imod en liste af SOR koder. Slår for hver angivet SOR-kode hele relationstræet op i begge retninger (både parent og child). Resultatet er et JSON-array med alle erstatninger og tilhørende gyldighedsperioder.

getSOREntityByPostalCode

postCodeId: Et fire-cifret postnummer 
entityTypeId: angiver Sundhedsinstitution entitetstypen, der skal der er på postnummert

Tager i mod postnummer og en sundhedsinstitution entitetstype og finder alle SOR-koder på postnummer som har sundhedsinstitution entitetstypen.


Eksempler

Herunder illustreres eksempel-requests og de tilhørende responses for operationerne.

GetSorEntity

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"91331000016003\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "8041000016000":{
        "sorId":8041000016000,
        "from":"2016-10-18",
        "name":"Sydvestjysk Sygehus",
        "healthInstitutionSorId":8041000016000,
        "shakId":"5501",
        "parentSorId":6101000016001
    },
    "6101000016001":{
        "sorId":6101000016001,
        "from":"2015-07-30",
        "name":"Region Syddanmark",
    },
    "91331000016003":{
        "sorId":91331000016003,
        "from":"2012-10-12",
        "name":"Jørn Bøgh ApS",
        "healthInstitutionSorId":91321000016000,
        "providerId":"097926",
        "shakId":"7034010",
        "parentSorId":91321000016000
    }
}

GetSorEntity (v2)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"91331000016003\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "8041000016000":{
        "sorId":8041000016000,
        "from":"2016-10-18",
        "name":"Sydvestjysk Sygehus",
        "institutionOwnerSorId":6101000016001,
        "healthInstitutionSorId":8041000016000,
        "shakId":"5501",
        "parentSorId":6101000016001
    },
    "6101000016001":{
        "sorId":6101000016001,
        "from":"2015-07-30",
        "name":"Region Syddanmark",
        "institutionOwnerSorId":6101000016001
    },
    "91331000016003":{
        "sorId":91331000016003,
        "from":"2012-10-12",
        "name":"Jørn Bøgh ApS",
        "institutionOwnerSorId":91311000016009,
        "healthInstitutionSorId":91321000016000,
        "providerId":"097926",
        "shakId":"7034010",
        "parentSorId":91321000016000
    }
}

GetSorEntity (v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v3
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "8041000016000":{
        "sorId":8041000016000,
        "from":"2016-10-18",
        "name":"Sydvestjysk Sygehus",
        "institutionOwnerSorId":6101000016001,
        "healthInstitutionSorId":8041000016000,
        "shakId":"5501",
        "parentSorId":6101000016001,
        "sorType":"SI"
    },
    "6101000016001":{
        "sorId":6101000016001,
        "from":"2015-07-30",
        "name":"Region Syddanmark",
        "institutionOwnerSorId":6101000016001,
        "healthInstitutionSorId":0,
        "parentSorId":0,
        "sorType":"IE"
    }
}

GetSorEntityByProvider

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProvider\", \"providerIds\": [ \"303712\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "303712":[
        {
            "sorId":709251000016004,
            "from":"2018-08-18",
            "name":"Fodterapeut Mette Nielsen",
            "healthInstitutionSorId":399351000016009,
            "providerId":"303712",
            "parentSorId":399351000016009
        },
        {
            "sorId":842311000016008,
            "from":"2018-08-18",
            "name":"Hanne Møller-San Pedro",
            "healthInstitutionSorId":842301000016006,
            "providerId":"303712",
            "parentSorId":842301000016006
        },
        {
            "sorId":701371000016004,
            "from":"2018-08-18",
            "name":"Annette Steen Nielsen",
            "healthInstitutionSorId":701361000016009,
            "providerId":"303712",
            "parentSorId":701361000016009
        }
    ]
}

GetSorEntityByProvider (v2)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProvider\", \"providerIds\": [ \"303712\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "303712":[
        {
            "sorId":709251000016004,
            "from":"2018-08-18",
            "name":"Fodterapeut Mette Nielsen",
            "institutionOwnerSorId":399341000016006,
            "healthInstitutionSorId":399351000016009,
            "providerId":"303712",
            "parentSorId":399351000016009
        },
        {
            "sorId":842311000016008,
            "from":"2018-08-18",
            "name":"Hanne Møller-San Pedro",
            "institutionOwnerSorId":842291000016007,
            "healthInstitutionSorId":842301000016006,
            "providerId":"303712",
            "parentSorId":842301000016006
        },
        {
            "sorId":701371000016004,
            "from":"2018-08-18",
            "name":"Annette Steen Nielsen",
            "institutionOwnerSorId":701351000016006,
            "healthInstitutionSorId":701361000016009,
            "providerId":"303712",
            "parentSorId":701361000016009
        }
    ]
}

GetSorEntityByProvider (v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProvider\", \"providerIds\": [ \"303712\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v3
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "303712":[
        {
            "sorId":709251000016004,
            "from":"2018-08-18",
            "name":"Fodterapeut Mette Nielsen",
            "institutionOwnerSorId":399341000016006,
            "healthInstitutionSorId":399351000016009,
            "providerId":"303712",
            "parentSorId":399351000016009,
			"sorType":"OE"
        },
        {
            "sorId":842311000016008,
            "from":"2018-08-18",
            "name":"Hanne Møller-San Pedro",
            "institutionOwnerSorId":842291000016007,
            "healthInstitutionSorId":842301000016006,
            "providerId":"303712",
            "parentSorId":842301000016006,
		    "sorType":"OE"
        },
        {
            "sorId":701371000016004,
            "from":"2018-08-18",
            "name":"Annette Steen Nielsen",
            "institutionOwnerSorId":701351000016006,
            "healthInstitutionSorId":701361000016009,
            "providerId":"303712",
            "parentSorId":701361000016009,
            "sorType":"OE"
        }
    ]
}

SearchAllChildren

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"SearchAllChildren\", \"sorIds\": [ \"246061000016002\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "246061000016002":[
        {
            "sorId":246071000016007,
            "from":"2020-06-16",
            "name":"SVS Kæbekirurgisk ambulatorium (Esbjerg)",
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",
            "parentSorId":246061000016002
        },
        {
            "sorId":452041000016004,
            "from":"2020-06-16",
            "name":"SVS kæbekirurgisk amb. (Esbjerg)",
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",
            "parentSorId":246071000016007
        },
        {
            "sorId":246081000016009,
            "from":"2020-06-16",
            "name":"SVS Kæbekirurgisk afsnit (Esbjerg)",
            "healthInstitutionSorId":8041000016000,
            "shakId":"5501081",
            "parentSorId":246061000016002
        }
    ]
}

SearchAllChildren (v2)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"SearchAllChildren\", \"sorIds\": [ \"246061000016002\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "246061000016002":[
        {
            "sorId":246071000016007,
            "from":"2020-06-16",
            "name":"SVS Kæbekirurgisk ambulatorium (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",
            "parentSorId":246061000016002
        },
        {
            "sorId":452041000016004,
            "from":"2020-06-16",
            "name":"SVS kæbekirurgisk amb. (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",
            "parentSorId":246071000016007
        },
        {
            "sorId":246081000016009,
            "from":"2020-06-16",
            "name":"SVS Kæbekirurgisk afsnit (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000,
            "shakId":"5501081",
            "parentSorId":246061000016002
        }
    ]
}

SearchAllChildren (v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"SearchAllChildren\", \"sorIds\": [ \"246061000016002\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v3
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "246061000016002":[
        {
            "sorId":246071000016007,
            "from":"2020-06-16",
            "name":"SVS Kæbekirurgisk ambulatorium (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",
            "parentSorId":246061000016002,
		    "sorType":"OE"
        },
        {
            "sorId":452041000016004,
            "from":"2020-06-16",
            "name":"SVS kæbekirurgisk amb. (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",
            "parentSorId":246071000016007,
		    "sorType":"OE"
        },
        {
            "sorId":246081000016009,
            "from":"2020-06-16",
            "name":"SVS Kæbekirurgisk afsnit (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000,
            "shakId":"5501081",
            "parentSorId":246061000016002,
		    "sorType":"OE"
        }
    ]
}

IsSorEntityDescendantOfSorEntity (v1, v2 og v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"IsSorEntityDescendantOfSorEntity\", \"sorIdAndParentSorIdPairs\": [ [\"246061000016002\", \"246081000016009\"], [\"246081000016009\", \"246061000016002\"] ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "child=246061000016002, possibleAncestor=246081000016009":false,
    "child=246081000016009, possibleAncestor=246061000016002":true
}

EntityNameLookup

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"EntityNameLookup\", \"matchEntityName\": \"stor\", \"cvr\": \"34607079\", \"entityTypeNames\": [\"jordemoderklinik\"] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "stor":[
        {
            "sorId":644451000016003,
            "from":"2016-10-17",
            "name":"Storkereden Holbæk",
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        },
        {
            "sorId":644421000016006,
            "from":"2019-03-28",
            "name":"Storkereden",
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644411000016002
        },
        {
            "sorId":644431000016008,
            "from":"2016-10-17",
            "name":"Storkereden Slagelse",
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        },
        {
            "sorId":644441000016001,
            "from":"2016-10-17",
            "name":"Storkereden Roskilde",
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        }
    ],
    "AdditionalRecordsExist":false
}

EntityNameLookup (v2)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"EntityNameLookup\", \"matchEntityName\": \"stor\", \"cvr\": \"34607079\", \"entityTypeNames\": [\"jordemoderklinik\"] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "stor":[
        {
            "sorId":644451000016003,
            "from":"2016-10-17",
            "name":"Storkereden Holbæk",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        },
        {
            "sorId":644421000016006,
            "from":"2019-03-28",
            "name":"Storkereden",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644411000016002
        },
        {
            "sorId":644431000016008,
            "from":"2016-10-17",
            "name":"Storkereden Slagelse",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        },
        {
            "sorId":644441000016001,
            "from":"2016-10-17",
            "name":"Storkereden Roskilde",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        }
    ],
    "AdditionalRecordsExist":false
}

EntityNameLookup (v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"EntityNameLookup\", \"matchEntityName\": \"stor\", \"cvr\": \"34607079\", \"entityTypeNames\": [\"jordemoderklinik\"] }" http://test1.ekstern-test.nspop.dk:8080/sores/v3
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "stor":[
        {
            "sorId":644451000016003,
            "from":"2016-10-17",
            "name":"Storkereden Holbæk",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006,
		    "sorType":"OE"
        },
        {
            "sorId":644421000016006,
            "from":"2019-03-28",
            "name":"Storkereden",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644411000016002,
		    "sorType":"SI"
        },
        {
            "sorId":644431000016008,
            "from":"2016-10-17",
            "name":"Storkereden Slagelse",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006,
		    "sorType":"OE"
        },
        {
            "sorId":644441000016001,
            "from":"2016-10-17",
            "name":"Storkereden Roskilde",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006,
		    "sorType":"OE"
        }
    ],
    "AdditionalRecordsExist":false
}

MapShakToSor (v1, v2 og v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"MapShakToSor\", \"shakId\": \"5501\" }" http://test1.ekstern-test.nspop.dk:8080/sores/
HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 { "8041000016000":{ "sorId":8041000016000, "from":"2016-10-18", "name":"Sydvestjysk Sygehus", "healthInstitutionSorId":8041000016000, "shakId":"5501", "parentSorId":6101000016001 }, "6101000016001":{ "sorId":6101000016001, "from":"2015-07-30", "name":"Region Syddanmark", }, "91331000016003":{ "sorId":91331000016003,
        "from":"
2012
2013-
10
02-
12
28",
            "
name
healthInstitutionSorId":
"Jørn Bøgh ApS",
8041000016000
        
"healthInstitutionSorId":91321000016000
},
        
"providerId":"097926",
{
            "
shakId
sorId":
"7034010"
245271000016006,
        
"parentSorId":91321000016000
    
} }
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "5501":[
        {
            "sorId":245531000016006,
    
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"91331000016003\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

GetSorEntity (v2)

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 {
"from":"2020-06-16",
            "
8041000016000
healthInstitutionSorId":8041000016000
        },
        {
            "sorId":
8041000016000
245601000016003,
            "from":"
2016
2020-
10
06-
18
16",
            "
name
healthInstitutionSorId":
"Sydvestjysk Sygehus",
8041000016000
        },
        {
    
"institutionOwnerSorId":6101000016001,
        "
healthInstitutionSorId
sorId":
8041000016000
245011000016008,
            "
shakId
from":"
5501
2019-04-16",
            "
parentSorId
healthInstitutionSorId":
6101000016001
8041000016000
        },
     
"6101000016001":
   {
            "sorId":
6101000016001
246271000016001,
            "from":"
2015
2018-12-07
-30
",
            "
name
healthInstitutionSorId":
"Region Syddanmark",
8041000016000
        
"institutionOwnerSorId":6101000016001
},
    
},
    
"91331000016003":
{
            "sorId":
91331000016003
244461000016003,
    
"from":"2012-10-12",
        "
name
from":"
Jørn Bøgh ApS
2019-04-11",
            "
institutionOwnerSorId
healthInstitutionSorId":
91311000016009,
8041000016000
        
"healthInstitutionSorId":91321000016000
},
        
"providerId":"097926",
{
            "
shakId
sorId":
"7034010"
245141000016005,
        
"parentSorId":91321000016000 } }
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"91331000016003\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
No Format

GetSorEntityByProvider

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 { "303712":[
    "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245931000016001,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":
709251000016004
618861000016004,
            "from":"
2018
2020-
08
06-
18
16",
            "
name
healthInstitutionSorId":
"Fodterapeut Mette Nielsen"
8041000016000
        },
        {
    
"healthInstitutionSorId
        "sorId":
399351000016009
246331000016007,
            "
providerId
from":"
303712
2012-01-11",
            "
parentSorId
healthInstitutionSorId":
399351000016009
8041000016000
        },
        {
            "sorId":
842311000016008
245731000016004,
            "from":"
2018
2020-
08
06-
18
16",
            "
name
healthInstitutionSorId":
"Hanne Møller-San Pedro",
8041000016000
        },
        {
            "
healthInstitutionSorId
sorId":
842301000016006
246221000016000,
            "
providerId
from":"
303712
2019-04-16",
            "
parentSorId
healthInstitutionSorId":
842301000016006
8041000016000
        },
        {
            "sorId":
701371000016004
246291000016002,
            "from":"2018-
08
12-
18
07",
            "
name
healthInstitutionSorId":
"Annette Steen Nielsen",
8041000016000
        
"healthInstitutionSorId":701361000016009
},
        
"providerId":"303712",
{
            "
parentSorId
sorId":
701361000016009
244851000016004,
        
} ] }
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProvider\", \"providerIds\": [ \"303712\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

GetSorEntityByProvider (v2)

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 {
    "from":"2020-06-16",
            "
303712
healthInstitutionSorId":
[
8041000016000
        },
        {
            "sorId":
709251000016004
244811000016003,
            "from":"
2018
2020-
08
06-
18
16",
            "
name
healthInstitutionSorId":
"Fodterapeut Mette Nielsen",
8041000016000
        },
        
"institutionOwnerSorId":399341000016006,
{
            "
healthInstitutionSorId
sorId":
399351000016009
244721000016002,
            "
providerId
from":"
303712
2020-06-16",
            "
parentSorId
healthInstitutionSorId":
399351000016009
8041000016000
        },
        {
            "sorId":
842311000016008
245451000016000,
            "from":"
2018
2020-
08
06-
18
16",
            "
name
healthInstitutionSorId":
"Hanne Møller-San Pedro",
8041000016000
        },
        
"institutionOwnerSorId":842291000016007,
{
            "
healthInstitutionSorId
sorId":
842301000016006
244591000016008,
            "
providerId
from":"
303712
2020-06-16",
            "
parentSorId
healthInstitutionSorId":
842301000016006
8041000016000
        },
        {
            "sorId":
701371000016004
246531000016001,
            "from":"2018-
08
12-
18
07",
            "
name":"Annette Steen Nielsen"
healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244681000016007,
            "
institutionOwnerSorId
from":
701351000016006
"2020-06-16",
            "healthInstitutionSorId":
701361000016009,
8041000016000
        },
      
"providerId":"303712",
  {
            "
parentSorId
sorId":
701361000016009
245221000016007,
        
}
    
] }
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProvider\", \"providerIds\": [ \"303712\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
No Format

SearchAllChildren

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 { "246061000016002":[
"from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245581000016005,
            "from":"2018-04-12",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":
246071000016007
246571000016004,
            "from":"
2020
2018-
06
12-
16
07",
            "
name
healthInstitutionSorId":
"SVS
8041000016000
  
Kæbekirurgisk
 
ambulatorium
 
(Esbjerg)",
    },
        
"institutionOwnerSorId":6101000016001,
{
            "
healthInstitutionSorId
sorId":
8041000016000
245851000016003,
            "
shakId
from":"
550108T
2020-06-16",
            "
parentSorId
healthInstitutionSorId":
246061000016002
8041000016000
        },
        {
            "sorId":
452041000016004
245891000016009,
            "from":"
2020
2019-
06
04-16",
            "
name
healthInstitutionSorId":
"SVS
8041000016000
  
kæbekirurgisk
 
amb.
 
(Esbjerg)",
    },
        
"institutionOwnerSorId":6101000016001,
{
            "
healthInstitutionSorId
sorId":
8041000016000
246251000016008,
            "
shakId
from":"
550108T
2018-12-07",
            "
parentSorId
healthInstitutionSorId":
246071000016007
8041000016000
        },
        {
            "sorId":
246081000016009
245401000016001,
            "from":"2020-06-16",
            "
name
healthInstitutionSorId":
"SVS Kæbekirurgisk afsnit (Esbjerg)",
8041000016000
        
"institutionOwnerSorId":6101000016001
},
        
"healthInstitutionSorId":8041000016000,
{
            "
shakId
sorId":
"5501081"
8041000016000,
        
"parentSorId":246061000016002
    
} ] }
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"SearchAllChildren\", \"sorIds\": [ \"246061000016002\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

SearchAllChildren (v2)

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 {
"from":"2016-10-18",
            "
246061000016002
healthInstitutionSorId":
[
8041000016000
        },
        {
            "sorId":
246071000016007
245771000016002,
            "from":"2020-06-16",
            "
name
healthInstitutionSorId":
"SVS Kæbekirurgisk ambulatorium (Esbjerg)",
8041000016000
        },
        
"institutionOwnerSorId":6101000016001,
{
            "
healthInstitutionSorId
sorId":
8041000016000
245641000016000,
            "
shakId
from":"
550108T
2019-04-16",
            "
parentSorId
healthInstitutionSorId":
246061000016002
8041000016000
        },
        {
            "sorId":
452041000016004
618901000016009,
            "from":"
2020
2019-
06
02-
16
27",
            "
name
healthInstitutionSorId":
"SVS
8041000016000
  
kæbekirurgisk
 
amb.
 
(Esbjerg)",
    },
        
"institutionOwnerSorId":6101000016001,
{
            "
healthInstitutionSorId
sorId":
8041000016000
244441000016004,
            "
shakId
from":"
550108T
2018-04-11",
            "
parentSorId
healthInstitutionSorId":
246071000016007
8041000016000
        },
        {
            "sorId":
246081000016009
246311000016001,
            "from":"
2020
2018-
06-16",
12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "
name
sorId":
"SVS Kæbekirurgisk afsnit (Esbjerg)"
618911000016006,
            "
institutionOwnerSorId
from":
6101000016001
"2016-08-09",
            "healthInstitutionSorId":8041000016000
,

        },
        
"shakId":"5501081",
{
            "
parentSorId
sorId":
246061000016002
245501000016002,
        
}
    
] }
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"SearchAllChildren\", \"sorIds\": [ \"246061000016002\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/v2
No Format

IsSorEntityDescendantOfSorEntity (v1 og v2)

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"IsSorEntityDescendantOfSorEntity\", \"sorIdAndParentSorIdPairs\": [ [\"246061000016002\", \"246081000016009\"], [\"246081000016009\", \"246061000016002\"] ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "child=246061000016002, possibleAncestor=246081000016009":false,
    "child=246081000016009, possibleAncestor=246061000016002":true
}

EntityNameLookup

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 { "stor":[
"from":"2013-02-28",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246361000016004,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246091000016006,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":
644451000016003
318611000016008,
            "from":"
2016
2019-
10
04-
17
16",
            "
name":"Storkereden Holbæk"
healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246321000016005,
            "
healthInstitutionSorId
from":
644421000016006
"2018-04-20",
            "
parentSorId
healthInstitutionSorId":
644421000016006
8041000016000
        },
        {
            "sorId":
644421000016006
246191000016005,
            "from":"
2019
2020-
03-28",
06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "
name
sorId":
"Storkereden"
246061000016002,
            "
healthInstitutionSorId
from":
644421000016006
"2019-04-16",
            "
parentSorId
healthInstitutionSorId":
644411000016002
8041000016000
        },
        {
            "sorId":
644431000016008
390631000016000,
            "from":"
2016
2018-
10
12-
17
07",
            "
name
healthInstitutionSorId":
"Storkereden Slagelse",
8041000016000
        },
        
"healthInstitutionSorId":644421000016006,
{
            "
parentSorId
sorId":
644421000016006
245511000016000,
        
},
    
{
"from":"2013-02-28",
            "
sorId
healthInstitutionSorId":
644441000016001,
8041000016000
        },
       
"from":"2016-10-17",
 {
            "
name":"Storkereden Roskilde"
sorId":246551000016006,
            "
healthInstitutionSorId
from":
644421000016006
"2018-12-07",
            "
parentSorId
healthInstitutionSorId":
644421000016006
8041000016000
        }
    ]
,

"AdditionalRecordsExist":false
}
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"EntityNameLookup\", \"matchEntityName\": \"stor\", \"cvr\": \"34607079\", \"entityTypeNames\": [\"jordemoderklinik\"] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

...

InstitutionOwnerCvrNumber (v1, v2 og v3)

expandEntityNameLookupmatchEntityNamestorcvr: \"34607079\"entityTypeNames: [\"jordemoderklinik\"] v2
Code Block
language
bash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"
InstitutionOwnerCvrNumber\", \"
sorIds\": [ \"
8041000016000\", \"
6101000016001\"
, \"
91331000016003\"
 ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
noformat
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{ "stor":[

{
    "
sorId
8041000016000":
644451000016003
"29190909",
    
"from
"6101000016001":"
2016-10-17
29190909",
    
"name
"91331000016003":"
Storkereden Holbæk", "institutionOwnerSorId":644411000016002, "healthInstitutionSorId":644421000016006, "parentSorId":644421000016006 }, { "sorId":644421000016006, "from":"2019-03-28", "name":"Storkereden", "institutionOwnerSorId":644411000016002, "healthInstitutionSorId":644421000016006, "parentSorId":644411000016002 }, { "sorId":644431000016008, "from":"2016-10-17", "name":"Storkereden Slagelse", "institutionOwnerSorId":644411000016002, "healthInstitutionSorId":644421000016006, "parentSorId":644421000016006 },
"
}

InstitutionOwnerCvrNumberByShak (v1, v2 og v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"InstitutionOwnerCvrNumberByShak\", \"shakIds\": [ \"1301\", \"6610123\", \"9999\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8


{
    "1301":"29190623",
    "6610123":"29190925",
    "9999":""
}

BatchedOperations (v1, v2 og v3)

Code Block
languagebash
titleRequest
collapsetrue
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"BatchedOperations\", \"operations\": [ 
	{\"op\": \"InstitutionOwnerCvrNumberByShak\", \"shakIds\": [ \"1301\", \"6610123\", \"9999\" ] },
	{\"op\": \"GetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"91331000016003\" ] }, 
	{\"op\": \"GetSorEntityByProvider\", \"providerIds\": [ \"303712\" ] },
	{\"op\": \"SearchAllChildren\", \"sorIds\": [ \"246061000016002\" ] }
] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
collapsetrue
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8

{
    "BatchedOperations":[
        {
		    "1301":"29190623",
   			"6610123":"29190925",
    		"9999":""
		},
		{
    		"8041000016000":{
        
		"sorId":
644441000016001
8041000016000,
        
		"from":"2016-10-
17
18",
        
		"name":"
Storkereden
Sydvestjysk 
Roskilde
Sygehus",
        
		"institutionOwnerSorId":
644411000016002
6101000016001,
        
		"healthInstitutionSorId":
644421000016006
8041000016000,
        
"parentSorId":644421000016006
		"shakId":"5501",
        
}
		"parentSorId":6101000016001
    
], "AdditionalRecordsExist":false }

MapShakToSor (v1 og v2)

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 { "5501":[
		},
    		"6101000016001":{
        		"sorId":6101000016001,
        		"from":"2015-07-30",
        		"name":"Region Syddanmark",
        
{
		"institutionOwnerSorId":6101000016001
    		},
    		"91331000016003":{
        		"sorId":
245531000016006
91331000016003,
        
		"from":"
2013
2012-
02
10-
28
12",
        		"name":"Jørn Bøgh 
"healthInstitutionSorId":8041000016000
ApS",
        
}
		"institutionOwnerSorId":91311000016009,
        
{
		"healthInstitutionSorId":91321000016000,
        
"sorId
		"providerId":
245271000016006
"097926",
        
"from
		"shakId":"
2020-06-16
7034010",
        
"healthInstitutionSorId
		"parentSorId":
8041000016000
91321000016000
    		}
		},
		{
    
},
		"303712":[
       
			{
            		"sorId":
245601000016003
709251000016004,
            		"from":"
2020
2018-
06
08-
16
18",
            		"
healthInstitutionSorId
name":
8041000016000
"Fodterapeut 
}
Mette Nielsen",
        
{
    
"sorId
		"healthInstitutionSorId":
245011000016008
399351000016009,
             
		 
"
from
providerId":"
2019-04-16
303712",
           
  		 "
healthInstitutionSorId
parentSorId":
8041000016000
399351000016009
         
		},
         
		{
           
  		 "sorId":
246271000016001
842311000016008,
            		 
"from":"2018-
12
08-
07
18",
           
  		 "
healthInstitutionSorId
name":
8041000016000 }
"Hanne Møller-San Pedro",
           
{ "sorId":244461000016003
  		 "healthInstitutionSorId":842301000016006,
           
  		 "
from
providerId":"
2019-04-11
303712",
   
         		 "
healthInstitutionSorId
parentSorId":
8041000016000
842301000016006
         
		},
         
		{
             
		 
"sorId":
245141000016005
701371000016004,
           
  		 "from":"
2020
2018-
06
08-
16
18",
             
		 
"
healthInstitutionSorId
name":
8041000016000
"Annette 
}
Steen Nielsen",
             
{
		 "healthInstitutionSorId":701361000016009,
 		            
"sorId
 "providerId":
245931000016001
"303712",
          		   
  "
from
parentSorId":
"2020-06-16",
701361000016009
 		        }
 		    
"healthInstitutionSorId":8041000016000
 ]
 		},
	    {
    
},
		"246061000016002":[
        		{
            		 "sorId":
618861000016004
246071000016007,
           
  		 "from":"2020-06-16",
       		      
 	 
"
healthInstitutionSorId
name":
8041000016000
"SVS Kæbekirurgisk 
}
ambulatorium (Esbjerg)",
 
{
     		         "
sorId
healthInstitutionSorId":
246331000016007
8041000016000,
     		         
"
from
shakId":"
2012-01-11
550108T",
     		      
   "
healthInstitutionSorId
parentSorId":
8041000016000
246061000016002
    		  
  },
     		  
  
{
    		         
"sorId":
245731000016004
452041000016004,
    		      
   
"from":"2020-06-16",
   		          
   
"
healthInstitutionSorId
name":
8041000016000
"SVS kæbekirurgisk 
}
amb. (Esbjerg)",
   		    
{
         "
sorId
healthInstitutionSorId":
246221000016000
8041000016000,
   		          
   
"
from
shakId":"
2019-04-16
550108T",
    		         
"
healthInstitutionSorId
parentSorId":
8041000016000
246071000016007
     		    
},
      		  
  {
     		         
"sorId":
246291000016002
246081000016009,
     		         
"from":"
2018
2020-
12
06-
07
16",
      		      
   "
healthInstitutionSorId
name":
8041000016000
"SVS Kæbekirurgisk 
}
afsnit (Esbjerg)",
      
{
		         "
sorId
healthInstitutionSorId":
244851000016004
8041000016000,
       		         
"
from
shakId":"
2020-06-16
5501081",
        		     
"
healthInstitutionSorId
parentSorId":
8041000016000
246061000016002
       		    
}
,

     		 ]
 		 }
   
{ "sorId":244811000016003, "from":"2020-06-16",
 ]
}
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"MapShakToSor\", \"shakId\": \"5501\" }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

ReplacedSORMap

Code Block
languagebash
titleRequest
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"ReplacedSORMap\", \"sorIds\": [ \"459811000016001\", \"1292411000016002\", \"501281000016008\", \"239871000016006\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8

{
    "459811000016001":[
"healthInstitutionSorId":8041000016000

        
},
{
            
{
"fromSor":"459811000016001",
            "
sorId
toSor":
244721000016002
"1292411000016002",
            "
from
fromDate":"
2020
2024-
06
01-
16
01",
            "
healthInstitutionSorId
toDate":
8041000016000
""
        },
        {
            "
sorId
fromSor":
245451000016000
"595111000016009",
            "
from
toSor":"
2020-06-16
1292411000016002",
            "
healthInstitutionSorId":8041000016000 }, { "sorId":244591000016008
fromDate":"2024-01-01",
            "
from
toDate":"
2020-06-16
"
,

        },
    
"healthInstitutionSorId":8041000016000
    {
    
},
        
{
"fromSor":"595161000016006",
            "
sorId
toSor":
246531000016001
"1292411000016002",
            "
from
fromDate":"
2018
2024-
12
01-
07
01",
            "
healthInstitutionSorId
toDate":
8041000016000
""
        },
        {
            "
sorId
fromSor":
244681000016007
"653971000016003",
            "
from
toSor":"
2020-06-16
1292411000016002",
            "
healthInstitutionSorId
fromDate":
8041000016000
"2024-01-01",
        
},
    "toDate":""
    
{
    }
    ],
    "
sorId
1292411000016002":
245221000016007,
[
        
"from":"2020-06-16",
{
            "
healthInstitutionSorId
fromSor":
8041000016000 }
"459811000016001",
       
{
     
"sorId":245581000016005
"toSor":"1292411000016002",
            "
from
fromDate":"
2018
2024-
04
01-
12
01",
            "
healthInstitutionSorId
toDate":
8041000016000
""
        },
        {
            
"sorId":246571000016004
"fromSor":"595111000016009",
            "toSor":"1292411000016002",
            "
from
fromDate":"
2018
2024-
12
01-
07
01",
            "
healthInstitutionSorId
toDate":
8041000016000
""
        },
        {
            "
sorId
fromSor":
245851000016003
"595161000016006",
            "
from
toSor":"
2020-06-16
1292411000016002",
            "
healthInstitutionSorId
fromDate":
8041000016000
"2024-01-01",
        
},
    
{
"toDate":""
        
"sorId":245891000016009
},
        
"from":"2019-04-16",
{
            "
healthInstitutionSorId
fromSor":
8041000016000
"653971000016003",
        
},
    
{
"toSor":"1292411000016002",
            "
sorId
fromDate":
246251000016008
"2024-01-01",
            "
from
toDate":"
2018-12-07
"
,

        }
    ],
    "
healthInstitutionSorId
501281000016008":
8041000016000
[
        
},
{
        
{
    "fromSor":"501281000016008",
            "
sorId
toSor":
245401000016001
"1449941000016009",
            "
from
fromDate":"
2020
2025-06-
16
01",
            "
healthInstitutionSorId
toDate":
8041000016000
""
        },
        {
            "fromSor":"501341000016007",
            "
sorId
toSor":
8041000016000
"1449941000016009",
            "
from
fromDate":"
2016
2025-
10
06-
18
01",
            "
healthInstitutionSorId
toDate":
8041000016000
""
        }
    ],
    "239871000016006":[
        {
            "
sorId
fromSor":
245771000016002
"239871000016006",
            "
from
toSor":"
2020-06-16
239861000016001",
            "
healthInstitutionSorId
fromDate":
8041000016000
"2024-01-01",
        
},
    
{
"toDate":""
        }
    
"sorId":245641000016000, "from":"2019-04-16", "healthInstitutionSorId":8041000016000 },
]
}


getSOREntityByPostalCode

Code Block
languagebash
titleRequest
curl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSOREntityByPostalCode\", \"postCodeId\": \"6700\", \"entityTypeId\": \"22232009\" }" http://test1.ekstern-test.nspop.dk:8080/sores/
Code Block
languagejs
titleResponse
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/8
Transfer-Encoding: chunked
Content-Type: application/json;charset=utf-8
{
  "6700" : [ {
    "sorId" : 648151000016002,
    "from" : "
sorId":618901000016009
2017-02-02",
    "name" : "SVS FAM Ortopædkirurgisk 
"from":"2019-02-27
Afsnit (Esbjerg)",
    "institutionOwnerSorId" : 6101000016001,
    
"healthInstitutionSorId" : 8041000016000,
    "shakId" 
}
: "550122O",
    "parentSorId" : 244461000016003,
  
{
  "sorType" : "OE"
  }, 
{
    "sorId" :
244441000016004
 8041000016000,
    "from" : "2016-10-18",
    
"
from
name" :
"2018-04-11
 "Sydvestjysk Sygehus",
    "institutionOwnerSorId" : 
6101000016001,
    
"healthInstitutionSorId" : 8041000016000,
    "shakId" 
}
: "5501",
    "parentSorId" : 6101000016001,
  
{
  "sorType" : "SI"
  }, 
{
    "sorId" :
246311000016001
 244461000016003,
    
"from" : "
2018
2017-
12
02-
07
02",
    "name" : "SVS Fælles Akut Modtage Afdeling",
    "
healthInstitutionSorId
institutionOwnerSorId" :
8041000016000
 6101000016001,
    "healthInstitutionSorId" : 
}
8041000016000,
    "parentSorId" : 244451000016001,
  
{
  "sorType" : "OE"
  
}, {
    "sorId" :
618911000016006
 648141000016000,
    "from" 
: "2017-02-02",
    "
from
name" :
"2016-08-09
 "SVS FAM Neurologisk Afsnit (Esbjerg)",
    "institutionOwnerSorId" : 
6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "shakId" 
}
: "550122N",
    "parentSorId" : 244461000016003,
  
{
  "sorType" : "OE"
  }, {
    
"sorId" :
245501000016002
 648121000016005,
    "from" : "2017-02-02",
    
"
from
name" :
"2013-02-28
 "SVS FAM Øre-Næse-Hals Afsnit (Esbjerg)",
    "institutionOwnerSorId" : 
6101000016001,
    
"healthInstitutionSorId" : 8041000016000,
    "shakId" 
}
: "550122F",
    "parentSorId" : 244461000016003,
  
{
  "sorType" : "OE"
  }, 
{
    "sorId" :
246361000016004
 244441000016004,
    "from" : "2018-01-09",
    
"
from
name" :
"2018-12-07
 "SVS Direktionen",
    "institutionOwnerSorId" : 
6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "parentSorId" : 
}
8041000016000,
    "sorType" : "OE"
  }, {
    "sorId" : 244511000016001,
    "from" 
: "
sorId":246091000016006
2017-07-08",
    "name" : "SVS Akut ambulatorium (Esbjerg)",
    "
from
institutionOwnerSorId"
:"2020-06-16"
 : 6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "shakId" : "
healthInstitutionSorId
550102D"
:8041000016000
,
    "parentSorId" : 
}
244461000016003,
    "sorType" : "OE"
  }, {
    "sorId" : 648101000016003,
    "from" : "
sorId":318611000016008
2017-02-02",
    "name" : "SVS FAM Kardiologisk afsnit (Esbjerg)",
    "
from
institutionOwnerSorId"
:"2019-04-16"
 : 6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "shakId" : "
healthInstitutionSorId
550122B"
:8041000016000
,
    "parentSorId" : 
}
244461000016003,
    "sorType" : "OE"
  }, {
    "sorId" : 648091000016009,
    "from" : "
sorId":246321000016005
2017-02-02",
    "name" : "SVS FAM Parenkymkirurgisk 
"from":"2018-04-20
afsnit (Esbjerg)",
    "institutionOwnerSorId" : 6101000016001,
    
"healthInstitutionSorId" : 8041000016000,
    "shakId" 
}
: "550122A",
    "parentSorId" : 244461000016003,
  
{
  "sorType" : "OE"
  }, 
{
    "sorId" :
246191000016005
 601991000016006,
    "from" 
: "2018-12-05",
    "
from
name" :
"2020-06-16
 "SVS fælles akut modtagelse (Esbjerg)",
    "institutionOwnerSorId" : 
6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "parentSorId" : 
}
648131000016007,
    "sorType" : "OE"
  }, {
    "sorId" : 658041000016004,
    "from" : "
sorId":246061000016002
2018-04-25",
    "name" : "SVS FAM Børne- og ungeafsnit (Esbjerg)",
    
"from":"2019-04-16"
"institutionOwnerSorId" : 6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "shakId" : "
healthInstitutionSorId
550122H"
:8041000016000
,
    "parentSorId" : 
}
244461000016003,
    "sorType" : "OE"
  }, {
    "sorId" : 244451000016001,
    "from" : "
sorId":390631000016000
2017-02-02",
    "name" : "SVS Ballerup Børn center 
"from":"2018-12-07
Fælles Kommunens",
    "institutionOwnerSorId" : 6101000016001,
    
"healthInstitutionSorId" : 8041000016000,
    "providerId" 
}
: "034274",
    "shakId" : "550122S",
  
{
  "parentSorId" : 
244441000016004,
    "sorType" 
: "
sorId
OE"
:245511000016000,

  }, {
    "sorId" : 244541000016000,
    "from" : "
2013
2017-02-
28
02",
    "name" : "SVS Skadestue (Esbjerg)",
    "
healthInstitutionSorId
institutionOwnerSorId" :
8041000016000
 6101000016001,
    "healthInstitutionSorId" : 
}
8041000016000,
    "shakId" 
{
: "5501028",
    "parentSorId" : 244461000016003,
    "sorType" : "
sorId
OE"
:246551000016006,

  }, {
    "sorId" : 648111000016001,
    "from" : "
2018
2017-
12
02-
07
02",
    "name" : "SVS FAM 
Gynækologisk afsnit (Esbjerg)",
    "
healthInstitutionSorId
institutionOwnerSorId" :
8041000016000
 6101000016001,
    "healthInstitutionSorId" : 
}
8041000016000,
    
] }

InstitutionOwnerCvrNumber (v1 og v2)

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 { "8041000016000":"29190909"
"shakId" : "550122D",
    "parentSorId" : 244461000016003,
    "sorType" : "OE"
  }, {
    "sorId" : 451231000016009,
    "from" : "2018-12-05",
    "name" : "SVS skadestue (Esbjerg)",
    "institutionOwnerSorId" : 6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "
6101000016001
parentSorId" :
"29190909"
 244541000016000,
    "
91331000016003
sorType" : "OE"
  }
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"InstitutionOwnerCvrNumber\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"91331000016003\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

InstitutionOwnerCvrNumberByShak (v1 og v2)

HTTP/1.1 200 OK Connection: keep-alive X-Powered-By: Undertow/1 Server: WildFly/8 Transfer-Encoding: chunked Content-Type: application/json;charset=utf-8 {
, {
    "sorId" : 648131000016007,
    "from" : "2017-02-02",
    "name" : "SVS FAM Medicinsk Afsnit (Esbjerg)",
    "institutionOwnerSorId" : 6101000016001,
    "healthInstitutionSorId" : 8041000016000,
    "
1301
shakId" : "
29190623
550122W",
    "
6610123
parentSorId" :
"29190925"
 244461000016003,
    "
9999
sorType" : "OE"
  } ]
}
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"InstitutionOwnerCvrNumberByShak\", \"shakIds\": [ \"1301\", \"6610123\", \"9999\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format