The Process Quality Management (PQM) service will help users to create, update, and search for process quality monitoring tests. The service will evaluate the uploaded test values against benchmarks and produce result (FAIL/PASS) status. Test results will be further processed for anomaly analysis. The service can perform two types of test: Manual Test (Lab), and Automatic Test (IoT-based).
The service enables mapping plant codes to operators and ULB admins, ensuring that each is only authorised to manage plants linked to their account, enhancing control and accountability. In the mapping process need to check below mention things
PlantCode
: Unique plant code which is configured in the mdms
PlantUserType
: User type will be either plant-operation or the ulb-admin
PlantUserUuid
: Unique user id of the employee which have the type of ulb-admin or the plant-operator.
List of services that PQM service depends on:
Localisation
The following masters need to be created as part of this module:
Plant
PlantType
PlantConfig
Process
ProcessType
ProcessSubType
Stage
Material
Parameter
Unit
BenchmarkRule
TestingStandard
QualityCriteria
Device
DeviceDetails
DeviceConfig
PQM- Api collection
Plant User Mapping- Api collection
Create New
Update - new
Search
Description | Topic Name |
---|---|
Save Test on creation
save-test-application
Update Test
update-test-application
Update Test Workflow
update-workflow-test-application
Save test topic for Inbox
save-test-event-application
Update test topic for Inbox
update-test-event-application
Anomaly topic for when a test fails
create-pqm-anomaly-finder
Anomaly topic for when a test result has not been submitted
testResultNotSubmitted-anomaly-topic
Creation of plant-user mapping
save-plant-user-mapping
Updation of plant-user mapping
update-plant-user-mapping
Title
Link
Workflow Technical Document
User Technical Document
MDMS Technical Document
IDGen Technical Document
Localisation Technical Document
Persister Technical Document
Link
pqm-service/v1/_create
pqm-service/v1/_update
/pqm-service/v1/_search
/pqm-service/v1/_create Adhoc
/pqm-anomaly-finder/v1/_plainsearch
/pqm-service/plant/user/v1/_create
/pqm-service/plant/user/v1/_update
/pqm-service/plant/user/v1/_search
/inbox/v2/_search
PQM Service
PQM Anomaly Finder
PQM Scheduler
This pqm scheduler is a cronjob scheduler for scheduling tests. It runs based on environment configuration. It triggers multiple the schedule API from PQM-Service to generate the Tests on the basis of Test Standards present in MDMS.
MDMS
User
PQM-Service
It creates tests based on MDMS Test Standards using pqm-service /v1/_scheduler API.
Create Lab Test (CronJob)
Here are the articles in this section:
Process Quality Management (PQM) is a service that will be responsible for Treatment Quality Monitoring. It will improve the quality of processes, such as waste treatment process, water treatment process, etc. We are building these services on top of the existing building blocks of DIGIT.
To develop a new service, one needs to create a micro-service and make it available through the API gateway. The API gateway calls the User Service for authentication and the Access Service for authorisation.
Implementation users and service developers can configure the roles and map the roles, actions, plants, treatment process, stages, and testing standards will be created using the Master Data Management Service.
Citizen Dashboard: The service user interface can be developed as part of the Citizen Dashboard or can be an independent solution. The citizen can log in using a mobile number and OTP. They can apply for a new service using the service UI. The File Store Service allows users to upload relevant documentation.
The Persister Service stores the submitted application asynchronously into the registry. The PII data is encrypted using the Encryption Service before storing. All changes are digitally signed and logged using the Signed Audit Service (ongoing). The Indexer Service transforms and enriches the application data. The Indexer Service also strips the PII data and sends it to the Analytics Data Store(ElasticSearch).
The Dashboard Backend Service executes configured queries on the stripped data and makes the aggregated data available to the Dashboard Frontend for the administrator or employee view. The views are in accordance with the user role access which is also configurable.
The Employee Service allows employee registrations and enables them to log in using the employee dashboard. The dashboard displays the list of pending applications as per the employee's role. The employee can perform actions on these applications using the employee UI for the service. As the status changes or actions are taken on the applications, the relevant SMS and Email Notification Service sends the updates to the plant operator and lab collectors. Once the test is completed, the lab/urban local body (ULB) employee can upload and download the test results submitted.
DIGIT has multi-tenant configuration capabilities. The Location Service allows the configuration of the tenant hierarchy and maps multiple tenants like country, state, district, or state, department, and sub-department. Each tenant can have their own configurations for service, roles, workflows etc. This allows for variations across different agencies in tune with the local context. The Language Service facilitates the support of multiple languages in DIGIT. This service stores the translations in multiple languages.
The PQM Service schedules and manages recurring test to evaluate the quality of a process. This can read sensor devices if assigned for a process stage. It can update the treatment quality workflow status based on the results submitted manually or collected through IoT devices. Provides APIs for creating ad-hoc tests, update results, search for results, and anomalies identified.
The PQM Anomaly Finder service finds anomalies in the process quality and raises notifications/alerts based on the defined anomaly check configurations.
The Process Quality Management (PQM) anomaly finder service helps in monitoring anomalies in process quality and notifies the concerned user groups.
The following masters need to be created as part of this module:
Plant
PlantConfig
List of services that PQM service depends on:
User-event service api will get the notification for the anomaly .
Deploy the latest build if the service is not there in the environment “egov-user-event-db:v1.2.0-32caf0d992-25” .
Add the changes which are required . For this kindly refer the below pr.
Path: deploy-as-code/helm/charts/core-services/egov-user-event/Chart.yaml
File: Refer the pr for the changes
Note: For the test not submitted notification, the notification will only be sent when the frequency of a test standard is greater than the manualTestPendingEscalationDays from Plant Config Master
Alert notification format needs to add in localisation.
Link to collection
Find Anomaly
Event (In-App) Notification
persist-user-events-async
Anomaly topic for when a test fails
save-pqm-test-anomaly-details
Anomaly topic for when test result not submitted
testResultNotSubmitted-anomaly-topic
Save anomaly topic
create-pqm-anomaly-finder
Title
Link
User Technical Document
MDMS Technical Document
Localisation Technical Document
Persister Technical Document
API Contract
Postman Collection
Link
pqm-anomaly-finder/v1/_search
pqm-anomaly-finder/v1/_plainsearch