> 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/deploy/configuration/hcm-service-configuration/transit-post.md).

# Transit Post

## Overview

The Transit Post Package is a Flutter-based module designed to manage transit post selections, including scanning resources and tracking delivery count. It integrates with Bloc for state management and supports reactive forms for user inputs.

## &#x20;Features

Transit Post Pages: The package includes several pages like 'transit\_post\_selection.dart', 'transit\_post\_record\_vaccination.dart', 'transit\_post\_acknowledgment.dart' and 'transit\_post\_wrapper.dart' to record resource delivery.

Transit Post Blocs: It provides various Blocs for state management.

Transit Post Repositories: The package provides abstract classes for data repositories, 'UserActionLocalRepository', 'UserActionRemoteRepository'.

## Getting Started

To use this package, add the following dependency to your 'pubspec.yaml' file:

```
dependencies:
    transit_post: ^any
```

## Usage

To navigate to any screens of the package:

First, add transit\_post\_router to your main app router

Navigate to the required screen using the code below:

```
context.router.push(TransitPostWrapperRoute())
```

Transit\_post package requires below data to be passed from the main app:

```
List<ProjectProductVariantModel>? _resources;
  List<String>? _transitPostType;
  String? _tenantId;
  String? _loggedInUserUuid;
  String? _projectId;
  BoundaryModel? _boundaryModel;
  int? _minAge;
  int? _maxAge;
```

## Configuration Details

**MDMS Schemas**

Action Test

```
{
                    "id": 2035,
                    "name": "Transit Post",
                    "url": "",
                    "displayName": "HOME_TRANSIT_POST_LABEL",
                    "orderNumber": 0,
                    "parentModule": "cards",
                    "enabled": true,
                    "serviceCode": "null",
                    "code": "null",
                    "path": ""
                }
```

* Roles

```
{
      "code": "TRANSIT_POST_VACCINATOR",
      "name": "Transit Post Vaccinator",
      "description": "Transit post vaccination provider"
    }
```

## Flow Diagram

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe2QSuKwhp8wATioruPB_Mbfo2c4zL98DpViyZGR_dZO-jW1bEMX5H9T0thL3WRY2BI9NEWE6St1XdPUS0wDSjWN_kOMgOpEw7hy-7qK0fF_cdl_ZTZ8LrQcER4sDBfQUZ61JBa7Q?key=1lf8D4un1prWEP84wwvW2w" 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/v2.1/deploy/configuration/hcm-service-configuration/transit-post.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.
