Hello,
I am integrating with the PDS FHIR API (Integration environment) and testing against the official test data packs published here:
PDS FHIR API Test Data
I’ve hit several issues:
Search queries (Application-restricted)
GET ``https://int.api.service.nhs.uk/personal-demographics/FHIR/R4/Patient?family=HEA**&gender=female&birthdate=eq2010-10-22
Result:
{“resourceType”: “Bundle”,“timestamp”: “…”,“total”: 0,“type”: “searchset”}```
I expected to match at least one record from the published test data packs, but I consistently get no results.
I am presuming that all the endpoints as postman collection Patient Demographics Sandbox.postman_collection.json should work after replacing sandbox with INT.
Secondly, Direct NHS number lookup (Healthcare Worker) or PDS Lookup as Healthcare worker.
Primarily, my aim to demonstrate PDS looks for Secondary Care Health Worker (999 responder, etc…)
GET https://int.api.service.nhs.uk/personal-demographics/FHIR/R4/Patient/9449305919
Result:
{
“issue”: [
{
“code”: “forbidden”,
“details”: {
“coding”: [
{
“code”: “ACCESS_DENIED”,
“display”: “Access Denied - Unauthorised”,
“system”: “https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode”
}
]
},
“severity”: “error”
}
],
“resourceType”: “OperationOutcome”
}
I understand that: Searches work with application-restricted tokens. Direct NHS-number reads require a Healthcare Worker (CIS2) token.
My question
It seems data If I do normal query none of those data on site is matched with my query.
Are the published test packs expected to return results in Integration with application-restricted queries, or are they just illustrative examples?
For NHS-number lookups, once I get my CIS2 Mock client paired, should the test NHS numbers from the Excel pack (e.g. 9449305919) resolve successfully in Integration? In separate topic CIS2 issue I am trying to solve: CIS2 Mock INT: mock-jwks returning generic pytest-nhsd-apim client instead of app-specific credentials
Thank you
