Health Data Not Received on Data Push URL

Hi,
I have called api ‘/v0.5/health-information/cm/request’ and got the data on its callback api ‘v0.5/health-information/hiu/on-request’ successfully. But didn’t get any data on my Data Push Url from HIP.
What we are doing wrong / missing here?
Please guide us.
Below is json pay load,

{
“requestId”:“1f209c87-6b59-4cee-beb5-e7850715d0f2”,
“timestamp”:“2020-10-19T05:52:10.5484999Z”,
“hiRequest”:{
“consent”:{
“id”:“984fd8f8-c528-462c-938c-a63ce1ffc6cb”,
“digitalSignature”:“IU0Zx5/RIcbqluKFFIfwUPgYq60nVen7Be43fA7mr/6oAJeN6XbAW4+irSipeiHiDvcocSYDvo+1HeTqtbyR+7tYd7LJ0FzdvauX7XNiIaltxO7jjz594sEMpOOg3TXgXSqxGW28wvhZl9aQBYhtbp0Mrt6vhUn6nEs3FFGLrc/qT3uRi+oOFm8S6LvvawtCCikzyqSF8ORpHwyQPbmIE8BE6ahn0/cPZ0BAsPJDB/qSBPVgc9EABi5G0TGXFMQvl6zEh6++46x5rh7tMDI9flw4abeI6EsK+3Zy+vJiTZLpIaFv52SotkPa6A1joFlS6FKbmts/RvU64CLoJlR4tQ==”
},
“dateRange”:{
“from”:“2018-01-11T11:06:32.760Z”,
“to”:“2020-02-19T12:06:32.760Z”
},
“dataPushUrl”:“data/notification/v0.5/health-information/transfer”,
“keyMaterial”:{
“cryptoAlg”:“ECDH”,
“curve”:“Curve25519”,
“dhPublicKey”:{
“expiry”:“2020-10-19T05:51:42.2131084Z”,
“parameters”:“TXFY5NTZQUulrNqsJAKwpMnIeVS5ZunYgfs92k5QfIw=”,
“keyValue”:“MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQ3WYCh85TEGmTBqZZekXwsUiWZ+fwLIiYWAKgccafPeCPPuDMOaydoIhdpQTxC1Ubrq4ymns4ClKshZsleYyZ7”},“nonce”:“98beb71e-62ba-445f-801a-0c683e9cc7c6”
}
}
}

{
“requestId”:“c4d839cc-79d1-4eed-ae08-e29b5e56d9ec”,
“timestamp”:“2020-10-19T05:52:11.466593”,
“hiRequest”:{
“transactionId”:“e21610bd-2d26-43ee-ab9d-fb839ee846a8”,
“sessionStatus”:“REQUESTED”
},
“error”:null,
“resp”:{“requestId”:“1f209c87-6b59-4cee-beb5-e7850715d0f2”}
}

Hi @jatin,

where is your linked hip residing?, you need to provide the full URL in data pushURL, Let’s say my hiu domain is https://google.com/hiu then you need to provide the domain as well

As you mention i have change accordingly , But not getting Health data.
My linked hip is ABC Hospital.

Below json Payload

{
“requestId”:“1c2a8ab5-b73d-489b-b042-8f9d9da94c2e”,
“timestamp”:“2020-10-21T06:04:56.7494406Z”,
“hiRequest”:{
“consent”:{
“id”:“93c089fe-e830-42f8-ba59-187988d8633e”,
“digitalSignature”:“kbW15AqQiU3xfJpWBmisQCuh2k4knxC9B0zw/lSS/9Kkkh92AvuyFSwQgUXoAFY3VJ6YAn7vYb5RSUsOdYN+D05RZivTi5mlv4Ts7k1zmB+jor1VdA7muWmsITiPRPJl7dCIngDnRbcuXwZUVHmUPxpRJo8p5OEVb213AyNMA0gVeAiuEtpa+9owvIB1W0uoyNlIaB2hbSaPirXTWKDgIQ0Px7nyMpxvv2upnPDN1TRCwAvfhGsjZybSx2xmuGCPEaKLGtAm1WOjNG6RZPK4u/IjF3t0J8anF7yjkQFeqkh9yHNVFDOMT8H0V/axXpFjqkypdwcP2ywDB3Kv6Pnh3Q==”
},
“dateRange”:{
“from”:“2018-01-11T11:06:32.760Z”,
“to”:“2020-02-20T12:06:32.760Z”
},
“dataPushUrl”:“https://uatndhm.driefcase.com/data/notification/v0.5/health-information/transfer”,
“keyMaterial”:{
“cryptoAlg”:“ECDH”,
“curve”:“Curve25519”,
“dhPublicKey”:{
“expiry”:“2020-10-21T06:04:21.7650600Z”,
“parameters”:“XHdsGSc6ntNkbYhhf+HPqJKquBPJs2KCIZZdKvlq4ak=”,
“keyValue”:“MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQg3iZDPJ+OZT7CkT1AtZiRoe9VrMpXovrz0NYzLzhP9RqBRgtTnpuDm8sj1S59o1lQqAhXjJq+GP3LpSZd2BkU”
},
“nonce”:“40f377eb-0bf5-4a31-9e7a-9adae05e3590”
}
}
}

