Auto-approval not working with discovery initiated linking

Hi Team,

In discovery initiated linking flow, auto-approval is not working with the consent request which is raised after linking the care context .

Locker request and response is attached below -

Request -

{
“subscription”: {
“requestId”: “bf3b3c8e-f78f-46b2-84b2-f140a87934d0”,
“isApplicableForAllHIPs”: true,
“includedSources”: [
{
“hiTypes”: [
“Prescription”,
“OPConsultation”,
“DischargeSummary”,
“DiagnosticReport”,
“ImmunizationRecord”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”,
“refUri”: “uri”
},
“categories”: [
“LINK”,
“DATA”
],
“period”: {
“from”: “2022-04-06T05:55:55.509199”,
“to”: “2072-04-06T05:55:55.322”
}
}
]
},
“autoApproval”: {
“isApplicableForAllHIPs”: true,
“hiu”: {
“id”: “DOCPRIME_LOCKER”,
“name”: “DOCPRIME LOCKER”
},
“includedSources”: [
{
“hiTypes”: [
“Prescription”,
“OPConsultation”,
“DischargeSummary”,
“DiagnosticReport”,
“ImmunizationRecord”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”,
“refUri”: “uri”
},
“hip”: {
“id”: “string”,
“name”: “string”
},
“period”: {
“from”: “2022-04-06T05:55:55.509199”,
“to”: “2072-04-06T05:55:55.322”
}
}
]
},
“authorization”: {
“requestId”: “f0f0e0cc-0394-4179-ac19-2f149d367586”,
“generatePerpetualToken”: true
},
“healthId”: “aarav012000@sbx”
}

Response -

{
“subscriptionId”: “1e39efc7-c861-4e88-aab5-3785ceb038d9”,
“autoApprovalId”: “c8b33c2d-1770-4a03-a631-585085a4290b”,
“authorizationId”: “f0f0e0cc-0394-4179-ac19-2f149d367586”
}

1 Like

This is now working, Thanks.

1 Like