Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 SOR-databasen, der opdateres dagligt af SOR-importerenden XML fil som SOR stiller til rådighed på deres hjemmeide. En delmængde af data caches i memory og requests kan gennemtvinge en refresh af cachen såfremt det er ønskværdigt i udviklingsøjemed, mens driften sørger for at refreshe cachen i produktion, når importeren er kørt færdigcachen refreshes i produktion af en særskilt cron-container, hvis der er opdatede data i databasen.

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

...

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

Endpoints

SORES har kun et enkelt endpointto endpoints, hvor v2-udgaven medsender ejer-organisationens ID for SOR-entiteter.

Service

Endpoint

SORES/sores

GET-funktioner

SORESv2/sores/v2

GET-funktioner

Eksempel-response200 = OK

Funktion

Beskrivelse

Funktion

Beskrivelse

/statusHTTP-response-code angiver servicens tilgængelighed
/versionVersions-nummeret sendes som response-text1.0.0
/reloadGenindlæser data fra databasen, hvis antallet af rækker er ændret siden sidste indlæsning'Reload not necessary' eller 'Reload done'
/forcereloadGenindlæser data fra databasen ubetingetReload forced

POST-operationer

BRSSearchAllChildrenShakId: SHAK id,

Operation

Parametre

Beskrivelse
BRSGetSorEntityGetSorEntitySorIds: 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, BRSMapShakToSor der ønskes mappet
[Date]: Datagrundlags-dato
Returnerer information for de SOR-entiteter, der på den angivne dato* havde det forespurgte SHAK id.

* eller dags dato, hvis ingen dato er angivet

Eksempler

Herunder illustrerer et par eksempler requests og responses for de tre operationer.

BRSGetSorEntity

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. Der tjekkes udelukkende på de fire første cifre af SHAK-id'et

BatchedOperations

Operations:: Array af operationer

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


Eksempler

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

GetSorEntity

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
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)

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
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
    }
}

GetSorEntityByProvider

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
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)

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
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
        }
    ]
}

SearchAllChildren

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
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)

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
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
        }
    ]
}

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

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
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)

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/v2
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


{
    "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
}

MapShakToSor (v1 og v2)

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
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,
            "from":"2013-02-28",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245271000016006,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245601000016003,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245011000016008,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246271000016001,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244461000016003,
            "from":"2019-04-11",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245141000016005,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245931000016001,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618861000016004,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246331000016007,
            "from":"2012-01-11",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245731000016004,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246221000016000,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246291000016002,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
    
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"BRSGetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\" ] }" 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: text/plain;charset=utf-8
Date: Tue, 24 Mar 2020 14:31:15 GMT


{
    "8041000016000":{
        "sorId":8041000016000244851000016004,
            "from":"20162020-1006-1816",
            "name":"Sydvestjysk Sygehus",
healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244811000016003,
            "healthInstitutionSorIdfrom":8041000016000"2020-06-16",
            "parentSorIdhealthInstitutionSorId":61010000160018041000016000
        },
    "6101000016001":{
    {
    "sorId":6101000016001,
        "fromsorId":"2015-07-30"244721000016002,
        "name":"Region Syddanmark"
    }
}

BRSSearchAllChildren

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"BRSSearchAllChildren\", \"sorIds\": [ \"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: text/plain;charset=utf-8
Date: Tue, 24 Mar 2020 14:44:05 GMT


{
    "246061000016002":[   "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246071000016007245451000016000,
            "from":"20192020-0406-16",
            "namehealthInstitutionSorId":"SVS Tand- Mund- og Kæbekirurgisk ambulatorium (Esbjerg)"8041000016000
        },
            "healthInstitutionSorId":8041000016000,{
            "parentSorIdsorId":246061000016002244591000016008,
        },
        {"from":"2020-06-16",
            "sorIdhealthInstitutionSorId":452041000016004,8041000016000
            "from":"2019-08-17"},
        {
      "name":"SVS tand-, mund- og kæbekirurgisk amb. (Esbjerg)" "sorId":246531000016001,
            "healthInstitutionSorIdfrom":8041000016000"2018-12-07",
            "parentSorIdhealthInstitutionSorId":2460710000160078041000016000
        },
        {
            "sorId":246081000016009244681000016007,
            "from":"20192020-0406-16",
            "namehealthInstitutionSorId":"SVS Tand- Mund- og Kæbekirurgisk afsnit (Esbjerg)"8041000016000
        },
            "healthInstitutionSorId":8041000016000,{
            "parentSorIdsorId":246061000016002245221000016007,
        }
    ]
}

BRSMapShakToSor

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"BRSMapShakToSor\", \"shakId\": \"5501\" }" 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: text/plain;charset=utf-8
Date: Tue, 24 Mar 2020 14:39:37 GMT


