After sharing information with a hip using the phr app, I did not receive the share callback details

I’m trying to share my information using the phr app to implement {HIP_HOST}}/v0.5/patients/profile/share on our end , but I keep getting the message that the server is busy pls try again or low-speed internet connectivity. please try again later. How to fix this?


Hi @adyasha, There may be chances that your controller is not being hit after scanning the qr code.
Kindly test with webhook.site URL(callback) and check whether you are getting any request or not.

If webhook.site url is working properly, then kindly check with your network and firewall level blockage.

Hey @atulsharma , I just received the callback information, and when I fired the on-share api for acknowledgement, it showed 202 accepted, but the phr app still shows “Low speed internet connectivity. Please try again later.” How to fix this?

@atulsharma pls reply soon this a blocker

@adyasha - It seems some payload issue. You need to cross check the payload that you are sending.

Kindly read this - https://sandbox.abdm.gov.in/docs/build_hip_share_patient_profile1.0

@atulsharma hey so this is the payload I’m sending
{

        "requestId": uuidv4.v4(),

        "timestamp": timestamp,

        "acknowledgement": {

          "status": "SUCCESS",

          "healthId": "adyasha@sbx",

        },

        "error": {

          "code": 1000,

          "message": "string"

        },

        "resp": {

          "requestId": "ec435717-4217-443b-8615-4fa9e1ce1454"

        }

      }

Payload for on_share API-To be shared with HMIS

From doc:-

/v1.0/patients/profile/on-share (Response to patient’s share profile request)
Request body:
{
“requestId”: “5f7a535d-a3fd-416b-b069-c97d021fbacd”,
“timestamp”: “2022-08-26T07:58:36.759Z”,
“acknowledgement”: {
“status”: “SUCCESS”,
“healthId”: “@”,
"tokenNumber": "string"
},
“error”: {
“code”: 1000,
“message”: “string”
},
“resp”: {
“requestId”: “3fa85f64-5717-4562-b3fc-2c963f66afa6”
}
}

@atulsharma thanks it works now!

@adyasha - If there is no error then send error as null and try again.

Sample-
{

"requestId": "7f3ef771-aab9-4430-9e7f-65bc4645de14",

"timestamp": "2023-04-05T14:05:30.061453087",

"error": null,

"acknowledgement": {

    "status": "SUCCESS",

    "healthId": "abha@sbx",

    "tokenNumber": "5"

},

"resp": {

    "requestId": "9526ba2d-099c-4a01-a62d-ef339c237f1c"

}

}