Versions Compared

Key

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

...

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

GET-funktioner

Funktion

Beskrivelse

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

...

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",
        "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 (v2)

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"GetSorEntityByProviderGetSorEntity\", \"providerIdssorIds\": [ \"3037128041000016000\", \" ] }" http://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


{
    "3037128041000016000":[
        {
            "sorId":7092510000160048041000016000,
            "from":"20182016-0810-18",
            "name":"FodterapeutSydvestjysk Mette NielsenSygehus",
        "institutionOwnerSorId":6101000016001,
        "healthInstitutionSorId":3993510000160098041000016000,
            "providerIdshakId":"3037125501",
            "parentSorId":3993510000160096101000016001
    },
    },"6101000016001":{
        {"sorId":6101000016001,
            "sorIdfrom":842311000016008"2015-07-30",
            "fromname":"2018-08-18Region Syddanmark",
            "nameinstitutionOwnerSorId":"Hanne Møller-San Pedro"6101000016001
    },
    "91331000016003":{
        "healthInstitutionSorIdsorId":84230100001600691331000016003,
            "providerIdfrom":"3037122012-10-12",
        "name":"Jørn Bøgh   "parentSorId":842301000016006ApS",
        }"institutionOwnerSorId":91311000016009,
        {
            "sorId"healthInstitutionSorId":70137100001600491321000016000,
            "fromproviderId":"2018-08-18097926",
            "nameshakId":"Annette Steen Nielsen7034010",
            "healthInstitutionSorIdparentSorId":701361000016009,91321000016000
            "providerId":"303712",
            "parentSorId":701361000016009
        }
    ]
}

SearchAllChildren

}
}

GetSorEntityByProvider

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"
Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"SearchAllChildrenGetSorEntityByProvider\", \"sorIdsproviderIds\": [ \"246061000016002303712\" ] }" 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


{
    "246061000016002303712":[
        {
            "sorId":246071000016007709251000016004,
            "from":"20202018-0608-1618",
            "name":"SVSFodterapeut Kæbekirurgisk ambulatorium (Esbjerg)Mette Nielsen",
            "institutionOwnerSorIdhealthInstitutionSorId":6101000016001399351000016009,
            "healthInstitutionSorIdproviderId":8041000016000,
            "shakId":"550108T"303712",
            "parentSorId":246061000016002399351000016009
        },
        {
            "sorId":452041000016004842311000016008,
            "from":"20202018-0608-1618",
            "name":"SVSHanne kæbekirurgisk amb. (Esbjerg)Møller-San Pedro",
            "institutionOwnerSorId":6101000016001,
            "healthInstitutionSorId":8041000016000842301000016006,
            "shakIdproviderId":"550108T303712",
            "parentSorId":246071000016007842301000016006
        },
        {
            "sorId":246081000016009701371000016004,
            "from":"20202018-0608-1618",
            "name":"SVSAnnette Kæbekirurgisk afsnit (Esbjerg)",
            "institutionOwnerSorId":6101000016001Steen Nielsen",
            "healthInstitutionSorId":8041000016000701361000016009,
            "shakIdproviderId":"5501081303712",
            "parentSorId":246061000016002701361000016009
        }
    ]
}

...

GetSorEntityByProvider (v2)

Expand
titlecurl -i -X POST -H "Content-Type: application/json" -d "{\"op\": \"IsSorEntityDescendantOfSorEntityGetSorEntityByProvider\", \"sorIdAndParentSorIdPairsproviderIds\": [ [ \"246061000016002\", \"246081000016009303712\" ] , [\"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
}

...

/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)",
            "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 (v2)

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)",
            "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/
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
        },
        {
            "sorId":244851000016004,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244811000016003,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244721000016002,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245451000016000,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244591000016008,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246531000016001,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244681000016007,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245221000016007,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245581000016005,
            "from":"2018-04-12",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246571000016004,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245851000016003,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245891000016009,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246251000016008,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245401000016001,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":8041000016000,
            "from":"2016-10-18",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245771000016002,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245641000016000,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618901000016009,
            "from":"2019-02-27",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":244441000016004,
            "from":"2018-04-11",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246311000016001,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":618911000016006,
            "from":"2016-08-09",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245501000016002,
            "from":"2013-02-28",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246361000016004,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246091000016006,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":318611000016008,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246321000016005,
            "from":"2018-04-20",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246191000016005,
            "from":"2020-06-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246061000016002,
            "from":"2019-04-16",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":390631000016000,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":245511000016000,
            "from":"2013-02-28",
            "healthInstitutionSorId":8041000016000
        },
        {
            "sorId":246551000016006,
            "from":"2018-12-07",
            "healthInstitutionSorId":8041000016000
        }
    ]
}

...