{
    "5501":["from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245581000016005,
            "from":"2018-04-12",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245601000016003246571000016004,
            "from":"20192018-12-2007",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245531000016006245851000016003,
            "from":"20192020-1206-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245271000016006245891000016009,
            "from":"2019-1204-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245011000016008246251000016008,
            "from":"20192018-12-2007",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246271000016001245401000016001,
            "from":"20192020-1206-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":2444610000160038041000016000,
            "from":"20192016-1210-2018",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245931000016001245771000016002,
            "from":"20192020-1206-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245141000016005245641000016000,
            "from":"2019-1204-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618861000016004618901000016009,
            "from":"2019-1202-2027",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246331000016007244441000016004,
            "from":"20192018-1204-2011",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245731000016004246311000016001,
            "from":"20192018-12-2007",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246221000016000618911000016006,
            "from":"20192016-1208-2009",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":320651000016001245501000016002,
            "from":"20192013-0402-1628",
            "healthInstitutionSorId":222320098041000016000
        },
        {
            "sorId":246291000016002246361000016004,
            "from":"20192018-12-2007",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244851000016004246091000016006,
            "from":"20192020-1206-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244811000016003318611000016008,
            "from":"2019-1204-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245451000016000246321000016005,
            "from":"20192018-1204-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244721000016002246191000016005,
            "from":"20192020-1206-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244591000016008246061000016002,
            "from":"2019-1204-2016",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246531000016001390631000016000,
            "from":"20192018-12-2007",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244681000016007245511000016000,
            "from":"20192013-1202-2028",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245221000016007246551000016006,
            "from":"20192018-12-2007",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245581000016005,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246571000016004,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245851000016003,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245891000016009,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246251000016008,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245401000016001,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245771000016002,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":8041000016000,
            "from":"2019-12-20",
            "healthInstitutionSorId":8041000016000
        },
        ]
}

InstitutionOwnerCvrNumber (v1 og v2)

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
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",
    "6101000016001":"29190909",
    "91331000016003":""
}


InstitutionOwnerCvrNumberByShak (v1 og v2)

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
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 og v2)

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"BatchedOperations\", \"operations\": [ ... ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format
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/


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

{
    "BatchedOperations":[
        {
		    "1301":"29190623",
   			"6610123":"29190925",
    		"9999":""
		},
		{
    		"8041000016000":{
        
		"sorId":
245641000016000
8041000016000,
        
		"from":"
2019
2016-
12
10-
20
18",
        
"healthInstitutionSorId
		"name":
8041000016000 }
"Sydvestjysk Sygehus",
        
{
		"institutionOwnerSorId":6101000016001,
        
"sorId
		"healthInstitutionSorId":
618901000016009
8041000016000,
        
"from
		"shakId":"
2019-12-20
5501",
        
"healthInstitutionSorId
		"parentSorId":
8041000016000
6101000016001
    
		},
    
		"6101000016001":{
        
		"sorId":
618911000016006
6101000016001,
        
		"from":"
2019
2015-
12
07-
20
30",
        
"healthInstitutionSorId":8041000016000
		"name":"Region Syddanmark",
        
},
		"institutionOwnerSorId":6101000016001
    		},
    		"91331000016003":{
        
		"sorId":
246311000016001
91331000016003,
        
		"from":"
2019
2012-10-12
-20
",
        		"name":"Jørn Bøgh 
"healthInstitutionSorId":8041000016000
ApS",
        
}
		"institutionOwnerSorId":91311000016009,
        
{
		"healthInstitutionSorId":91321000016000,
        
"sorId
		"providerId":
244441000016004
"097926",
        
"from
		"shakId":"
2019-12-20
7034010",
        
"healthInstitutionSorId
		"parentSorId":
8041000016000
91321000016000
    		}
		},
		{
    
},
		"303712":[
       
			{
            		"sorId":
245501000016002
709251000016004,
            		"from":"
2019
2018-
12
08-
20
18",
            		"
healthInstitutionSorId
name":
8041000016000 }
"Fodterapeut Mette Nielsen",
        
{
    		"healthInstitutionSorId":399351000016009,
             		 "
sorId
providerId":
246361000016004
"303712",
             		 "parentSorId":399351000016009
       
"from":"2019-12-20"
  		},
         		{
             		 "
healthInstitutionSorId
sorId":
8041000016000
842311000016008,
            
}
		 "from":"2018-08-18",
             
{ "sorId":246091000016006, "from":"2019-12-20", "healthInstitutionSorId":8041000016000 }, { "sorId":318611000016008, "from":"2019-12-20", "healthInstitutionSorId":8041000016000 }, { "sorId":246321000016005, "from":"2019-12-20", "healthInstitutionSorId":8041000016000 }, { "sorId":246191000016005,
		 "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
 		        }
 		     ]
 		},
	    {
    		"246061000016002":[
        
"from":"2019-12-20",
		{
            		 "
healthInstitutionSorId
sorId":
8041000016000
246071000016007,
             
}
		 "from":"2020-06-16",
       		    
{ "sorId":246061000016002, "from":"2019-12-20", "healthInstitutionSorId":8041000016000
   	 "name":"SVS Kæbekirurgisk ambulatorium (Esbjerg)",
      		         "healthInstitutionSorId":8041000016000,
     		         "shakId":"550108T",
     		         "parentSorId":246061000016002
    		    },
     		  
  
{
    		      
   
"sorId":
246231000016003
452041000016004,
    		      
   "from":"
2019
2020-
04
06-16",
   		          
   "
healthInstitutionSorId
name":
22232009
"SVS kæbekirurgisk 
}
amb. (Esbjerg)",
   		        
{
     "
sorId
healthInstitutionSorId":
390631000016000
8041000016000,
   		          
   
"
from
shakId":"
2019-12-20
550108T",
    		      
   "
healthInstitutionSorId
parentSorId":
8041000016000
246071000016007
     		    
},
      		    
{
     		      
   
"sorId":
245511000016000
246081000016009,
     		      
   "from":"
2019
2020-
12
06-
20
16",
"healthInstitutionSorId":8041000016000

      		      
},
   "name":"SVS Kæbekirurgisk 
{
afsnit (Esbjerg)",
      		         
"
sorId
healthInstitutionSorId":
246551000016006
8041000016000,
       		      
   "
from
shakId":"
2019-12-20
5501081",
        		     
"
healthInstitutionSorId
parentSorId":
8041000016000
246061000016002
       		    }
     		 ]
 		 }
    ]
}