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SwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDIyNTQiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjE0OSJ9.MgEQVntuHYX1E8pE4ZZc2Vmgxs4fEm0HzBS2j25ew8IKfREJ3KkLStQIjflV3KRKjImtGfJI4G0jlkKfXUUZryQoElekHkJOKdrPqxxGsHvoTjrsSlidixRLe35Cu8a2gdcN5Uy0FkA8BPNrcdxB660vlfOc_udQAwjQTNApSOrzXFD7-26ab-FAay2oaiP3tN4qqLx3ZRuC9AV7oSSOEGwoyShx3ua3kZ_TZQhRXIb8HYKOUWnTMPNkQ_yVIQM_XdvbbGU1n1o6vLnHAniqj4_zBSw5ecHOLiheHSPvZ7QeG5qpEt_xSblO2cqoMwGZ40c7lQt4_K7z7atE9kZ6gQ’
–header ‘Content-Type: application/json’
–header ‘Accept: /’
–header ‘X-CM-ID: sbx’
–data ‘{
“requestId”: “0ac26a5a-4852-43f8-b952-2f0e1770e919”,
“timestamp”: “2023-10-17T17:47:05.787000”,
“consent”: {
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”,
“refUri”: “tryghvfctghh”
},
“patient”: {
“id”: “91-1161-5536-0146”
},
“hip”: {
“id”: “PARCHAA_123”
},
“careContexts”: null,
“hiu”: {
“id”: “PARCHAA_123”
},
“requester”: {
“name”: “Dr. Manju”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: “https://www.mciindia.org”
}
},
“hiTypes”: [
“DiagnosticReport”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2023-04-24T12:30:29.592Z”,
“to”: “2023-10-16T16:33:29.592Z”
},
“dataEraseAt”: “2023-11-27T12:30:29.592Z”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 0
}
}
}
}’
Response: /v0.5/consent-requests/on-init
{
"requestId": "f3699019-f6c8-419b-a9c6-073304db559b",
"error": {
"code": 2500,
"message": "Unknown error occurred"
},
"timestamp": [
2023,
10,
17,
17,
43,
45,
961949000
],
"resp": {
"requestId": "16590320-e83f-4c1a-bea0-f7411ff8d54e"
}
}
here I’m trying to create a consent request on abha number but I’m unable to create the consent request can you please tell me what is wrong and why I’m getting this error
@IntegrationSupport @pranab
Thanks