Hi @mdubey, @Priyanka_Unnithan helped me with a health Id which has data from eHospital@NIC hip, I got a blank response one time on data push url and then no response on subsequent requests . Following are the api call details :
Consent request init -
{
“requestId”: “22e30e08-374a-4c34-8f69-c00d2eb36d65”,
“timestamp”: “2021-03-04T08:16:42.088Z”,
“consent”: {
“purpose”: {
“text”: “care management”,
“code”: “CAREMGT”,
“refUri”: “https://www.apollo247.com/”
},
“patient”: {
“id”: “varunmishra2202@sbx”
},
“hiu”: {
“id”: “apollo247”
},
“requester”: {
“name”: “Dr. Piyush”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: “https://www.mciindia.org”
}
},
“hiTypes”: [
“OPConsultation”, “Prescription”, “DischargeSummary”, “DiagnosticReport”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2021-01-02T06:07:20.337Z”,
“to”: “2021-03-04T07:15:50.693Z”
},
“dataEraseAt”: “2021-05-02T06:07:20.337Z”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 0
}
}
}
}
Consent request on-int
{
“requestId”: “e26c5b35-db0f-423a-b413-efab59546c43”,
“timestamp”: “2021-03-04T08:17:07.829284”,
“consentRequest”: {
“id”: “03617d15-a989-448f-b39f-97ca3d1840bb”
},
“error”: null,
“resp”: {
“requestId”: “22e30e08-374a-4c34-8f69-c00d2eb36d65”
}
}
HIU notify :-
{
“timestamp”: “2021-03-04T08:18:52.953879”,
“requestId”: “4163e66c-5e9e-406c-91ce-23a6d4c8f799”,
“notification”: {
“consentRequestId”: “03617d15-a989-448f-b39f-97ca3d1840bb”,
“status”: “GRANTED”,
“consentArtefacts”: [
{
“id”: “2c72b63c-155b-4199-bd09-17b962780d05”
}
]
}
}
Data push request :-
{
“requestId”: “72d1b3da-09bf-4056-8e6b-ded3dc205eba”,
“timestamp”: “2021-03-04T08:21:21.001Z”,
“hiRequest”: {
“consent”: {
“id”: “2c72b63c-155b-4199-bd09-17b962780d05”
},
“dataPushUrl”: “https://webhook.site/11c42f85-313b-46d5-a938-6514346480f7/data/push”,
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2021-04-02T06:23:38.858Z”,
“parameters”: “Ephemeral public key”,
“keyValue”: “13780469241249261816916652976006751891398702494677007790391660649639860794195”
},
“nonce”: “jnzfJDSfq910IWmFT+VDhw==”
}
}
}