diff --git a/health-services/resource-generator/src/main/java/org/egov/processor/service/ExcelParser.java b/health-services/resource-generator/src/main/java/org/egov/processor/service/ExcelParser.java index a78fc84cb4..b0b53ab98a 100644 --- a/health-services/resource-generator/src/main/java/org/egov/processor/service/ExcelParser.java +++ b/health-services/resource-generator/src/main/java/org/egov/processor/service/ExcelParser.java @@ -311,7 +311,6 @@ private List getBoundaryCodeList(PlanConfigurationRequest planConfigurat * @param planConfig The configuration details specific to the plan. * @return A map of attribute names to their corresponding indices or data types. */ - private Map prepareAttributeVsIndexMap(PlanConfigurationRequest planConfigurationRequest, String fileStoreId, CampaignResponse campaign, PlanConfiguration planConfig, Object mdmsData) { org.egov.processor.web.models.File file = planConfig.getFiles().stream() diff --git a/health-services/resource-generator/src/main/java/org/egov/processor/util/MdmsUtil.java b/health-services/resource-generator/src/main/java/org/egov/processor/util/MdmsUtil.java index 5f1ccfb561..ae85cfdd7c 100644 --- a/health-services/resource-generator/src/main/java/org/egov/processor/util/MdmsUtil.java +++ b/health-services/resource-generator/src/main/java/org/egov/processor/util/MdmsUtil.java @@ -143,11 +143,14 @@ public Map filterMasterData(String masterDataJson, String campai for (Map schema : adminSchema) { String campaign = (String) schema.get(ServiceConstants.MDMS_CAMPAIGN_TYPE); + // Check if the schema's title matches the required template identifier + // and the campaign matches the specified campaign type. if (schema.get(ServiceConstants.MDMS_SCHEMA_TITLE).equals(ServiceConstants.FILE_TEMPLATE_IDENTIFIER_BOUNDARY) && campaign.equals(MICROPLAN_PREFIX + campaignType)) { Map> schemaProperties = (Map>) schema.get("properties"); schemaProperties.forEach((propertyType, propertyList) -> + // For each property in the property list, extract its name and add it to the map with the property. propertyList.forEach(property -> { String propertyName = (String) parsingUtil.extractFieldsFromJsonObject(property, "name"); properties.put(propertyName, property);