/gateway/v0.5/care-contexts/on-discover

@kiranma
Below is response from my app to gateway ondiscover but PHR app says
unable to contact hospital please try later my response time less than 3 secs
{
“requestId”: “4cb8cae0-0019-452b-ba83-1287bf75c879”,
“timestamp”: “2022-03-07T09:55:02.449Z”,
“transactionId”: “4a35e7e7-0b61-4b79-862b-f1fac2600742”,
“patient”: {
“referenceNumber”: “fa509ee5-a3d9-48c1-b67c-227093c711e1”,
“display”: “A D Bilagi”,
“careContexts”: [
{
“display”: "OPD visit Tue Feb 22 2022 ",
“referenceNumber”: “12a43ed6-7f94-4b22-9b77-8f262f4e7bf7”
}
],
“matchedBy”: [
“MOBILE”
]
},
“error”: {
“code”: null,
“message”: “”
},
“resp”: {
“requestId”: “62bb24ac-e131-49b6-beee-0af85385a1f1”
}
}

headers

Headers
connection close
content-length 471
host webhook.site
x-cm-id sbx
authorization Bearer {"accessToken":"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDY2NTE3MDMsImlhdCI6MTY0NjY1MTEwMywianRpIjoiNjJjMDdmNzUtYTMyMS00OGJkLWI4MDUtNDE1NWRkNmI5M2JhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJmYWZkNjA3YS1lZjAwLTQzM2MtYTQ4ZC1jOWJjMDcwNDkyNGUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwNjc2Iiwic2Vzc2lvbl9zdGF0ZSI6IjQ1OWZlMzYxLTI4YzUtNGY2Ni04NWE0LWUzNWRhNDMxNDY3MCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2Fj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oiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6Imh0dHBzOi8vZGV2Lm5kaG0uZ292LmluL2F1dGgvcmVhbG1zL2NlbnRyYWwtcmVnaXN0cnkiLCJzdWIiOiJmYWZkNjA3YS1lZjAwLTQzM2MtYTQ4ZC1jOWJjMDcwNDkyNGUiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiU0JYXzAwMDY3NiIsInNlc3Npb25fc3RhdGUiOiI0NTlmZTM2MS0yOGM1LTRmNjYtODVhNC1lMzVkYTQzMTQ2NzAiLCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIn0.TKFuKyIGaXE3Os-m8bkfq62l5UWh0Qzt10Rb47Crsns","tokenType":"bearer"}
content-type application/json

Hey @NiceHMS,

while looking into logs we found there is a JSON decoding error,
supporting log is attached below,

thanks

@Shubhanshu_Shukla
tThis is new request i am not getting /v0.5/links/link/init call back

please also check the logs.
/v0.5/care-contexts/discover
{
“patient”: {
“id”: “umesh1969@sbx”,
“name”: “umesh”,
“gender”: “M”,
“yearOfBirth”: 1969,
“verifiedIdentifiers”: [
{
“type”: “MOBILE”,
“value”: “+91-9343403620”
},
{
“type”: “NDHM_HEALTH_NUMBER”,
“value”: null
},
{
“type”: “HEALTH_ID”,
“value”: “umesh1969@sbx”
}
],
“unverifiedIdentifiers”: [
{
“type”: “MR”,
“value”: “43”
}
]
},
“requestId”: “75bc8203-9937-41e8-9885-ad54c7c55d50”,
“timestamp”: “2022-03-16T20:04:17.90568”,
“transactionId”: “2d8ef31d-80c9-4c6d-8d21-e4ca3412ab64”
}

https://dev.abdm.gov.in//gateway/v0.5/care-contexts/on-discover
{
“requestId”: “f23c9887-34f6-4a1d-81ac-f2cac94a6797”,
“timestamp”: “2022-03-16T20:04:22.672Z”,
“transactionId”: “2d8ef31d-80c9-4c6d-8d21-e4ca3412ab64”,
“patient”: {
“referenceNumber”: “bdb92f73-bf61-4ba0-8a48-b2eab848dfb8”,
“display”: “umesh . .Bilagi”,
“careContexts”: [
{
“display”: "OPD visit Wed Mar 16 2022 ",
“referenceNumber”: “ba2d6660-ada2-4dff-879a-a31ebb9219fa”
},
{
“display”: "OPD visit Wed Mar 16 2022 ",
“referenceNumber”: “99e55a17-c22c-49ee-aa13-22f25285ea29”
},
{
“display”: "OPD visit Wed Mar 16 2022 ",
“referenceNumber”: “8b8606a9-f1b4-4a0c-9bea-9dd7d00b87db”
}
],
“matchedBy”: [
“MOBILE”,
“MR”
]
},
“resp”: {
“requestId”: “75bc8203-9937-41e8-9885-ad54c7c55d50”
}
}

Hi @NiceHMS

Didn’t receive any result from Gateway in the time period.

Thanks

from the logs what it suggestion is it timeout or any other issue.

what is correct url for onDiscover as per postaman collecttion “https://phrdev.ndhm.gov.in/gateway/v0.5/care-contexts/on-discover”;

And links/links/init is V1 or v0.5 as per postman collection it is v1.

can we access the logs.

please suggest some how

Further note i have issue even with dataflow too. i.e there i do not get healthinformation/hip/request call back, is there limitation because by milestone exit process. i.e untill I get through milestone 1 can not work with milestone 2 apis

Kindly use “https://dev.abdm.gov.in/gateway/v0.5/care-contexts/on-discover”;