Care Context Linking and Data Sharing
Enables health data exchange between Health Information Providers (HIPs) and Health Information Users (HIUs).Link Care Contexts (HIP)
The HIP links a care context to the patient’s ABHA address using the Care Context Link API. This registers the care context with ABDM so it can be discovered and requested by HIUs.You can optionally include the FHIR data as a base64-encoded string in the
data field of the Link API request. If provided, Eka stores the data on its servers and handles data sharing automatically when an HIU requests it — you will not need to handle the abha.hip_data_fetch webhook.Receive Linking Confirmation
Listen for the
abha.link_care_context webhook to confirm whether the care context was successfully linked (LINKED) or failed (ERRORED).Handle Data Fetch Requests
When an HIU requests data for a linked care context (after the user grants consent), you receive the
abha.hip_data_fetch webhook. This webhook is sent only if you are not storing the data on Eka servers and need to provide it yourself.Push Encrypted Data
Prepare the ABDM-compliant FHIR bundle for the requested care contexts, encrypt it using the key information from the webhook, and push it via the Care Context Data On-Fetch API.
If you store health data on Eka servers — either by passing base64-encoded FHIR data in the
data field of the Link API, or via the Upload API — Eka handles data sharing automatically and you will not receive the abha.hip_data_fetch webhook.Listing Care Contexts
This feature is useful for displaying a list of care contexts to a doctor (HMIS) or within a PHR app.
List Linked Providers
Use the List Providers API to retrieve all linked providers. This API returns a
hip_id and the name for each linked provider.List Care Contexts for a Provider
Using the
hip_id obtained from the previous step, use the List Care Contexts API to retrieve all linked care contexts for that provider.Linking Care Contexts
Creating a new Care Context
Care contexts can be linked to an ABHA in various ways, depending on the document type.HIP Initiated Linking
Use the Link API to create the care context. Once linked, you will receive theabha.link_care_context webhook with the linking status.

