> 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/public-finance/v2.3/exemplar/mgramseva/user-manual/tech-user-manual/household-register.md).

# Household Register

**Link** → {base url}/mgramseva/home/householdRegister

![](/files/vlLTigOYZXPYyj5k72iE)

Users are redirected to this screen if they select the Household Register tile/card on the home screen.

The Household Register tile/card is displayed to the user with `COLLECTION_OPERATOR` role.

### **User Interaction on Screen**

* From the text field, users can search connections by using connection ID.
* Users can see all the connections data of the selected tenant till the current date based on their payment status (Ex: All, Paid, Pending).
* Initially, only 10 connections are loaded for the selected tab. The pagination drop-down and right arrow click enable users to view more connections.
* By selecting any connection ID users are navigated to the View Consumer Details Screen.
* Click on the Download button to get all the household records in PDF format
* Click on Share to share the PDF in Whats App

![Household records in PDF format](/files/hVdh9SSxwWBkrNaiMZLr)

### **File Path**

Primary Files :

{% embed url="<https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/HouseholdRegister.dart>" %}

{% embed url="<https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/HouseholdSearch.dart>" %}

{% embed url="<https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/HouseholdList.dart>" %}

{% embed url="<https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/household_pdf.dart>" %}

### **API Details**

| **End Point**                    | **Request Method** | **Request Info**                                                                                                                                                                                                                                                                                                             |
| -------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| /`ws-services/wc/_search`        | POST               | <p><code>tenantId</code> : {}<br><code>offset</code> ; {}<br><code>limit</code> : {}<br><code>toDate</code> : {}<br><code>isCollectionCount</code>: {}</p><p><code>isBillPaid</code><br><code>connectionNumber</code>: {}<br><code>freeSearch</code>: {}</p><p><code>sortOrder</code>: {}</p><p><code>sortBy</code> : {}</p> |
| `/filestore/v1/files`            | POST               | <p><code>tenantId</code> : {}</p><p><code>module</code> : {}</p>                                                                                                                                                                                                                                                             |
| `/egov-url-shortening/shortener` | POST               | `url` : {}                                                                                                                                                                                                                                                                                                                   |

&#x20;

**Stack**

1 → Home Screen. + Household Register Screen

Pop → Household Register Screen→ Home Screen

2 → Home Screen. + Household Register Screen + View Consumer Details Screen

Pop → View Consumer Details Screen → Household Register Screen

&#x20;

**Widgets used from Library**

| **Widgets**      | **File Path**                                                                                                                                                                                                                                                    | **Description** |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| `Pagination`     | [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/pagination.dart at develop · egovernments/punjab-mgramseva](https://github.com/egovernments/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/widgets/pagination.dart)  | Pagination      |
| `BuildTextField` | [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/TextFieldBuilder.dart at master · misdwss/punjab-mgramseva](https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/TextFieldBuilder.dart)  | Text Field      |
| `BillsTable`     | [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/BillsTable.dart at master · misdwss/punjab-mgramseva](https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/components/Dashboard/BillsTable.dart) | Table           |
| `LabelText`      | [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/LabelText.dart at master · misdwss/punjab-mgramseva](https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/LabelText.dart)                | Title           |
| `SubLabelText`   | [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/SubLabel.dart at master · misdwss/punjab-mgramseva](https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/SubLabel.dart)                  | Subtitle        |

&#x20;

**Role Access Mapping**

```
case Routes.HOUSEHOLD:
    return ['COLLECTION_OPERATOR', 'SUPERUSER'];

```

### &#x20;**File Path**

Model → [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/water\_connection.dart at master · misdwss/punjab-mgramseva](https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/model/connection/water_connection.dart) , [<img src="https://github.com/fluidicon.png" alt="" data-size="line">punjab-mgramseva/water\_connections.dart at master · misdwss/punjab-mgramseva](https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/model/connection/water_connections.dart)

View → [<img src="https://github.githubassets.com/favicon.ico" alt="" data-size="line">https://github.com/misdwss/punjab-mgramseva/tree/develop/frontend/mgramseva/lib/screeens/HouseholdRegister - Connect to preview](https://github.com/misdwss/punjab-mgramseva/tree/develop/frontend/mgramseva/lib/screeens/HouseholdRegister)

Controller → <https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/providers/household_register_provider.dart> , <https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/repository/search_connection_repo.dart>

> [![Creative Commons License](https://i.creativecommons.org/l/by/4.0/80x15.png)*​*](http://creativecommons.org/licenses/by/4.0/)*All content on this page by* [*eGov Foundation*](https://egov.org.in/) *is licensed under a* [*Creative Commons Attribution 4.0 International License*](http://creativecommons.org/licenses/by/4.0/)*.*


---

# 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/public-finance/v2.3/exemplar/mgramseva/user-manual/tech-user-manual/household-register.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.
