DIGIT Docs
Microplanning 0.1
  • DIGIT Knowledge Base
  • Local Governance
Microplanning 0.1
  • Introducing Microplanning
    • Release Notes
      • v0.1 Release Notes
        • Release Checklist
        • Technical Release Summary
        • Master Data Management Service (MDMS) and Configuration updates
        • Service Builds
        • UI/UX Audit
  • PRODUCT SPECIFICATION
    • User Manual
    • Product Requirement Document
      • SOPs
        • Guidelines
  • TECHNOLOGY
    • Architecture
      • High Level Design
      • Low Level Design
        • Plan Management
        • Census Management
        • Microplanning UI
          • System Admin Flow
          • Population Data Approval
          • Facility Catchment Mapping
          • Microplan Estimation Approval
      • Services
        • HCM Microplan Web
          • User Interface Design
          • Set Up Microplan
            • Microplan Details
            • Boundary Selection
            • Data Management
            • Microplan Assumptions
            • Formula Configuration
            • User Tagging
            • Summary Screen
          • User Management
            • Bulk User Create
            • Download Users Credentials
          • Supervisor Flows
            • User Interface Design
            • My Microplan
            • Select Activity
            • Validate And Approve Population Data
              • Village Details
            • Assign Facility To Villages
              • Village Assignment And Unassignment to Facility
            • Validate And Approve Microplan Estimation
          • Open Microplans: System Admin
    • Specification
      • Plan Service
      • Resource Generator Service
      • Census Service
  • SETUP
    • Installation
    • Configuration
      • Advanced Configurations
    • QA Test Cases
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Overview
  • Pre-requisites
  • Key Features of Census Service
  • Service Dependencies
  • Base URL
  • API Specification
  • Sequence and DB Diagrams
  • Producer Details
  • Consumer Details
  • Configurations and Helm Chart Details
  • Environment Variable Details
  • MDMS Details
  • Reference Docs

Was this helpful?

Export as PDF
  1. TECHNOLOGY
  2. Specification

Census Service

Overview

The Census Service enables the creation and categorization of census records, ensures boundary validity, enforces user compliance, and automates record timeframes. With robust demographic data handling and advanced analysis, it supports precise planning and resource allocation while maintaining data integrity.

Pre-requisites

  • Knowledge of SpringBoot.

  • Knowledge of Git or any version control system.

  • Knowledge of RESTful web services.

  • Knowledge of the Kafka and Postgres.

  • Knowledge of eGov-mdms service and eGov-persister will be helpful.

Key Features of Census Service

  • Census Record Creation: Create census records for specific boundaries and categorize them by population type, such as people, animals, and plants.

  • Demographic Data Handling: Store population data by demographic variables (e.g., age, gender, ethnicity) for detailed analysis (e.g., if categorized by age:{"0-14": 1000, "15-24": 8000}).

  • Boundary and User Validation:

    • Validate boundaries via the Boundary Service.

    • Verify user roles for compliance.

    • Manage and update census record validity periods.

  • Integration with Plan Service: Map facilities to boundaries via the Plan Facility API for seamless resource allocation and microplanning.

Service Dependencies

  • Boundary service

  • Plan service

  • Workflow service

  • Persister service

Base URL

/census-service

API Specification

Producer Details

Topic

Description

census-create-topic

Creates a census record for the specified boundary.

census-update-topic

Updates a census record.

census-bulk-update-topic

Updates a list of census records.

Consumer Details

Topic

Description

resource-census-create-topic

Triggers census creation after resource estimation

update-plan-facility

Marks the boundaries in census where facility is assigned.

Configurations and Helm Chart Details

  • Configure the role MICROPLAN_ADMIN, ROOT_POPULATION_DATA_APPROVER, POPULATION_DATA_APPROVER, ROOT_FACILITY_CATCHMENT_MAPPER, FACILITY_CATCHMENT_MAPPER for census-service in the ‘ACCESSCONTROL-ROLES’ module.

  • Configure the action id(s) with the corresponding role code ‘ACCESSCONTROL-ROLEACTIONS’ module.

  • For Census Service Role-Action mappings are as follows in the Dev environment.

API EndPoints
Roles

/census-service/_create

MICROPLAN_ADMIN

/census-service/_search

ROOT_POPULATION_DATA_APPROVER, POPULATION_DATA_APPROVER, ROOT_FACILITY_CATCHMENT_MAPPER, FACILITY_CATCHMENT_MAPPER

/census-service/_update

ROOT_POPULATION_DATA_APPROVER, POPULATION_DATA_APPROVER, ROOT_FACILITY_CATCHMENT_MAPPER, FACILITY_CATCHMENT_MAPPER

/census-service/bulk/_update

ROOT_POPULATION_DATA_APPROVER, POPULATION_DATA_APPROVER, ROOT_FACILITY_CATCHMENT_MAPPER, FACILITY_CATCHMENT_MAPPER

Environment Variable Details

Below are the variables that should be configured before deployment of the census service build image:

  • Add these ‘db-host’, ’db-name’, ’db-url’, ’domain’ and all the digit core platform services configurations (persister, boundary, etc.) in the respective environments.

MDMS Details

NA

Reference Docs

Title

Link

Persister Technical Document

Boundary Service Documentation

Plan Service Documentation

API Contract

Postman Collection

PreviousResource Generator ServiceNextInstallation

Last updated 5 months ago

Was this helpful?

Persister config:

Helm chart details:

Add census service-related environment variables’ value like the way it is done in the and (search for census-service).

Make sure to add the DB (Postgres and flyway) username and password in the respective environment secret yaml file the way it is done.

Make sure to add the DIGIT core services-related secrets that are configured in the respective environment secret file the way it is done.

Localisation details .

Census Service Swagger Link
Postman Collection Link
Sequence and DB Diagrams
https://github.com/egovernments/configs/blob/UNIFIED-UAT/health/egov-persister/census-service-persister.yml
https://github.com/egovernments/DIGIT-DevOps/tree/unified-env/deploy-as-code/helm/charts/health-services/census-service
unified-uat environment yaml file
unified-health-uat environment file
here
here
here
Persister service
Boundary Service
Plan Service
API Contract
Postman Collection