Handling Notifications
Functionality Overview
A PHR Application handles a variety of notifications for the User.
Types on notifications to be handled:
- Care context - New/Updated
- New subscription request (v3 APIs only)
- New Consent request (v3 APIs only)
- Approved / Revoked consents
Expectation on Care Context - new/updated
- This happens if a subscription is set up for this ABHA address. whenever there is a new care context linked or updated.
- The PHR App must notify the user on the UI that there is a new health record available.
- If auto-approval policy is in place then the PHR app must make a consent request to fetch a copy of the health record. More information documented here
Expectation on New Subscription Request (v3 APIs only)
- Notify the user on the PHR app UI that there’s a new request
- Show the subscription request details
- Allow the user to Approve or Deny the requests
Expectation on New Consent Request (v3 APIs only)
- Notify the user on the PHR app UI that there’s a new request
- Show the Consent request details
- Allow the user to Grant or Deny the consent
Expectation on Approved / Revoked Consents
- Store a copy of consent artefacts
- More information documented here
If there are user-linked records (that is when it acts as an HRP), then they also need to implement handling consent notifications, as defined here
Test Cases
HIP initiated linking flow - When health records are linked with ABHA address at the health facility / health programme
S.No | Functionality | Test Case | Steps To Be Executed |
---|---|---|---|
1 | Mandatory Post linking of health records with ABHA address by the HIP with patient consent, the individual can view the health records on the PHR mobile app | Health data will be visible in PHR app once HIP link health records with the ABHA address. | Once Individual visits the hospital. • ABHA address is shared with the health programme / health facility. • Individual validates the ABHA address with the mobile OTP. • Post linking of health records with ABHA address by the HIP, the individual can open any PHR app and click on “Pull Records” button against the visited health programme / health facility, where the record is created and linked to ABHA address to view the record in mobile device. |
API Sequence Diagram
API Information Request Response
Change Notification to an ABHA address
Notification to subscribers if care contexts is added / updated.
8. Notification to HIU
BASE URLs: https://your-hrp-server.com
9. Acknowledge Receipt Of Notification
BASE URLs: https://dev.abdm.gov.in/gateway