Yes, thanks.
-
https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init
{
“requestId”: “{{$guid}}”,
“timestamp”: “{{$isoTimestamp}}”,
“consent”: {
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”
},
“patient”: {
“id”: “ravi12@sbx”,
“name”: null
},
“hiu”: {
“id”: “inlocker3”
},
"requester": {
"name": "inlocker3",
"identifier": {
"type": "HEALTH_LOCKER",
"value": "",
"system": ""
}
},
"hiTypes": ["DiagnosticReport"],
"permission": {
"accessMode": "VIEW",
"dateRange": {
"from": "2023-01-01T12:52:34.925Z",
"to": "2023-03-01T12:52:34.925Z"
},
"dataEraseAt": "2023-05-28T12:52:34.925Z",
"frequency": {
"unit": "HOUR",
"value": 1,
"repeats": 1
}
}
}
}
<=== /v0.5/consent-requests/on-init
{‘requestId’: ‘ff5375a5-511d-45df-978e-1b0d1c16de28’, ‘timestamp’: ‘2023-05-02T09:21:22.965636787’, ‘consentRequest’: {‘id’: ‘ac49fb7c-06ec-4a5e-a127-c9dcec2bae3b’}, ‘error’: None, ‘resp’: {‘requestId’: ‘f612dd0a-9c48-4181-b702-7e4387d74ef7’}}
- {{CM_HOST}}/patients/requests?lockerSetupLimit=198&lockerSetupOffset=0&subscriptionLimit=80&subscriptionOffset=0&authorizationLimit=100&authorizationOffset=0&status=ALL
{
“consents”: {
“size”: 13,
“limit”: 20,
“offset”: 0,
“requests”: [
{
“id”: “ac49fb7c-06ec-4a5e-a127-c9dcec2bae3b”,
“status”: “REQUESTED”,
“createdAt”: “2023-05-02T09:21:22.99022”,
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: null
},
“patient”: {
“id”: “ravi12@sbx”
},
“hip”: null,
“hiu”: {
“id”: “inlocker3”,
“name”: null
},
“careContexts”: null,
“requester”: {
“name”: “inlocker3”,
“identifier”: {
“value”: “”,
“type”: “HEALTH_LOCKER”,
“system”: “”
}
},
“hiTypes”: [
“DiagnosticReport”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2023-01-01T12:52:34.925”,
“to”: “2023-03-01T12:52:34.925”
},
“dataEraseAt”: “2023-05-28T12:52:34.925”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 1
}
},
“lastUpdated”: “2023-05-02T09:21:22.99022”
},
-
https://dev.abdm.gov.in/cm/consent-requests/ac49fb7c-06ec-4a5e-a127-c9dcec2bae3b
{ "id": "ac49fb7c-06ec-4a5e-a127-c9dcec2bae3b",
"status": "REQUESTED",
"createdAt": "2023-05-02T09:21:22.99022",
"purpose": {
"text": "Self Requested",
"code": "PATRQT",
"refUri": null
},
"patient": {
"id": "ravi12@sbx"
},
"hip": null,
"hiu": {
"id": "inlocker3",
"name": null
},
"careContexts": null,
"requester": {
"name": "inlocker3",
"identifier": {
"value": "",
"type": "HEALTH_LOCKER",
"system": ""
}
},
"hiTypes": [
"DiagnosticReport"
],
"permission": {
"accessMode": "VIEW",
"dateRange": {
"from": "2023-01-01T12:52:34.925",
"to": "2023-03-01T12:52:34.925"
},
"dataEraseAt": "2023-05-28T12:52:34.925",
"frequency": {
"unit": "HOUR",
"value": 1,
"repeats": 1
}
},
"lastUpdated": "2023-05-02T09:21:22.99022"
}
-
{{CM_HOST}}/consent-requests/ac49fb7c-06ec-4a5e-a127-c9dcec2bae3b/consent-artefacts
{
“error”: {
“code”: 1416,
“message”: “Cannot find the consent artefact”
}
}
I am not able to get the complete consent details to approve or edit the given consent.