Not getting callback on /v0.5/patients/profile/share while sharing from PHR app

Hi,

I am trying the Scan by Patient flow where the patient uses the ABHA sbx app to scan the HIP QR and share information with hospital.

I am expecting a callback with patient data on /v0.5/patients/profile/share but we are not receiving any such callback, when the user clicks the share button after scanning the HIP QR we get a toast message saying unknown error occurred, we are using ABHA SBX app V2.1.8. The bridge url is correct, getting other call backs as expected, kindly help.

This is the HIP QR code for SCAN

HIP QR

This is the error message on PHR app

@RohanChristopher707 Please provide hip id and counter code for this to debug.

Thanks,

Hi @Sravani1

Below is the HIP ID and counter code

HIP ID: KarkinosHIP
counter code: ee138dc0-9a48-4d54-87f3-bfea144055fa,Kerala_ID

Thanks.

@Sravani1 any update on this?

Hey @RohanChristopher707,
We are currently making some implementation change in **profile/share** API,
will publish the details once done completely, till then

Please use end point and payload in below given format,

/v1/patients/profile/share

Request body

{ "requestId": "{{$guid}}", "intent": { "type": "string" }, "location": { "latitude": "string", "longitude": "string" }, "hipDetails": { "hipId": "HIP_Code", "code": "12345" } }

Responses :

{ "status": "SUCCESS", "healthId": "string", "tokenNumber": "string" }

/v1.0/patients/profile/share (Share patient profile details)

Request body :

{ "requestId": "ea00912c-f4f4-49b5-8c30-b9353ca0dc42", "timestamp": "2022-08-29T10:16:09.1299564", "intent": { "type": "string" }, "location": { "latitude": "string", "longitude": "string" }, "profile": { "hipCode": "12345", "patient": { "healthId": "phrAddress", "healthIdNumber": null, "name": "String", "gender": "M", "address": { "line": "Delhi,North West", "district": "North West", "state": "Delhi", "pincode": null }, "yearOfBirth": 1991, "dayOfBirth": 18, "monthOfBirth": 10, "identifiers": [ { "type": "MOBILE", "value": "XXXXX" }, { "type": "NDHM_HEALTH_NUMBER", "value": null } ] } } }

Responses
202 Request accepted

/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": "<username>@<suffix>", "tokenNumber": "string" }, "error": { "code": 1000, "message": "string" }, "resp": { "requestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } }

Responses
202 Request accepted

Thanks

1 Like

Thanks @Shubhanshu_S, will do