consent
Initiate a consent request
Also known as: Consent Init Request. Initiates a new consent request for a patient's health records.
Certification cases HIU_FLOW_101, HIU_FLOW_102, HIU_FLOW_103, HIU_FLOW_104, HIU_FLOW_105, HIU_FLOW_106, HIU_FLOW_107, HIU_FLOW_108, HIU_FLOW_109, HIU_FLOW_110, HIU_FLOW_111, HIU_FLOW_112, HIU_FLOW_113
The Gateway notifies the patient via the ABHA App. The patient can approve or deny. The HIU receives the patient's decision via a callback to {hiuBridgeUrl}/v0.5/consents/hiu/notify.
Key fields: - Bearer token obtained from POST /hiecm/gateway/v3/sessions A fresh UUID that you generate for this request. The callback that answers it carries the same value. In M3 a single consent can produce several callbacks, so keep the mapping from request id to consent request id rather than relying on ordering. The current time in ISO 8601 UTC, with milliseconds and the Which consent manager you are talking to. ABDM consent purpose codes: - CAREMGT: Care Management - BTG: Break the Glass (emergency) - PUBHLTH: Public Health - HPAYMT: Health Payment - DSRCH: Disease Specific Healthcare Research - PATRQST: Patient Requested One of Patient's ABHA address HIU service ID HIU display name. Not otherwise constrained. Specific HIP to request from (null = any HIP) HIP display name. Not otherwise constrained. Specific care contexts (null = all matching contexts) Doctor / requester name One of Health Information types being requestedpurpose.code, ABDM-defined purpose codes (e.g. CAREMGT, BTG, PUBHLTH, HPAYMT, DSRCH, PATRQST) - hiTypes, Health Information types requested - permission.accessMode, VIEW (read-only) or STORE - permission.dataEraseAt, Consent expiry after which data access is revokedAuthorizations
Authorizationbearer tokenRequiredHeaders
REQUEST-IDstringRequiredTIMESTAMPstringRequiredZ suffix. The gateway rejects a request whose timestamp has drifted too far from its own clock, so take this from a synchronised clock rather than from a local one.X-CM-IDstringRequiredsbx on the sandbox and abdm in production.Body
consentobjectRequiredconsent.purposeobjectRequiredconsent.purpose.textstringRequiredconsent.purpose.codestringRequiredCAREMGTBTGPUBHLTHHPAYMTDSRCHPATRQSTconsent.purpose.refUristringconsent.patientobjectRequiredconsent.patient.idstringRequiredconsent.hiuobjectRequiredconsent.hiu.idstringRequiredconsent.hiu.namestringRequiredconsent.hiu.typestringconsent.hipobjectnullconsent.hip.idstringRequiredconsent.hip.namestringRequiredconsent.hip.typestringconsent.careContextsarraynullconsent.requesterobjectRequiredconsent.requester.namestringRequiredconsent.requester.identifierobjectRequiredconsent.requester.identifier.typestringREGNONMCMCIAYUSHconsent.requester.identifier.valuestringconsent.requester.identifier.systemstringconsent.hiTypesobject[]Requiredconsent.permissionobjectRequiredResponses
Callbacks
- After this call, ABDM posts The consent request was accepted, with its request id to
/api/v3/hiu/consent/request/on-init. Open the callback.