> 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/local-governance/access/local-governance-stack/birth-and-death-certificate-issuance/birth-and-death-certificate-issuance-service-configuration/birth-and-death-reports.md).

# Birth and Death: Reports

## Overview <a href="#overview" id="overview"></a>

There are 5 B\&D Reports that exist *viz.* **Birth Count Report, Birth Records Count Report By District, Birth and Death Certificate Payment Records, Death Count Report, Death Records Count Report by District.**

## Configuration Details <a href="#configuring-report" id="configuring-report"></a>

To configure the B\&D Report, follow the steps below:

* [x] To add a new report first add the file path in the **reportFileLocationsv1**.\
  The B\&D report location can be listed in the following link: [<img src="https://github.com/fluidicon.png" alt="" data-size="line">configs/reportFileLocationsv1.txt at f80f822314ef951890b41c92ca9eab3ee41413b0 · egovernments/configs](https://github.com/egovernments/configs/blob/f80f822314ef951890b41c92ca9eab3ee41413b0/reports/reportFileLocationsv1.txt#L23)
* [x] Once the file path is added in the file reportFileLocationsv1, go to the folder /configs/reports/config \[[<img src="https://github.com/fluidicon.png" alt="" data-size="line">configs/reports/config at qa · egovernments/configs](https://github.com/egovernments/configs/tree/qa/reports/config) ] . **birthcount-report.yml**\
  Create a new file and name the file that you have given in the file reportFileLocationsv1.
* [x] Write the report configuration.\
  Refer [<img src="https://github.com/fluidicon.png" alt="" data-size="line">configs/birthcount-reports.yml at qa · egovernments/configs](https://github.com/egovernments/configs/blob/qa/reports/config/birthcount-reports.yml) for current configs.\
  Once it is done commit those changes.
* [x] Add the role and actions for the new report as follows:

**In action-test.json:**

```
{
      "id": 2277,
      "name": "BirthRecordsCountReport",
      "url": "/report/rainmaker-bnd/BirthRecordsCountReport/_get",
      "displayName": "BirthRecordsCountReport",
      "orderNumber": 1,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2278,
      "name": "BirthRecordsCountReport",
      "url": "/report/rainmaker-bnd/BirthRecordsCountReport/metadata/_get",
      "displayName": "BirthRecordsCountReport",
      "orderNumber": 1,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2279,
      "name": "BirthRecordsCountReport",
      "url": "url",
      "displayName": "Birth Records Count",
      "orderNumber": 9,
      "parentModule": "rainmaker-bnd",
      "enabled": true,
      "serviceCode": "bnd",
      "code": "null",
      "path": "cbbnd.BirthRecordsCountReport",
      "navigationURL": "report/rainmaker-bnd/BirthRecordsCountReport",
      "leftIcon": "action:assignment",
      "rightIcon": ""
    },
    {
      "id": 2280,
      "name": "DeathRecordsCountReport",
      "url": "/report/rainmaker-bnd/DeathRecordsCountReport/_get",
      "displayName": "DeathRecordsCountReport",
      "orderNumber": 2,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2281,
      "name": "DeathRecordsCountReport",
      "url": "/report/rainmaker-bnd/DeathRecordsCountReport/metadata/_get",
      "displayName": "DeathRecordsCountReport",
      "orderNumber": 2,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2282,
      "name": "DeathRecordsCountReport",
      "url": "url",
      "displayName": "Death Records Count",
      "orderNumber": 9,
      "parentModule": "rainmaker-bnd",
      "enabled": true,
      "serviceCode": "bnd",
      "code": "null",
      "path": "cbbnd.DeathRecordsCountReport",
      "navigationURL": "report/rainmaker-bnd/DeathRecordsCountReport",
      "leftIcon": "action:assignment",
      "rightIcon": ""
    },
    {
      "id": 2283,
      "name": "BirthRecordsCountReportCBLevel",
      "url": "/report/rainmaker-bnd/BirthRecordsCountReportCBLevel/_get",
      "displayName": "BirthRecordsCountReportCBLevel",
      "orderNumber": 1,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2284,
      "name": "BirthRecordsCountReportCBLevel",
      "url": "/report/rainmaker-bnd/BirthRecordsCountReportCBLevel/metadata/_get",
      "displayName": "BirthRecordsCountReportCBLevel",
      "orderNumber": 1,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2285,
      "name": "BirthRecordsCountReportCBLevel",
      "url": "url",
      "displayName": "Birth Records Count CBLevel",
      "orderNumber": 9,
      "parentModule": "rainmaker-bnd",
      "enabled": true,
      "serviceCode": "bnd",
      "code": "null",
      "path": "cbbnd.BirthRecordsCountReportCBLevel",
      "navigationURL": "report/rainmaker-bnd/BirthRecordsCountReportCBLevel",
      "leftIcon": "action:assignment",
      "rightIcon": ""
    },
    {
      "id": 2286,
      "name": "DeathRecordsCountReportCBLevel",
      "url": "/report/rainmaker-bnd/DeathRecordsCountReportCBLevel/_get",
      "displayName": "DeathRecordsCountReportCBLevel",
      "orderNumber": 2,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2287,
      "name": "DeathRecordsCountReportCBLevel",
      "url": "/report/rainmaker-bnd/DeathRecordsCountReportCBLevel/metadata/_get",
      "displayName": "DeathRecordsCountReportCBLevel",
      "orderNumber": 2,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2288,
      "name": "DeathRecordsCountReportCBLevel",
      "url": "url",
      "displayName": "Death Records Count CBLevel",
      "orderNumber": 9,
      "parentModule": "rainmaker-bnd",
      "enabled": true,
      "serviceCode": "bnd",
      "code": "null",
      "path": "cbbnd.DeathRecordsCountReportCBLevel",
      "navigationURL": "report/rainmaker-bnd/DeathRecordsCountReportCBLevel",
      "leftIcon": "action:assignment",
      "rightIcon": ""
    },
    {
      "id": 2289,
      "name": "BirthAndDeathCertificatePayment",
      "url": "/report/rainmaker-bnd/BirthAndDeathCertificatePayment/metadata/_get",
      "displayName": "Birth-Death Payment Report",
      "orderNumber": 3,
      "parentModule": "",
      "enabled": true,
      "serviceCode": "report",
      "code": "null",
      "path": ""
    },
    {
      "id": 2290,
      "name": "BirthAndDeathCertificatePayment",
      "url": "url",
      "displayName": "BnD Paid and Downloaded Records",
      "orderNumber": 9,
      "parentModule": "rainmaker-bnd",
      "enabled": true,
      "serviceCode": "bnd",
      "code": "null",
      "path": "cbbnd.BirthAndDeathCertificatePayment",
      "navigationURL": "report/rainmaker-bnd/BirthAndDeathCertificatePayment",
      "leftIcon": "action:assignment",
      "rightIcon": ""
    },
```

**In action-test.json:**

```
{
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2277,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2278,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2283,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2285,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2284,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2289,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "BIRTH_REPORT_VIEWER",
      "actionid": 2325,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2280,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2281,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2286,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2287,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2289,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2290,
      "actioncode": "",
      "tenantId": "pb"
    },
    {
      "rolecode": "DEATH_REPORT_VIEWER",
      "actionid": 2325,
      "actioncode": "",
      "tenantId": "pb"
    }
```

* [x] Restart the MDMS and report service.

**Above is the sample for the Defaulter Report. Similarly, other reports can also be configured.**

## **Reference Docs** <a href="#reference-docs" id="reference-docs"></a>

### **Doc Links**

<table><thead><tr><th width="290">Title</th><th>Link</th></tr></thead><tbody><tr><td> <a href="https://raw.githubusercontent.com/egovernments/configs/DEV/reports/reportFileLocationsv1.txt">reportFileLocationsv1</a> </td><td><a href="https://github.com/egovernments/configs/blob/UAT/reports/reportFileLocationsv1.txt"><img src="https://github.com/fluidicon.png" alt="" data-size="line">configs/reportFileLocationsv1.txt at UAT · egovernments/configs</a></td></tr><tr><td> report config folder</td><td><a href="https://github.com/egovernments/configs/tree/UAT/reports/config"><img src="https://github.com/fluidicon.png" alt="" data-size="line">configs/reports/config at UAT · egovernments/configs</a></td></tr></tbody></table>


---

# 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/local-governance/access/local-governance-stack/birth-and-death-certificate-issuance/birth-and-death-certificate-issuance-service-configuration/birth-and-death-reports.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.
