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-mapninger gennem en JSON-snitflade.
Snitfladen er designet med BRS, MinSpærring og MinSpærring graviditetsmappen in mente, men alle services, hvis behov opfyldes af de udstillede data, er velkomne til at kalde SORES's snitflade.

...

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.
SearchAllChildrenBRSSearchAllChildrenSorIds: 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.
MapShakToSorBRSMapShakToSorShakId: 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*

* eller dags dato, hvis ingen dato er angivet

Eksempler

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

...

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 alle SOR entiteter, hvis navn indeholder den angivne søgestreng - og som ligger under en enhed med det angivne CVR-nummer
og hvorom det gælder, at entites-typen er i den givne liste af entitets-typer - på den angivne dato*

* eller dags dato, hvis ingen dato er angivet

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\": \"BRSGetSorEntityGetSorEntity\", \"sorIds\": [ \"8041000016000\", \"6101000016001\", \"913310000160036101000016001\", \"91331000016003\" ] }" http://test1.ekstern-test.nspop.dk:8080/sores/
No Format

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
Date: Wed, 22 Apr 2020 07:52:27 GMT


{


{
    "303712":[
        {
            "sorId":709251000016004,
            "from":"2018-08-18",
            "8041000016000name":{"Fodterapeut Mette Nielsen",
            "sorIdhealthInstitutionSorId":8041000016000399351000016009,
            "fromproviderId":"2016-10-18303712",
            "nameparentSorId":"Sydvestjysk Sygehus",
399351000016009
        },
        {
            "healthInstitutionSorIdsorId":8041000016000,
842311000016008,
            "shakIdfrom":"55012018-08-18",
            "parentSorIdname":6101000016001
    }"Hanne Møller-San Pedro",
    "6101000016001":{
        "sorIdhealthInstitutionSorId":6101000016001842301000016006,
            "fromproviderId":"2015-07-30303712",
            "nameparentSorId":"Region Syddanmark"
842301000016006
        },
        "91331000016003":{
            "sorId":91331000016003701371000016004,
            "from":"20192018-0408-1918",
            "name":"JørnAnnette BøghSteen ApSNielsen",
            "healthInstitutionSorId":91321000016000701361000016009,
            "providerId":"097926303712",
            "shakIdparentSorId":"7034010",701361000016009
        "parentSorId":91321000016000}
    }]
}

...

SearchAllChildren

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProviderSearchAllChildren\", \"providerIdssorIds\": [ \"303712246061000016002\" ] }" 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
Date: Wed, 22 May 2020 10:52:22 GMT


{
    "303712246061000016002":[
        {
            "sorId":709251000016004246071000016007,
            "from":"20182020-0806-1816",
            "name":"Fodterapeut Mette Nielsen"SVS Kæbekirurgisk ambulatorium (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":3993510000160098041000016000,
            "providerIdshakId":"303712550108T",
            "parentSorId":399351000016009246061000016002
        },
        {
            "sorId":842311000016008452041000016004,
            "from":"20182020-08-1806-16",
            "name":"SVS kæbekirurgisk amb. (Esbjerg)",
            "nameinstitutionOwnerSorId":"Hanne Møller-San Pedro"6101000016001,
            "healthInstitutionSorId":8423010000160068041000016000,
            "providerIdshakId":"303712550108T",
            "parentSorId":842301000016006246071000016007
        },
        {
            "sorId":701371000016004246081000016009,
            "from":"20182020-0806-1816",
            "name":"Annette Steen Nielsen""SVS Kæbekirurgisk afsnit (Esbjerg)",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":7013610000160098041000016000,
            "providerIdshakId":"3037125501081",
            "parentSorId":701361000016009246061000016002
        }
    ]
}

...

IsSorEntityDescendantOfSorEntity

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"opd "{\"op\": \"IsSorEntityDescendantOfSorEntity\", \"sorIdAndParentSorIdPairs\": [ [\"BRSSearchAllChildren246061000016002\", \"sorIds246081000016009\": ], [\"246081000016009\", \"246061000016002\"] }" http://test1.ekstern-test.nspop.dk:8080/sores/] }" 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":[
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
Date: Wed, 22 Apr 2020 07:54:55 GMT


{
    "246061000016002":[
        {
            "sorId":246071000016007,
            "from":"2019-04-16",
            "name":"SVS Tand- Mund- og Kæbekirurgisk ambulatorium (Esbjerg)",
            "healthInstitutionSorId":8041000016000,
            "shakId":"550108T",{
            "parentSorIdsorId":246061000016002
        },
        {644441000016001,
            "sorIdfrom":452041000016004"2016-10-17",
            "fromname":"2019-08-17Storkereden Roskilde",
            "nameinstitutionOwnerSorId":"SVS tand-, mund- og kæbekirurgisk amb. (Esbjerg)",644411000016002,
            "healthInstitutionSorId":8041000016000644421000016006,
            "parentSorId":246071000016007644421000016006
        },
        {
            "sorId":246081000016009644451000016003,
            "from":"20192016-0410-1617",
            "name":"SVS Tand- Mund- og Kæbekirurgisk afsnit (Esbjerg)Storkereden Holbæk",
            "healthInstitutionSorId":8041000016000,
            "shakId":"5501081"institutionOwnerSorId":644411000016002,
            "parentSorIdhealthInstitutionSorId":246061000016002644421000016006,
        }
    ]
}

IsSorEntityDescendantOfSorEntity

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
Date: Wed, 22 May 2020 10:53:37 GMT


    "parentSorId":644421000016006
        },
        {
    "child=246061000016002, possibleAncestor=246081000016009":false        "sorId":644431000016008,
    "child=246081000016009, possibleAncestor=246061000016002":true
}

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: application/json;charset=utf-8
Date: Wed, 22 Apr 2020 07:56:18 GMT


{
    "5501":[
        "from":"2016-10-17",
            "name":"Storkereden Slagelse",
            "institutionOwnerSorId":644411000016002,
            "healthInstitutionSorId":644421000016006,
            "parentSorId":644421000016006
        },
        {
            "sorId":644421000016006,
          {  "from":"2019-03-28",
            "sorIdname":245601000016003"Storkereden",
            "frominstitutionOwnerSorId":"2019-12-21"644411000016002,
            "healthInstitutionSorId":8041000016000644421000016006,
         },   "parentSorId":644411000016002
        {}
    ]
}

MapShakToSor

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":"2019-12-21",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245271000016006245531000016006,
            "from":"20192013-1202-2128",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245011000016008245271000016006,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246271000016001245601000016003,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244461000016003245011000016008,
            "from":"2019-1204-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245931000016001246271000016001,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245141000016005244461000016003,
            "from":"2019-1204-2111",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618861000016004245141000016005,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246331000016007245931000016001,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245731000016004618861000016004,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246221000016000246331000016007,
            "from":"20192012-1201-2111",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":320651000016001245731000016004,
            "from":"20192020-0406-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246291000016002246221000016000,
            "from":"2019-1204-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244851000016004246291000016002,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244811000016003244851000016004,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245451000016000244811000016003,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244721000016002,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244591000016008245451000016000,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246531000016001244591000016008,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244681000016007246531000016001,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245221000016007244681000016007,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245581000016005245221000016007,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246571000016004245581000016005,
            "from":"20192018-04-12-21",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245851000016003246571000016004,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245891000016009245851000016003,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246251000016008245891000016009,
            "from":"2019-1204-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245401000016001246251000016008,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245771000016002245401000016001,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":8041000016000,
            "from":"20192016-1210-2118",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245641000016000245771000016002,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618901000016009245641000016000,
            "from":"2019-1204-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618911000016006618901000016009,
            "from":"2019-1202-2127",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246311000016001244441000016004,
            "from":"20192018-1204-2111",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244441000016004246311000016001,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245501000016002618911000016006,
            "from":"20192016-1208-2109",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246361000016004245501000016002,
            "from":"20192013-1202-2128",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246091000016006246361000016004,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":318611000016008246091000016006,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246321000016005318611000016008,
            "from":"2019-1204-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246191000016005246321000016005,
            "from":"20192018-1204-2120",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246061000016002246191000016005,
            "from":"20192020-1206-2116",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246231000016003246061000016002,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":390631000016000,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245511000016000,
            "from":"20192013-1202-2128",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246551000016006,
            "from":"20192018-12-2107",
            "healthInstitutionSorId":8041000016000
        }
    ]
}

...