Hello e-RS Team,
We have created a referral with the triage service and are now trying to use the A016 - Book or Defer Appointment API for a “triage deferral.” We are sending the following request body:
{
“id”: “appointment”,
“meta”: {
“profile”: [
“FHIR Reference Server eRS-Appointment-1”,
“HL7 UK FHIR Reference Server”
]
},
“language”: “en”,
“resourceType”: “Appointment”,
“status”: “proposed”,
“reason”: [
{
“coding”: [
{
“system”: “FHIR Reference Server eRS Review Reason”,
“code”: “TRIAGE”
}
]
}
],
“description”: “e-Referral Appointment”,
“incomingReferral”: [
{
“reference”: “ReferralRequest/000049788548/_history/6”
}
],
“participant”: [
{
“actor”: {
“identifier”: {
“system”: “http://fhir.nhs.net/Id/ers-service”,
“value”: “6709626”
}
},
“status”: “accepted”
},
{
“actor”: {
“identifier”: {
“system”: “http://fhir.nhs.net/Id/nhs-number”,
“value”: “9728338449”
}
},
“status”: “accepted”
}
]
}
However, we are receiving the following error:
{
“statusCode”: 422,
“error”: “INAPPROPRIATE_VALUE”,
“message”: “‘service’ (6709626) does not relate to a Service on the Shortlist”
}
{
“statusCode”: 422,
“error”: “INAPPROPRIATE_VALUE”,
“message”: “‘clinician’ (6709699) does not match the slot”
}
Sometimes we receive this error and sometimes not
Could you please help us understand why we are encountering this error?