> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/health/v1.5/technology/architecture/low-level-design/services/referral.md).

# Referral

## API Spec <a href="#api-spec" id="api-spec"></a>

[![](https://editor.swagger.io/dist/favicon-32x32.png)Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/egovernments/health-campaign-services/master/docs/health-api-specs/contracts/referral-management.yml)

## Sequence DIagrams

{% tabs %}
{% tab title="Side Effect" %}

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/EV7YPV8FTRZCwOjbA5iP/image.png" alt=""><figcaption><p>Side Effect Create</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/Kna5U7rOIoSaKyJY1GZc/image.png" alt=""><figcaption><p>Side Effect Bulk Create<br></p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/69mEYHcMGZFkPHxKQhQP/image.png" alt=""><figcaption><p>Side Effect Update<br></p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/1v9ExIfKiTthXLhZzTLp/image.png" alt=""><figcaption><p>Side Effect Bulk Update</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/Pcbi8EP1KTLq7UfnR8c6/image.png" alt=""><figcaption><p>Side Effect Delete</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/e86wscheU5BDmMCVjYul/image.png" alt=""><figcaption><p>Side Effect Bulk Delete</p></figcaption></figure>
{% endtab %}

{% tab title="Referral" %}

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/iAa17SYbEcY4ugjRzsdx/image.png" alt=""><figcaption><p>Referral Create</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/gzFQ1bdf2lwFjGBOSntx/image.png" alt=""><figcaption><p>Referral Bulk Create</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/FojMFDNqPuTXWoVYAdj5/image.png" alt=""><figcaption><p>Referral Update</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/8qTkOfTGnZa3Xsnw8a6s/image.png" alt=""><figcaption><p>Referral Bulk Update</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/ekK3dYCOB3xsJhPWb3Bu/image.png" alt=""><figcaption><p>Referral Delete</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/v8oPAAoFFtzYDd0eXCmB/image.png" alt=""><figcaption><p>Referral Bulk Delete</p></figcaption></figure>
{% endtab %}

{% tab title="HFReferral" %}

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/lLwF9Q3ZoBlBMKmfvwoV/image.png" alt=""><figcaption><p>HFReferral Create</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/AsjRqv0US5lFxuqtbrpw/image.png" alt=""><figcaption><p>HFReferral Bulk Create</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/aHuy1f5ZA0ZJWiZGgpK9/image.png" alt=""><figcaption><p>HFReferral Update</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/uB0146Uiew1clM7tsYtN/image.png" alt=""><figcaption><p>HFReferral Bulk Update</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/ybXMJ3D2q3pjMzdRLe5a/image.png" alt=""><figcaption><p>HFReferral Delete</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/GYQEda2SOh4goA6Ee2d2/blobs/Gt9Vfea8kMv4JAkNxn7u/image.png" alt=""><figcaption><p>HFReferral Bulk Delete</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/health/v1.5/technology/architecture/low-level-design/services/referral.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
