> 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/ph-v1.8/design/architecture/low-level-design/services/beneficiary-idgen.md).

# Beneficiary IDGen

## Overview

The Beneficiary IDGenId feature is to link a unique ID to an individual. UniqueId’s are fetched from the server with the unique DeviceId and user.&#x20;

## Key Feature

1. Fetching UniqueID’s from the server with device and user combination
2. Added new ID\_TYPE - UNIQUE\_BENEFICIARY\_ID to link individuals
3. Added search with UNIQUE\_BENEFICIARY\_ID

## Sequence Diagram

Role: DISTRIBUTOR

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeUe2xZlLiZmiTpt9DNCr0EJk6Nt_nEPOP7U8Bbm4DMAuB7wELcmMuhJR6QZ8ww0XKCHdI9n9Hgpcui3rm7NKeKmiYrDIIscclb3qgpa_Pibfyx3Ix_myEmtZEjVTOxBEtRMAOeWg?key=h6xj56uLHjrcNj0msKKRCQ" alt=""><figcaption></figcaption></figure>

<figure><img src="https://637188494-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiVdFjJNtaUlTFjgyyYVV%2Fuploads%2FlkLA1sA9q8mNVR174k1J%2Fimage.png?alt=media&amp;token=cf40f001-42c9-425f-b3af-ef63fe5e088c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://637188494-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiVdFjJNtaUlTFjgyyYVV%2Fuploads%2FcCV9ODBT7zQNPA2x2ecI%2Fimage.png?alt=media&amp;token=7b2cf533-1a31-4c63-84c9-3a8e680b793d" alt=""><figcaption></figcaption></figure>


---

# 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/ph-v1.8/design/architecture/low-level-design/services/beneficiary-idgen.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.
