IRS Console Support
For IRS to be displayed as the campaign type , initially it needs to added in the MDMS.
Master name: projectTypes
Module name: "HCM-PROJECT-TYPES"
https://github.com/egovernments/egov-mdms-data/blob/UNIFIED-DEV/data/mz/health/project-types.json
Changes in delivery details:
The delivery configuration in the MDMS needs to be updated. The desired properties will show the attributes, operator, and value.
For the IRS campaign type, the number of cycles and the number of deliveries will not be editable.
To make the cycle and deliveries not editable, we need to pass one flag in the delivery configuration.
The delivery conditions page will be shown like this in which values will come from the MDMS.
Master name: HOUSE_STRUCTURE_TYPES
Module name: HCM
For the target templates to be generated dynamically, data needs to be added in the adminSchema.
"schemaCode": "HCM-ADMIN-CONSOLE.adminSchema"
IRS adminSchema data
{
"title": "boundary",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"numberProperties": [
{
"name": "HCM_ADMIN_CONSOLE_TARGET_IRS_1",
"type": "number",
"isRequired": true,
"description": "Target at the Selected Boundary Level",
"orderNumber": 2
},
{
"name": "HCM_ADMIN_CONSOLE_TARGET_IRS_2",
"type": "number",
"isRequired": true,
"description": "Target at the Selected Boundary Level",
"orderNumber": 3
}
],
"stringProperties": [
{
"name": "HCM_ADMIN_CONSOLE_BOUNDARY_CODE",
"type": "string",
"isRequired": true,
"description": "Boundary Code",
"orderNumber": 1,
"freezeColumn": true
}
]
},
"campaignType": "IRS-mz"
},
"isActive": true,
"auditDetails": {
"createdBy": "bfab6822-ec28-40f0-aef1-efd1cda8fcd5",
"lastModifiedBy": "bfab6822-ec28-40f0-aef1-efd1cda8fcd5",
"createdTime": 1722846607391,
"lastModifiedTime": 1722846607391
}
},
{
"id": "87d17bf5-b0dd-4796-a36f-32e466c47569",
"tenantId": "mz",
"schemaCode": "HCM-ADMIN-CONSOLE.adminSchema",
"uniqueIdentifier": "boundaryWithTarget.IRS-mz",
"data": {
"title": "boundaryWithTarget",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"numberProperties": [
{
"name": "HCM_ADMIN_CONSOLE_TARGET_IRS_1",
"type": "number",
"isRequired": true,
"description": "Target at the Selected Boundary Level",
"orderNumber": 2
},
{
"name": "HCM_ADMIN_CONSOLE_TARGET_IRS_2",
"type": "number",
"isRequired": true,
"description": "Target at the Selected Boundary Level",
"orderNumber": 3
}
],
"stringProperties": [
{
"name": "HCM_ADMIN_CONSOLE_BOUNDARY_CODE",
"type": "string",
"isRequired": true,
"description": "Boundary Code",
"orderNumber": 1,
"freezeColumn": true
}
]
},
"campaignType": "IRS-mz"
},
"isActive": true,
"auditDetails": {
"createdBy": "bfab6822-ec28-40f0-aef1-efd1cda8fcd5",
"lastModifiedBy": "bfab6822-ec28-40f0-aef1-efd1cda8fcd5",
"createdTime": 1722846554092,
"lastModifiedTime": 1722846554092
}
}