Hi Team,
I am trying to access the SDS (spine directory service FHIR API) to get the ASID and provide URL that would be consume in “Access Record HTML” . I am following the documentation as given on the link (https://digital.nhs.uk/developer/api-catalogue/spine-directory-service-fhir#get-/Endpoint).
Further, I have also seen the discussion on the link SDS FHIR API (?Device endpoint) to fetch the End user's system ASID(consumer system), - #4 by chauhangaurav
The above discussion suggests that first request we need to invoke the SDS /Enpoint request, and the output response will further supply in the /Device request. The /Device response will have the SSPTO (ASID) and the provider URL. Please advise me if this understanding is correct.
Given below are the details of my request and FHIR API response . Could you please help me identifying the issue.
Thank you in advance.
Request URL: https://int.api.service.nhs.uk/spine-directory/FHIR/R4/Endpoint
Request QueryString: https://fhir.nhs.uk/Id/ods-organization-code|B86071&identifier=https://fhir.nhs.uk/Id/nhsServiceInteractionId|urn:nhs:names:services:psis:REPC_IN150016UK05
Request Header: {Accept=[application/fhir+json], x-correlation-id=[2cd91016-949c-4a66-ac34-3aacc8f13a53]}
Sending client request on thread
1 > GET https://int.api.service.nhs.uk/spine-directory/FHIR/R4/Endpoint
1 > Accept: application/fhir+json
1 > x-correlation-id: 2cd91016-949c-4a66-ac34-3aacc8f13a53
Client response received on thread
1 < 401
1 < Connection: keep-alive
1 < Content-Length: 791
1 < Content-Type: application/json
1 < Date: Tue, 18 Feb 2025 04:46:00 GMT
1 < Strict-Transport-Security: max-age=31536000; includeSubDomains
1 < X-Correlation-ID: 2cd91016-949c-4a66-ac34-3aacc8f13a53
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "unknown",
"details": {
"coding": [
{
"system": "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
"version": "1",
"code": "UNKNOWN_ERROR",
"display": "An unknown error occurred processing this request. Contact us for assistance diagnosing this issue: https://digital.nhs.uk/developer/help-and-support. (Message ID: rrt-8167670714985189407-a-geu2-831258-30928956-1)"
}
]
}
}
]
}