{
“requestId”:“1e479839-ba41-4e18-8d80-4d73dfe7ee34”,
“timestamp”:“2020-10-21T06:04:58.133343”,
“hiRequest”:{
“transactionId”:“dc6f362a-3f76-4e4f-bdc1-a4b5203da948”,
“sessionStatus”:“REQUESTED”
},
“error”:null,
“resp”:{“requestId”:“1c2a8ab5-b73d-489b-b042-8f9d9da94c2e”}
}

Now, can make sure that you your domain is resolvable from the ABC HIP. And also make sure ABC hospital has the data for your patient within the given dataRange you mentioned

How do i check my domain is resolvable at ABC Hospitals HIP? Is there any method / steps for checking? So i can check it.
Please suggest me.
And also suggest me any dummy verify doctor id so i can upload some document in patient’s account.
Previously i were uploaded some document in patient’s account but today i was checked it is not there.
I am using ‘https://emrsbx.ndhm.gov.in/’ webapp for patient creation and document upload
Please guide me if i am doing wrong here.
Thanks

hi @jatin,

can you make sure your hip is sending ‘/v0.5/consents/hip/on-notify’ call?

and also could you provide the hip details which you are using?

Hi @leelanakka,

My HIP ID is 139245-01
How can i check HIP is called or not below api?
‘/v0.5/consents/hip/on-notify’

My HIP ID is 139245-01
How can i check HIP is called or not below api?
‘/v0.5/consents/hip/on-notify’

I am getting HIP ID in ‘/v0.5/consents/on-fetch’ response, Below is json payload

{
“requestId”:“fcb9be88-d056-405a-8be4-5cffb5f70564”,
“timestamp”:“2020-10-21T06:04:57.802595”,
“consent”:{
“status”:“GRANTED”,
“signature”:“kbW15AqQiU3xfJpWBmisQCuh2k4knxC9B0zw/lSS/9Kkkh92AvuyFSwQgUXoAFY3VJ6YAn7vYb5RSUsOdYN+D05RZivTi5mlv4Ts7k1zmB+jor1VdA7muWmsITiPRPJl7dCIngDnRbcuXwZUVHmUPxpRJo8p5OEVb213AyNMA0gVeAiuEtpa+9owvIB1W0uoyNlIaB2hbSaPirXTWKDgIQ0Px7nyMpxvv2upnPDN1TRCwAvfhGsjZybSx2xmuGCPEaKLGtAm1WOjNG6RZPK4u/IjF3t0J8anF7yjkQFeqkh9yHNVFDOMT8H0V/axXpFjqkypdwcP2ywDB3Kv6Pnh3Q==”,
“consentDetail”:{
“schemaVersion”:“v0.5”,
“consentId”:“93c089fe-e830-42f8-ba59-187988d8633e”,
“createdAt”:“2020-10-21T06:04:57.542104”,
“patient”:{“id”:“jatin@sbx”},
“careContexts”:[{“patientReference”:“12512”,“careContextReference”:“12512”}],
“purpose”:{“text”:null,“code”:“PUBHLTH”,“refUri”:null},
“hip”:{“id”:“139245-01”},
“hiu”:{“id”:“driefcasehiu”},
“consentManager”:{“id”:“sbx”},
“requester”:{
“name”:“Dr. Manju”,
“identifier”:{
“type”:“REGNO”,
“value”:“MH1001”,
“system”:“https://www.mciindia.org
}
},
“hiTypes”:[“DiagnosticReport”],
“permission”:{
“accessMode”:“VIEW”,
“dataEraseAt”:“2020-10-22T06:04:49.766”,
“dateRange”:{
“from”:“2018-01-11T11:06:32.76”,
“to”:“2020-02-20T12:06:32.76”
},
“frequency”:{
“unit”:“HOUR”,
“value”:“0”,
“repeats”:“0”
}
}
}
},
“error”:null,
“resp”:{“requestId”:“42c6948e-1317-4799-9fe4-cbe27d7b4af0”}
}

