No callback after consent request

@mdubey

I’m trying to implement Health Locker - HIU flow, I’m able to setup the locker (Subscription request - Granted) and when I request for the consent the response is 202 but I’m not able to receive any callbacks.

Consent Request Body:

{
“requestId”: “575281f0-8ae6-4b64-81f1-5a73323f3e54”,
“timestamp”: “2021-07-16T09:38:13.465Z”,
“consent”: {
“purpose”: {
“text”: “Care Managemnt”,
“code”: “CAREMGT”
},
“patient”: {
“id”: “dileep123@sbx”
},
“hiu”: {
“id”: “SimplyHealth”
},
“requester”: {
“name”: “Simply Health Locker”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: “https://www.mciindia.org
}
},
“hiTypes”: [
“DiagnosticReport”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2021-06-16T00:00Z”,
“to”: “2021-07-16T09:38:13.465Z”
},
“dataEraseAt”: “2021-12-25T12:52:34.925Z”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 0
}
}
}
}

Can you help me here please.

After checking the logs and debugging the code, I found that the error is in the time format which I have sent in the dateRange.

“dateRange”: {
“from”: “2021-06-16T00:00Z”
}

I’ve updated it and is working fine. Thanks.

2 Likes