Auto approval not working for HL

Hi,

Even after granting AUTO_APPROVAL, explicit consent granting is required for DocPrime Locker to fetch the health records.

Hi @rachit,

Following could we the reason why auto approval might not be working.

  • Consent request must be raised for specific HIP. In the request body consent.hip.id must be present.
  • The consent request period must be within the bounds of approve subscription period.

Please cross check above points and let us know the consent-requestId if the issue persist.

Thank you

Yes issue still persists, please refer to the screenshots and call logs attached.

Subscription, auth and add care context requests and callbacks -

Requested URL- /v0.5/users/auth/on-init

{requestId=1dd508e3-39b1-4696-b9fb-c5db1216b5dd, timestamp=2021-06-29T07:21:44.7403, auth={transactionId=0aef9594-2a0b-41c7-bc61-fceccf99e927, mode=DIRECT, meta={hint=null, expiry=2021-06-29T09:21:44.740314}}, error=null, resp={requestId=447c5102-3b36-4b6f-949e-cd60452e4d68}} and X-HIU-ID : DOCPRIME_LOCKER

Requested URL- /v0.5/subscription-requests/hiu/on-init

{requestId=dd0c5eb1-296b-4d0d-9dd7-57d6addec01f, timestamp=2021-06-29T07:21:44.955887, subscriptionRequest={id=e31aa0eb-6dde-4da3-9e0d-b24d230d9db1}, error=null, resp={requestId=05edc52e-2edd-4f8a-b6c3-f7670181fee3}} and X-HIU-ID : DOCPRIME_LOCKER

Requested URL- /v0.5/subscription-requests/hiu/notify

{requestId=301a32e6-0d4f-4fbe-819f-7220b697318e, timestamp=2021-06-29T07:30:28.291164, notification={subscriptionRequestId=e31aa0eb-6dde-4da3-9e0d-b24d230d9db1, status=GRANTED, subscription={id=d105d1f0-0361-4ac6-be55-ed26462fe918, patient={id=rukesh.sam@sbx}, hiu={id=DOCPRIME_LOCKER, name=Docprime Locker}, sources=[{hip={id=DUMMY_DP_HOSPITAL, name=null}, categories=[LINK, DATA], period={from=2005-02-12T09:16:34.596, to=2035-02-12T09:16:34.596}}, {hip={id=DOCPRIME_LOCKER, name=null}, categories=[LINK, DATA], period={from=2005-02-12T09:16:34.596, to=2035-02-12T09:16:34.596}}]}}} and X-HIU-ID : DOCPRIME_LOCKER

Requested URL- /v0.5/users/auth/notify

{requestId=bc2febb0-44d3-4c5b-83f4-c502808f5126, timestamp=2021-06-29T07:30:28.549441, auth={transactionId=0aef9594-2a0b-41c7-bc61-fceccf99e927, status=GRANTED, accessToken=eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIyNC0zNDI0LTU2NjctNTc0MSIsInJlcXVlc3RlclR5cGUiOiJIRUFMVEhfTE9DS0VSIiwicmVxdWVzdGVySWQiOiJET0NQUklNRV9MT0NLRVIiLCJwYXRpZW50SWQiOiIyNC0zNDI0LTU2NjctNTc0MSIsInNlc3Npb25JZCI6ImIxNDg5MWNkLTVmYjYtNDM0Yy04Yjc1LTc1NzI2MzUyYzE2YyIsImV4cCI6MTY1NjQ4NzgyOCwiaWF0IjoxNjI0OTUxODI4fQ.eyqq3l3LoyVOLDVb7_PJ8WQixp5hNzwg7Q8ummO5Sxk-gbxEZ2tU_XaRNZPBlUP7lj6ycYfdRh6MdL45BZfwu4JUJgEodj6-Hkb0SVgQJe7nuf7MKftn9rth-bVInhN9U9Thnuo0irFkvv6jdMxbvEobABf14v3LuaHgDU4wEKswnE7uCZ9vPT6aktuRXUOUJjKd5y00H1fwLRO1os5ExGiayCc4iF2NUhOkXGSGg0jtkn7JGTn_cDLPe5m23GJ1tpc5-5IpwAAp4ZDh1ecKXnq42MZcaSzo2M_RBL6m95bIbc6fFmDAqwZ4OImhMq8lywUXxVxdIzDhOgYFJcaWFg, validity={purpose=KYC_AND_LINK, requester={type=HEALTH_LOCKER, id=DOCPRIME_LOCKER, name=null}, expiry=2022-06-29T07:30:28.54216, limit=100000}, patient={id=rukesh.sam@sbx, name=Rukesh Samuchiwal, gender=M, yearOfBirth=2021, address={line=null, district=CHANDIGARH, state=CHANDIGARH, pincode=null}, healthIdNumber=null, identifiers=[{type=MOBILE, value=+91-9711616691}]}}} and X-HIU-ID : DOCPRIME_LOCKER

Requested URL- /v0.5/links/link/on-add-contexts

{requestId=530ca335-3b0e-45d3-92c2-e8a1ad151aa1, link={patient={referenceNumber=pat_ref_rukes, display=Pat Ref rukes, careContexts=[{referenceNumber=rukes_OPD_8, display=rukes OPD 8}]}, accessToken=eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIyNC0zNDI0LTU2NjctNTc0MSIsInJlcXVlc3RlclR5cGUiOiJISVAiLCJyZXF1ZXN0ZXJJZCI6IkRVTU1ZX0RQX0hPU1BJVEFMIiwicGF0aWVudElkIjoiMjQtMzQyNC01NjY3LTU3NDEiLCJzZXNzaW9uSWQiOiIxZmJhMWEwNS0xMmVmLTQ1ODAtODM4MC1iNGM4ODY2ZjlhOTQiLCJleHAiOjE2MjUwMzg3NDUsImlhdCI6MTYyNDk1MjM0NX0.Ybn3pl4qTurewbVh53RklRyjPYMBn3ktcLYjqo6ZEf0-_0FrSOPi_ZejAYkWoUL9TGMGvYoC-PsLxIqC9oZoLdWLWgGcbpfH5pOIspljsd6A85eOaSueNLbXiFKwWLb0rKWWjs9G7BOfUKCfdGqOzxI3nXerHHWg4JqqMckFRLUX7aPUutzw3W9seWHuxloSozd2a7jGNTBR5xGEoVubsmIi6oKGsiAuNvagoV0gXB319JbM6PQUtq1Td-Y5naglFBx5foOR2KsyNFztn4Pf1kZxeqdYjmTMQYrtDoLsIrMkcmvWKlrLoFiK0DmXb6NuTMzNSRsMlfG8IL0RlI8lAA}, timestamp=2021-06-29T07:39:11.033954Z}

{requestId=690cfc0b-0339-4cbb-b92d-e9f36e9b81e6, timestamp=2021-06-29T07:40:58.76696, consentRequest={id=c6136c15-9428-48d2-9af8-655da8c93166}, error=null, resp={requestId=6ae67f24-2343-427c-bf08-76047cf7abfb}} :

Adding a supporting image