Hello,
I am unable to resolve a problem that I am suddenly facing. Would appreciate the help of the experts.
Use Case: Request from HIU to access patient data
REST endpoint being invoked: https://dev.ndhm.gov.in/gateway/v0.5/consent-requests/init
Request Body
{
“requestId”: “d041a6e0-d216-4065-b41e-34c2ab52de7c”,
“timestamp”: “2021-09-07T16:35:22Z”,
“consent”: {
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”
},
“patient”: {
“id”: “kausiks@sbx”
},
“hiu”: {
“id”: “SBX_000077_HIU”
},
“requester”: {
“name”: “Dr. Saha”,
“identifier”: {
“type”: “REGNO”,
“value”: “WB10101010”
}
},
“hiTypes”: [
“Prescription”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2021-09-01T16:35:22Z”,
“to”: “2021-09-07T15:04:49.889Z”
},
“dataEraseAt”: “2021-09-10T16:35:22Z”,
“frequency”: {
“unit”: “WEEK”,
“value”: 1,
“repeats”: 1
}
}
Response
{
"error": {
"code": 2500,
"message": "Invalid request"
}
}