> ## Documentation Index
> Fetch the complete documentation index at: https://ekacare-consent-url-fix.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Milestone 2

> Care Context Linking and Data Fetch flow for ABDM integration.

## M2 Flow — Care Context Linking

```mermaid theme={null}
flowchart TD
  A{"Data stored by Eka Care?"}

  A -->|Yes| B(["Include data in Linking API"])
  A -->|No| C(["Don't include data in Linking API"])

  B --> D["Care Context Linking"]
  C --> D

  D --> E["Care Context Linking Status  ― Webhook"]

  E --> F{"Data stored by Eka Care?"}

  F -->|No| H["Handle Data Fetch Requests ― Webhook"]

  H --> I["Push care context data to HIU"]
```

<Note>
  Steps marked \*\* Webhook\*\* are asynchronous — your server will receive a callback at the registered webhook URL. You do not need to poll for status.
</Note>

| Step                        | Type    | Description                                             |
| --------------------------- | ------- | ------------------------------------------------------- |
| Care Context Linking Status | Webhook | Notifies when linking succeeds or fails                 |
| Handle Data Fetch Requests  | Webhook | Triggered when HIU requests data not stored by Eka Care |
