I’m trying to pull the eReferral Service worklist using Application-restricted, unattended access but I keep getting “Unresolved variable : app.app-restricted-ods-code” as the error response.
I’ve used the example body and headers from the api documentation to try and test the request but no luck.
I’m hoping someone will know what I’m missing in my request..
NB: I have successfully created an access token and used that to successfully query a patient.
Hello David,
Can you please provide what steps you have taken prior to receiving “Unresolved variable : app.app-restricted-ods-code” as the error response.
This will help us diagnose the issue you are facing.
thanks,
Balal
Hi, thank you for the response.
The steps I followed were:
- Generate JWT
- Get Auth Token (confirmed this is working by testing auth token against “personal-demographics/FHIR/R4/Patient/9691927349”
- Set url after base url to “referrals/FHIR/STU3/ReferralRequest/$ers.fetchworklist”
- Added the header “nhsd-end-user-organisation-ods: R69”
- Added the body (same as what’s in the example)
- Posted the Http request
Hi,
Please see the email I have sent regarding this issue. It is due to the fact there is no application-restricted application set up.
Kind regards
Nila