> 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.7/deploy/configuration/service-configuration/eligibility-checklist.md).

# Eligibility Checklist

## Checklist Configuration

1. Attributes:

* Each checklist consists of multiple attributes, where each attribute represents a specific question or input field.
* Attributes may have associated codes (e.g., SMC1, SMC1.YES.SM1).

2. Points Mapping:

* Each possible response to an attribute (e.g., YES, NO, NOT\_SELECTED) is mapped to specific points for different flows.

3. Precedence Questions:

* Some attributes are designated as precedence attributes.
* Precedence attributes determine the priority flow when multiple flows are eligible.

4. Flow Types:

* Common flow types include:

&#x20;      \- TO\_ADMINISTER

&#x20;      \- BENEFICIARY\_REFUSED

&#x20;      \- BENEFICIARY\_REFERRED

## Checklist Configuration Process

1. Define the checklist attributes and associate them with codes.
2. Map each possible response of an attribute to flow points.
3. Identify precedence attributes and configure precedence mapping.
4. Define precedence flow logic (e.g., YES maps to TO\_ADMINISTER, NO maps to BENEFICIARY\_REFUSED).

#### Example:

| <p>"ServiceDefinition": {</p><p>        "tenantId": "mz",</p><p>        "code": "SMC Campaign.ELIGIBILITY.DISTRIBUTOR",</p><p>        "isActive": true,</p><p>        "additionalFields": {</p><p>            "schema": "ServiceDefinition",</p><p>            "version": 1,</p><p>            "fields": \[</p><p>                {</p><p>                    "key": "precedenceFlow",</p><p>                    "value": "SMC1.YES.SM1"</p><p>                },</p><p>                {</p><p>                    "key": "flow",</p><p>                    "value": \[</p><p>                        {</p><p>                            "type": "TO\_ADMINISTER",</p><p>                            "minScore": 5</p><p>                        },</p><p>                        {</p><p>                            "type": "BENEFICIARY\_REFUSED",</p><p>                            "minScore": 3</p><p>                        },</p><p>                        {</p><p>                            "type": "BENEFICIARY\_REFERRED",</p><p>                            "minScore": 7</p><p>                        }</p><p>                    ]</p><p>                }</p><p>            ]</p><p>        },</p><p>        "attributes": \[</p><p>            {</p><p>                "tenantId": "mz",</p><p>                "code": "SMC1",</p><p>                "dataType": "SingleValueList",</p><p>                "values": \[</p><p>                    "YES",</p><p>                    "NO",</p><p>                    "NOT\_SELECTED"</p><p>                ],</p><p>                "isActive": true,</p><p>                "required": true,</p><p>                "order": 1,</p><p>                "additionalFields": {</p><p>                    "schema": "ServiceAttribute",</p><p>                    "version": 1,</p><p>                    "fields": \[</p><p>                        {</p><p>                            "key": "pointsMapping",</p><p>                            "value": {</p><p>                                "YES": {</p><p>                                    "TO\_ADMINISTER": 0,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 10</p><p>                                },</p><p>                                "NO": {</p><p>                                    "TO\_ADMINISTER": 2,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 0</p><p>                                }</p><p>                            }</p><p>                        },</p><p>                        {</p><p>                            "key": "helpText",</p><p>                            "value": "SMC1.HELP"</p><p>                        }</p><p>                    ]</p><p>                }</p><p>            },</p><p>            {</p><p>                "tenantId": "mz",</p><p>                "code": "SMC1.YES.SM1",</p><p>                "dataType": "SingleValueList",</p><p>                "values": \[</p><p>                    "YES",</p><p>                    "NO",</p><p>                    "NOT\_SELECTED"</p><p>                ],</p><p>                "isActive": true,</p><p>                "required": true,</p><p>                "order": 2,</p><p>                "additionalFields": {</p><p>                    "schema": "ServiceAttribute",</p><p>                    "version": 1,</p><p>                    "fields": \[</p><p>                        {</p><p>                            "key": "pointsMapping",</p><p>                            "value": {</p><p>                                "YES": {</p><p>                                    "TO\_ADMINISTER": 0,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 10</p><p>                                },</p><p>                                "NO": {</p><p>                                    "TO\_ADMINISTER": 2,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 0</p><p>                                }</p><p>                            }</p><p>                        },</p><p>                        {</p><p>                            "key": "helpText",</p><p>                            "value": "SMC1.YES.HELP"</p><p>                        }</p><p>                    ]</p><p>                }</p><p>            },</p><p>            {</p><p>                "tenantId": "mz",</p><p>                "code": "SMC2",</p><p>                "dataType": "SingleValueList",</p><p>                "values": \[</p><p>                    "YES",</p><p>                    "NO",</p><p>                    "NOT\_SELECTED"</p><p>                ],</p><p>                "isActive": true,</p><p>                "required": true,</p><p>                "order": 3,</p><p>                "additionalFields": {</p><p>                    "schema": "ServiceAttribute",</p><p>                    "version": 1,</p><p>                    "fields": \[</p><p>                        {</p><p>                            "key": "pointsMapping",</p><p>                            "value": {</p><p>                                "YES": {</p><p>                                    "TO\_ADMINISTER": 0,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 10</p><p>                                },</p><p>                                "NO": {</p><p>                                    "TO\_ADMINISTER": 2,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 0</p><p>                                }</p><p>                            }</p><p>                        },</p><p>                        {</p><p>                            "key": "helpText",</p><p>                            "value": "SMC2.HELP"</p><p>                        }</p><p>                    ]</p><p>                }</p><p>            },</p><p>            {</p><p>                "tenantId": "mz",</p><p>                "code": "SMC3",</p><p>                "dataType": "SingleValueList",</p><p>                "values": \[</p><p>                    "YES",</p><p>                    "NO",</p><p>                    "NOT\_SELECTED"</p><p>                ],</p><p>                "isActive": true,</p><p>                "required": true,</p><p>                "order": 4,</p><p>                "additionalFields": {</p><p>                    "schema": "ServiceAttribute",</p><p>                    "version": 1,</p><p>                    "fields": \[</p><p>                        {</p><p>                            "key": "pointsMapping",</p><p>                            "value": {</p><p>                                "YES": {</p><p>                                    "TO\_ADMINISTER": 0,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 10</p><p>                                },</p><p>                                "NO": {</p><p>                                    "TO\_ADMINISTER": 8,</p><p>                                    "BENEFICIARY\_REFUSED": 0,</p><p>                                    "BENEFICIARY\_REFERRED": 0</p><p>                                }</p><p>                            }</p><p>                        },</p><p>                        {</p><p>                            "key": "helpText",</p><p>                            "value": "SMC3.HELP"</p><p>                        }</p><p>                    ]</p><p>                }</p><p>            }</p><p>        ]</p><p>    }</p> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

### 1. Processing Inputs

* For each attribute in the checklist:

&#x20;      \- Retrieve the user input.

&#x20;      \- Generate a unique key (e.g., SMC1\_YES) to avoid duplicate processing.

&#x20;      \- Check if the input has already been processed to prevent double counting.

### 2. Update Scores:

* For each response:

&#x20;      \- Retrieve the corresponding flow points from the points mapping.

&#x20;      \- Update the scores for each flow type by adding the mapped points.

### 3. Handle Precedence:

* If the attribute is a precedence attribute and an input is provided:

&#x20;      \- Record the precedence flow answer.

* Skip precedence attributes if no input is provided.

### Final Flow Assignment:

* Calculate the total scores for all flows based on user inputs.
* If there is a tie in scores between flows:

&#x20;     \- Check for precedence answers and assign the flow based on the precedence mapping.

&#x20;     \- If no precedence answer exists, assign the flow with the highest score.

* If no tie exists, directly assign the flow with the highest score.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digit.org/health/ph-v1.7/deploy/configuration/service-configuration/eligibility-checklist.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
