No getting "data transfer" notification callback after granting consent from PHR app

Hi @IntegrationSupport,

We are facing issue with the HIU flow. We are not receiving “Data Trasnfer” notification callback from last few weeks. Initially we thought it could be down for some time, but its been 2 weeks now.

Can you please check?
Steps:

  1. Raised the consent to transfer data using sandbox HIU application “https://dev.ndhm.gov.in/hiu#/hiu/
  2. Provided consent using sandbox phr mobile application
  3. Received “consents/hip/notify” callback from gateway to which we responded within the time limit and got 202 response.
  4. Waiting for " /v0.5/health-information/hip/request" callback from HIU to send the data. But never received the request.

Thanks,
Arpit

@arpit
Kindly share the request and the response Of the /notify and /on-notify APIs.

Hi @IntegrationSupport,

Below is the request for /notify:

{‘notification’: {‘consentDetail’: {‘consentId’: ‘2a20248c-f91b-47a0-8608-bea9285bb8b9’, ‘createdAt’: ‘2023-08-14T03:24:27.155718754’, ‘purpose’: {‘text’: ‘Public Health’, ‘code’: ‘PUBHLTH’, ‘refUri’: None}, ‘patient’: {‘id’: ‘arpitjain@sbx’}, ‘consentManager’: {‘id’: ‘sbx’}, ‘hip’: {‘id’: ‘11223344’, ‘name’: None}, ‘hiTypes’: [‘OPConsultation’], ‘permission’: {‘accessMode’: ‘VIEW’, ‘dateRange’: {‘from’: ‘2023-08-14T03:19:44.982’, ‘to’: ‘2023-08-14T03:19:44.982’}, ‘dataEraseAt’: ‘2023-08-15T03:19:44.982’, ‘frequency’: {‘unit’: ‘HOUR’, ‘value’: 1, ‘repeats’: 0}}, ‘careContexts’: [{‘patientReference’: ‘TMH-PUID-001’, ‘careContextReference’: ‘Common Cold’}]}, ‘status’: ‘GRANTED’, ‘signature’: ‘gPe6PPE7LZkjvO1jSQq5Yolq9B8BqAHcBQW3a1K9ODluKH8ZCH4tKs+oa6GVsbwzWbPwlTe3NRma2xeQ6y95GknUB2hhRdfgWKBsbfiar1Hynac9OforK2RMImP38Bg3x8BX4Qowx69OX4YAAvqP7Ha+/Kfmn/fPxmobYZ/CP4NG3id1qxsoRIGqgQ3lB2mw4qwOtj+mzR9qMU9zS5n0ZhoFh2ouvVa8qUzNGO4y/YfxCb230imWxfNQhPC9LC6GWBs+KVOEYvQIohgu7DaLTZpGLE+CLEMCedg7Isd+xl5Js1MrqYcxkZKoErmijpm0CzxCAsAXLEuAGOdlqh0cAw==’, ‘consentId’: ‘2a20248c-f91b-47a0-8608-bea9285bb8b9’, ‘grantAcknowledgement’: False}, ‘requestId’: ‘d7f8c03f-8647-41b1-8572-e790cbeaaa05’, ‘timestamp’: ‘2023-08-14T03:24:45.393679’}

Below is the request for /on-notify:

{‘requestId’: ‘1db36a34-3a52-11ee-b30e-0242c0a80006’, ‘timestamp’: ‘2023-08-14T03:24:45’, ‘acknowledgement’: {‘status’: ‘OK’, ‘consentId’: ‘2a20248c-f91b-47a0-8608-bea9285bb8b9’}, ‘resp’: {‘requestId’: ‘d7f8c03f-8647-41b1-8572-e790cbeaaa05’}}

This is still not resolved. Can you please let us know the best way forward?

Thanks,
Arpit

@Sachin Please assist on this issue.

Hi @Sachin, @IntegrationSupport,

Any update on the issue raised?

Thanks,
Arpit

Hello Team,

Can you please share an ETA on issue resolution. We are not able to test our application end2end because of this.

Thanks,
Arpit

Hello @IntegrationSupport, @Sachin, @Ramandeep1,

Any update on the issue we are facing? We are completely blocked with our functional testing because of this issue. Is this issue across all the integrators or any specific issue with our client id?

Thanks,
Arpit
CliniQ360

@arpit Data notification callback are not sent after granting consent by patient in PHR app. Consent approve notification is sent to the HIP and also HIU. Data transfer notification is sent once you push data by data push URL.

1 Like

Hi @IntegrationSupport,

We have been referring to the below flow mentioned in the documentation.
Screenshot 2023-08-31 at 8.34.47 AM
According to above flow HIP will receive a notification trigger once the consent is provided. Which we are receiving.
Screenshot 2023-08-31 at 8.34.53 AM
According to above flow, a new notification will be sent to “/0.5/health-information/hip/request” endpoint from the gateway which will consist of the data push url. We are not receiving this trigger from gateway.

Is there any modification to the flow which we are missing? The same was working before.

Thanks,
Arpit
CliniQ360

Step 6 is not happening.

@arpit This is due to technical glitches on patient-hiu portal. Data transfer is not happening in HIU portal as well as in PHR app.

@IntegrationSupport Is there any ETA for the fix? Is there any other way we can test out our M2 and M3 functionalities?

@arpit You can use bajaj PHR app for testing.

@IntegrationSupport we tried using Bajaj PHR app for testing. The data push url provided by Bajaj PHR has some issue and not accepting the data we transfer.

CC: @Jivanhealthcenter

@arpit

Kindly try passing this script for the timestamp.

const moment = require(‘moment’);pm.globals.set(“timestamp”, moment.utc().add(300, ‘seconds’).format(“YYYY-MM-DDTHH:mm:ss.SSSSSS”));

Let us know if it fixes your issue?

where can we get bajaj phr app is it sandbox app or production app.
Because from ABDM phr app we are not able to fetch records we need some App to test please give us some solutions.

Hi @Sachin,

We added 300 seconds in the request timestamp as recommended. The observation we have is that the flow is very intermittent. Sometimes we get the callback instantly, sometime we have to wait for few minutes, sometimes it doesnt work.

@shivaveu, please uninstall the old sandbox phr app and download the new sdk from documentation page. It will work.

not able to get request call on hip side. how it can resolve?

Hi @Wasi_rehman, Try adding delay of 300 seconds in hip/on-notify request as recommended by Sachin above. It should work for you.

1 Like