Hi @leelanakka ,
I am trying for other hiType(OPConsultation) but still not getting data on datapush call back api.
Please guide us.
Below is Json payload

‘/v0.5/consents/on-fetch’
{
“schemaVersion”:“v0.5”,
“consentId”:“55c744d9-f18f-44c9-9256-79bb824549f8”,
“createdAt”:“2020-10-24T12:08:27.762506”,
“patient”:{“id”:“jatin@sbx”},
“careContexts”:[
{“patientReference”:“12512”,
“careContextReference”:“12512”}
],
“purpose”:{“text”:null,“code”:“PUBHLTH”,“refUri”:null},
“hip”:{“id”:“139245-01”},
“hiu”:{“id”:“driefcasehiu”},
“consentManager”:{“id”:“sbx”},
“requester”:{“name”:“Dr. Manju”,“identifier”:{“type”:“REGNO”,“value”:“MH1001”,“system”:“https://www.mciindia.org”}},
“hiTypes”:[“OPConsultation”],
“permission”:{“accessMode”:“VIEW”,“dataEraseAt”:“2020-10-30T12:08:15.9”,“dateRange”:{“from”:“2018-01-11T11:06:32.76”,“to”:“2020-02-26T12:06:32.76”},“frequency”:{“unit”:“HOUR”,“value”:“0”,“repeats”:“0”}}
}

‘/v0.5/health-information/cm/request’
{
“requestId”:“d339e828-b079-4f47-a90b-5fc5bb056a5c”,
“timestamp”:“2020-10-24T12:08:27.7294349Z”,
“hiRequest”:{
“consent”:{
“id”:“55c744d9-f18f-44c9-9256-79bb824549f8”,
“digitalSignature”:“Av2qf4ZqOgHSXFyer81IR3s7aFrqzOdtdvY0dBJiEyop6/QnpnyXRT38Oy7jZh50W+dPv+01hZxeSJhphR17+vj18mSaB7rUXeJSyFJp50aXQOresjGF1dxOQIanqf5kIEfFgNY3oyK1RdpSsjy993/k69ISo1PdA+G7ykmJmfJCwyaHzTsKbJOG3RkwWs09Zu9w/ErZIkjX0Ex2Md3uizaxAD7rTGLKvCgByw40qLbRUriXKBcXJ0n3GbLc92Y5kUrIwSvCUoSKUbC0+brI+EhMRgQi7TVn0REp+KQHzliZ/iQb7XbNQDQHJuGFCYzi7X8NNcbenT/pw9ENC3LdLg==”
},
“dateRange”:{“from”:“2018-01-11T11:06:32.760Z”,“to”:“2020-02-26T12:06:32.760Z”},
“dataPushUrl”:“https://uatndhm.driefcase.com/data/notification/v0.5/health-information/transfer”,
“keyMaterial”:{
“cryptoAlg”:“ECDH”,
“curve”:“Curve25519”,
“dhPublicKey”:{“expiry”:“2020-10-24T12:07:29.7475833Z”,“parameters”:“4FAvOMtl/3GYOasS+x5vVtq/qgUkITIR8zLdTNHBMNs=”,“keyValue”:“MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARkY6hew69XQwgiz/7D+ove7mSI5/ZhfM0zpTodPGINTlUWvg4f5sCzMyHC7kU2CBYWwhMJIWmTP19p8exrNwts”},
“nonce”:“dd6d8c6a-348e-4a46-9e1b-d556c58fdda4”
}
}
}

‘/v0.5/health-information/hiu/on-request’
{
“requestId”:“19bbfc9c-3de2-44d4-8153-d4bdb261f6bb”,
“timestamp”:“2020-10-24T12:08:28.52767”,
“hiRequest”:{
“transactionId”:“c8da17cb-6cfa-437b-b79f-b450226ab909”,
“sessionStatus”:“REQUESTED”
},
“error”:null,
“resp”:{“requestId”:“d339e828-b079-4f47-a90b-5fc5bb056a5c”}
}

Just to clarify we are building HIU not HIP.
our datapush url is resolved publicly successfully.
I have data available on the sbx server for patient jatin@sbx date 26-10-2020.
My query for below date range
“dateRange”:{“from”:“2018-01-11T11:06:32.760Z”,“to”:“2020-11-26T12:06:32.760Z”}
Below is response i am getting when requesting for document
{
“requestId”:“fd8d0b4b-f090-467f-8e54-35f2aa291e73”,
“timestamp”:“2020-10-26T16:09:09.161702”,
“hiRequest”:{
“transactionId”:“d0e6b54b-e036-4d06-ae07-44e4d7df9730”,
“sessionStatus”:“REQUESTED”
},
“error”:null,
“resp”:{“requestId”:“8a5751c6-535e-42a0-889f-39d1c8955ffa”}
}

I don’t get any hit on my data push URL
“dataPushUrl”:“https://uatndhm.driefcase.com/data/notification/v0.5/health-information/transfer”,

Hi @jatin,

When you are creating the consent request, I see that in purpose object you are sending text as null.

could you please send the valid purpose object.
{“purpose”:{“text”:null,“code”:“PUBHLTH”,“refUri”:null}} this is what you are sending in Purpose object could you send text as “Public Health”.

And also make sure you create for all hi types and also consentexpiry as data as long

Hi @leelanakka,
As you mentioned i have created the consent request with below purpose object
“purpose”:{ “text”:“Public Health”, “code”:“PUBHLTH”, “refUri”:null }
But still the same issue, I don’t get any hit on my data push URL
“dataPushUrl”:“[https://uatndhm.driefcase.com/data/notification/v0.5/health-information/transfer”]

Below is json payload for ‘/v0.5/consent-requests/init’

{
“requestId”:“dd497632-8bef-4f99-b8fd-d8c348922f87”,
“timestamp”:“2020-10-27T09:53:19.9407758Z”,
“consent”:{
“purpose”:{
“text”:“Public Health”,
“code”:“PUBHLTH”,
“refUri”:null
},
“patient”:{“id”:“jatin@sbx”},
“hip”:{“id”:null},
“hiu”:{“id”:“driefcasehiu”},
“requester”:{
“name”:“Dr. Manju”,
“identifier”:{
“type”:“REGNO”,
“value”:“MH1001”,
“system”:“https://www.mciindia.org
}
},
“hiTypes”:[“DiagnosticReport”,“OPConsultation”,“DischargeSummary”],
“permission”:{
“accessMode”:“VIEW”,
“dataEraseAt”:“2020-10-27T09:50:19.9377248Z”,
“dateRange”:{
“from”:“2018-01-11T11:06:32.760Z”,
“to”:“2020-10-29T12:06:32.760Z”
},
“frequency”:{“unit”:“HOUR”,“value”:“0”,“repeats”:“0”}
}
}
}

Hi @jatin,

we are investigating on it, looks like some error from HIP side. We’ll get back to you soon once we got the investigation report.

Hi @leelanakka,
Sure, we will waiting for your reply

HI @jatin,

Could you please try linking with another hip and check?

Hi @leelanakka,
How do i link with other HIP?
Please suggest me any other HIP on the sandbox.

Hi @leelanakka,
Is there any API or tool provided by sandbox for generating ECC KeyMaterials?

I have tried to fetch data from sandbox but it did not hit my data push url. please look into this matter.
please guide us. Below is json payload

==> /v0.5/consents/hiu/notify
Response :
{“timestamp”:“2021-01-21T05:42:49.319492”,“requestId”:“65ed70d1-d46f-4a3b-bc59-335d6f105bcd”,“notification”:{“consentRequestId”:“95f02b12-5845-4655-ad42-029146e154ab”,“status”:“GRANTED”,“consentArtefacts”:[{“id”:“5e2055fb-cdd6-4d14-bb4e-0dfbf643bb3d”}]}}

==> /v0.5/consents/fetch
Request: {“requestId”:“c5f658d4-8cb2-4aba-9493-dc084244756e”,“timestamp”:“2021-01-21T05:42:49.1164167Z”,“consentId”:“5e2055fb-cdd6-4d14-bb4e-0dfbf643bb3d”}

==> /v0.5/consents/on-fetch
response:
{“requestId”:“05db3336-fd33-4817-afeb-6f1e0c9692f3”,“timestamp”:“2021-01-21T05:42:49.778824”,“consent”:{“status”:“GRANTED”,“consentDetail”:{“schemaVersion”:“v0.5”,“consentId”:“5e2055fb-cdd6-4d14-bb4e-0dfbf643bb3d”,“createdAt”:“2021-01-21T05:42:49.05694”,“patient”:{“id”:“jatin@sbx”},“careContexts”:[{“patientReference”:“13957”,“careContextReference”:“13957”}],“purpose”:{“text”:“Care Management”,“code”:“CAREMGT”,“refUri”:null},“hip”:{“id”:“139245-01”,“name”:“EMR Web - ABC Hospital”},“hiu”:{“id”:“driefcasehiu”,“name”:null},“consentManager”:{“id”:“sbx”},“requester”:{“name”:“Dr. Manju”,“identifier”:{“value”:“MH1001”,“type”:“REGNO”,“system”:“https://www.mciindia.org”}},“hiTypes”:[“DiagnosticReport”],“permission”:{“accessMode”:“VIEW”,“dateRange”:{“from”:“2020-03-02T18:30:00”,“to”:“2021-01-20T18:30:00”},“dataEraseAt”:“2021-01-22T05:42:03.0512088”,“frequency”:{“unit”:“HOUR”,“value”:1,“repeats”:1}}},“signature”:“NX22Tykwu4ceORiR4RjhQPlQbUobOquFr5iZ2tphFVTJQk0PGSdNp5i20A+T/pMhS3ZrK3rC3yCLZyafOEc2ofddfiwmqV29zvnGXK3IDpp1O0u6KZCuKYvSrZWO4ngKgMAoCnulrBWGW7fQWlNO/1c7KFRBcMNWsby8QfQLdEN3JlTMuh3lZtz9tUVd0O6wPC9m3PvcNpzu34oeTRaVcQ7UpZdnOrnKNbFxR9o3kC3ppw3iSPXt5TAPFc7fbn2nPt13ooZ/W9W5NUOFkjM1tKDXLLxWvG8XJMLWhGo2yNNcPXSj8NtXAaExOFnp0+nt/w+NBSYRJCxyN9e+vsyszg==”},“error”:null,“resp”:{“requestId”:“c5f658d4-8cb2-4aba-9493-dc084244756e”}}

==> /v0.5/health-information/cm/request
Request:
{“requestId”:“373272e7-eb32-4e72-8ec6-23d58163e42e”,“timestamp”:“2021-01-21T05:42:49.7154033Z”,“hiRequest”:{“consent”:{“id”:“5e2055fb-cdd6-4d14-bb4e-0dfbf643bb3d”,“digitalSignature”:“NX22Tykwu4ceORiR4RjhQPlQbUobOquFr5iZ2tphFVTJQk0PGSdNp5i20A+T/pMhS3ZrK3rC3yCLZyafOEc2ofddfiwmqV29zvnGXK3IDpp1O0u6KZCuKYvSrZWO4ngKgMAoCnulrBWGW7fQWlNO/1c7KFRBcMNWsby8QfQLdEN3JlTMuh3lZtz9tUVd0O6wPC9m3PvcNpzu34oeTRaVcQ7UpZdnOrnKNbFxR9o3kC3ppw3iSPXt5TAPFc7fbn2nPt13ooZ/W9W5NUOFkjM1tKDXLLxWvG8XJMLWhGo2yNNcPXSj8NtXAaExOFnp0+nt/w+NBSYRJCxyN9e+vsyszg==”},“dateRange”:{“from”:“2020-03-02T18:30:00.0000000Z”,“to”:“2021-01-20T18:30:00.0000000Z”},“dataPushUrl”:“https://uatndhm.driefcase.com/data/notification/v0.5/health-information/transfer",“keyMaterial”:{“cryptoAlg”:“ECDH”,“curve”:“Curve25519”,“dhPublicKey”:{“expiry”:“2021-01-22T05:42:50.139Z”,“parameters”:"",“keyValue”:“MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQ2N4nLVjG6fcKyI20R0YIzPKDw6KJhBOf6xzvfubb4IEZ0UKQ9W0jzzcebS638DxjTo+K/9o4GEKsmSc0f7TJq”},“nonce”:"NjAyMWE3YWQtNmE4My00M2VhLTkyNGYtNmYzZDliYmIwYWZm”}}}

==> /v0.5/health-information/hiu/on-request
Response:
{“requestId”:“eaa19d8a-5617-48a1-b6cc-7519a9502fbb”,“timestamp”:“2021-01-21T05:42:50.793339”,“hiRequest”:{“transactionId”:“613aa487-1578-4511-9c27-41cdcb11b295”,“sessionStatus”:“REQUESTED”},“error”:null,“resp”:{“requestId”:“373272e7-eb32-4e72-8ec6-23d58163e42e”}}

Hi @jatin, what was the issue, I am facing the same, did you stumble across any solution for this ?

Hi @piyush_apollo,
Still i am not able to fetch data on my datapush url. I had discussion with sukreet roy regarding the same he said that there is firewall issue at their end. Firewall block my data push url on their server.
Please look into this matter ASAP.
Thanks