> 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/v2.1/design/architecture/low-level-design/registries/attendance.md).

# Attendance

Description of the attendance service

## Overview

The Attendance Service is a comprehensive back-end solution designed to support health campaigns by providing efficient and transparent attendance management. It facilitates the streamlined tracking of health campaign workers, volunteers, and contractors, ensuring accurate participation records and enabling informed decision-making.

Note: Deletion of attendees from the system is not recommended, even in cases where participation in the campaign has ceased. Attendance records should instead reflect the status of absent for all days following the departure. This practice ensures the integrity of attendance data, preserves historical records, and supports accurate reporting and auditing processes.

Key functionalities include:

* Maintaining attendance registers.
* Enrolling and managing individuals.
* Creating, updating, and searching attendance logs.
* Managing staff permissions for attendance-related operations.

## API Specifications

**Base Path:** /health-attendance/

### API Contract Link

[https://editor.swagger.io/?url=https://raw.githubusercontent.com/egovernments/DIGIT-Works/f525b183782a353812f7e2432a2989a86c498810/backend/attendance/Attendance-Service-1.0.0.yaml](#api-contract-link)

## Data Model

### DB Schema Diagram

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/qysFarGgQ6VSs4wNtu4z/attendance_db.png" alt=""><figcaption><p>Attendance with Offline Enablement of Logs</p></figcaption></figure>

## Web Sequence Diagrams

#### Attendance Register

{% tabs %}
{% tab title="Create" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/25ltX2roajvxQOKr5Zwh/Attendance-Register%20Create(1).png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Update" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/nnvq0bKvbOseqTfc9BzH/Attendance-Register%20Update.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Search" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/dxYiIXDly8dZfxUuEPgL/register_search.png" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Staff

{% tabs %}
{% tab title="Create" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/lXTQikgEOOUgZRA1XygG/Staff%20Create.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Update/Delete" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/DBoSXZduIyjUtduxr6gR/Screenshot%202024-03-04%20at%2011.58.48%20AM.png" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Attendee

{% tabs %}
{% tab title="Create" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/0D1yPwta4nQgZLOah0Oy/Screenshot%202024-03-04%20at%2012.00.02%20PM.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Delete" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/11qBnsN8l0OT8k2wliB6/Screenshot%202024-03-04%20at%2012.00.39%20PM.png" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Attendance Log

{% tabs %}
{% tab title="Create" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/0UiKixQLZl8Lhw5FpBSG/Screenshot%202024-03-04%20at%2012.01.41%20PM.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Update" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/Di5KHq1fgEEY9H9FN9A8/Screenshot%202024-03-04%20at%2012.02.11%20PM.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Search" %}

<figure><img src="https://content.gitbook.com/content/I0KFbSBTySIQ7TCOKnJF/blobs/GdHraEnwaFXYwJSHNyL7/Attendance%20Log%20Search.png" alt=""><figcaption></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/v2.1/design/architecture/low-level-design/registries/attendance.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.
