Tried Sandbox, and it works fine.
Then switched to Integration, the API only returned this msg:
{“fault”:{“faultstring”:“AssignMessage[AssignMessage.PopulateAsidFromApp]: failed to assign message to message”,“detail”:{“errorcode”:“steps.assignmessage.SetVariableFailed”}}}
Parameters:
$endpoint= ‘https://int.api.service.nhs.uk/referrals/FHIR/STU3/ReferralRequest/$ers.fetchworklist’;
$headers = [
“Accept: application/json”,
‘Content-Type: application/fhir+json’,
“Authorization: Bearer $accessToken”,
‘NHSD-eRS-Business-Function: SERVICE_PROVIDER_CLINICIAN’,
‘NHSD-End-User-Organisation-ODS: D82078’,];