Skip to main content

Get the consent request details by REQUEST-ID

GET/api/hiecm/consent/v3/request/{consentRequestId}

By invoking this API, users can obtain comprehensive information about a specific consent request, including its status, scope, and any associated conditions. This functionality is essential for ensuring that users have access to accurate and up-to-date consent information, supporting secure and compliant health information exchange. The API facilitates efficient management and verification of consent requests, enhancing the overall integrity of the consent management process.

Authorizations

Authorizationbearer tokenRequired

The access token from POST /api/hiecm/gateway/v3/sessions, sent with a Bearer prefix.

Path parameters

consentRequestIdstringRequired

The consent request id

Headers

REQUEST-IDstringRequired

Unique UUID for track the end to end request transaction

TIMESTAMPstringRequired

Actual time of the request was initiated, ISO 8601 represents date and time by starting with the year, followed by the month, the day, the hour, the minutes, seconds and milliseconds

X-CM-IDstringRequired

Suffix of the consent manager to which the request was intended

X-AUTH-TOKENstringRequired

The user token the PHR service issued when the patient logged in.

Responses

200

OK

requestIdstring
purposeobject
purpose.textstringRequired

One of Care ManagementBreak the GlassPublic HealthHealthcare PaymentDisease Specific Healthcare ResearchSelf Requested

purpose.codestringRequired

One of CAREMGTBTGPUBHLTHHPAYMTDSRCHPATRQT

purpose.refUristringRequired

The reference URL.Allows alpha numeric and special characters like "^[a-zA-Z0-9_\\-@,. \":/]{0,255}$"

patientobject
patient.idstringRequired

The abha address of the patient

hipobject

Identifier and name of the health information provider.

hip.idstringRequired

The service ID of the health information provider. Allows alpha numeric character and special characters like [A-Z a-z 0-9]+[A-Z a-z 0-9 //_//-]*[A-Z a-z 0-9]$

hip.namestringRequired

The name of the health information provider. Allows alpha numeric and special characters like "^[a-zA-Z]+[A-Za-z0-9_\\-@,().\\s\\xa0:/]+"

hip.typestring

The type of the health information provider. Allows alpha numeric and special characters like "^[a-zA-Z0-9_\\-@,. \":/]{0,255}$"

hiuobject
hiu.idstringRequired

The service ID of the health information user. Allows alpha numeric character and special characters like [A-Z a-z 0-9]+[A-Z a-z 0-9 //_//-]*[A-Z a-z 0-9]$

hiu.namestringRequired

The name of the health information user. Allows alpha numeric and special characters like "^[a-zA-Z]+[A-Za-z0-9_\\-@,().\\s\\xa0:/]+"

hiu.typestring

The type of the health information user. Allows alpha numeric and special characters like "^[a-zA-Z0-9_\\-@,. \":/]{0,255}$"

careContextsobject[]

List of care contexts linked at the HIP end for the identified patient.

careContexts.patientReferencestringRequired

A patient identifier with which patient is registered in the facility/hospital

careContexts.careContextReferencestringRequired

An identifier of patient's care context created in HIP. A care context is a group of patient's health data (Not the actual health data)

requesterobject
requester.namestringRequired

The name of the requester

requester.identifierobjectRequired
requester.identifier.valuestringRequired

The type of the identification. Allows alpha numeric character and special characters like "^[a-zA-Z0-9_\\-@,. \":/]{0,255}$"

requester.identifier.typestringRequired

The identification value. Allows alpha numeric character and special characters like "^[a-zA-Z0-9_\\-@,. \":/]{0,255}$"

requester.identifier.systemstringRequired

Allows alpha numeric character and special characters like "^[a-zA-Z0-9_\\-@,. \":/]{0,255}$"

statusstring

One of REQUESTEDEXPIREDDENIEDGRANTEDREVOKED

createdAtstring
lastUpdatedstring
hiTypestring[]
permissionobject
permission.accessModestringRequired

One of VIEWSTORESTREAMQUERY

permission.dateRangeobjectRequired
permission.dateRange.fromstringRequired

Should be UTC date time in ISO format

permission.dateRange.tostringRequired

Should be UTC date time in ISO format

permission.dataEraseAtstringRequired

The date at which the consent expire. Should be UTC date time in ISO format

permission.frequencyobjectRequired
permission.frequency.unitstringRequired

One of HOURDAYWEEKMONTHYEAR

permission.frequency.valuenumberRequired

The frequency unit value. Should be be a integer

permission.frequency.repeatsnumberRequired

Should be be a integer

400

Bad Request

Error codes for this module

errorobject

The error code and message, if any occurred.

error.codestringRequired

ABDM-1039 - Invalid Consent request id. May be returned either bare (ABDM-1039) or with a trailing ": " separator (ABDM-1039: ); match on the code itself and tolerate the separator.

error.messagestringRequired
401

Unauthorized

Everything returns 401

codestring

900901 - Unauthorized. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator.

messagestring
descriptionstring
404

Not Found

Error codes for this module

errorobject

The error code and message, if any occurred.

error.codestringRequired

ABDM-1001 - No data found. May be returned either bare (ABDM-1001) or with a trailing ": " separator (ABDM-1001: ); match on the code itself and tolerate the separator.

error.messagestringRequired
500

Internal Server Error

Error codes for this module

codestring

900900 - Unclassified Authentication Failure. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator.

messagestring
descriptionstring
503

Service Unavailable

Error codes for this module

codestringRequired

ABDM-1024 - Dependent service unavailable. May be returned either bare (ABDM-1024) or with a trailing ": " separator (ABDM-1024: ); match on the code itself and tolerate the separator.

messagestringRequired