Discover Request giving error

I’m receiving discover request from PHR app and replying it with on-discover call with “202” response code but it is showing “Could not find the user details” on the PHR app.

on-discover call -
{requestId=875da142-8532-4003-9246-07f82f834115, timestamp=2021-12-02T10:42:32.125, transactionId=7b067ae8-cee0-4760-aa97-4b2879680962, resp={requestId=e8977a91-b97a-44a2-a319-f4455d9705d3}, patient={referenceNumber=393d0620-5273-11ec-a204-fff24a39ceed, display=Rahul Test, matchedBy=[HEALTH_ID], careContexts=[{display=Facility Visit 2021-12-01 12:39:58.0}]}}

PHR app -

Hey @rahulChugh,

Please help us with the patient id.

Thanks.

@rahulChugh,

In logs we found invalid care context references for requestId.7008951b-a52d-47c8-8b71-b301cf1fb33f ,
For reference we attached screenshot ,

Thanks

Hi @Shubhanshu_Shukla,

I’m trying to attach a new care context to this patient. Can you please explain how the care context reference can be invalid as it is a new reference and a unique uuid ?

Hey @rahulChugh,

On add care context Reference number is mandatory .

{
“requestId”: “5f7a535d-a3fd-416b-b069-c97d021fbacd”,
“timestamp”: “2021-12-15T10:58:02.549Z”,
“link”: {
“accessToken”: “string”,
“patient”: {
“referenceNumber”: “TMH-PUID-001”,
“display”: “string”,
“careContexts”: [
{
"referenceNumber": "string",
“display”: “string”
}
]
}
}
}

Please refer here ( Discovery Section 3.C) for clarity.

Thanks

Hi
@Shubhanshu_Shukla,
Thank you for your reply, I’ve already added the reference number and I’m getting the discover response from the gateway. However, there seems to have some issue with the linking of care context that I’m currently looking into. I’ll get back to you if need any help.