On-discover callback api getting 202 but results not showing in PHR mobile App

I am trying to link patient from PHR app to HIP then I am receiving “v0.5/care-contexts/discover” callback. Through that data, I find the patient and send the on-discover request to “https://dev.ndhm.gov.in/gateway/v0.5/care-contexts/on-discover". And getting “202” response code but it is showing “Unable to contact your Hospital. Please try again later” on the PHR app.

Discover Request Receive from Mobile App:
{“requestId”:“9dd2bb29-eb65-4fad-9941-ec89db34434d”,“timestamp”:“2022-08-10T10:10:43.681876”,“transactionId”:“624be8af-9fb5-429c-806e-4ef305a6d744”,“patient”:{“id”:“91735176185842@sbx”,“verifiedIdentifiers”:[{“type”:“MOBILE”,“value”:"+91-9492204836"},{“type”:“NDHM_HEALTH_NUMBER”,“value”:“91-7351-7618-5842”},{“type”:“HEALTH_ID”,“value”:“91735176185842@sbx”}],“unverifiedIdentifiers”:[],“name”:“PRAMOD KAMIREDDY”,“gender”:“M”,“yearOfBirth”:“1987”}}

Discover Response Return/Send to NDHM :
{“requestId”:“8e1effc8-5031-46b0-8fb6-77a9edbd545d”,“timestamp”:“2022-08-10T10:10:30.30”,“transactionId”:“624be8af-9fb5-429c-806e-4ef305a6d744”,“patient”:{“referenceNumber”:“91735176185842@sbx”,“display”:“PRAMOD KAMIREDDY”,“careContexts”:[{“referenceNumber”:“ESIC-0301”,“display”:“ESICOPD”},{“referenceNumber”:“ESIC-0215”,“display”:“NCD”}],“matchedBy”:[“MR”]},“resp”:{“requestId”:“9dd2bb29-eb65-4fad-9941-ec89db34434d”}}

Hi @pramodk ,

Request Time : timestamp”:“2022-08-10T10:10:30.30”
Response Time: “timestamp”:“2022-08-10T10:10:43.681876”

Response duration time: 13 sec (approx.)

Note: But on-discover you have to respond within 10 sec and it is not possible through postman.

Thanks,
Govind D.

1 Like