Village Assignment And Unassignment to Facility

1.Overview

When the user clicks on a facility, this popup window opens displaying essential details about the selected facility, as well as options for managing unassigned and assigned villages for this facility.

2.Interface Elements

Facility Details Card

Upon selecting a facility, a Facility Details popup will display the following:

  • Facility Name: Name of the selected facility.

  • Facility Type: Type of facility, such as "Warehouse" or "Health Post."

  • Facility Status: Indicates whether the facility is temporary or permanent.

  • Capacity: Displays the capacity of the facility (e.g., the number of bales for bednet distribution or blisters for SMC campaigns).

  • Serving Population: The serving population currently being served by the facility.

  • Fixed Post: Indicates if the facility is a fixed post, which is typically a permanent, stationary facility.

  • Residing Village: The village where the facility is located or based.

Field Name

Description

Village Name

The name of the village (e.g., Tendeken-01, Dutorken).

Administrative Hierarchy

The administrative hierarchy to which the village belongs (e.g., Country, Province, District).

Administrative Area

The specific area within the hierarchy (e.g., Locality, Village).

Accessibility Level

Indicates the ease of accessing the village (e.g., View Details).

Security Level

The security conditions of the village (e.g., View Details).

Confirmed Target Population

The population size confirmed for the village.

Assignment Status

Indicates whether the village is currently assigned or unassigned to a facility.

Assigned Facility

Name of the facility to which the village is assigned (if applicable).

Actions

Options for assigning or unassigning a village.

Filter Options:

  • Select Administrative Hierarchy: Dropdown menu for selecting an administrative level (e.g., Country, Province, District).

  • Select Administrative Area: Dropdown menu for selecting a specific area within the hierarchy (e.g., Locality, Village).

  • Search: Search for villages by name or code.

  • Clear: Clears all selected filters and resets the search options.

3.Unassigned Villages and Assigned Villages

3.1.Unassigned Villages

This section allows the user to manage villages that have not yet been assigned to any facility. Users can select villages from this list and assign them to a facility.

3.2.Assigned Villages

This section displays the villages that have already been assigned to a facility. Users can manage these assignments, including unassigning a village if necessary.

Actions:

  • Assign: To assign a facility to a village, select the village from the unassigned list and click the "Assign" button.

  • Unassign: If a village is already assigned to a facility, users can unassign it by selecting the village and clicking the "UnAssign" button.

4.Notes:

  • Unassign: Clicking on unassign button will show a alert message that you want to unassign this village from the current selected facility.

  • Close: Clicking "Close" will exit the page without making any changes.

5.EndPoints:

Purpose

Endpoint

Method

Payload

Search census data

/census-service/_search

POST

{"CensusSearchCriteria":{"tenantId":"mz","source":"0dfe322d-727c-489f-a5a8-e8b7a0a43cc4","facilityAssigned":false,"jurisdiction":["MICROPLAN_MO"],"limit":10,"offset":0}

Update facility plan mapping data

/plan-service/plan/facility/_update

POST

{"PlanFacility":{"id":"11aa5150-0c6c-42ed-adb5-775fc02bfbbb","tenantId":"mz","planConfigurationId":"0dfe322d-727c-489f-a5a8-e8b7a0a43cc4","planConfigurationName":"bednetmixed-togregish2hdis name-1733377290309-8722","boundaryAncestralPath":"MICROPLAN_MO"}


Last updated

Was this helpful?