Hi,
The consentId and requestId I am using from notify callback
{
“notification”: {
“consentDetail”: {
“consentId”: “3b555003-1bf4-4380-a82c-653db9765bef”,
“createdAt”: “2021-10-21T12:47:06.69149”,
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: null
},
“patient”: {
“id”: “himanshi.modani@sbx”
},
“consentManager”: {
“id”: “sbx”
},
“hip”: {
“id”: “000389”,
“name”: null
},
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“ImmunizationRecord”,
“DischargeSummary”,
“OPConsultation”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2014-10-21T12:47:06.67438”,
“to”: “2021-10-21T12:47:06.674436”
},
“dataEraseAt”: “2021-12-21T12:47:06.569481”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 0
}
},
“careContexts”: [
{
“patientReference”: “Visit 001”,
“careContextReference”: “Care context 001”
}
]
},
“status”: “GRANTED”,
“signature”: “NU7ed2T+2k8IkWy7Of9SPT2bEQZXiWpcPVt6kcyxZTROg2+nGYKiqGsuI248HX2regMXhYBnTLzM9tU7bEwyqsdM0eO5DHN9cH9TBZV/roiMv4D26U+nloR7uiZ3d23I5tYKLNpOBC4Op+2WoMKeTHtHPxaIC4U32Omnj1qfdFZG7cKc9ASxV1KYl0rNV5pJPDexL9sqKwan8LbNwrKfCRBgM9UB6ntq1csodETSdH3M6vNwvDO4kFz0ouupx9XLPFkfnbaMlaDScd45XPkGmwj6gJKg1LS2zmhPRqqxS+Q3UnsAIGb4VlSvKsatFgWHES0QXz1i7gVl+6iRM+MPoA==”,
“consentId”: “3b555003-1bf4-4380-a82c-653db9765bef”,
“grantAcknowledgement”: false
},
“requestId”: “7b343472-4385-448e-93f8-511e6ed21428”,
“timestamp”: “2021-10-21T12:47:06.737722”
}
Using the consentId and requestId from above callback I am getting 404 Not Found error
https://dev.ndhm.gov.in/gateway/v0.5/consents/hip/on-notify
Headers:
Authorization: Bearer accessToken
X-CM-Id: sbx
content-type: application/json
Accept: /
Input Parameters:
{
“requestId”: “{{$guid}}”,
“timestamp”: “{{timestamp}}”,
“acknowledgement”: {
“status”: “OK”,
“consentId”: “3b555003-1bf4-4380-a82c-653db9765bef”
},
“resp”: {
“requestId”: “7b343472-4385-448e-93f8-511e6ed21428”
}
}