Requesting Consent

  • Whoever wants to access health data, they have to request for user consent. They do this by sending a consent request with the user’s ABHA address to the HIE-CM.

  • From an HIU perspective, the flow begins when the HIU (e.g. a Doctor at a Hospital) requests consent to view patient’s data.

  • Upon receipt of such a request from Gateway, HIE-CM acknowledges and sends back a consent request ID to the HIU via the gateway.

  • The HIE-CM then notifies the patient that an HIU has made a consent request. The patient can view the request details, and choose to either grant it or deny it.

  • Subsequently, the HIE-CM notifies the HIU requester of the patient’s consent or denial status via the gateway.

    • If the request is granted, the HIE-CM sends across the Ids of the consent artefacts that were created against the request, to the HIU.
    • If the request is denied, the HIE-CM simply notifies the HIU of the denial of the request.

At the time when the patient registers with the hospital (for accessing medical history), this is (can be) initiated when the user scans the Heath facility QR code & registers Health Facility now has user’s ABHA address and can initiate a consent request.

Meta Codes :

While requesting and exchanging health information, there are meta codes that are relevant to you if you are a HIU.

Purpose of Use - defines what is the purpose of use of the health information that a HIU is requesting for. The following are subset from http://terminology.hl7.org/ValueSet/v3-PurposeOfUse

CodeDisplay
CAREMGTCare Management
BTGBreak the Glass
PUBHLTHPublic Health
HPAYMTHealthcare Payment
DSRCHDisease Specific Healthcare Research
PATRQTSelf Requested

Health Information (HI) Types - defines what types of information a requester is asking for. As of now, the following types are supported.

CodeDisplay
PrescriptionPrescription
DiagnosticReportDiagnostic Report
OPConsultationOP Consultation
DischargeSummaryDischarge Summary
ImmunizationRecordImmunization Record
HealthDocumentRecordRecord artifact
WellnessRecordWellness Record

Test Cases

S.NoFunctionFunctionalityTest CaseSteps To Be Executed
1.1Create Consent RequestMandatory Patient Discovery HIU_FLOW_101The System should have a provision to find the patient using ABHA Number or ABHA Address.1. Enter ABHA Address/ ABHA Number 2. Select Find Patient
1.2Create Consent RequestMandatory Consent Request Initiation HIU_FLOW_102"HIU creates consent request for health records1. Enter purpose for consent request. 2. Enter duration and expiry of consent request. 3. Enter Health Info type (out of 7 Health Info types). 4. Initiate Request
1.3Create Consent RequestMandatory Listing of Consent Requests HIU_FLOW_104The system should be able to view the list of consent requests inititated1. List of Consent Requests should include - ABHA
1.4Create Consent RequestMandatory Consent Request is Denied HIU_FLOW_105The HIU system should not fetch health data for a denied consent request1. Deny Consent Request on PHR App. 2. Check if data is accessible on the HIU application.
1.5Create Consent RequestMandatory Consent Request is Approved HIU_FLOW_106The HIU system would fetch health data for the approved consent request
1.6Create Consent RequestMandatory HIU_FLOW_107Fetch health data for (HI Type = DiagnostocReport Structured/Un-Structured)1. Approve Consent Request on PHR App. 2. Check if data is accessible on the HIU application
1.7Create Consent RequestMandatory HIU_FLOW_108Fetch health data for (HI Type = Prescription-Structured)1. Approve Consent Request on PHR App. 2. Check if data is accessible on the HIU application
1.8Create Consent RequestMandatory HIU_FLOW_109Fetch health data for (HI Type = DischargeSummary-Structured)1. Approve Consent Request on PHR App. 2. Check if data is accessible on the HIU application
1.9Create Consent RequestMandatory HIU_FLOW_110Fetch health data for (HI Type = CosultingNote-Structured)1. Approve Consent Request on PHR App. 2. Check if data is accessible on the HIU application
1.10Create Consent RequestMandatory HIU_FLOW_111Fetch health data for (HI Type = Immunization record-Structured)1. Approve Consent Request on PHR App. 2. Check if data is accessible on the HIU application
1.11Create Consent RequestMandatory HIU_FLOW_112Fetch health data for (HI Type = Health Record-Structured)1. Approve Consent Request on PHR App 2. Check if data is accessible on the HIU application
1.12Create Consent RequestMandatory HIU_FLOW_113Fetch health data for (HI Type = Wellness Record-Un-Structured)1. Approve Consent Request on PHR App. 2. Check if data is accessible on the HIU application

Sample User Experience

  • Link a HIU
  • Raise a consent request init using that HIU
  • Will receive the response on-init api triggered in the callback url
  • User can also check the status of the consent request status(like REQUESTED,GRANTED) by passing the consentid in the consent-requests/status api

API Sequence Diagram

The following diagram explains the consent request creation flow of forwarding the request to the gateway so that gateway can forward it to respective CM:

%%{init:{"fontSize": "1.0rem", "sequence":{"showSequenceNumbers":true}}}%% sequenceDiagram title Consent Request by HIU HIU System-->>Repository: Consent Request activate Repository Repository->>Gateway: (1) POST/consent-requests/init Gateway->>Repository: (2) POST/consent-requests/on-init deactivate Repository Repository-->>HIU System: Response Repository->>Gateway: (3) Get Consent Request Status <br/> POST/consent-requests/status Gateway->>Repository: (4) POST/consent-requests/on-status

API Information Request Response

1. Create Consent Request

Creates a consent request to get data about a patient by HIU user.

BASE URLs: https://dev.abdm.gov.in/gateway

2. Response To Consent Request

Result of consent request creation for a patient.

BASE URLs: https://dev.abdm.gov.in/hiu

3. Get Consent Request Status

Get status of consent request done previously

BASE URLs: https://dev.abdm.gov.in/gateway

4. Callback to Consent Request Status

Result of consent request done previously. Status of request can be GRANTED, DENIED, EXPIRED

BASE URLs: https://dev.abdm.gov.in/hiu