i want to fetch documents from my hiu server and for that i have properly called the auto approval api to automatically approve the consent request of the user, but still the consent-request is in pending state…i have also got the auto approval ID. below i am sharing the curl command of auto-approve api.
curl --location --request POST ‘https://dev.abdm.gov.in/cm/consents/auto-approve’
–header ‘X-Auth-Token: eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJjaGFpdGFueWFAc2J4IiwiZXhwIjoxNjkzOTc0NDc3LCJpYXQiOjE2OTM5NzQzNTcsInNpZCI6ImJhNmUxMjY5LTUxODctNGZjMy04MmVlLTMxOTM0MzI5YjUwZCIsInNjb3BlIjoiY29uc2VudC5hdXRvYXBwcm92ZSJ9.ZLrec7TGj4gmdd-iCgaS6_6I5aXV7gkfnoGqSqykCmCAH_XnOOmczI8dNzhEulcInqCjrXp5-seaflVGujaLQ2NdTMPmMF7F4BBvPgGyVZaUXe3pZsbMlpKve7imnum8Vp72sdM_1ldncfk83uyVvMCQ5CFXZ0S0CxJjyfmjk8ei4c-UbY5S0G67__TjciM9m1Y7hwptQX1SlGKMfIi1nBfwy1q-9eR8njT53AC3iqp3QvQxT2Ss0xiuPuX8EAb6OjInGfrZlQi8SetHqgOlb8QVjPlMTcG4hLkO9dODW7ICW7thZ4QVIFXUd9PJ11Hr_F5SbSvXcN7hohr_dW0AzA’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2OTM5OTM2MjQsImlhdCI6MTY5Mzk3MjAyNCwianRpIjoiY2IzNjIzYTMtNTRjNi00MWRhLTgyMDItNWZhMTk4OTg3Nzk3IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJmMmU2NzFkZi03NzkzLTRhYzQtODdkMi04M2Ex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jZqieHZiZQtRO8Afq6K2O1GAMVMlbjf4ARw’
–header ‘Content-Type: application/json’
–data-raw ‘{
“isApplicableForAllHIPs”: true,
“hiu”: {
“id”: “HIU-97”,
“name”: “Chaitanya-facility”
},
“includedSources”: [
{
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“DischargeSummary”,
“OPConsultation”,
“ImmunizationRecord”,
“WellnessRecord”,
“HealthDocumentRecord”
],
“purpose”: {
“code”: “PATRQT”,
“text”: “Self Requested”
},
“hip”: {
“id”: “IN3410000232”
},
“period”: {
“from”: “2020-11-03T12:54:21.896Z”,
“to”: “2024-12-03T12:54:21.896Z”
}
},
{
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“DischargeSummary”,
“OPConsultation”,
“ImmunizationRecord”,
“WellnessRecord”,
“HealthDocumentRecord”
],
“purpose”: {
“code”: “PATRQT”,
“text”: “Self Requested”
},
“hip”: {
“id”: “IN3410000219”
},
“period”: {
“from”: “2020-11-03T12:54:21.896Z”,
“to”: “2024-12-03T12:54:21.896Z”
}
},
{
“hiTypes”: [
“DiagnosticReport”,
“Prescription”,
“DischargeSummary”,
“OPConsultation”,
“ImmunizationRecord”,
“WellnessRecord”,
“HealthDocumentRecord”
],
“purpose”: {
“code”: “PATRQT”,
“text”: “Self Requested”
},
“hip”: {
“id”: “IN3410000223”
},
“period”: {
“from”: “2020-11-03T12:54:21.896Z”,
“to”: “2024-12-03T12:54:21.896Z”
}
}
],
“excludedSources”: []
}’
Client ID:- SBX_003468