Skip to main content

Notify subscription requests HIU

Hosted by the HIP/HIU, not by ABDM. ABDM calls this endpoint at the callback URL registered for your bridge, so the path below is relative to that URL.

POST/api/v3/hiu/subscription-requests/hiu/notify

This API endpoint serves as a callback for when a subscription request is approved or denied. By invoking this API, the Health Information User (HIU) is notified about the outcome of their subscription request, whether it has been approved or denied. This functionality is essential for maintaining transparency and ensuring that the HIU is informed about the status of their subscription requests.

Authorizations

Authorizationbearer tokenRequired

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-HIU-IDstringRequired

Identifier of the health information user to which the request was intended

Body

notificationobjectRequired
notification.subscriptionRequestIdstringRequired

subscriptionRequestId .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]$

notification.reasonstringRequired
notification.statusstringRequired

One of GRANTEDDENIED

notification.subscriptionobjectRequired
notification.subscription.idstring
notification.subscription.patientobject
notification.subscription.patient.idstringRequired

The abha address of the patient. Must start with Alphanumeric . and _ in the middle and must be ending with @abdm or @sbx.Allows alpha numeric character and special characters like ^[a-zA-Z0-9][a-zA-Z0-9_.\\-!]+[a-zA-Z0-9]@(abdm|sbx)$

notification.subscription.hiuobject
notification.subscription.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]$

notification.subscription.hiu.namestring

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

notification.subscription.hiu.typestring

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

notification.subscription.sourcesobject[]
notification.subscription.sources.hiTypesstring[]Required

Types of health information document.

notification.subscription.sources.purposeobjectRequired
notification.subscription.sources.hipobjectRequired

Identifier and name of the health information provider.

notification.subscription.sources.categoriesstring[]Required
notification.subscription.sources.periodobjectRequired

The date range between when the subscription will be active

notification.subscription.sources.statusstring

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

Responses

200

OK

401

Unauthorized

Everything returns 401

404

server cannot find the requested resource

Error codes for this module

500

Internal Server Error -> It is just one example, for every api the path will be changed.

Error codes for this module

503

Service Unavailable

Error codes for this module

Where this fits

hiecm-subscription.yaml declares this callback at module level and names no call against it. Which call produces it is not documented, so this page does not say.