From f15cc984d22648167b4542f96b6549c4e6b34dcd Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:34:27 +0530 Subject: [PATCH 001/158] adding pqm-persister yaml file --- sanitation/egov-perister/pqm-persister.yaml | 144 ++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 sanitation/egov-perister/pqm-persister.yaml diff --git a/sanitation/egov-perister/pqm-persister.yaml b/sanitation/egov-perister/pqm-persister.yaml new file mode 100644 index 000000000..60e552946 --- /dev/null +++ b/sanitation/egov-perister/pqm-persister.yaml @@ -0,0 +1,144 @@ +serviceMaps: + serviceName: pqm-service + mappings: + - version: 1.0 + description: Persists PQM Test Data in eg_pqm_tests table + fromTopic: save-test-application + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, qualityCriteria, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.plantCode + - jsonPath: $.tests.*.processCode + - jsonPath: $.tests.*.stageCode + - jsonPath: $.tests.*.materialCode + - jsonPath: $.tests.*.deviceCode + - jsonPath: $.tests.*.testType + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.scheduledDate + - jsonPath: $.tests.*.qualityCriteria + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.isActive + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, qualityCriteria, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.plantCode + - jsonPath: $.tests.*.processCode + - jsonPath: $.tests.*.stageCode + - jsonPath: $.tests.*.materialCode + - jsonPath: $.tests.*.deviceCode + - jsonPath: $.tests.*.testType + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.scheduledDate + - jsonPath: $.tests.*.qualityCriteria + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.isActive + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_test_result_documents_auditlog (id, testId, documentUid, documentUri, documentType, filestoreId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + + + - version: 1.0 + description: Update PQM Application details in eg_pqm_tests table + fromTopic: update-test-application + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + + - query: UPDATE eg_pqm_tests SET status = ?, qualityCriteria = ?::jsonb, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.qualityCriteria + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.id + + - version: 1.0 + description: Update PQM Application details in eg_pqm_tests table + fromTopic: update-workflow-test-application + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + + - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, qualityCriteria = ?::jsonb, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.qualityCriteria + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.id From 7dea4d7b13a0c4db7f98001bbe3a9ad4c4d6a7ba Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Thu, 12 Oct 2023 09:52:18 +0530 Subject: [PATCH 002/158] SM-3334 (#2761) --- sanitation/egov-indexer/egov-vehicle.yaml | 36 +++++++++---------- sanitation/egov-indexer/egov-vendor.yaml | 4 +-- .../pdf-service/data-config/fsm-receipt.json | 4 +-- sanitation/reports/config/fsm-reports.yml | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/sanitation/egov-indexer/egov-vehicle.yaml b/sanitation/egov-indexer/egov-vehicle.yaml index 95b6210e7..d1f0f3820 100644 --- a/sanitation/egov-indexer/egov-vehicle.yaml +++ b/sanitation/egov-indexer/egov-vehicle.yaml @@ -20,7 +20,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -46,13 +46,13 @@ ServiceMaps: externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm outJsonPath: $.Data.fsm @@ -60,7 +60,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -71,7 +71,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: FSM masterName: FSTPPlantInfo - tenantId: pb + tenantId: pg filter: "[?(@.ULBS contains $tenant)]" filterMapping: - variable: $tenant @@ -97,13 +97,13 @@ ServiceMaps: externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm outJsonPath: $.Data.fsm @@ -111,7 +111,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -122,7 +122,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: FSM masterName: FSTPPlantInfo - tenantId: pb + tenantId: pg filter: "[?(@.ULBS contains $tenant)]" filterMapping: - variable: $tenant @@ -148,13 +148,13 @@ ServiceMaps: externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm outJsonPath: $.Data.fsm @@ -162,7 +162,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -173,7 +173,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: FSM masterName: FSTPPlantInfo - tenantId: pb + tenantId: pg filter: "[?(@.ULBS contains $tenant)]" filterMapping: - variable: $tenant @@ -199,13 +199,13 @@ ServiceMaps: externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm outJsonPath: $.Data.fsm @@ -213,7 +213,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -224,7 +224,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: FSM masterName: FSTPPlantInfo - tenantId: pb + tenantId: pg filter: "[?(@.ULBS contains $tenant)]" filterMapping: - variable: $tenant @@ -251,7 +251,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant diff --git a/sanitation/egov-indexer/egov-vendor.yaml b/sanitation/egov-indexer/egov-vendor.yaml index ab7a6ddf6..000c3affa 100644 --- a/sanitation/egov-indexer/egov-vendor.yaml +++ b/sanitation/egov-indexer/egov-vendor.yaml @@ -20,7 +20,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -47,7 +47,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant diff --git a/sanitation/pdf-service/data-config/fsm-receipt.json b/sanitation/pdf-service/data-config/fsm-receipt.json index c058e0f5c..7b6f79d50 100644 --- a/sanitation/pdf-service/data-config/fsm-receipt.json +++ b/sanitation/pdf-service/data-config/fsm-receipt.json @@ -559,7 +559,7 @@ "externalAPI": [ { "path": "http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", "apiRequest": null, "responseMapping": [ { @@ -606,7 +606,7 @@ }, { "path": "http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", + "queryParam": "moduleName=tenant&masterName=footer&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", "apiRequest": null, "responseMapping": [ { diff --git a/sanitation/reports/config/fsm-reports.yml b/sanitation/reports/config/fsm-reports.yml index db7ccf837..28aa32c58 100644 --- a/sanitation/reports/config/fsm-reports.yml +++ b/sanitation/reports/config/fsm-reports.yml @@ -132,7 +132,7 @@ ReportDefinitions: keyOrder: name,code tableName: fsm_property_type - entity: $.messages - apiURL: http://egov-localization.egov:8080/localization/messages/v1/_search?locale=en_IN&tenantId=pb&module=rainmaker-fsm&codes=CS_COMMON_FSM_PENDING_DSO_APPROVAL,CS_COMMON_FSM_CREATED,CS_COMMON_FSM_PENDING_APPL_FEE_PAYMENT,CS_COMMON_FSM_ASSING_DSO,CS_COMMON_FSM_DSO_REJECTED,CS_COMMON_FSM_DSO_INPROGRESS,CS_COMMON_FSM_PENDING_DSO_APPROVAL,CS_COMMON_FSM_COMPLETED,CS_COMMON_FSM_REJECTED,CS_COMMON_FSM_CANCELED,CS_COMMON_FSM_CITIZEN_FEEDBACK_PENDING,REPORTS_FSM_PARAM_TENANT,ACTION_TEST_FSM_DAILY_DESLUDING_REPORT,ACTION_TEST_FSM_AREA_WISE_COLLECTION_REPORT,ACTION_TEST_FSM_FSTP_PLANT_WITH_VEHICLE_LOG_REPORT,REPORT_FSM_RESULT_VEHICLEENTRYDATE,REPORT_FSM_RESULT_SLA_COMPLIANCE + apiURL: http://egov-localization.egov:8080/localization/messages/v1/_search?locale=en_IN&tenantId=pg&module=rainmaker-fsm&codes=CS_COMMON_FSM_PENDING_DSO_APPROVAL,CS_COMMON_FSM_CREATED,CS_COMMON_FSM_PENDING_APPL_FEE_PAYMENT,CS_COMMON_FSM_ASSING_DSO,CS_COMMON_FSM_DSO_REJECTED,CS_COMMON_FSM_DSO_INPROGRESS,CS_COMMON_FSM_PENDING_DSO_APPROVAL,CS_COMMON_FSM_COMPLETED,CS_COMMON_FSM_REJECTED,CS_COMMON_FSM_CANCELED,CS_COMMON_FSM_CITIZEN_FEEDBACK_PENDING,REPORTS_FSM_PARAM_TENANT,ACTION_TEST_FSM_DAILY_DESLUDING_REPORT,ACTION_TEST_FSM_AREA_WISE_COLLECTION_REPORT,ACTION_TEST_FSM_FSTP_PLANT_WITH_VEHICLE_LOG_REPORT,REPORT_FSM_RESULT_VEHICLEENTRYDATE,REPORT_FSM_RESULT_SLA_COMPLIANCE keyOrder: message,code tableName: fsm_status_keys sourceColumns: From 107143af86f516837f5ce68b97b59f8718364fce Mon Sep 17 00:00:00 2001 From: Harish-egov Date: Fri, 13 Oct 2023 14:54:40 +0530 Subject: [PATCH 003/158] updated egov-persister folder name --- .../fsm-calculator-persister.yaml | 0 sanitation/{egov-perister => egov-persister}/fsm-persister.yaml | 0 sanitation/{egov-perister => egov-persister}/pqm-persister.yaml | 0 .../{egov-perister => egov-persister}/vehicle-persister.yaml | 0 .../{egov-perister => egov-persister}/vendor-persister.yaml | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename sanitation/{egov-perister => egov-persister}/fsm-calculator-persister.yaml (100%) rename sanitation/{egov-perister => egov-persister}/fsm-persister.yaml (100%) rename sanitation/{egov-perister => egov-persister}/pqm-persister.yaml (100%) rename sanitation/{egov-perister => egov-persister}/vehicle-persister.yaml (100%) rename sanitation/{egov-perister => egov-persister}/vendor-persister.yaml (100%) diff --git a/sanitation/egov-perister/fsm-calculator-persister.yaml b/sanitation/egov-persister/fsm-calculator-persister.yaml similarity index 100% rename from sanitation/egov-perister/fsm-calculator-persister.yaml rename to sanitation/egov-persister/fsm-calculator-persister.yaml diff --git a/sanitation/egov-perister/fsm-persister.yaml b/sanitation/egov-persister/fsm-persister.yaml similarity index 100% rename from sanitation/egov-perister/fsm-persister.yaml rename to sanitation/egov-persister/fsm-persister.yaml diff --git a/sanitation/egov-perister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml similarity index 100% rename from sanitation/egov-perister/pqm-persister.yaml rename to sanitation/egov-persister/pqm-persister.yaml diff --git a/sanitation/egov-perister/vehicle-persister.yaml b/sanitation/egov-persister/vehicle-persister.yaml similarity index 100% rename from sanitation/egov-perister/vehicle-persister.yaml rename to sanitation/egov-persister/vehicle-persister.yaml diff --git a/sanitation/egov-perister/vendor-persister.yaml b/sanitation/egov-persister/vendor-persister.yaml similarity index 100% rename from sanitation/egov-perister/vendor-persister.yaml rename to sanitation/egov-persister/vendor-persister.yaml From 3aaeaa136c558e84a7d5ad6d582441af3b00b747 Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Thu, 19 Oct 2023 18:05:59 +0530 Subject: [PATCH 004/158] adding pqm-anomaly-finder-persister.yaml (#2771) --- .../pqm-anomaly-finder-persister.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 sanitation/egov-persister/pqm-anomaly-finder-persister.yaml diff --git a/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml b/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml new file mode 100644 index 000000000..9921258e6 --- /dev/null +++ b/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml @@ -0,0 +1,45 @@ +serviceMaps: + serviceName: pqm-anomaly-finder + mappings: + - version: 1.0 + description: Persists PQM Test Anomaly Data in eg_pqm_anomaly_details table + fromTopic: save-pqm-test-anomaly-details + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_anomaly_details(id, tenantId, testId, anomalyType, description, referenceId, resolutionStatus, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.pqmAnomalys.* + jsonMaps: + - jsonPath: $.pqmAnomalys.*.id + - jsonPath: $.pqmAnomalys.*.tenantId + - jsonPath: $.pqmAnomalys.*.testId + - jsonPath: $.pqmAnomalys.*.anomalyType + - jsonPath: $.pqmAnomalys.*.description + - jsonPath: $.pqmAnomalys.*.referenceId + - jsonPath: $.pqmAnomalys.*.resolutionStatus + - jsonPath: $.pqmAnomalys.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.pqmAnomalys.*.isActive + - jsonPath: $.pqmAnomalys.*.auditDetails.createdBy + - jsonPath: $.pqmAnomalys.*.auditDetails.lastModifiedBy + - jsonPath: $.pqmAnomalys.*.auditDetails.createdTime + - jsonPath: $.pqmAnomalys.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_anomaly_details_auditlog(id, tenantId, testId, anomalyType, description, referenceId, resolutionStatus, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.pqmAnomalys.* + jsonMaps: + - jsonPath: $.pqmAnomalys.*.id + - jsonPath: $.pqmAnomalys.*.tenantId + - jsonPath: $.pqmAnomalys.*.testId + - jsonPath: $.pqmAnomalys.*.anomalyType + - jsonPath: $.pqmAnomalys.*.description + - jsonPath: $.pqmAnomalys.*.referenceId + - jsonPath: $.pqmAnomalys.*.resolutionStatus + - jsonPath: $.pqmAnomalys.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.pqmAnomalys.*.isActive + - jsonPath: $.pqmAnomalys.*.auditDetails.createdBy + - jsonPath: $.pqmAnomalys.*.auditDetails.lastModifiedBy + - jsonPath: $.pqmAnomalys.*.auditDetails.createdTime + - jsonPath: $.pqmAnomalys.*.auditDetails.lastModifiedTime \ No newline at end of file From 5f15fe94f2ddc8e0b6f54d065525e521491440af Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:56:36 +0530 Subject: [PATCH 005/158] SM-3152 (#2772) --- .../egov-indexer/pqm-service-indexer.yml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 sanitation/egov-indexer/pqm-service-indexer.yml diff --git a/sanitation/egov-indexer/pqm-service-indexer.yml b/sanitation/egov-indexer/pqm-service-indexer.yml new file mode 100644 index 000000000..6a78061ea --- /dev/null +++ b/sanitation/egov-indexer/pqm-service-indexer.yml @@ -0,0 +1,71 @@ +ServiceMaps: + serviceName: pqm-service + version: 1.0.0 + mappings: + - topic: save-test-application + configKey: INDEX + indexes: + - name: pqm-service + type: general + jsonPath: $.tests.* + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: {"Data":{"tests":{}}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data.tests + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pg.citya","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pg.citya" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + mdmsMapping: + - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search + moduleName: tenant + masterName: tenants + tenantId: pg + filter: "[?(@.code == $tenant)]" + filterMapping: + - variable: $tenant + valueJsonpath: $.tenantId + uriResponseMapping: + - inJsonPath: $.MdmsRes.tenant.tenants + outJsonPath: $.Data.tenantData + + - topic: update-test-application + configKey: INDEX + indexes: + - name: pqm-service + type: general + jsonPath: $.tests.* + id: $.id + isBulk: false + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: {"Data":{"tests":{}}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data.tests + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pg.citya","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pg.citya" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + mdmsMapping: + - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search + moduleName: tenant + masterName: tenants + tenantId: pg + filter: "[?(@.code == $tenant)]" + filterMapping: + - variable: $tenant + valueJsonpath: $.tenantId + uriResponseMapping: + - inJsonPath: $.MdmsRes.tenant.tenants + outJsonPath: $.Data.tenantData \ No newline at end of file From ebc8a9c0c26a5f2671f7b904d42b2fbb8719d4c5 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Mon, 23 Oct 2023 17:00:01 +0530 Subject: [PATCH 006/158] persisterchanges --- sanitation/egov-persister/pqm-persister.yaml | 81 ++++++++++++++++---- 1 file changed, 66 insertions(+), 15 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 60e552946..fdd33ad66 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -20,9 +20,6 @@ serviceMaps: - jsonPath: $.tests.*.status - jsonPath: $.tests.*.wfStatus - jsonPath: $.tests.*.scheduledDate - - jsonPath: $.tests.*.qualityCriteria - type: JSON - dbType: JSONB - jsonPath: $.tests.*.additionalDetails type: JSON dbType: JSONB @@ -51,7 +48,21 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.auditDetails.createdTime - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, qualityCriteria, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_test_criteria_results (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + - jsonPath: $.tests.*.testCriteria.*.testId + - jsonPath: $.tests.*.testCriteria.*.criteriaCode + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id @@ -65,9 +76,6 @@ serviceMaps: - jsonPath: $.tests.*.status - jsonPath: $.tests.*.wfStatus - jsonPath: $.tests.*.scheduledDate - - jsonPath: $.tests.*.qualityCriteria - type: JSON - dbType: JSONB - jsonPath: $.tests.*.additionalDetails type: JSON dbType: JSONB @@ -95,6 +103,19 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.auditDetails.createdTime - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + - jsonPath: $.tests.*.testCriteria.*.testId + - jsonPath: $.tests.*.testCriteria.*.criteriaCode + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - version: 1.0 description: Update PQM Application details in eg_pqm_tests table @@ -106,19 +127,35 @@ serviceMaps: jsonMaps: - jsonPath: $.tests.*.id - - query: UPDATE eg_pqm_tests SET status = ?, qualityCriteria = ?::jsonb, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status - - jsonPath: $.tests.*.qualityCriteria - type: JSON - dbType: JSONB + - jsonPath: $.tests.*.wfStatus - jsonPath: $.tests.*.auditDetails.createdBy - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.id + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + + - query: UPDATE eg_pqm_test_criteria_results SET resultValue = ?, resultStatus = ?, isActive = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.testCriteria.*.id + + - version: 1.0 description: Update PQM Application details in eg_pqm_tests table fromTopic: update-workflow-test-application @@ -129,16 +166,30 @@ serviceMaps: jsonMaps: - jsonPath: $.tests.*.id - - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, qualityCriteria = ?::jsonb, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status - jsonPath: $.tests.*.wfStatus - - jsonPath: $.tests.*.qualityCriteria - type: JSON - dbType: JSONB - jsonPath: $.tests.*.auditDetails.createdBy - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.id + + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + + - query: UPDATE eg_pqm_test_criteria_results SET resultValue = ?, resultStatus = ?, isActive = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.testCriteria.*.id \ No newline at end of file From 561dd46d470964ea6ba9e02f1d8e1d815b749b4c Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 25 Oct 2023 11:58:58 +0530 Subject: [PATCH 007/158] persisterchanges --- egov-persister/pqm-persister.yaml | 195 ++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 egov-persister/pqm-persister.yaml diff --git a/egov-persister/pqm-persister.yaml b/egov-persister/pqm-persister.yaml new file mode 100644 index 000000000..fdd33ad66 --- /dev/null +++ b/egov-persister/pqm-persister.yaml @@ -0,0 +1,195 @@ +serviceMaps: + serviceName: pqm-service + mappings: + - version: 1.0 + description: Persists PQM Test Data in eg_pqm_tests table + fromTopic: save-test-application + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, qualityCriteria, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.plantCode + - jsonPath: $.tests.*.processCode + - jsonPath: $.tests.*.stageCode + - jsonPath: $.tests.*.materialCode + - jsonPath: $.tests.*.deviceCode + - jsonPath: $.tests.*.testType + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.scheduledDate + - jsonPath: $.tests.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.isActive + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_test_criteria_results (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + - jsonPath: $.tests.*.testCriteria.*.testId + - jsonPath: $.tests.*.testCriteria.*.criteriaCode + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.plantCode + - jsonPath: $.tests.*.processCode + - jsonPath: $.tests.*.stageCode + - jsonPath: $.tests.*.materialCode + - jsonPath: $.tests.*.deviceCode + - jsonPath: $.tests.*.testType + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.scheduledDate + - jsonPath: $.tests.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.isActive + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_test_result_documents_auditlog (id, testId, documentUid, documentUri, documentType, filestoreId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + - jsonPath: $.tests.*.testCriteria.*.testId + - jsonPath: $.tests.*.testCriteria.*.criteriaCode + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update PQM Application details in eg_pqm_tests table + fromTopic: update-test-application + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.id + + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + + - query: UPDATE eg_pqm_test_criteria_results SET resultValue = ?, resultStatus = ?, isActive = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.testCriteria.*.id + + + - version: 1.0 + description: Update PQM Application details in eg_pqm_tests table + fromTopic: update-workflow-test-application + isTransaction: true + queryMaps: + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.id + + - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.status + - jsonPath: $.tests.*.wfStatus + - jsonPath: $.tests.*.auditDetails.createdBy + - jsonPath: $.tests.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.auditDetails.createdTime + - jsonPath: $.tests.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.id + + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.id + + - query: UPDATE eg_pqm_test_criteria_results SET resultValue = ?, resultStatus = ?, isActive = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.*.testCriteria.* + jsonMaps: + - jsonPath: $.tests.*.testCriteria.*.resultValue + - jsonPath: $.tests.*.testCriteria.*.resultStatus + - jsonPath: $.tests.*.testCriteria.*.isActive + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime + - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.testCriteria.*.id \ No newline at end of file From ba093ddf4784cfab299172807bc0506c4ab42694 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 25 Oct 2023 15:26:03 +0530 Subject: [PATCH 008/158] persisterchanges --- egov-persister/pqm-persister.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egov-persister/pqm-persister.yaml b/egov-persister/pqm-persister.yaml index fdd33ad66..3fd6fd57b 100644 --- a/egov-persister/pqm-persister.yaml +++ b/egov-persister/pqm-persister.yaml @@ -48,7 +48,7 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.auditDetails.createdTime - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_test_criteria_results (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_test_criteria_results (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.*.testCriteria.* jsonMaps: - jsonPath: $.tests.*.testCriteria.*.id From 2e4854e9a7a0ec505366a4c776d070385a8ea058 Mon Sep 17 00:00:00 2001 From: Harish S <119594385+Harish-egov@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:31:23 +0530 Subject: [PATCH 009/158] Update pqm-persister.yaml --- sanitation/egov-persister/pqm-persister.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index fdd33ad66..ce5f18989 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -48,7 +48,7 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.auditDetails.createdTime - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_test_criteria_results (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_test_criteria_results (id, testId, criteriaCode, resultValue, resultStatus, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.*.testCriteria.* jsonMaps: - jsonPath: $.tests.*.testCriteria.*.id @@ -192,4 +192,4 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - - jsonPath: $.tests.*.testCriteria.*.id \ No newline at end of file + - jsonPath: $.tests.*.testCriteria.*.id From 5feff39b8b7f034c1623f59a238a40f1c4090449 Mon Sep 17 00:00:00 2001 From: Harish S <119594385+Harish-egov@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:34:51 +0530 Subject: [PATCH 010/158] Update pqm-persister.yaml --- sanitation/egov-persister/pqm-persister.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index ce5f18989..5e4276e4b 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -127,7 +127,7 @@ serviceMaps: jsonMaps: - jsonPath: $.tests.*.id - - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status From d2224ab5318e0096ae53109dee2fca688123acfa Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:48:49 +0530 Subject: [PATCH 011/158] #SM-3150 Update pqm-persister --- egov-persister/pqm-persister.yaml | 50 ++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/egov-persister/pqm-persister.yaml b/egov-persister/pqm-persister.yaml index 3fd6fd57b..0c4aa9561 100644 --- a/egov-persister/pqm-persister.yaml +++ b/egov-persister/pqm-persister.yaml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, qualityCriteria, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id @@ -61,8 +61,8 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id @@ -127,7 +127,7 @@ serviceMaps: jsonMaps: - jsonPath: $.tests.*.id - - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status @@ -138,6 +138,42 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.id + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_pqm_test_result_documents_auditlog (id, testId, documentUid, documentUri, documentType, filestoreId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? basePath: $.tests.*.testCriteria.* jsonMaps: @@ -154,8 +190,8 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.testCriteria.*.id - - + + - version: 1.0 description: Update PQM Application details in eg_pqm_tests table fromTopic: update-workflow-test-application @@ -192,4 +228,4 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - - jsonPath: $.tests.*.testCriteria.*.id \ No newline at end of file + - jsonPath: $.tests.*.testCriteria.*.id From 14d73c543b737746e627040a1f64f948ce9cb6bc Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Wed, 25 Oct 2023 17:52:24 +0530 Subject: [PATCH 012/158] Added update mdms-persister changes --- egov-persister/mdms-persister.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/egov-persister/mdms-persister.yml b/egov-persister/mdms-persister.yml index ab6b7b557..688fcaf77 100644 --- a/egov-persister/mdms-persister.yml +++ b/egov-persister/mdms-persister.yml @@ -61,3 +61,22 @@ serviceMaps: - jsonPath: $.Mdms.auditDetails.createdTime - jsonPath: $.Mdms.auditDetails.lastModifiedTime + - version: 1.0 + description: Updates the mdms data + fromTopic: update-mdms-data + isTransaction: true + queryMaps: + - query: UPDATE eg_mdms_data SET data = ?, isActive = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.Mdms + jsonMaps: + - jsonPath: $.Mdms.data + type: JSON + dbType: JSONB + + - jsonPath: $.Mdms.isActive + + - jsonPath: $.Mdms.auditDetails.lastModifiedBy + + - jsonPath: $.Mdms.auditDetails.lastModifiedTime + + - jsonPath: $.Mdms.id \ No newline at end of file From ce3440faf04637769560977e0691526268e29b88 Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Wed, 25 Oct 2023 17:56:01 +0530 Subject: [PATCH 013/158] Added update mdms-persister changes --- egov-persister/mdms-persister.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/egov-persister/mdms-persister.yml b/egov-persister/mdms-persister.yml index 688fcaf77..bf58168e2 100644 --- a/egov-persister/mdms-persister.yml +++ b/egov-persister/mdms-persister.yml @@ -61,6 +61,7 @@ serviceMaps: - jsonPath: $.Mdms.auditDetails.createdTime - jsonPath: $.Mdms.auditDetails.lastModifiedTime + - version: 1.0 description: Updates the mdms data fromTopic: update-mdms-data From 5bc30418054ccb8cddbe6caa7ff982367dad6ba8 Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Wed, 25 Oct 2023 18:17:22 +0530 Subject: [PATCH 014/158] Added update mdms-persister changes --- egov-persister/mdms-persister.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/egov-persister/mdms-persister.yml b/egov-persister/mdms-persister.yml index bf58168e2..d6a7fc768 100644 --- a/egov-persister/mdms-persister.yml +++ b/egov-persister/mdms-persister.yml @@ -36,6 +36,12 @@ serviceMaps: description: Persists the mdms data fromTopic: save-mdms-data isTransaction: true + isAuditEnabled: true + module: MDMS + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.uniqueIdentifier + auditAttributeBasePath: $.Mdms queryMaps: - query: INSERT INTO eg_mdms_data (id, tenantid, uniqueidentifier, schemacode, data, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Mdms @@ -61,11 +67,17 @@ serviceMaps: - jsonPath: $.Mdms.auditDetails.createdTime - jsonPath: $.Mdms.auditDetails.lastModifiedTime - + - version: 1.0 description: Updates the mdms data fromTopic: update-mdms-data isTransaction: true + isAuditEnabled: true + module: MDMS + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.uniqueIdentifier + auditAttributeBasePath: $.Mdms queryMaps: - query: UPDATE eg_mdms_data SET data = ?, isActive = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.Mdms From b63647aff59b316c1f90853c1f61c4e40b0e2062 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Fri, 27 Oct 2023 15:00:24 +0530 Subject: [PATCH 015/158] SM-3154 --- sanitation/egov-persister/pqm-persister.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 5e4276e4b..70cb0bac7 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, qualityCriteria, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id @@ -62,7 +62,7 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id From 262929d359a76242bb741da8f9bfe036405c6a25 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Fri, 27 Oct 2023 15:12:19 +0530 Subject: [PATCH 016/158] SM-3154 --- sanitation/egov-persister/pqm-persister.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 70cb0bac7..e51d0c53f 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id From 0013c1ef8083cc4629988ef3c747ae493b1c7f67 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 31 Oct 2023 16:22:22 +0530 Subject: [PATCH 017/158] SM-3358 --- sanitation/egov-indexer/egov-pqm-service.yml | 136 +++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 sanitation/egov-indexer/egov-pqm-service.yml diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml new file mode 100644 index 000000000..f5bc3f0a6 --- /dev/null +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -0,0 +1,136 @@ +ServiceMaps: + serviceName: pqm-service inbox + version: 1.0.0 + mappings: + - topic: save-test-event-application + configKey: INDEX + indexes: + - name: pqm-application + type: pqmInboxApplication + id: $.id + jsonPath: $.tests.* + timeStampField: $.auditDetails.createdTime + isBulk: true + customJsonMapping: + indexMapping: { "Data": { "id": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","testType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.plantCode + outJsonPath: $.Data.plantCode + - inJsonPath: $.processCode + outJsonPath: $.Data.processCode + - inJsonPath: $.stageCode + outJsonPath: $.Data.stageCode + - inJsonPath: $.materialCode + outJsonPath: $.Data.materialCode + - inJsonPath: $.testType + outJsonPath: $.Data.testType + - inJsonPath: $.scheduledDate + outJsonPath: $.Data.scheduledDate + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance + + - topic: update-test-event-application + configKey: INDEX + indexes: + - name: pqm-application + type: pqmInboxApplication + id: $.id + jsonPath: $.tests.* + timeStampField: $.auditDetails.createdTime + isBulk: true + customJsonMapping: + indexMapping: { "Data": { "id": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","testType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.plantCode + outJsonPath: $.Data.plantCode + - inJsonPath: $.processCode + outJsonPath: $.Data.processCode + - inJsonPath: $.stageCode + outJsonPath: $.Data.stageCode + - inJsonPath: $.materialCode + outJsonPath: $.Data.materialCode + - inJsonPath: $.testType + outJsonPath: $.Data.testType + - inJsonPath: $.scheduledDate + outJsonPath: $.Data.scheduledDate + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstancee + + + - topic: inbox-pqm-events-legacyindex + configKey: LEGACYINDEX + indexes: + - name: pqm-application + type: pqmInboxApplication + id: $.id + jsonPath: $.tests.* + timeStampField: $.auditDetails.createdTime + isBulk: true + customJsonMapping: + indexMapping: { "Data": { "id": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","testType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.plantCode + outJsonPath: $.Data.plantCode + - inJsonPath: $.processCode + outJsonPath: $.Data.processCode + - inJsonPath: $.stageCode + outJsonPath: $.Data.stageCode + - inJsonPath: $.materialCode + outJsonPath: $.Data.materialCode + - inJsonPath: $.testType + outJsonPath: $.Data.testType + - inJsonPath: $.scheduledDate + outJsonPath: $.Data.scheduledDate + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance \ No newline at end of file From f070ed95b30a0d43216942e9e24df7d6b1fa7815 Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:49:47 +0530 Subject: [PATCH 018/158] SM-3179 (#2793) --- .../pqm-anomaly-finder-indexer.yml | 18 ++++++++++ sanitation/egov-persister/pqm-persister.yaml | 34 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml diff --git a/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml b/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml new file mode 100644 index 000000000..b30433ff7 --- /dev/null +++ b/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml @@ -0,0 +1,18 @@ +ServiceMaps: + serviceName: pqm-anomaly-finder + version: 1.0.0 + mappings: + - topic: save-pqm-test-anomaly-details + configKey: INDEX + indexes: + - name: pqm-anomaly-finder + type: general + jsonPath: $.pqmAnomalys.* + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: {"Data":{"pqmAnomalys":{}}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data.pqmAnomalys \ No newline at end of file diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index e51d0c53f..b8f189f69 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -137,6 +137,40 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.id + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + - query: INSERT INTO eg_pqm_test_result_documents_auditlog (id, testId, documentUid, documentUri, documentType, filestoreId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? basePath: $.tests.*.testCriteria.* From 0fe121244699b3c56d41bf4bf81cb79a549db5f1 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 9 Nov 2023 12:50:42 +0530 Subject: [PATCH 019/158] SM-3155 --- sanitation/egov-indexer/egov-pqm-service.yml | 38 ++++++++++---------- sanitation/egov-persister/pqm-persister.yaml | 24 +++++++------ 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index f5bc3f0a6..9dc9c14ce 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -7,15 +7,15 @@ ServiceMaps: indexes: - name: pqm-application type: pqmInboxApplication - id: $.id jsonPath: $.tests.* + id: $.id timeStampField: $.auditDetails.createdTime isBulk: true customJsonMapping: - indexMapping: { "Data": { "id": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","testType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id + - inJsonPath: $.testId + outJsonPath: $.Data.testId - inJsonPath: $.tenantId outJsonPath: $.Data.tenantId - inJsonPath: $.status @@ -31,7 +31,7 @@ ServiceMaps: - inJsonPath: $.materialCode outJsonPath: $.Data.materialCode - inJsonPath: $.testType - outJsonPath: $.Data.testType + outJsonPath: $.Data.sourceType - inJsonPath: $.scheduledDate outJsonPath: $.Data.scheduledDate - inJsonPath: $.@timestamp @@ -40,7 +40,7 @@ ServiceMaps: outJsonPath: $.Data.auditDetails externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances[0] @@ -51,15 +51,15 @@ ServiceMaps: indexes: - name: pqm-application type: pqmInboxApplication - id: $.id jsonPath: $.tests.* + id: $.id timeStampField: $.auditDetails.createdTime isBulk: true customJsonMapping: - indexMapping: { "Data": { "id": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","testType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id + - inJsonPath: $.testId + outJsonPath: $.Data.testId - inJsonPath: $.tenantId outJsonPath: $.Data.tenantId - inJsonPath: $.status @@ -75,7 +75,7 @@ ServiceMaps: - inJsonPath: $.materialCode outJsonPath: $.Data.materialCode - inJsonPath: $.testType - outJsonPath: $.Data.testType + outJsonPath: $.Data.sourceType - inJsonPath: $.scheduledDate outJsonPath: $.Data.scheduledDate - inJsonPath: $.@timestamp @@ -84,11 +84,11 @@ ServiceMaps: outJsonPath: $.Data.auditDetails externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances[0] - outJsonPath: $.Data.currentProcessInstancee + outJsonPath: $.Data.currentProcessInstance - topic: inbox-pqm-events-legacyindex @@ -96,15 +96,15 @@ ServiceMaps: indexes: - name: pqm-application type: pqmInboxApplication - id: $.id jsonPath: $.tests.* + id: $.id timeStampField: $.auditDetails.createdTime isBulk: true customJsonMapping: - indexMapping: { "Data": { "id": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","testType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: - - inJsonPath: $.id - outJsonPath: $.Data.id + - inJsonPath: $.testId + outJsonPath: $.Data.testId - inJsonPath: $.tenantId outJsonPath: $.Data.tenantId - inJsonPath: $.status @@ -120,7 +120,7 @@ ServiceMaps: - inJsonPath: $.materialCode outJsonPath: $.Data.materialCode - inJsonPath: $.testType - outJsonPath: $.Data.testType + outJsonPath: $.Data.sourceType - inJsonPath: $.scheduledDate outJsonPath: $.Data.scheduledDate - inJsonPath: $.@timestamp @@ -129,7 +129,7 @@ ServiceMaps: outJsonPath: $.Data.auditDetails externalUriMapping: - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.id,history=true,tenantId=$.tenantId + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances[0] diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index b8f189f69..ad3588a44 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -6,11 +6,13 @@ serviceMaps: fromTopic: save-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests(id,testId, tenantId, testCode, plantCode, processCode, stageCode, materialCode, deviceCode, sourceType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.testCode - jsonPath: $.tests.*.plantCode - jsonPath: $.tests.*.processCode - jsonPath: $.tests.*.stageCode @@ -62,11 +64,13 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests_auditlog (id, testId, tenantId, testCode, plantCode, processCode, stageCode, materialCode, deviceCode, sourceType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.testCode - jsonPath: $.tests.*.plantCode - jsonPath: $.tests.*.processCode - jsonPath: $.tests.*.stageCode @@ -122,12 +126,12 @@ serviceMaps: fromTopic: update-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE testId = ? basePath: $.tests.* jsonMaps: - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE testId = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status @@ -136,7 +140,7 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.*.documents.* jsonMaps: @@ -195,12 +199,12 @@ serviceMaps: fromTopic: update-workflow-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE testId = ? basePath: $.tests.* jsonMaps: - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE testId = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status @@ -209,7 +213,7 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? basePath: $.tests.*.testCriteria.* From 5215de4b7bb310703d54f5ba9bf592cb5ca1ae6d Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Thu, 16 Nov 2023 12:24:39 +0530 Subject: [PATCH 020/158] updated the contract persister changes --- .../contract-service-persister.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/works/egov-persister/contract-service-persister.yml b/works/egov-persister/contract-service-persister.yml index f13cb8653..c8b028798 100644 --- a/works/egov-persister/contract-service-persister.yml +++ b/works/egov-persister/contract-service-persister.yml @@ -13,13 +13,21 @@ serviceMaps: transactionCodeJsonPath: $.contractNumber auditAttributeBasePath: $.contract queryMaps: - - query: INSERT INTO eg_wms_contract (id, contract_number, tenant_id , wf_status, executing_authority, contract_type, total_contracted_amount, security_deposit, agreement_date, defect_liability_period, org_id, start_date, end_date, status, additional_details, created_by, last_modified_by, created_time, last_modified_time,completion_period) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO eg_wms_contract (id, contract_number, supplement_number, version_number, old_uuid, business_service, tenant_id , wf_status, executing_authority, contract_type, total_contracted_amount, security_deposit, agreement_date, defect_liability_period, org_id, start_date, end_date, status, additional_details, created_by, last_modified_by, created_time, last_modified_time,completion_period) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.contract jsonMaps: - jsonPath: $.contract.id - jsonPath: $.contract.contractNumber + - jsonPath: $.contract.supplementNumber + + - jsonPath: $.contract.versionNumber + + - jsonPath: $.contract.oldUuid + + - jsonPath: $.contract.businessService + - jsonPath: $.contract.tenantId - jsonPath: $.contract.wfStatus @@ -86,7 +94,7 @@ serviceMaps: - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedTime - - query: INSERT INTO eg_wms_contract_line_items (id, estimate_id, estimate_line_item_id, contract_id, tenant_id, unit_rate, no_of_unit, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO eg_wms_contract_line_items (id, estimate_id, estimate_line_item_id, contract_line_item_ref, contract_id, tenant_id, unit_rate, no_of_unit, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.contract.lineItems.* jsonMaps: - jsonPath: $.contract.lineItems.*.id @@ -95,6 +103,8 @@ serviceMaps: - jsonPath: $.contract.lineItems.*.estimateLineItemId + - jsonPath: $.contract.lineItems.*.contractLineItemRef + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].id - jsonPath: $.contract.lineItems.*.tenantId @@ -237,7 +247,7 @@ serviceMaps: - jsonPath: $.contract.documents.*.status - - query: INSERT INTO eg_wms_contract_line_items (id, estimate_id, estimate_line_item_id, contract_id, tenant_id, unit_rate, no_of_unit, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET unit_rate = ?, no_of_unit = ?, status = ?, additional_details = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO eg_wms_contract_line_items (id, estimate_id, estimate_line_item_id, contract_line_item_ref, contract_id, tenant_id, unit_rate, no_of_unit, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET unit_rate = ?, no_of_unit = ?, status = ?, additional_details = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.contract.lineItems.* jsonMaps: - jsonPath: $.contract.lineItems.*.id @@ -246,6 +256,8 @@ serviceMaps: - jsonPath: $.contract.lineItems.*.estimateLineItemId + - jsonPath: $.contract.lineItems.*.contractLineItemRef + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].id - jsonPath: $.contract.lineItems.*.tenantId From 27f4746cf42124d1f66284910bb69e7411d45ded Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 16 Nov 2023 16:20:39 +0530 Subject: [PATCH 021/158] SM-3373 --- .../dashboard-analytics/ChartApiConfig.json | 30219 +++++++++++++--- 1 file changed, 25461 insertions(+), 4758 deletions(-) diff --git a/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json b/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json index 8a3af3fa7..2c487b5fd 100644 --- a/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json +++ b/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json @@ -1,377 +1,433 @@ { - "wardDrillDown": { - "kind": "drillDown", - "chartName": "Ward", + "todaysCollectionv2": { + "chartName": "DSS_TODAYS_COLLECTION", "queries": [ { "module": "PT", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.usageCategory.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.bill.billDetails.businessService.keyword\":\"PT\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "TL", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{ \"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"tenant\"}},{ \"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Receipt Number \":{ \"terms\":{ \"field\":\"dataObject.paymentDetails.receiptNumber.keyword\", \"size\":200 },\"aggs\":{ \"ULB\":{\"terms\":{\"field\":\"domainObject.tenantId.keyword\", \"size\":200},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\"},\"aggs\":{\"Amount Collected\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Consumer Code\":{\"terms\":{\"field\":\"domainObject.propertyId.keyword\",\"size\":200}},\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200}}}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.bill.billDetails.businessService.keyword\":\"TL\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], - "filterKeys": [], - "chartType": "table", - "valueType": "number", + "chartType": "metric", + "valueType": "Amount", "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Receipt Number", "aggregationPaths": [ - "Receipt Number", - "ULB", - "Ward", - "Amount Collected", - "Payment Mode", - "Consumer Code", - "Usage Type" - ], - "pathDataTypeMapping": [ - { - "Receipt Number": "string" - }, - { - "ULB": "string" - }, - { - "Ward": "string" - }, - { - "Amount Collected": "amount" - }, - { - "Payment Mode": "string" - }, - { - "Consumer Code": "string" - }, - { - "Usage Type": "string" - } + "Todays Collection" ], "insight": { + "chartResponseMap": "totalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, - "_comment": "" + "_comment": " " }, - "eventDurationGraph": { - "chartName": "DSS_EVENT_DURATION_GRAPH", + "licenseByLicenseTypev2": { + "chartName": "DSS_TL_LICENSE_BY_TYPE", "queries": [ { - "module": "PGR", - "dateRefField": "Data.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.service.tenantId.keyword\"}", - "indexName": "pgr-services", - "aggrQuery":"{\"aggs\":{\"Event Average Turn Around Time\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"average_time\":{\"avg\":{\"script\":{\"source\":\"(doc['Data.service.auditDetails.lastModifiedTime'].value - doc['Data.service.auditDetails.createdTime'].value)/(3600*1000)\"}}}}}}}" + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Licens Issued\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], - "chartType": "line", + "chartType": "pie", "valueType": "number", "action": "", - "drillChart": "none", "documentType": "_doc", + "drillChart": "none", "aggregationPaths": [ - "Event Average Turn Around Time" + "License Instrument Type" ], - "isCumulative": true, - "interval": "month", - "insight": { - }, - "_comment": " " + "insight": {}, + "_comment": " License Application which are issued by License Type" }, - "_comment": "dss-collectionindex new queries ", - - "_comment" : "DSS-OVERVIEW-REVENUE", - - "todaysCollection": { - "chartName": "DSS_TOTAL_COLLECTION", + "licenseIssuedDDRRevenuev2": { + "chartName": "DSS_TL_KEY_FY_INDICATORS", "queries": [ { - "module": "PT", - "dateRefField": "", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}" }, { - "module": "TL", + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", "dateRefField": "", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" - }, + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ { - "module": "OBPS", - "indexName": "dss-collection_v2", - "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"range\": { \"dataObject.paymentDetails.receiptDate\": { \"gte\": \"now-24h\", \"lte\": \"now\" } } }, { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pb.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Total Collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } }", - "requestQueryMap":"{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "" - }, + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "licenseIssuedBoundaryRevenuev2", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Total Licence Issued", + "Target Collection" + ], + "pathDataTypeMapping": [ { - "module": "FIRENOC", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "" + "Total Collection": "amount" }, { - "module": "W&S", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-1d\/d\",\"lte\":\"now\"}}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "" + "Transactions": "number" }, { - "module": "MCOLLECT", - "dateRefField": "", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}],\"must\":[{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-1d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "Total Licence Issued": "number" }, { - "module": "BND", - "dateRefField": "", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-1d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "Target Collection": "amount" } ], - "chartType": "metric", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Collection" - ], - "insight": { - - }, - "_comment": " " + "insight": {}, + "_comment": "" }, - - "totalCollection": { - "chartName": "DSS_TOTAL_COLLECTION_OVERVIEW", + "licenseIssuedBoundaryRevenuev2": { + "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", "queries": [ { - "module": "PT", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" - }, - { - "module": "TL", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" }, { - "module": "FSM", - "dateRefField": "Data.payments.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.fsm.tenantId\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" - }, + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "filterKeys": [ { - "module": "OBPS", - "indexName": "dss-collection_v2", - "aggrQuery": " { \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pb.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Total Collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } } ", - "requestQueryMap":"{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate" - }, + "key": "tenantId", + "column": "Boundary" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "licenseIssuedBoundaryDrillDown", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Total Licence Issued", + "Target Collection" + ], + "pathDataTypeMapping": [ { - "module": "FIRENOC", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate" + "Total Collection": "amount" }, { - "module": "W&S", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate" + "Transactions": "number" }, { - "module": "MCOLLECT", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "Total Licence Issued": "number" }, { - "module": "BND", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "Target Collection": "amount" } ], - "chartType": "metric", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Collection" - ], - "insight": { - "chartResponseMap" : "totalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " + "insight": {}, + "_comment": "" }, - - "targetCollection": { - "chartName": "DSS_TARGET_COLLECTION", + "licenseIssuedBoundaryDrillDownv2": { + "chartName": "", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", - "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" } ], - "chartType": "metric", - "valueType": "amount", - "action": "", - "drillChart": "none", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "", "documentType": "_doc", + "action": "", + "plotLabel": "Ward", "aggregationPaths": [ + "Total Collection", + "Transactions", + "Total Licence Issued", "Target Collection" ], - "isDayUnit": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "insight": { - }, - "_comment": " " - }, - - "targetAchieved": { - "chartName": "DSS_TARGET_ACHIEVED_OVERVIEW", - "queries": [ + "pathDataTypeMapping": [ { - "module": "COMMON", - "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", - "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + "Total Collection": "amount" }, { - "module": "PT", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "Transactions": "number" }, { - "module": "TL", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "Total Licence Issued": "number" }, { - "module": "W&S", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate" + "Target Collection": "amount" } ], - "chartType": "metric", - "valueType": "percentage", - "drillChart": "none", + "insight": {}, + "_comment": "" + }, + "licenceTaxHeadsBreakupDDRv2": { + "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandlerA": true, + "chartType": "xtable", + "valueType": "number", + "drillChart": "licenceTaxHeadsBreakupBoundaryv2", "documentType": "_doc", - "action": "percentage", - "preActionTheory":{ - "Actual collection":"repsonseToDifferenceOfDates" - }, + "action": "", + "plotLabel": "DDRs", "aggregationPaths": [ - "Total Collection", - "Actual collection" + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate" ], - "insight": { - "chartResponseMap" : "targetAchieved", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate" + ], + "newField": "Total Amount", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" }, - - "cumulativeCollection": { - "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", + "licenceTaxHeadsBreakupBoundaryv2": { + "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", "queries": [ { - "module": "PT", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [ { - "module": "TL", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "licenceTaxHeadsBreakupWard", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "licenceTaxHeadsBreakupWardv2": { + "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "queries": [ { - "module": "OBPS", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_OC_APP_FEE\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "totalCollectionDeptWisev2": { + "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION:_DEPARTMENT_WISE", + "queries": [ { - "module": "FIRENOC", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Business Service" + ], + "insight": {}, + "_comment": " " + }, + "totalCollectionv2": { + "chartName": "DSS_TOTAL_COLLECTION", + "queries": [ { - "module": "W&S", + "module": "PT", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" }, { - "module": "MCOLLECT", + "module": "TL", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" }, { "module": "FSM", "dateRefField": "Data.payments.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.fsm.tenantId\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"Data.payments.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Collections\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "requestQueryMap": "{\"wardId\" : \"data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "totalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "targetAchievedv2": { + "chartName": "DSS_TARGET_ACHIEVED", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" }, { - "module": "BND", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Collections\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Collection", + "Actual collection" + ], + "insight": { + "chartResponseMap": "targetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "_comment": "dss-collectionindex new queries ", + "cumulativeCollectionv2": { + "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", + "queries": [ + { + "module": "COMMON", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"FSM.TRIP_CHARGES\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "line", @@ -384,12 +440,10 @@ ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - - "topPerformingUlbs": { + "topPerformingUlbsv2": { "chartName": "DSS_PT_TOP_3_PERFORMING_ULBS", "queries": [ { @@ -400,27 +454,12 @@ "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" }, { - "module": "PT", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, - { - "module": "TL", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, - { - "module": "W&S", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate" + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } - ], "chartType": "perform", "valueType": "percentage", @@ -431,46 +470,28 @@ "order": "desc", "limit": 3, "aggregationPaths": [ - "Total Collection","Target Collection" + "Total Collection", + "Target Collection" ], - "preActionTheory":{ - "Target Collection":"repsonseToDifferenceOfDates" - }, - "insight": { - }, + "insight": {}, "_comment": " Top Performing Ulbs for target achieved" }, - - "bottomPerformingUlbs": { + "bottomPerformingUlbsv2": { "chartName": "DSS_PT_BOTTOM_3_PERFORMING_ULBS", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", + "requestQueryMap": "{\"module\" : \"businessService.keyword\",\"tenantId\" : \"tenantIdForMunicipalCorporation\" }", "dateRefField": "", "indexName": "dss-target_v1", "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" }, { - "module": "PT", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, - { - "module": "TL", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, - { - "module": "W&S", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate" + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "perform", @@ -482,5459 +503,26141 @@ "order": "asc", "limit": 3, "aggregationPaths": [ - "Total Collection", "Target Collection" + "Total Collection", + "Target Collection" ], - "preActionTheory":{ - "Target Collection":"repsonseToDifferenceOfDates" - }, - "insight": { - }, + "insight": {}, "_comment": " Bottom Performing Ulbs for target achieved" }, - - "totalCollectionDeptWise": { - "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION:_DEPARTMENT_WISE", + "collectionByUsageTypev2": { + "chartName": "DSS_PT_COLLECTION_BY_USAGE_TYPE", "queries": [ { - "module": "PT", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, - { - "module": "TL", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" - }, - { - "module": "OBPS", - "indexName": "dss-collection_v2", - "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pb.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"OBPS\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } } ", - "requestQueryMap":"{\"wardId\" : \"domainObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate" - }, - { - "module": "FIRENOC", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"FIRENOC\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate" - }, - { - "module": "W&S", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"W&S\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate" - }, - { - "module": "MCOLLECT", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"MCOLLECT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" - }, - { - "module": "FSM", - "dateRefField": "Data.payments.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.fsm.tenantId\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"FSM\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" - }, - { - "module": "BND", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}}]}},\"aggs\":{\"BND\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" - } - - ], - "chartType": "pie", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Business Service", - "OBPS", - "FIRENOC", - "W&S", - "MCOLLECT", - "FSM", - "BND" - ], - "insight": { - }, - "_comment": " " - }, - - "licenseByLicenseType": { - "chartName": "DSS_TL_LICENSE_BY_TYPE", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Trade Type\":{\"terms\":{\"field\":\"domainObject.tradeType.keyword\",\"size\":200},\"aggs\":{\"Amount Paid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200}}}}}}}}" } ], "chartType": "pie", "valueType": "amount", "action": "", "documentType": "_doc", - "drillChart": "licenseByTradeType", - "drillFields": [ - "tradeType", - "" - ], + "drillChart": "none", "aggregationPaths": [ - "Trade Type" + "Usage Type" ], - "insight": { - }, - "_comment": " License Application which are issued by License Type" + "insight": {}, + "_comment": " collection/amount per usage type" }, - "licenseByTradeType": { - "chartName": "DSS_TL_LICENSE_BY_TRADE_TYPE", + "demandCollectionIndexDDRRevenuev2": { + "chartName": "DSS_PT_KEY_FY_INDICATORS", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\", \"tradeType\" : \"domainObject.tradeType.keyword\"}", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"tenant\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Amount Paid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" } ], - "chartType": "pie", - "valueType": "amount", - "action": "", - "documentType": "_doc", + "isMdmsEnabled": true, "filterKeys": [ - {"key": "tradeType", "column": "tradeType"} + { + "key": "tenantId", + "column": "DDRs" + } ], - "drillChart": "none", + "chartType": "table", + "valueType": "number", + "drillChart": "demandCollectionIndexBoundaryRevenuev2", + "action": "", + "plotLabel": "DDRs", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", "aggregationPaths": [ - "Payment Mode" + "Total Collection", + "Transactions", + "Assessed Properties", + "Target Collection" ], - "insight": { - }, - "_comment": " " - }, - - "_comment": "COMMON NON-COLLECTION CHARTS", - "dssTotalApplicationOverview": { - "chartName": "DSS_TOTAL_APPLICATION_OVERVIEW", - "queries": [ - { - "module": "PT", - "indexName": "property-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", - "dateRefField": "Data.@timestamp" - }, - { - "module": "TL", - "indexName": "tlindex-v1", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId.keyword\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}", - "dateRefField": "Data.tradelicense.applicationDate" - }, + "pathDataTypeMapping": [ { - "module": "FSM", - "indexName": "fsm", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.fsm.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}}}}", - "dateRefField": "Data.fsm.@timestamp" + "Total Collection": "amount" }, { - "module": "W&S", - "indexName": "water-services", - "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"REJECTED\",\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", - "dateRefField": "Data.@timestamp" + "Transactions": "number" }, { - "module": "W&S", - "indexName": "sewerage-services", - "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"REJECTED\",\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", - "dateRefField": "Data.@timestamp" + "Assessed Properties": "number" }, { - "module": "FIRENOC", - "indexName": "firenoc-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\", \"district\" : \"Data.tenantData.city.districtCode\"}", - "aggrQuery": "{\"aggs\":{\"FireNOC\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}", - "dateRefField": "Data.auditDetails.createdTime" - }, + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "demandCollectionIndexBoundaryRevenuev2": { + "chartName": "DSS_PT_DEMAND_COLLECTION_BOUNDARY", + "queries": [ { - "module": "OBPS", - "indexName": "bpa-index", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pb.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Application\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } }} ", - "dateRefField": "Data.@timestamp" + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" }, { - "module": "BND", - "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", - "dateRefField": "Data.dateofissue" - }, + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "filterKeys": [ { - "module": "BND", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", - "dateRefField": "Data.dateofissue" + "key": "tenantId", + "column": "Boundary" } ], - "chartType": "metric", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", "valueType": "number", - "action": "", + "drillChart": "boundaryDrillDownv2", + "drillFields": [ + "Ward", + "" + ], "documentType": "_doc", - "drillChart": "none", + "action": "", + "plotLabel": "Boundary", "aggregationPaths": [ - "Total Application" + "Total Collection", + "Transactions", + "Assessed Properties", + "Target Collection" ], - "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " totalApplication is the chartId" - }, - - "dssClosedApplicationOverview": { - "chartName": "DSS_CLOSED_APPLICATION_OVERVIEW", - "queries": [ - { - "module": "PT", - "indexName": "property-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}", - "dateRefField": "Data.@timestamp" - }, - { - "module": "TL", - "indexName": "tlindex-v1", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId.keyword\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}}}", - "dateRefField": "Data.tradelicense.applicationDate" - }, + "pathDataTypeMapping": [ { - "module": "FSM", - "indexName": "fsm", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.fsm.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}}}}}}", - "dateRefField": "Data.fsm.@timestamp" + "Total Collection": "amount" }, { - "module": "W&S", - "indexName": "water-services", - "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"REJECTED\",\"CONNECTION_ACTIVATED\",\"CANCELED\"]}}]}},\"aggs\":{\"Applications Closed\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", - "dateRefField": "Data.@timestamp" + "Transactions": "number" }, { - "module": "W&S", - "indexName": "sewerage-services", - "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"REJECTED\",\"CONNECTION_ACTIVATED\",\"CANCELED\"]}}]}},\"aggs\":{\"Applications Closed\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", - "dateRefField": "Data.connectionExecutionDate" + "Assessed Properties": "number" }, { - "module": "FIRENOC", - "indexName": "firenoc-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\", \"district\" : \"Data.tenantData.city.districtCode\"}", - "aggrQuery": "{\"aggs\":{\"FireNOC\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fireNOCDetails.status.keyword\":[\"APPROVED\",\"CANCELED\",\"REJECTED\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}", - "dateRefField": "Data.auditDetails.createdTime" - }, + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "boundaryDrillDown": { + "kind": "drillDown", + "chartName": "Boundary", + "queries": [ { - "module": "OBPS", - "indexName": "bpa-index", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"APPROVED\",\"CANCELED\",\"REJECTED\"]}},{\"terms\":{\"Data.businessService.keyword\":[\"BPA\",\"BPA_LOW\"]}}]}},\"aggs\":{\"Applications Closed\":{\"value_count\":{\"field\":\"Data.applicationNo.keyword\"}}}}}}", - "dateRefField": "Data.@timestamp" + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" } ], - "chartType": "metric", + "chartType": "table", "valueType": "number", - "action": "", - "documentType": "_doc", "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", "aggregationPaths": [ - "Applications Closed" + "Total Collection", + "Transactions", + "Assessed Properties" ], - "insight": { - "chartResponseMap" : "closedApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" - }, - "_comment": " totalApplication is the chartId" - }, - - "dssSlaAchievedOverview": { - "chartName": "DSS_SLA_ACHIEVED_OVERVIEW", - "queries": [ - { - "module": "PT", - "indexName": "property-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"Properties\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.tenantId.keyword\":[\"pb.testing\",\"pb\"]}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.history.state.applicationStatus.keyword\":[\"ACTIVE\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].valueaggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "taxHeadsBreakupBoundaryDrillv2", + "drillFields": [ + "Ward", + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupBoundaryDrillv2": { + "chartName": "Tax head Breakup boundary", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "drillFields": [ + "Ward", + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupUsagev2": { + "chartName": "DSS_PT_TAX_HEAD_BREAKUP_USAGE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-payment_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Usage Type", + "aggregationPaths": [ + "Total Amount", + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty" + ], + "pathDataTypeMapping": [ + { + "Total Amount": "amount" + }, + { + "PT Tax": "amount" + }, + { + "Fire Cess": "amount" + }, + { + "Cancer Cess": "amount" + }, + { + "Rebate": "amount" + }, + { + "Penalty": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "totalCollection": { + "chartName": "DSS_TOTAL_COLLECTION", + "queries": [ + { + "module": "PT", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "TL", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "FSM", + "dateRefField": "Data.payments.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\", \"district\" : \"Data.tenantData.cityDistrictCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "totalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "cumulativeCollection": { + "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", + "queries": [ + { + "module": "COMMON", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.Bill.billDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.Bill.billDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "amount", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Collections" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "targetAchieved": { + "chartName": "DSS_TARGET_ACHIEVED", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"district\" : \"dataObject.tenantData.cityDistrictCode\", \"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Collection", + "Actual collection" + ], + "insight": { + "chartResponseMap": "targetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "todaysCollection": { + "chartName": "DSS_TOTAL_COLLECTION", + "queries": [ + { + "module": "PT", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "TL", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "FSM", + "dateRefField": "Data.payments.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Collection" + ], + "insight": {}, + "_comment": " " + }, + "totalCollectionDeptWise": { + "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION:_DEPARTMENT_WISE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.Bill.billDetails.businessService.keyword\":[\"PT\",\"TL\",\"FSM.TRIP_CHARGES\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.Bill.billDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Business Service" + ], + "insight": {}, + "_comment": " " + }, + "topPerformingUlbs": { + "chartName": "DSS_PT_TOP_3_PERFORMING_ULBS", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "plotLabel": "DSS_TARGET_ACHIEVED", + "order": "desc", + "limit": 3, + "aggregationPaths": [ + "Total Collection", + "Target Collection" + ], + "insight": {}, + "_comment": " Top Performing Ulbs for target achieved" + }, + "bottomPerformingUlbs": { + "chartName": "DSS_PT_BOTTOM_3_PERFORMING_ULBS", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\",\"tenantId\" : \"tenantIdForMunicipalCorporation\" }", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "plotLabel": "DSS_TARGET_ACHIEVED", + "order": "asc", + "limit": 3, + "aggregationPaths": [ + "Total Collection", + "Target Collection" + ], + "insight": {}, + "_comment": " Bottom Performing Ulbs for target achieved" + }, + "licenseByLicenseType": { + "chartName": "DSS_TL_LICENSE_BY_TYPE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantData.code\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.instrument.typeName.keyword\"},\"aggs\":{\"Licens Issued\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "License Instrument Type" + ], + "insight": {}, + "_comment": " License Application which are issued by License Type" + }, + "_comment": "COMMON NON-COLLECTION CHARTS", + "totalApplication": { + "chartName": "DSS_TOTAL_APPLICATION", + "queries": [ + { + "module": "PT", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "Data.@timestamp" + }, + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid.keyword\" \r\n}", + "dateRefField": "Data.tradelicense.applicationDate" + }, + { + "module": "PGR", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "Data.dateOfComplaint" + }, + { + "module": "FSM", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.@timestamp\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Total Application" + ], + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totalApplication is the chartId" + }, + "closedApplication": { + "chartName": "DSS_CLOSED_APPLICATION", + "queries": [ + { + "module": "PT", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}" + }, + { + "module": "TL", + "dateRefField": "Data.tradelicense.applicationdate", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid.keyword\" \r\n}", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}" + }, + { + "module": "PGR", + "dateRefField": "Data.dateOfComplaint", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + }, + { + "module": "FSM", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"completed\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.@timestamp\"}}}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Applications Closed" + ], + "insight": { + "chartResponseMap": "closedApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totalApplication is the chartId" + }, + "citizenRegistered": { + "chartName": "DSS_CITIZEN_REGISTERED", + "queries": [ + { + "module": "PGR", + "indexName": "pgr-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.service.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Citizen Registered\":{\"terms\":{\"field\":\"Data.service.citizen.uuid.keyword\"},\"aggs\":{\"type_count\":{\"cardinality\":{\"field\":\"Data.service.citizen.uuid.keyword\"}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"district\" : \"Data.tenantData.city.districtCode\", \"tenantId\" : \"Data.service.tenantId.keyword\", \"status\" : \"Data.service.applicationStatus\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Citizen Registered" + ], + "insight": { + "chartResponseMap": "citizenRegistered", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": " totalApplication is the chartId" + }, + "totalApplicationDeptWise": { + "chartName": "DSS_TOTAL_APPLICATIONS:_DEPARTMENT_WISE", + "queries": [ + { + "module": "PT", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Property Tax\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + }, + { + "module": "TL", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Trade Licence\":{\"value_count\":{\"field\":\"Data.tradelicense.tenantid.keyword\"}}}}}}" + }, + { + "module": "PGR", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"PGR\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + }, + { + "module": "FSM", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"FSM\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Property Tax", + "Trade Licence", + "PGR" + ], + "insight": {}, + "_comment": " totalApplication is the chartId" + }, + "totalApplication&ClosedApplication": { + "chartName": "DSS_TOTAL_APPLICATION_&_CLOSED_APPLICATION", + "queries": [ + { + "module": "PT", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}}}" + }, + { + "module": "TL", + "dateRefField": "Data.tradelicense.applicationdate", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid.keyword\" \r\n}", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}}}" + }, + { + "module": "PGR", + "dateRefField": "Data.dateOfComplaint", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" + }, + { + "module": "FSM", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.fsm.tenantid.keyword\" \r\n}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"completed\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Total Application", + "Closed Application" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "topPerformingUlbsCompletionRate": { + "chartName": "DSS_PT_TOP_3_PERFORMING_ULBS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"term\":{\"Data.status.keyword\":\"resolved\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"order\":{\"_key\":\"asc\"},\"size\":100},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"order\":{\"_key\":\"asc\"},\"size\":100},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + }, + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.propertyId.keyword\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + }, + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.tradelicense.applicationdate", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.issueddate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.applicationdate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + }, + { + "module": "FSM", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + } + ], + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "plotLabel": "DSS_COMPLETION_RATE", + "order": "desc", + "limit": 3, + "aggregationPaths": [ + "Closed Application", + "Total Application" + ], + "insight": {}, + "_comment": " Top Performing Ulbs for Completion rate" + }, + "bottomPerformingUlbsCompletionRate": { + "chartName": "DSS_PT_BOTTOM_3_PERFORMING_ULBS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"term\":{\"Data.status.keyword\":\"resolved\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + }, + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.propertyId.keyword\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + }, + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.tradelicense.applicationdate", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.issueddate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.applicationdate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + }, + { + "module": "FSM", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.fsm.@timestamp", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + } + ], + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "plotLabel": "DSS_COMPLETION_RATE", + "order": "asc", + "limit": 3, + "aggregationPaths": [ + "Closed Application", + "Total Application" + ], + "insight": {}, + "_comment": " Bottom Performing Ulbs for Completion rate" + }, + "_comment": "COMMON COLLECTION CHARTS", + "targetCollection": { + "chartName": "DSS_TARGET_COLLECTION", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Target Collection" + ], + "isDayUnit": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "insight": {}, + "_comment": " " + }, + "collectionByUsageType": { + "chartName": "DSS_PT_COLLECTION_BY_USAGE_TYPE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "amount", + "action": "", + "documentType": "_doc", + "drillChart": "collectionBySelectedType", + "drillFields": [ + "selectedType", + "" + ], + "aggregationPaths": [ + "Usage Type" + ], + "insight": {}, + "_comment": " collection/amount per usage type" + }, + "collectionBySelectedType": { + "chartName": "DSS_COLLECTION_BY_SELECTED_TYPE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantData.code\", \"district\" : \"dataObject.tenantData.city.districtCode\", \"selectedType\" : \"domainObject.units.usageCategory.keyword\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"tenant\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Amount Paid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "amount", + "action": "", + "documentType": "_doc", + "filterKeys": [ + { + "key": "selectedType", + "column": "UsageCategory" + } + ], + "drillChart": "none", + "aggregationPaths": [ + "Payment Mode" + ], + "insight": {}, + "_comment": " " + }, + "_comment": "PT NON-COLLECTION CHARTS", + "propertiesByUsageType": { + "chartName": "DSS_PT_PROPERTIES_BY_USAGE_TYPE", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"module\" : \"Data.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "Data.@timestamp", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.propertyDetails.units.usageCategoryMajor.keyword\"},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Usage Type" + ], + "insight": {}, + "_comment": " properties having assessmentNumber per usage type" + }, + "totalProperties": { + "chartName": "DSS_PT_TOTAL_PROPERTIES", + "queries": [ + { + "module": "PT", + "indexName": "property-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Total Application" + ], + "_comment": " totol properties count" + }, + "propertiesAssessed": { + "chartName": "DSS_PT_TOTAL_PROPERTIES_ASSESSED", + "queries": [ + { + "module": "PT", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Assessed Properties" + ], + "insight": { + "chartResponseMap": "propertiesAssessed", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totol properties having assessmentNumber " + }, + "propertiesPaid": { + "chartName": "DSS_PT_TOTAL_PROPERTIES_PAID", + "queries": [ + { + "module": "PT", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"Data.paymentDetails.businessService.keyword\":\"PT\"}},{\"term\":{\"Data.paymentDetails.totalDue\":{\"value\":0}} } ]}},\"aggs\":{\"Paid Properties\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Paid Properties" + ], + "insight": { + "chartResponseMap": "propertiesPaid", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " total paid properties " + }, + "totalAssessment": { + "chartName": "DSS_PT_TOTAL_ASSESSMENTS", + "queries": [ + { + "module": "PT", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Assessed Properties" + ], + "insight": { + "chartResponseMap": "totalAssessment", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totol properties having assessmentNumber " + }, + "cumulativePropertiesAssessed": { + "chartName": "DSS_PT_CUMULATIVE_PROPERTIES_ASSESSED", + "queries": [ + { + "module": "PT", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Collections" + ], + "isCumulative": true, + "interval": "week", + "insight": {}, + "_comment": " totol properties having assessmentNumber " + }, + "activeUlbs": { + "chartName": "DSS_PT_TOTAL_ACTIVE_ULBS", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.@timestamp", + "indexName": "ptindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + }, + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\"}", + "dateRefField": "Data.tradelicense.@timestamp", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantData.code.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}" + }, + { + "module": "FSM", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\"}", + "dateRefField": "Data.@timestamp", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantData.code.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Active ULBs" + ], + "insight": { + "chartResponseMap": "activeUlbs", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " total ULBs count" + }, + "_comment": "PT COLLECTION CHARTS (Tax heads)", + "_comment": "PT COLLECTION CHARTS (Demands) ", + "demandCollectionIndexDDRRevenue": { + "chartName": "DSS_PT_KEY_FY_INDICATORS", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "demandCollectionIndexBoundaryRevenue", + "action": "", + "plotLabel": "DDRs", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Assessed Properties", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Assessed Properties": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "demandCollectionIndexBoundaryRevenue": { + "chartName": "DSS_PT_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"domainObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "boundaryDrillDown", + "drillFields": [ + "Ward", + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Assessed Properties", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Assessed Properties": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "boundaryDrillDown": { + "kind": "drillDown", + "chartName": "Boundary", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Assessed Properties", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Assessed Properties": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "_comment": " PT Nested Array related new queries", + "taxHeadsBreakupDDRRevenue": { + "chartName": "DSS_PT_TAX_HEAD_BREAKUP_REVENUE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.totalAmount\"}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "taxHeadsBreakupRevenue", + "isPostResponseHandler": true, + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPaths": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off" + ], + "newField": "Total Amount", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupRevenue": { + "chartName": "DSS_PT_TAX_HEAD_BREAKUP_REVENUE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "taxHeadsBreakupBoundaryDrill", + "drillFields": [ + "Ward", + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupBoundaryDrill": { + "chartName": "Tax head Breakup boundary", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "drillFields": [ + "Ward", + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupUsage": { + "chartName": "DSS_PT_TAX_HEAD_BREAKUP_USAGE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Usage Type", + "aggregationPaths": [ + "Total Amount", + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty" + ], + "pathDataTypeMapping": [ + { + "Total Amount": "amount" + }, + { + "PT Tax": "amount" + }, + { + "Fire Cess": "amount" + }, + { + "Cancer Cess": "amount" + }, + { + "Rebate": "amount" + }, + { + "Penalty": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupUsageMinor": { + "chartName": "", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "minorUsageId", + "column": "Minor Usage Type" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "taxHeadsBreakupUsageSubMinor", + "documentType": "_doc", + "action": "", + "plotLabel": "Minor Usage Type", + "aggregationPaths": [ + "Total Amount", + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty" + ], + "pathDataTypeMapping": [ + { + "Total Amount": "amount" + }, + { + "PT Tax": "amount" + }, + { + "Fire Cess": "amount" + }, + { + "Cancer Cess": "amount" + }, + { + "Rebate": "amount" + }, + { + "Penalty": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "taxHeadsBreakupUsageSubMinor": { + "chartName": "", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + } + ], + "filterKeys": [ + "" + ], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Sub Minor Usage Type", + "aggregationPaths": [ + "Total Amount", + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty" + ], + "pathDataTypeMapping": [ + { + "Total Amount": "amount" + }, + { + "PT Tax": "amount" + }, + { + "Fire Cess": "amount" + }, + { + "Cancer Cess": "amount" + }, + { + "Rebate": "amount" + }, + { + "Penalty": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "demandCollectionIndexUsageRevenue": { + "chartName": "DSS_PT_DEMAND_COLLECTION_USAGETYPE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", + "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.status.keyword\":\"Approved\"}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "drillFields": [ + "Ward", + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Usage Type", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Assessed Properties" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Assessed Properties": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "usageRevenueDrillDownMinor": { + "chartName": "", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", + "aggrQuerybc": "{\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "minorUsageId", + "column": "Minor Usage Type" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "usageRevenueDrillDownSubMinor", + "documentType": "_doc", + "action": "", + "plotLabel": "Minor Usage Type", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Assessed Properties" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Assessed Properties": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "usageRevenueDrillDownSubMinor": { + "chartName": "", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", + "aggrQuerybc": "{\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Sub Minor Usage Type", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Assessed Properties" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Assessed Properties": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "_comment": "TL COLLECTION CHARTS", + "licenseIssuedDDRRevenue": { + "chartName": "DSS_TL_KEY_FY_INDICATORS", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" + }, + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\": {\"Total Licence Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", + "dateRefField": "Data.tradelicense.issuedDate" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "licenseIssuedBoundaryRevenue", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Total Licence Issued", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Total Licence Issued": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "licenseIssuedBoundaryRevenue": { + "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" + }, + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", + "dateRefField": "Data.tradelicense.issuedDate" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "licenseIssuedBoundaryDrillDown", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Total Licence Issued", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Total Licence Issued": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "licenseIssuedBoundaryDrillDown": { + "chartName": "", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" + }, + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", + "dateRefField": "Data.tradelicense.issuedDate" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Total Licence Issued" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Total Licence Issued": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "_comment": " TL Nested Array related newer queries", + "licenceTaxHeadsBreakupDDR": { + "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"TL\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandlerA": true, + "chartType": "xtable", + "valueType": "number", + "drillChart": "licenceTaxHeadsBreakupBoundary", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPaths": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate" + ], + "newField": "Total Amount", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "licenceTaxHeadsBreakupBoundary": { + "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "licenceTaxHeadsBreakupWard", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "licenceTaxHeadsBreakupWard": { + "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate", + "Total Amount" + ], + "insight": {}, + "_comment": "" + }, + "_comment": "TL NON-COLLECTION CHARTS", + "licenseIssued": { + "chartName": "DSS_TL_LICENSE_ISSUED", + "queries": [ + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\": {\"License Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", + "dateRefField": "Data.tradelicense.issuedDate" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "License Issued" + ], + "insight": { + "chartResponseMap": "licenseIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " licenseIssued is the Chart ID" + }, + "cumulativeLicenseIssued": { + "chartName": "DSS_TL_CUMULATIVE_LICENSE_ISSUED", + "queries": [ + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Trade Licence Issued\":{\"date_histogram\":{\"field\":\"Data.tradelicense.issueddate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.tradelicense.issueddate" + }, + { + "module": "TL", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.tradelicense.applicationdate" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Trade Licence Issued", + "Total Application" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " Total Number of License having issued" + }, + "licenseApplicationByStatus": { + "chartName": "DSS_TL_LICENSE_BY_STATUS", + "queries": [ + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\", \"district\" : \"Data.tenantData.cityDistrictCode\"}", + "dateRefField": "Data.tradelicense.issueddate", + "indexName": "tlindex-v1", + "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\"},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.status.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"cardinality\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Status" + ], + "insight": {}, + "_comment": " License Application which are issued by License Type" + }, + "slaAchieved": { + "chartName": "DSS_SLA_ACHIEVED", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}, \"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"Within SLA\",\"from\":0,\"to\":360}]}}}}}}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "withinSLA", + "Total Application" + ], + "insight": { + "chartResponseMap": "slaAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " SLA Achieved Percentage " + }, + "tlStatusByDDR": { + "chartName": "DSS_TL_STATUS_BY_DDR", + "queries": [ + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tradelicense.tenantid.keyword\" }", + "dateRefField": "Data.tradelicense.issueddate", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}", + "aggrQueryBC": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "tlStatusByTenant", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPathsA": [ + "Approved", + "Initiated", + "Applied", + "Rejected", + "Pending Approval", + "Field Inspection", + "Cancelled", + "Pending Payment", + "Paid" + ], + "pathDataTypeMappingA": [ + { + "Approved": "number" + }, + { + "Initiated": "number" + }, + { + "Applied": "number" + }, + { + "Rejected": "number" + }, + { + "Pending Approval": "number" + }, + { + "Field Inspection": "number" + }, + { + "Cancelled": "number" + }, + { + "Pending Payment": "number" + }, + { + "Paid": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "tlStatusByTenant": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tradelicense.tenantid.keyword\" }", + "dateRefField": "Data.tradelicense.issueddate", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantid.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}}}", + "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "tlStatusByTenantDrillDown", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "ULBs", + "aggregationPaths": [], + "pathDataTypeMapping": [], + "insight": {}, + "_comment": "" + }, + "tlStatusByTenantDrillDown": { + "chartName": "DSS_TL_STATUS_BY_WARD", + "queries": [ + { + "module": "TL", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tradelicense.tenantid.keyword\" }", + "dateRefField": "Data.tradelicense.issueddate", + "indexName": "tlindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}}}", + "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "aggregationPathsA": [ + "Approved", + "Initiated", + "Applied", + "Rejected", + "Pending Approval", + "Field Inspection", + "Cancelled", + "Pending Payment", + "Paid" + ], + "pathDataTypeMappingA": [ + { + "Approved": "number" + }, + { + "Initiated": "number" + }, + { + "Applied": "number" + }, + { + "Rejected": "number" + }, + { + "Pending Approval": "number" + }, + { + "Field Inspection": "number" + }, + { + "Cancelled": "number" + }, + { + "Pending Payment": "number" + }, + { + "Paid": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "_comment": "Enhanced table charts..TODO: refactor to remove xtable type ", + "xlicenseIssuedBoundaryRevenue": { + "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.Bill.billDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200,\"min_doc_count\":0},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "plotLabel": "Boundary", + "aggregationPaths": [], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "PercentageComputedField", + "fields": [ + "Target Collection", + "Total Collection" + ], + "newField": "Target Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "PercentageComputedField", + "fields": [ + "Target Collection", + "Total Collection" + ], + "newField": "Target Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "pathDataTypeMapping": [], + "insight": {}, + "_comment": "" + }, + "xptFyByDDR": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "Data.assessmentDate", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"ACTIVE\"}}]}},\"aggs\":{\"Fys\":{\"terms\":{\"field\":\"Data.financialYear.keyword\",\"size\":10},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.financialYear.keyword\"}}}}}}}}" + }, + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "Data.assessmentDate", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xptFyByTenant", + "plotLabel": "DDRs", + "order": "desc", + "insight": {}, + "_comment": "" + }, + "xptFyByTenant": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "Data.assessmentDate", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"ACTIVE\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Fys\":{\"terms\":{\"field\":\"Data.financialYear.keyword\",\"size\":10},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.financialYear.keyword\"}}}}}}}}}}" + }, + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "Data.assessmentDate", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBS \":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULBs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xptFyByWard", + "plotLabel": "ULBs", + "order": "desc", + "insight": {}, + "_comment": "" + }, + "xptFyByWard": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\" , \"wardId\" : \"Data.ward.locality.name.keyword\"}", + "dateRefField": "Data.assessmentDate", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"ACTIVE\"}}]}},\"aggs\":{\"Wards \":{\"terms\":{\"field\":\"Data.ward.locality.name.keyword\"},\"aggs\":{\"Fys\":{\"terms\":{\"field\":\"Data.financialYear.keyword\",\"size\":10},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.financialYear.keyword\"}}}}}}}}}}\r\n" + }, + { + "module": "PT", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\" , \"wardId\" : \"Data.ward.name.keyword\"}", + "dateRefField": "Data.assessmentDate", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\"},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "wardId", + "column": "Wards" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Wards", + "order": "desc", + "insight": {}, + "_comment": "" + }, + "xpgrStatusByDDR": { + "chartName": "DSS_PGR_STATUS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xpgrStatusByTenant", + "plotLabel": "DDRs", + "excludedColumns": [ + "withinSLA" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "withinSLA", + "Total Complaints" + ], + "newField": "Sla Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "xpgrStatusByTenant": { + "chartName": "DSS_PGR_STATUS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xpgrStatusByWard", + "plotLabel": "Boundary", + "excludedColumns": [ + "withinSLA" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "xpgrStatusByWard": { + "chartName": "DSS_PGR_STATUS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.complaintWard.name.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xpgrStatusByComplaintCategory", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "excludedColumns": [ + "withinSLA" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "xpgrStatusByComplaintCategory": { + "chartName": "DSS_PGR_STATUS_BY_COMPLAINT_CATEGORY", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.code.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "wardId", + "column": "Ward" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Complaint Category", + "excludedColumns": [ + "withinSLA" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "xpgrStatusByDept": { + "chartName": "DSS_PGR_STATUS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Department \":{\"terms\":{\"field\":\"Data.department.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "departmentId", + "column": "Department" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xpgrStatusByCatagory", + "documentType": "_doc", + "action": "", + "plotLabel": "Department", + "excludedColumns": [ + "withinSLA" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "xpgrStatusByCatagory": { + "chartName": "DSS_PGR_STATUS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "departmentId", + "column": "Department" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Complaint Category", + "excludedColumns": [ + "withinSLA" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "_comment": "PGR NON-COLLECTION CHARTS", + "completionRate": { + "chartName": "DSS_PGR_COMPLETION_RATE", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed Complaints\":{\"filters\":{\"filters\":{\"closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}}}}}}}}}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Closed Complaints", + "Total Complaints" + ], + "insight": { + "chartResponseMap": "completionRate", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " Total Number of Complaints " + }, + "totalComplaints": { + "chartName": "DSS_PGR_TOTAL_COMPLAINTS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Complaints" + ], + "insight": { + "chartResponseMap": "totalComplaints", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " Total Number of Complaints " + }, + "closedComplaints": { + "chartName": "DSS_PGR_CLOSED_COMPLAINTS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}}}}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Closed Complaints" + ], + "insight": { + "chartResponseMap": "closedComplaints", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " Total Number of Closed Complaints " + }, + "cumulativeClosedComplaints": { + "chartName": "DSS_TOTAL_CUMULATIVE_CLOSED_COMPLAINTS", + "queries": [ + { + "module": "PGR", + "dateRefField": "Data.dateOfComplaint", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Closed Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Closed\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Reopened Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Reopened\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopened\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Closed Complaints", + "Reopened Complaints", + "Total Complaints" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "totalComplaintsbySource": { + "chartName": "DSS_PGR_TOTAL_COMPLAINTS_BY_SOURCE", + "queries": [ + { + "module": "PGR", + "dateRefField": "Data.dateOfComplaint", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ivr\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"ivr\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"ivr\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Web\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"web\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"web\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Whatsapp\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"whatapp\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"whatsapp\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Mobileapp\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"mobileapp\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Ivr", + "Web", + "Whatsapp", + "Mobileapp" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "totalComplaintsbyStatus": { + "chartName": "DSS_PGR_TOTAL_COMPLAINTS_BY_STATUS", + "queries": [ + { + "module": "PGR", + "dateRefField": "Data.dateOfComplaint", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Open\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"open\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Closed\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"closed\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Open", + "Closed" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "complaintsByStatus": { + "chartName": "DSS_PGR_COMPLAINTS_BY_STATUS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Status\":{\"terms\":{\"field\":\"Data.status.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complaints By Status" + ], + "insight": {}, + "_comment": " Complaints By Their Statuses" + }, + "complaintsByChannel": { + "chartName": "DSS_PGR_COMPLAINTS_BY_CHANNELS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complaints By Channels" + ], + "insight": {}, + "_comment": " Top 3 Channels For Complaints" + }, + "complaintsByCategory": { + "chartName": "DSS_PGR_COMPLAINTS_BY_CATEGORY", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Category\":{\"terms\":{\"field\":\"Data.complainCategory.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complaints By Category" + ], + "insight": {}, + "_comment": " Top 3 Channels For Complaints" + }, + "complaintsByTenant": { + "chartName": "DSS_PGR_COMPLAINTS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Tenant\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complaints By Tenant" + ], + "insight": {}, + "_comment": " Complaints by Tenant" + }, + "complaintsByDistrict": { + "chartName": "DSS_PGR_COMPLAINTS_BY_DISTRICT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By District\":{\"terms\":{\"field\":\"Data.tenantData.city.districtName.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complaints By District" + ], + "insight": {}, + "_comment": " Complaints by District" + }, + "complaintsByDepartment": { + "chartName": "DSS_PGR_COMPLAINTS_BY_DEPARTMENT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Department\":{\"terms\":{\"field\":\"Data.department.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complaints By Department" + ], + "insight": {}, + "_comment": " Complaints by Department" + }, + "pgrStatusByDDR": { + "chartName": "DSS_PGR_STATUS_BY_DDR", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "pgrStatusByTenant", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPaths": [ + "Open", + "Reopen", + "Assigned", + "Closed", + "Resolved", + "Rejected", + "ReassignRequested" + ], + "pathDataTypeMapping": [ + { + "Open": "number" + }, + { + "Reopen": "number" + }, + { + "Assigned": "number" + }, + { + "Closed": "number" + }, + { + "Resolved": "number" + }, + { + "Rejected": "number" + }, + { + "ReassignRequested": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "pgrStatusByTenant": { + "chartName": "DSS_PGR_STATUS_BY_TENANT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "pgrStatusWardDrillDown", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "Open", + "Reopen", + "Assigned", + "Closed", + "Resolved", + "Rejected", + "ReassignRequested" + ], + "pathDataTypeMapping": [ + { + "Open": "number" + }, + { + "Reopen": "number" + }, + { + "Assigned": "number" + }, + { + "Closed": "number" + }, + { + "Resolved": "number" + }, + { + "Rejected": "number" + }, + { + "ReassignRequested": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "pgrStatusWardDrillDown": { + "chartName": "", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.complaintWard.name.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Complaint Ward", + "aggregationPaths": [ + "Open", + "Reopen", + "Assigned", + "Closed", + "Resolved", + "Rejected", + "ReassignRequested" + ], + "pathDataTypeMapping": [ + { + "Open": "number" + }, + { + "Reopen": "number" + }, + { + "Assigned": "number" + }, + { + "Closed": "number" + }, + { + "Resolved": "number" + }, + { + "Rejected": "number" + }, + { + "ReassignRequested": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "pgrStatusByDepartment": { + "chartName": "DSS_PGR_STATUS_BY_DEPARTMENT", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Department \":{\"terms\":{\"field\":\"Data.department.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "departmentId", + "column": "Department" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "pgrStatusCategoryDrillDown", + "documentType": "_doc", + "action": "", + "plotLabel": "Department", + "aggregationPaths": [ + "Open", + "Reopen", + "Assigned", + "Closed", + "Resolved", + "Rejected", + "ReassignRequested" + ], + "pathDataTypeMapping": [ + { + "Open": "number" + }, + { + "Reopen": "number" + }, + { + "Assigned": "number" + }, + { + "Closed": "number" + }, + { + "Resolved": "number" + }, + { + "Rejected": "number" + }, + { + "ReassignRequested": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "pgrStatusCategoryDrillDown": { + "chartName": "", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "drillFields": [ + "" + ], + "documentType": "_doc", + "action": "", + "plotLabel": "Complaint Category", + "aggregationPaths": [ + "Open", + "Reopen", + "Assigned", + "Closed", + "Resolved", + "Rejected", + "ReassignRequested" + ], + "pathDataTypeMapping": [ + { + "Open": "number" + }, + { + "Reopen": "number" + }, + { + "Assigned": "number" + }, + { + "Closed": "number" + }, + { + "Resolved": "number" + }, + { + "Rejected": "number" + }, + { + "ReassignRequested": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "topFiveComplaints": { + "chartName": "DSS_PGR_TOP_COMPLAINTS", + "queries": [ + { + "module": "PGR", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.dateOfComplaint", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complain Category\":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":6,\"order\":{\"Count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.complainCategory.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Complain Category" + ], + "insight": {}, + "_comment": " Complaints By Their Statuses" + }, + "averageTurnAroundTime": { + "chartName": "DSS_AVERAGE_TURN_AROUND_TIME", + "queries": [ + { + "module": "PGR", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"Complaints Average Turn Around Time (in Days)\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"each_open\":{\"terms\":{\"field\":\"_id\",\"min_doc_count\":0, \"size\":200},\"aggs\":{\"Open_Complaints\":{\"nested\":{\"path\":\"Data.actionHistory.actions\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.actionHistory.actions.status.keyword\":[\"open\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.actionHistory.actions.when\"}}}}}},\"Closed_Complaints\":{\"nested\":{\"path\":\"Data.actionHistory.actions\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.actionHistory.actions.status.keyword\":[\"closed\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.actionHistory.actions.when\"}}}}}},\"computedValueATA\":{\"bucket_script\":{\"buckets_path\":{\"max\":\"Closed_Complaints>aggrFilter>amount\",\"min\":\"Open_Complaints>aggrFilter>amount\"},\"script\":{\"source\":\"params.max-params.min\"}}}}}}}}}", + "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints Average Turn Around Time (in Days)\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"each_open\":{\"terms\":{\"field\":\"_id\",\"min_doc_count\":0},\"aggs\":{\"Open_Complaints\":{\"min\":{\"field\":\"Data.actionHistory.actions.when\"}},\"Closed_Complaints\":{\"max\":{\"field\":\"Data.actionHistory.actions.when\"}},\"computedValueATA\":{\"bucket_script\":{\"buckets_path\":{\"max\":\"Closed_Complaints\",\"min\":\"Open_Complaints\"},\"script\":{\"source\":\"if(params.max == null && params.min == null) {0} else {params.max-params.min}\"}}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "days", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Complaints Average Turn Around Time (in Days)" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AverageComputedField", + "fields": [ + "computedValueATA" + ], + "newField": "ATA", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "pgrCitizenOnDateRange": { + "chartName": "DSS_PGR_CITIZEN", + "queries": [ + { + "module": "PGR", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", + "indexName": "pgrindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Citizens\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"count\":{\"cardinality\":{\"field\":\"Data.citizen.uuid.keyword\"}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Citizens" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "_comment": "W&S charts below-----------------------------------------------------------------------", + "wstodaysCollection": { + "chartName": "DSS_W&S_TODAYS_COLLECTION", + "queries": [ + { + "module": "W&S", + "indexName": "receipts-consumers", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"@timestamp\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}}],\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"totalamount\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Collection" + ], + "insight": {}, + "_comment": "W&S total collections " + }, + "wstotalCollection": { + "chartName": "DSS_W&S_TOTAL_COLLECTION", + "queries": [ + { + "module": "W&S", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.paymentDetails.billDate.keyword\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Today's collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Today's collection" + ], + "insight": {}, + "_comment": "W&S today's collections" + }, + "wstargetCollection": { + "chartName": "DSS_W&S_TARGET_COLLECTION", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"ulbName.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Target Collection" + ], + "isDayUnit": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "insight": {}, + "_comment": " " + }, + "wstargetAchieved": { + "chartName": "DSS_W&S_TARGET_ACHIEVED", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"ulbName.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "receiptdate", + "indexName": "receipts-consumers", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"totalamount\"}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Collection", + "Actual collection" + ], + "insight": { + "chartResponseMap": "wstargetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "wscumulativeCollections": { + "chartName": "DSS_W&S_TOTAL_CUMULATIVE_COLLECTION", + "queries": [ + { + "module": "W&S", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"Water Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}},\"Sewerage Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "translateTenantCode": false, + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Water Collections", + "Sewerage Collections" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "wstopPerformingUlbs": { + "chartName": "DSS_W&S_TOP_3_PERFORMING_ULBS", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"ulbName.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"businessService.keyword\":\"W&S\"}}]}},\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "plotLabel": "DSS_TARGET_ACHIEVED", + "order": "desc", + "limit": 3, + "aggregationPaths": [ + "Total Collection", + "Target Collection" + ], + "insight": {}, + "_comment": " Top Performing Ulbs for target achieved" + }, + "wsbottomPerformingUlbs": { + "chartName": "DSS_W&S_BOTTOM_3_PERFORMING_ULBS", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"ulbName.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"businessService.keyword\":\"W&S\"}}]}},\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "plotLabel": "DSS_TARGET_ACHIEVED", + "order": "asc", + "limit": 3, + "aggregationPaths": [ + "Total Collection", + "Target Collection" + ], + "insight": {}, + "_comment": " Bottom Performing Ulbs for target achieved" + }, + "wscollectionByUsage": { + "chartName": "DSS_W&S_COLLECTION_BY_USAGE", + "queries": [ + { + "module": "W&S", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Collection by Usage\":{\"terms\":{\"field\":\"domainObject.propertyUsageType.keyword\"},\"aggs\":{\"total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Collection by Usage" + ], + "insight": {}, + "_comment": " " + }, + "wsFinancialIndicatorDDR": { + "chartName": "DSS_W&S_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "receiptdate", + "indexName": "receipts-consumers", + "aggrQuery": "{\"aggs\":{\"Total Collection\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"collection\":{\"sum\":{\"field\":\"totalamount\"}}}},\"Total Receipt\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"receipt\":{\"value_count\":{\"field\":\"receiptnumber.keyword\"}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "billdate", + "indexName": "demandbillconsumers", + "aggrQuery": "{\"aggs\":{\"No of Bill\":{\"filter\":{\"term\":{\"billgenerated\":true}},\"aggs\":{\"approved\":{\"value_count\":{\"field\":\"installmentfrom.keyword\"}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "@timestamp", + "indexName": "projecteddemand-consumers", + "aggrQuery": "{\"aggs\":{\"Project Demand\":{\"sum\":{\"field\":\"projecteddemand\"}}}}" + } + ], + "isMdmsEnabled": true, + "translateTenantCode": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "wsFinancialIndicatorUlb", + "action": "", + "plotLabel": "DDRs", + "isPostResponseHandler": true, + "postAggregationTheory": "", + "aggregationPaths": [ + "Total Collection", + "Total Receipt", + "No of Bill", + "Project Demand" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Total Receipt": "number" + }, + { + "No of Bill": "number" + }, + { + "Project Demand": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "wsFinancialIndicatorUlb": { + "chartName": "DSS_W&S_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "receiptdate", + "indexName": "receipts-consumers", + "aggrQuery": "{\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"cityname.keyword\"},\"aggs\":{\"Total Collection\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"collection\":{\"sum\":{\"field\":\"totalamount\"}}}},\"Total Receipt\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"receipt\":{\"value_count\":{\"field\":\"receiptnumber.keyword\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "billdate", + "indexName": "demandbillconsumers", + "aggrQuery": "{\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"cityname.keyword\"},\"aggs\":{\"No of Bill\":{\"filter\":{\"term\":{\"billgenerated\":true}},\"aggs\":{\"approved\":{\"value_count\":{\"field\":\"installmentfrom.keyword\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "@timestamp", + "indexName": "projecteddemand-consumers", + "aggrQuery": "{\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"cityname.keyword\"},\"aggs\":{\"Project Demand\":{\"sum\":{\"field\":\"projecteddemand\"}}}}}}" + } + ], + "isMdmsEnabled": false, + "translateTenantCode": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "chartType": "table", + "valueType": "number", + "drillChart": "wsFinancialIndicatorWard", + "action": "", + "plotLabel": "ULB", + "isPostResponseHandler": true, + "postAggregationTheory": "", + "aggregationPaths": [ + "Total Collection", + "Total Receipt", + "No of Bill", + "Project Demand" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Total Receipt": "number" + }, + { + "No of Bill": "number" + }, + { + "Project Demand": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "wsFinancialIndicatorWard": { + "chartName": "DSS_W&S_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "receiptdate", + "indexName": "receipts-consumers", + "aggrQuery": "{\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"block\"},\"aggs\":{\"Total Collection\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"collection\":{\"sum\":{\"field\":\"totalamount\"}}}},\"Total Receipt\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"receipt\":{\"value_count\":{\"field\":\"receiptnumber.keyword\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "billdate", + "indexName": "demandbillconsumers", + "aggrQuery": "{\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"block.keyword\"},\"aggs\":{\"No of Bill\":{\"filter\":{\"term\":{\"billgenerated\":true}},\"aggs\":{\"approved\":{\"value_count\":{\"field\":\"installmentfrom.keyword\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{ \"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "@timestamp", + "indexName": "projecteddemand-consumers", + "aggrQuery": "{\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"block.keyword\"},\"aggs\":{\"Project Demand\":{\"sum\":{\"field\":\"projecteddemand\"}}}}}}" + } + ], + "isMdmsEnabled": false, + "translateTenantCode": true, + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "", + "action": "", + "plotLabel": "Ward", + "isPostResponseHandler": true, + "postAggregationTheory": "", + "aggregationPaths": [ + "Total Collection", + "Total Receipt", + "No of Bill", + "Project Demand" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Total Receipt": "number" + }, + { + "No of Bill": "number" + }, + { + "Project Demand": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "wsTaxHeadDDR": { + "chartName": "DSS_W&S_TAX_HEAD_BOUNDARY", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Ws_Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "wsTaxHeadUlb", + "action": "", + "plotLabel": "DDRs", + "postAggregationTheory": "", + "aggregationPaths": [ + "Total Collection", + "Penalty", + "Interest", + "Ws_Target_Collection" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Ws_Target_Collection" + ], + "newField": "Target Collection", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "excludedColumns": [ + "Ws_Target_Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Penalty": "amount" + }, + { + "Interest": "amount" + }, + { + "Ws_Target_Collection": "amount" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "wsTaxHeadUlb": { + "chartName": "DSS_W&S_TAX_HEAD_BOUNDARY", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Ws_Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "translateTenantCode": false, + "isMdmsEnabled": false, + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "wsTaxHeadWard", + "action": "", + "plotLabel": "ULB", + "postAggregationTheory": "", + "aggregationPaths": [ + "Total Collection", + "Penalty", + "Interest", + "Ws_Target_Collection" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Ws_Target_Collection" + ], + "newField": "Target Collection", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "excludedColumns": [ + "Ws_Target_Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Penalty": "amount" + }, + { + "Interest": "amount" + }, + { + "Ws_Target_Collection": "amount" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "wsTaxHeadWard": { + "chartName": "", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + } + ], + "isMdmsEnabled": false, + "translateTenantCode": false, + "filterKeys": [], + "chartType": "table", + "valueType": "number", + "drillChart": "none", + "action": "", + "plotLabel": "Ward", + "postAggregationTheory": "", + "aggregationPaths": [ + "Total Collection", + "Penalty", + "Interest" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Penalty": "amount" + }, + { + "Interest": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "wstotalConnection": { + "chartName": "DSS_WS_TOTAL_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Water Connection\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + }, + { + "module": "W&S", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Sewerage Connection\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "additive", + "drillChart": "none", + "aggregationPaths": [ + "Total Water Connection", + "Total Sewerage Connection" + ], + "insight": {}, + "_comment": " " + }, + "wstotalApplications": { + "chartName": "DSS_WS_TOTAL_APPLICATIONS", + "queries": [ + { + "module": "W&S", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"REJECTED\",\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Water Applications\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + }, + { + "module": "W&S", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"REJECTED\",\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Sewerage Applications\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "additive", + "drillChart": "none", + "aggregationPaths": [ + "Total Water Applications", + "Total Sewerage Applications" + ], + "insight": {}, + "_comment": "" + }, + "wsActiveUlbs": { + "chartName": "DSS_W&S_ACTIVE_ULBS", + "queries": [ + { + "module": "W&S", + "indexName": "receipts-consumers", + "aggrQuery": "{\"aggs\":{\"Active Ulbs\":{\"cardinality\":{\"field\":\"cityname.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "receiptdate" + } + ], + "translateTenantCode": true, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Active Ulbs" + ], + "insight": {}, + "_comment": " " + }, + "wsNewWaterConnection": { + "chartName": "DSS_W&S_NEW_WATER_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "wsapplications", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"applicationstatus.keyword\":\"Cancelled\"}}],\"must\":[{\"terms\":{\"servicetype.keyword\":[\"Water Charges\"]}}]}},\"aggs\":{\"Water Connections\":{\"value_count\":{\"field\":\"id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "@timestamp" + } + ], + "translateTenantCode": true, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Water Connections" + ], + "insight": {}, + "_comment": " " + }, + "wsNewSewerageConnection": { + "chartName": "DSS_W&S_NEW_WATER_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "wsapplications", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"applicationstatus.keyword\":\"Cancelled\"}}],\"must\":[{\"terms\":{\"servicetype.keyword\":[\"Water Charges\"]}}]}},\"aggs\":{\"Sewerage Connections\":{\"value_count\":{\"field\":\"id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "@timestamp" + } + ], + "translateTenantCode": true, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Sewerage Connections" + ], + "insight": {}, + "_comment": " " + }, + "wscumulativeConnections": { + "chartName": "DSS_W&S_CUMULATIVE_CONNECTION", + "queries": [ + { + "module": "W&S", + "dateRefField": "Data.connectionExecutionDate", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"Water Connections\":{\"date_histogram\":{\"field\":\"Data.connectionExecutionDate\",\"interval\":\"month\"},\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Connection\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + }, + { + "module": "W&S", + "dateRefField": "Data.connectionExecutionDate", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"Sewerage Connections\":{\"date_histogram\":{\"field\":\"Data.connectionExecutionDate\",\"interval\":\"month\"},\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Total Connection\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Water Connections", + "Sewerage Connections" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "wsConsumersByConnectionType": { + "chartName": "DSS_W&S_WATER_CONNECTION_BY_USAGE", + "queries": [ + { + "module": "W&S", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Water Consumers by Connection Type\":{\"terms\":{\"field\":\"Data.propertyUsageType.keyword\"},\"aggs\":{\"Total Connection\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": true, + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Water Consumers by Connection Type" + ], + "insight": {}, + "_comment": " " + }, + "wsConsumersByUsageType": { + "chartName": "DSS_W&S_SEWERAGE_CONNECTION_BY_USAGE", + "queries": [ + { + "module": "W&S", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"W & S Consumers by Usage Type\":{\"terms\":{\"field\":\"Data.propertyUsageType.keyword\"},\"aggs\":{\"Total Connection\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": true, + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "W & S Consumers by Usage Type" + ], + "insight": {}, + "_comment": " " + }, + "wsConsumersByChannel": { + "chartName": "DSS_W&S_CONNECTION_BY_CHANNEL", + "queries": [ + { + "module": "W&S", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"channel\":\"FIELD\"}},{\"term\":{\"channel\":\"SYSTEM\"}}],\"must\":[{\"term\":{\"status\":\"Approved\"}}]}},\"aggs\":{\"W & S Consumers by Channel\":{\"terms\":{\"field\":\"channel\",\"size\":7}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "W & S Consumers by Channel" + ], + "insight": {}, + "_comment": " " + }, + "wsConnectionAgeingDDR": { + "chartName": "DSS_W&S_CONNECTION_AGEING", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "Data.connectionExecutionDate", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-7d\/d\",\"to\":\"now-3d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-7d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}],\"format\":\"dd-MM-yyyy\"}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "Data.connectionExecutionDate", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-7d\/d\",\"to\":\"now-3d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-7d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}],\"format\":\"dd-MM-yyyy\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "wsConnectionAgeingUlb", + "action": "", + "plotLabel": "DDRs", + "isPostResponseHandler": true, + "aggregationPaths": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "newField": "Total Pending", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "wsConnectionAgeingUlb": { + "chartName": "DSS_W&S_CONNECTION_AGEING", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "Data.connectionExecutionDate", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"2\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":170,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "Data.connectionExecutionDate", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"2\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":170,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + } + ], + "isMdmsEnabled": false, + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "wsConnectionAgeingWard", + "action": "", + "plotLabel": "ULB", + "isPostResponseHandler": true, + "postAggregationTheory": "", + "aggregationPaths": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "newField": "Total Pending", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "wsConnectionAgeingWard": { + "chartName": "", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", + "dateRefField": "Data.@timestamp", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":170},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", + "dateRefField": "Data.@timestamp", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":170},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + } + ], + "isMdmsEnabled": false, + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "action": "", + "plotLabel": "Ward", + "isPostResponseHandler": true, + "postAggregationTheory": "", + "aggregationPaths": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "newField": "Total Pending Applications", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": "" + }, + "wnsCollectionBySelectedType": { + "chartName": "DSS_W&S_COLLECTION_BY_CHANNEL", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", + "dateRefField": "Data.transactionDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.tenantId.keyword\": \"pg.testing\"}},{\"terms\": {\"Data.paymentStatus.keyword\": [\"Cancelled\"]}}],\"must\": [{\"terms\": {\"Data.paymentStatus.keyword\": [ \"DEPOSITED\",\"NEW\"]}},{\"terms\": {\"Data.paymentDetails.businessService.keyword\": [\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\"]}}]}},\"aggs\": {\"collection_channels\": {\"terms\": {\"field\": \"Data.paymentMode.keyword\"},\"aggs\": {\"totalcollection_from mode\": {\"sum\": {\"field\": \"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "amount", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "collection_channels" + ], + "insight": {}, + "_comment": " collection/amount per collection channel", + "isPostResponseHandler": true, + "postAggregationTheory": "" + }, + "wnsCollectionByUsageType": { + "chartName": "DSS_W&S_COLLECTION_BY_USAGE_TYPE", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", + "dateRefField": "dataObject.transactionDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"AmountPaid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "amount", + "action": "", + "documentType": "_doc", + "drillChart": "collectionBySelectedType", + "drillFields": [ + "selectedType", + "" + ], + "aggregationPaths": [ + "Usage Type" + ], + "insight": {}, + "_comment": " collection/amount per usage type" + }, + "wsActiveWaterConnection": { + "chartName": "DSS_W&S_ACTIVE_WATER_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Active Water Connections\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Active Water Connections" + ], + "insight": { + "chartResponseMap": "wsActiveWaterConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "active water connections" + }, + "wsActiveMeteredWaterConnection": { + "chartName": "DSS_W&S_ACTIVE_METERED_WATER_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}},{\"terms\":{\"Data.connectionType.keyword\":[\"Metered\"]}}]}},\"aggs\":{\"Active Metered Water Connections\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Active Metered Water Connections" + ], + "insight": { + "chartResponseMap": "wsActiveMeteredWaterConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "active metered water connections" + }, + "wsActiveNonMeteredWaterConnection": { + "chartName": "DSS_W&S_ACTIVE_NON_METERED_WATER_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "water-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}},{\"terms\":{\"Data.connectionType.keyword\":[\"Non Metered\"]}}]}},\"aggs\":{\"Active Non-Metered Water Connections\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Active Non-Metered Water Connections" + ], + "insight": { + "chartResponseMap": "wsActiveNonMeteredWaterConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "active non-metered water connections" + }, + "wsActiveSewerageConnection": { + "chartName": "DSS_W&S_ACTIVE_SEWERAGE_CONNECTIONS", + "queries": [ + { + "module": "W&S", + "indexName": "sewerage-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.applicationStatus.keyword\":\"REJECTED\"}}],\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\"]}}]}},\"aggs\":{\"Active Sewerage Connections\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.connectionExecutionDate" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Active Sewerage Connections" + ], + "insight": { + "chartResponseMap": "wsActiveSewerageConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "active sewerage connections " + }, + "wstodaysCollectionv2": { + "chartName": "DSS_W&S_TODAYS_COLLECTION", + "queries": [ + { + "module": "W&S", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.paymentDetails.billDate.keyword\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Today's collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Today's collection" + ], + "insight": {}, + "_comment": "W&S today's collections" + }, + "wstotalCollectionv2": { + "chartName": "DSS_W&S_TOTAL_COLLECTION", + "queries": [ + { + "module": "W&S", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Collection" + ], + "insight": {}, + "_comment": "W&S total collections " + }, + "wstargetCollectionv2": { + "chartName": "DSS_W&S_TARGET_COLLECTION", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"ulbName.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"businessService.keyword\":\"W&S\"}}]}},\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Target Collection" + ], + "isDayUnit": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "insight": {}, + "_comment": " " + }, + "wstargetAchievedv2": { + "chartName": "DSS_W&S_TARGET_ACHIEVED", + "queries": [ + { + "module": "W&S", + "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"ulbName.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"businessService.keyword\":\"W&S\"}}]}},\"aggs\":{\"Actual Collection\":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" + }, + { + "module": "W&S", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Collection", + "Actual Collection" + ], + "insight": { + "chartResponseMap": "wstargetAchievedv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": " " + }, + "mcTodaysCollection": { + "chartName": "DSS_TOTAL_COLLECTION_TODAY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Todays Collection" + ], + "insight": {}, + "_comment": " " + }, + "mcTotalCollection": { + "chartName": "DSS_TOTAL_COLLECTION", + "queries": [ + { + "module": "COMMON", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Collection" + ], + "insight": {}, + "_comment": " " + }, + "mcCumulativeCollection": { + "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", + "queries": [ + { + "module": "COMMON", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "amount", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Collections" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "mcTargetAchieved": { + "chartName": "DSS_TARGET_ACHIEVED", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"district\" : \"dataObject.tenantData.city.districtCode\", \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection3\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Collection3", + "Actual collection" + ], + "insight": { + "chartResponseMap": "targetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "mcTotalCollectionCategoryWise": { + "chartName": "DSS_MC_COLLECTION:_CATEGORY_WISE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"order\":{\"total\":\"desc\"}},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Business Service" + ], + "insight": {}, + "_comment": " " + }, + "mcCollectionByPaymentType": { + "chartName": "DSS_MC_COLLECTION_BY_PAYMENT_TYPE", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Payment Mode" + ], + "insight": {}, + "_comment": "" + }, + "totalmcDDRRevenue": { + "chartName": "DSS_MC_KEY_FY_INDICATORS", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "Business Service", + "column": "Business Service" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "totalmcBoundaryRevenue", + "documentType": "_doc", + "action": "", + "plotLabel": "Business Service", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "totalmcBoundaryRevenue": { + "chartName": "DSS_MC_DEMAND_COLLECTION_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":2000,\"order\":{\"total\":\"asc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" + }, + { + "module": "COMMON", + "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", + "dateRefField": "", + "indexName": "dss-target_v1", + "aggrQuery": "{\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + } + ], + "filterKeys": [ + { + "key": "Business Service", + "column": "Business Service" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "totalmcBoundaryDrillDown", + "documentType": "_doc", + "action": "", + "plotLabel": "Business Service", + "aggregationPaths": [ + "Total Collection", + "Transactions", + "Target Collection" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + }, + { + "Target Collection": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "totalmcBoundaryDrillDown": { + "chartName": "DSS_MC_DEMAND_COLLECTION_BOUNDARYDDR", + "queries": [ + { + "module": "MC", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":200,\"order\":{\"Total Collection\":\"desc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" + } + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "filterKeys": [ + { + "key": "businessService", + "column": "Business Service" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "plotLabel": "Boundary", + "action": "", + "aggregationPaths": [ + "Total Collection", + "Transactions" + ], + "pathDataTypeMapping": [ + { + "Total Collection": "amount" + }, + { + "Transactions": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "mcTopCategories": { + "chartName": "DSS_MC_TOP_3_PERFORMING_CATEGORIES", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.@timestamp", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Payment Status\":{\"terms\":{\"field\":\"Data.paymentDetails.businessService.keyword\",\"order\": {\"Sum\": \"desc\"}},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Payment Status" + ], + "insight": {}, + "_comment": " Top Performing Ulbs for target achieved" + }, + "wscumulativeCollectionsv2": { + "chartName": "DSS_W&S_CUMULATIVE_COLLECTION", + "queries": [ + { + "module": "W&S", + "dateRefField": "Data.@timestamp", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"Water Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}},\"Sewerage Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "translateTenantCode": true, + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Water Collections", + "Sewerage Collections" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "_comment": "BPA charts below-----------------------------------------------------------------------", + "bpaTodaysCollection": { + "chartName": "DSS_BPA_TODAYS_COLLECTION", + "queries": [ + { + "module": "BPA", + "indexName": "dss-collection_v2", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"range\": { \"dataObject.paymentDetails.billDate.keyword\": { \"gte\": \"now-24h\", \"lte\": \"now\" } } }, { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pg.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Today's collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } }", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "dateRefField": "Data.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Today's Collection" + ], + "insight": { + "chartResponseMap": "bpaTodaysCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "BPA Today's collections " + }, + "bpaTotalCollection": { + "chartName": "DSS_BPA_TOTAL_COLLECTION", + "queries": [ + { + "module": "BPA", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": " { \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pg.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Total collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } } ", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "bpaTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "BPA total collections " + }, + "bpaTotalPlansScrutinized": { + "chartName": "DSS_BPA_TOTAL_PLANS_SCRUTINIZED", + "queries": [ + { + "module": "OBPS", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "Data.@timestamp", + "indexName": "edcr-index", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"terms\":{\"Data.applicationType.keyword\":[\"PERMIT\",\"OCCUPANCY_CERTIFICATE\"]}}]}},\"aggs\":{\"Total Plans Scrutnized\":{\"value_count\":{\"field\":\"Data.dcrNumber.keyword\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Plans Scrutnized" + ], + "insight": { + "chartResponseMap": "bpaTotalPlansScrutinized", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " Total Number of Complaints " + }, + "bpaTotalApplicationsSubmitted": { + "chartName": "DSS_BPA_TOTAL_APPLICATIONS_SUBMITTED", + "queries": [ + { + "module": "OBPS", + "indexName": "bpa-index", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Applications\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } }} ", + "dateRefField": "", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Applications" + ], + "insight": { + "chartResponseMap": "bpaTotalApplicationsSubmitted", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "BPA Total Applications" + }, + "bpaTotalPermitsIssued": { + "chartName": "DSS_BPA_TOTAL_PERMITS_ISSUED", + "queries": [ + { + "module": "OBPS", + "indexName": "bpa-index", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ], \"must\": [ { \"term\": { \"Data.status.keyword\": \"APPROVED\" } }, { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Permits Issued\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } } }", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Permits Issued" + ], + "insight": { + "chartResponseMap": "bpaTotalPermitsIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Total Permits Issued" + }, + "bpaTotalOCIssued": { + "chartName": "DSS_BPA_TOTAL_OC_ISSUED", + "queries": [ + { + "module": "OBPS", + "indexName": "bpa-index", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"APPROVED\"}},{\"terms\":{\"Data.businessService.keyword\":[\"BPA_OC\"]}}]}},\"aggs\":{\"Total OC Issued\":{\"value_count\":{\"field\":\"Data.applicationNo.keyword\"}}}}}}", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total OC Issued" + ], + "insight": { + "chartResponseMap": "bpaTotalOCIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Total OC Issued" + }, + "bpaTotalLandApplied": { + "chartName": "DSS_BPA_TOTAL_LAND_APPLIED", + "queries": [ + { + "module": "OBPS", + "indexName": "bpa-index", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\",\"BPA_OC\"] } } ] } }, \"aggs\": { \"Total Land Applied\": { \"sum\": { \"field\": \"Data.plotArea\" } } } } } }", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Land Applied" + ], + "insight": { + "chartResponseMap": "bpaTotalLandApplied", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Total Land Applied" + }, + "bpaAverageDaysToIssuePermit": { + "chartName": "DSS_BPA_AVERAGE_DAYS_ISSUE_PERMIT", + "queries": [ + { + "module": "OBPS", + "indexName": "bpa-index", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "aggrQuery": "{ \"aggs\": { \"BPA\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ] } }, \"aggs\": { \"Average days to issue Permit\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } }, { \"term\": { \"Data.status.keyword\": \"APPROVED\" } } ] } }, \"aggs\": { \"average_days\": { \"avg\": { \"script\": { \"source\": \"(doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value)/(86400*1000)\" } } } } } } } } }", + "dateRefField": "Data.@timestamp" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Average days to issue Permit" + ], + "insight": { + "chartResponseMap": "bpaAverageDaysToIssuePermit", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Average days to issue Permit" + }, + "bpaSLACompliance": { + "chartName": "DSS_BPA_SLA_COMPLIANCE", + "queries": [ + { + "module": "OBPS", + "indexName": "bpa-index", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "aggrQuery": "{ \"aggs\": { \"BPA\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ] } }, \"aggs\": { \"SLA Compliance Permit\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } }, { \"term\": { \"Data.status.keyword\": \"APPROVED\" } }, { \"script\": { \"script\": { \"source\": \"doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].valueTotal\",\"billed\":\"Billed>Total\"},\"script\":\"if(params.demand-params.billed<0){return 1;}\"}}}},\"count\":{\"sum_bucket\":{\"buckets_path\":\"Department>total-count-script\"}}}}", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "Data.eventTime" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "count" + ], + "insight": {}, + "_comment": "IFIX Surplus Collection" + }, + "dssIfixOutstandingEBills": { + "chartName": "DSS_IFIX_OUTSTANDING_E_BILLS", + "queries": [ + { + "module": "IFIX", + "indexName": "ifix-fiscal-events", + "aggrQuery": "{\"aggs\":{\"totalOutstandingAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long totalAmountPaid=0;long totalBillAmount=0;if(params['_source']['Data']['eventType']=='Bill'){for(int i=0;i=Long.parseLong(params['_source']['Data']['amountDetails'][i]['fromBillingPeriod'])&¤tEventTime<=Long.parseLong(params['_source']['Data']['amountDetails'][i]['toBillingPeriod'])){currentDemandAmount=currentDemandAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentDemandAmount;\"}}}}},\"Arrear Demand\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"arrearDemandAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long currentDemandAmount=0;if(params['_source']['Data']['eventType']=='Receipt'){String currentEventTimeString=params['_source']['Data']['eventTime'];long currentEventTime=Long.parseLong(currentEventTimeString);for(int i=0;iLong.parseLong(params['_source']['Data']['amountDetails'][i]['toBillingPeriod'])){currentDemandAmount=currentDemandAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentDemandAmount;\"}}}}},\"Current Bill\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"currentBillAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long currentBillAmount=0;if(params['_source']['Data']['eventType']=='Payment'){String currentEventTimeString=params['_source']['Data']['eventTime'];long currentEventTime=Long.parseLong(currentEventTimeString);for(int i=0;i=Long.parseLong(params['_source']['Data']['amountDetails'][i]['fromBillingPeriod'])){currentBillAmount=currentBillAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentBillAmount;\"}}}}},\"Old Bill\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"oldBillAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long currentBillAmount=0;if(params['_source']['Data']['eventType']=='Payment'){String currentEventTimeString=params['_source']['Data']['eventTime'];long currentEventTime=Long.parseLong(currentEventTimeString);for(int i=0;iLong.parseLong(params['_source']['Data']['amountDetails'][i]['toBillingPeriod'])){currentBillAmount=currentBillAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentBillAmount;\"}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Current Demand", + "Arrear Demand", + "Current Bill", + "Old Bill" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "dssIfixExpenditureComposition": { + "chartName": "DSS_IFIX_EXPENDITURE_COMPOSITION", + "queries": [ + { + "module": "IFIX", + "dateRefField": "Data.eventTime", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "ifix-fiscal-events", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.eventType.keyword\":[\"Demand\",\"Receipt\",\"Bill\"]}}]}},\"aggs\":{\"Expense\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"Collection By Expenditure\":{\"terms\":{\"field\":\"Data.attributes.expenditure.code.keyword\"},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Collection By Expenditure" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "dssIfixDemandAndBillMetricsByZone": { + "chartName": "DSS_IFIX_DEMAND_AND_BILL_METRICS_BY_ZONE", + "queries": [ + { + "module": "IFIX", + "requestQueryMap": "{\"ward\" : \"ward.keyword\",\"ulb\" : \"ulb.keyword\"}", + "dateRefField": "Data.eventTime", + "indexName": "ifix-fiscal-events", + "aggrQuery": "{\"aggs\":{\"Department\":{\"terms\":{\"field\":\"Data.hierarchyMap.zone.keyword\"},\"aggs\":{\"Demand\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Demand\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"Billed\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Bill\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"Collections\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Receipt\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"Paid\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Payment\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}}}}}}" + } + ], + "isMdmsEnabled": false, + "chartType": "table", + "valueType": "number", + "action": "", + "plotLabel": "Zone", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Demand", + "Billed", + "Collections", + "Paid" + ], + "pathDataTypeMapping": [ + { + "Demand": "amount" + }, + { + "Billed": "amount" + }, + { + "Collections": "amount" + }, + { + "Paid": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "dssIfixUnderperformingGPWSCs": { + "chartName": "DSS_IFIX_UNDERPERFORMING_GPWSCS", + "queries": [ + { + "module": "IFIX", + "requestQueryMap": "{\"ward\" : \"ward.keyword\",\"ulb\" : \"ulb.keyword\"}", + "dateRefField": "Data.eventTime", + "indexName": "ifix-fiscal-events", + "aggrQuery": "{\"aggs\":{\"Department\":{\"terms\":{\"field\":\"Data.hierarchyMap.zone.keyword\"},\"aggs\":{\"Demand\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Demand\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"Billed\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Bill\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"Collections\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Receipt\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"Paid\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Payment\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.amountDetails.amount\"}}}},\"comparator_script\":{\"bucket_script\":{\"buckets_path\":{\"bill\":\"Billed>Total\",\"paid\":\"Paid>Total\",\"demand\":\"Demand>Total\",\"collection\":\"Collections>Total\"},\"script\":\"Math.max(params.bill-params.paid,params.demand-params.collection)\"}},\"sales_bucket_sort\":{\"bucket_sort\":{\"sort\":[{\"comparator_script\":{\"order\":\"asc\"}}]}}}}}}" + } + ], + "isMdmsEnabled": false, + "chartType": "table", + "valueType": "number", + "action": "", + "plotLabel": "GPWSCS", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Demand", + "Billed", + "Collections", + "Paid" + ], + "pathDataTypeMapping": [ + { + "Demand": "amount" + }, + { + "Billed": "amount" + }, + { + "Collections": "amount" + }, + { + "Paid": "amount" + } + ], + "insight": {}, + "_comment": "" + }, + "nocTotalCollection": { + "chartName": "DSS_NOC_TOTAL_COLLECTION", + "queries": [ + { + "module": "FIRENOC", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate" + } + ], + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "nocTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "FIRE NOC total collections " + }, + "nocTotalApplications": { + "chartName": "DSS_NOC_TOTAL_APPLICATIONS", + "queries": [ + { + "module": "FIRENOC", + "indexName": "firenoc-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Applications\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.auditDetails.createdTime" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Applications" + ], + "insight": { + "chartResponseMap": "nocTotalApplications", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "FIRE NOC total applications " + }, + "nocProvisionalIssued": { + "chartName": "DSS_NOC_PROVISIONAL_ISSUED", + "queries": [ + { + "module": "FIRENOC", + "indexName": "firenoc-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Provisional Fire Nocs issued\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}}]}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.auditDetails.createdTime" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Provisional Fire Nocs issued" + ], + "insight": { + "chartResponseMap": "nocProvisionalIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "FIRE NOC Provisional Issued" + }, + "nocActualIssued": { + "chartName": "DSS_NOC_ACTUAL_ISSUED", + "queries": [ + { + "module": "FIRENOC", + "indexName": "firenoc-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Actual Fire Nocs issued\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"NEW\"}}]}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.auditDetails.createdTime" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Actual Fire Nocs issued" + ], + "insight": { + "chartResponseMap": "nocActualIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "FIRE NOC Actual NOCs Issued" + }, + "nocAverageDaysToIssueProvisional": { + "chartName": "DSS_NOC_AVERAGE_DAYS_TO_ISSUE_PROVISIONAL", + "queries": [ + { + "module": "FIRENOC", + "indexName": "firenoc-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Average days to issue Provisional NOC\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}},{\"term\":{\"Data.fireNOCDetails.status.keyword\":\"APPROVED\"}}]}},\"aggs\":{\"average_days\":{\"avg\":{\"script\":{\"source\":\"(doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value)\/(86400*1000)\"}}}}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", + "dateRefField": "Data.auditDetails.createdTime" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Average days to issue Provisional NOC" + ], + "insight": { + "chartResponseMap": "nocAvgDayToIssueProvisional", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": "FIRE Avg. days to issue Provisional" + }, + "nocSLAComplianceProvisional": { + "chartName": "DSS_NOC_SLA_COMPLIANCE_PROVISIONAL", + "queries": [ + { + "module": "FIRENOC", + "indexName": "firenoc-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"SLA Compliance (Provisional NOC)\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}},{\"term\":{\"Data.fireNOCDetails.status.keyword\":\"APPROVED\"}},{\"script\":{\"script\":{\"source\":\"doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "isPostResponseHandler": true, + "chartType": "table", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "plotLabel": "ULB", + "aggregationPaths": [ + "TotalRequests", + "ClosedWithInSLA", + "ClosedOutsideSLA", + "CitizenAverageRating" + ], + "pathDataTypeMapping": [ + { + "TotalRequests": "number" + }, + { + "ClosedWithInSLA": "number" + }, + { + "ClosedOutsideSLA": "number" + }, + { + "CitizenAverageRating": "number" + } + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmBottomUlbByPerformance": { + "chartName": "DSS_FSM_BOTTOM_ULB_BY_PERFORMANCE", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" + } + ], + "chartType": "perform", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "drillChart": "ulbBottomDrillChart", + "action": "percentage", + "isRoundOff": true, + "plotLabel": "DSS_COMPLETION_RATE", + "order": "asc", + "limit": 3, + "aggregationPaths": [ + "Closed With In Sla", + "Total Applications" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": "" + }, + "ulbBottomDrillChart": { + "chartName": "DSS_FSM_ULB_PERFORMANCE", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"TotalRequests\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"ClosedWithInSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"ClosedOutsideSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "isPostResponseHandler": true, + "chartType": "table", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "plotLabel": "ULB", + "aggregationPaths": [ + "TotalRequests", + "ClosedWithInSLA", + "ClosedOutsideSLA", + "CitizenAverageRating" + ], + "pathDataTypeMapping": [ + { + "TotalRequests": "number" + }, + { + "ClosedWithInSLA": "number" + }, + { + "ClosedOutsideSLA": "number" + }, + { + "CitizenAverageRating": "number" + } + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmCollectionByUsageType": { + "chartName": "DSS_FSM_COLLECTION_BY_USAGE_TYPE", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.fsm.propertyUsage.keyword\"},\"aggs\":{\"Assessed Properties\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "amount", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Usage Type" + ], + "insight": {}, + "_comment": " " + }, + "fsmCapacityUtilization": { + "chartName": "DSS_FSTP_CAPACITY_UTILIZATION", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.vehicleTrip.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Capacity Utilization\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "percentage", + "action": "", + "isRoundOff": true, + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Capacity Utilization" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmMonthlyWasteCal": { + "chartName": "DSS_FSM_MONTHLY_WASTE_CAL", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.vehicleTrip.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Septage Dumped At Plant\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}},\"Septage Collected\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)/1000.0\"}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "isRoundOff": true, + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Septage Collected", + "Septage Dumped At Plant" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmCustomerRatings": { + "chartName": "DSS_FSM_CUSTOMER_RATINGS", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CustomerRating\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"CitizenAverageRating\":{\"avg\":{\"script\":\"intsum=0;intcount=0;if(params['_source']['Data']['history']!=null){for(iteminparams['_source']['Data']['history']){if(item.rating!=null){sum+=item.rating;}}}returnsum;\"}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "isRoundOff": true, + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Customer Rating" + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmTopDsoByPerformance": { + "chartName": "DSS_FSM_TOP_DSO_BY_PERFORMANCE", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "dsoTopDrillChart", + "documentType": "_doc", + "aggregationPaths": [ + "Raised", + "Closed Within SLA", + "Closed Outside SLA" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": "" + }, + "fsmBottomDsoByPerformance": { + "chartName": "DSS_FSM_BOTTOM_DSO_BY_PERFORMANCE", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "dsoBottomDrillChart", + "documentType": "_doc", + "aggregationPaths": [ + "Raised", + "Closed Within SLA", + "Closed Outside SLA" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": "" + }, + "fsmTotalReqByDistrict": { + "chartName": "DSS_FSM_TOTAL_REQ_BY_DISTRICT", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" + }, + { + "module": "FSM", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", + "dateRefField": "Data.payments.paymentDetails.receiptDate" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "District" + } + ], + "chartType": "xtable", + "valueType": "number", + "isRoundOff": true, + "drillChart": "fsmTotalReqByTenant", + "plotLabel": "District", + "excludedColumns": [ + "ClosedWithInSla" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "ClosedReq", + "TotalReq" + ], + "newField": "CompletionRateIn%", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "ClosedWithInSla", + "TotalReq" + ], + "newField": "SLAAchievedIn%", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "District", + "OpenReq", + "ClosedReq", + "TotalReq", + "CompletionRateIn%", + "SLAAchievedIn%", + "TotalCollection" + ] + }, + "insight": {}, + "_comment": " " + }, + "fsmTotalReqByTenant": { + "chartName": "DSS_FSM_TOTAL_REQ_BY_ULB", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}}}" + }, + { + "module": "FSM", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", + "dateRefField": "Data.payments.paymentDetails.receiptDate" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "chartType": "xtable", + "valueType": "number", + "isRoundOff": true, + "drillChart": "fsmTotalReqByWard", + "plotLabel": "ULB", + "excludedColumns": [ + "ClosedWithInSla" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "ClosedReq", + "TotalReq" + ], + "newField": "CompletionRateIn%", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "ClosedWithInSla", + "TotalReq" + ], + "newField": "SLAAchievedIn%", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "ULB", + "OpenReq", + "ClosedReq", + "TotalReq", + "CompletionRateIn%", + "SLAAchievedIn%", + "TotalCollection" + ] + }, + "insight": {}, + "_comment": " " + }, + "fsmTotalReqByWard": { + "chartName": "DSS_FSM_TOTAL_REQ_BY_WARD", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}}}" + }, + { + "module": "FSM", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "dateRefField": "Data.payments.paymentDetails.receiptDate" + } + ], + "filterKeys": [ + { + "key": "wardId", + "column": "Ward" + }, + { + "key": "ulbId", + "column": "ULB" + } + ], + "chartType": "xtable", + "valueType": "number", + "isRoundOff": true, + "drillChart": "none", + "action": "", + "documentType": "_doc", + "plotLabel": "Ward", + "excludedColumns": [ + "ClosedWithInSla" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "ClosedReq", + "TotalReq" + ], + "newField": "CompletionRateIn%", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "ClosedWithInSla", + "TotalReq" + ], + "newField": "SLAAchievedIn%", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "Ward", + "OpenReq", + "ClosedReq", + "TotalReq", + "CompletionRateIn%", + "SLAAchievedIn%", + "TotalCollection" + ] + }, + "insight": {}, + "_comment": " " + }, + "fsmVehicleLogReportByDDR": { + "chartName": "DSS_FSM_VECHILE_LOG_REPORT", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.vehicleTrip.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"No_Of_Trips\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}}}},\"Total_Septage_Collected\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageCollected\":{\"sum\":{\"field\":\"Data.vehicleTrip.tripDetails.volume\"}}}},\"Total_Septage_Dumped\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageDumped\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}},\"Capacity_Utilization\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"CapacityUtilization\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "District" + } + ], + "isPostResponseHandler": true, + "chartType": "xtable", + "valueType": "number", + "action": "", + "isRoundOff": true, + "documentType": "_doc", + "drillChart": "fsmVehicleLogReportByTenant", + "plotLabel": "District", + "aggregationPaths": [ + "NoOfTrips", + "TotalSeptageCollected", + "TotalSeptageDumped", + "CapacityUtilization" + ], + "pathDataTypeMapping": [ + { + "NoOfTrips": "number" + }, + { + "TotalSeptageCollected": "number" + }, + { + "TotalSeptageDumped": "number" + }, + { + "CapacityUtilization": "number" + } + ], + "isCumulative": true, + "interval": "month", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "CapacityUtilization" + ], + "_comments": " " + } + ], + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "District", + "NoOfTrips", + "TotalSeptageCollected", + "TotalSeptageDumped", + "CapacityUtilization" + ] + }, + "insight": {}, + "_comment": " " + }, + "fsmVehicleLogReportByTenant": { + "chartName": "DSS_FSM_VECHILE_LOG_REPORT", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.vehicleTrip.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.vehicleTrip.tenantId.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "isPostResponseHandler": true, + "chartType": "xtable", + "valueType": "number", + "action": "", + "isRoundOff": true, + "documentType": "_doc", + "drillChart": "fsmVehicleLogReportByVehicleNo", + "plotLabel": "Boundary", + "aggregationPaths": [ + "NoOfTrips", + "TotalSeptageCollected", + "TotalSeptageDumped", + "CapacityUtilization" + ], + "pathDataTypeMapping": [ + { + "NoOfTrips": "number" + }, + { + "TotalSeptageCollected": "number" + }, + { + "TotalSeptageDumped": "number" + }, + { + "CapacityUtilization": "number" + } + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmVehicleLogReportByVehicleNo": { + "chartName": "DSS_FSM_VECHILE_LOG_REPORT", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.vehicleTrip.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Vehicle Reg No\":{\"terms\":{\"field\":\"Data.vehicleTrip.vehicle.registrationNumber.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"TankCapacity\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.vehicle.tankCapacity'].value)\"}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "registrationNumber", + "column": "Vehicle_No" + }, + { + "key": "wardId", + "column": "Ward" + }, + { + "key": "ulbId", + "column": "ULB" + } + ], + "isPostResponseHandler": true, + "chartType": "xtable", + "valueType": "number", + "action": "", + "isRoundOff": true, + "documentType": "_doc", + "drillChart": "none", + "plotLabel": "Vehicle_No", + "aggregationPaths": [ + "NoOfTrips", + "TotalSeptageCollected", + "TotalSeptageDumped", + "CapacityUtilization", + "TankCapacity" + ], + "pathDataTypeMapping": [ + { + "NoOfTrips": "number" + }, + { + "TotalSeptageCollected": "number" + }, + { + "TotalSeptageDumped": "number" + }, + { + "CapacityUtilization": "number" + }, + { + "TankCapacity": "number" + } + ], + "isCumulative": true, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "fsmCollectionByGender": { + "chartName": "DSS_FSM_RESQUEST_BY_GENDER", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pg.testing\"}}]}}, \"aggs\": {\"Gender\": {\"terms\": {\"field\": \"Data.fsm.citizen.gender.keyword\"}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Gender" + ], + "insight": {}, + "_comment": " " + }, + "fsmRequestByPaymentPreference": { + "chartName": "DSS_FSM_RESQUEST_BY_PAYMENT_PREFERENCE", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pg.testing\"}}]}}, \"aggs\": {\"Payment Preference\": {\"terms\": {\"field\": \"Data.fsm.paymentPreference.keyword\"}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Payment Preference" + ], + "insight": {}, + "_comment": " " + }, + "fsmTotalRequestsbyStatus": { + "chartName": "DSS_FSM_TOTAL_REQUESTS_BY_STATUS", + "queries": [ + { + "module": "FSM", + "dateRefField": "Data.fsm.@timestamp", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", + "indexName": "fsm", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Completed\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"completed\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CITIZEN_FEEDBACK_PENDING\",\"COMPLETED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Received\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"received\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CREATED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Pending\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"pending\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"PENDING_APPL_FEE_PAYMENT\",\"DSO_INPROGRESS\",\"PENDING_DSO_APPROVAL\",\"ASSING_DSO\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Rejected\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"rejected\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"REJECTED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Received", + "Completed", + "Pending", + "Rejected" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "dssBNDTotalApplication": { + "chartName": "DSS_TOTAL_APPLICATION", + "queries": [ + { + "module": "COMMON", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", + "dateRefField": "Data.dateofissue" + }, + { + "module": "COMMON", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Death total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", + "dateRefField": "Data.dateofissue" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Birth total Application", + "Death total Application" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Birth total Application", + "Death total Application" + ], + "newField": "Total Applications", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": " totalApplication is the chartId" + }, + "dssBNDTotalCollection": { + "chartName": "DSS_TOTAL_COLLECTION", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "dssBNDTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "birthDownloadTrend": { + "chartName": "DSS_BIRTH_DOWNLOAD_TREND", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\": [{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"downloads\":{\"date_histogram\":{\"field\": \"Data.dateofissue\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Total\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Count\": {\"value_count\": {\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "downloads" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "birthTransactionsByChannel": { + "chartName": "DSS_DOWNLOADS_BY_CHANNEL", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Transactions By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Transactions By Channels" + ], + "insight": {}, + "_comment": "Transactions By Channel" + }, + "dssBirthByGender": { + "chartName": "DSS_BIRTH_BY_GENDER", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth By Gender\":{\"terms\":{\"field\":\"Data.gender.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Birth By Gender" + ], + "insight": {}, + "_comment": "Birth By Gender" + }, + "dssBirthByPlace": { + "chartName": "DSS_BIRTH_BY_PLACE", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth By Place\":{\"terms\":{\"field\":\"Data.birthPlace.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Birth By Place" + ], + "insight": {}, + "_comment": "Birth By Place" + }, + "xBirthDownloadStatusByBoundary": { + "chartName": "DSS_BND_CERT_DOWNLOAD_BY_BOUNDARY", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xBirthDownloadByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xBirthDownloadByUlb": { + "chartName": "DSS_BND_CERT_DOWNLOAD_BY_ULB", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xBirthDownloadByWard", + "documentType": "_doc", + "action": "", + "plotLabel": "ULB", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xBirthDownloadByWard": { + "chartName": "DSS_BND_CERT_DOWNLOAD_BY_WARD", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "ward", + "column": "Ward" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xBirthDownloadByChannel": { + "chartName": "DSS_DOWNLOADS_BY_CHANNEL", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "birth-cert-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"Data.tenantId.keyword\": \"pg.testing\"\n }\n },\n {\n \"terms\": {\n \"Data.applicationStatus.keyword\": [\n \"ACTIVE\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"ULBs \": {\n \"terms\": {\n \"field\": \"Data.tenantId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Total Applications\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"ivr\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"ivr\"\n ]\n }\n },\n \"aggs\": {\n \"ivr\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"mobileapp\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"mobileapp\"\n ]\n }\n },\n \"aggs\": {\n \"mobileapp\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"web\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"web\"\n ]\n }\n },\n \"aggs\": {\n \"web\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Boundary", + "aggregationPaths": [ + "ivr", + "mobileapp", + "web", + "Total Applications" + ], + "insight": {}, + "_comment": "" + }, + "deathTransactionsByChannel": { + "chartName": "DSS_DOWNLOADS_BY_CHANNEL", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Transactions By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Transactions By Channels" + ], + "insight": {}, + "_comment": "Transactions By Channel" + }, + "xDeathDownloadStatusByTenant": { + "chartName": "DSS_BND_CERT_DOWNLOAD_BY_TENANT", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Downloads\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\",\"PAID\",\"PAID_PDF_GENERATED\",\"PAID_DOWNLOAD\"]}}]}},\"aggs\":{\"Downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Boundary", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "insight": {}, + "_comment": "" + }, + "xDeathDownloadByChannel": { + "chartName": "DSS_DOWNLOADS_BY_CHANNEL", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "death-cert-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"Data.tenantId.keyword\": \"pg.testing\"\n }\n },\n {\n \"terms\": {\n \"Data.applicationStatus.keyword\": [\n \"ACTIVE\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"ULBs \": {\n \"terms\": {\n \"field\": \"Data.tenantId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Total Applications\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"ivr\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"ivr\"\n ]\n }\n },\n \"aggs\": {\n \"ivr\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"mobileapp\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"mobileapp\"\n ]\n }\n },\n \"aggs\": {\n \"mobileapp\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"web\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"web\"\n ]\n }\n },\n \"aggs\": {\n \"web\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Boundary", + "aggregationPaths": [ + "ivr", + "mobileapp", + "web", + "Total Applications" + ], + "insight": {}, + "_comment": "" + }, + "todaysNetCollectionv2": { + "chartName": "DSS_TODAYS_NET_COLLECTION", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d\/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d\/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Todays Collection" + ], + "insight": { + "chartResponseMap": "todaysNetCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "dssBNDNetCollection": { + "chartName": "DSS_BND_NET_COLLECTION", + "queries": [ + { + "module": "BIRTH-DEATH", + "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "translateTenantCode": false, + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" + }, + "_comment": " " + }, + "bndcumulativeCollection": { + "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + }, + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "amount", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Collections" + ], + "isCumulative": true, + "interval": "day", + "insight": {}, + "_comment": " " + }, + "transactionCountByPaymentMode": { + "chartName": "DSS_TRASACTIONS_BY_PAYMENT_MODE", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Transaction Count\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}}}}}}" + }, + { + "module": "DEATH", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Transaction Count\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "License Instrument Type" + ], + "insight": {}, + "_comment": " License Application which are issued by License Type" + }, + "xBirthCollectionByTenant": { + "chartName": "DSS_CERT_COLLECTION_BY_TENANT", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Transactions\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billId.keyword\"}}}},\"Total Amount\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Boundary", + "excludedColumns": [], + "oldComputedFields": [], + "insight": {}, + "_comment": "" + }, + "xDeathCollectionByTenant": { + "chartName": "DSS_CERT_COLLECTION_BY_TENANT", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Transactions\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billId.keyword\"}}}},\"Total Amount\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "Boundary" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Boundary", + "excludedColumns": [], + "oldComputedFields": [], + "insight": {}, + "_comment": "" + }, + "transactionByPaymentModeBreakUp": { + "chartName": "DSS_TRASACTIONS_BY_PAYMENT_MODE", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"Total Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}}}}}}" + }, + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"Total Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "Total Transactions", + "CASH", + "CHEQUE", + "OFFLINE_NEFT", + "OFFLINE_RTGS", + "CARD", + "ONLINE" + ], + "insight": {}, + "_comment": "" + }, + "collectionByPaymentModeBreakUp": { + "chartName": "DSS_COLLECTIONS_BY_PAYMENT_MODE", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + }, + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Boundary", + "aggregationPaths": [ + "Total Collection", + "CASH", + "CHEQUE", + "OFFLINE_NEFT", + "OFFLINE_RTGS", + "CARD", + "ONLINE" + ], + "insight": {}, + "_comment": "" + }, + "deathDownloadTrend": { + "chartName": "DSS_DEATH_DOWNLOAD_TREND", + "queries": [ + { + "module": "DEATH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\": [{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"downloads\":{\"date_histogram\":{\"field\": \"Data.dateofissue\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Total\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Count\": {\"value_count\": {\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "downloads" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "xDeathDownloadsByBoundary": { + "chartName": "DSS_CERT_DOWNLOAD_BY_BOUNDARY", + "queries": [ + { + "module": "DEATH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xDeathDownloadsByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "aggregationPaths": [ + "total_downloads_mobile_app", + "total_downloads_web", + "total_downloads", + "delayed_registrations" + ], + "pathDataTypeMapping": [ + { + "total_downloads_mobile_app": "number" + }, + { + "total_downloads_web": "number" + }, + { + "total_downloads": "number" + }, + { + "delayed_registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xDeathDownloadsByUlb": { + "chartName": "DSS_CERT_DOWNLOAD_BY_ULB", + "queries": [ + { + "module": "DEATH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ulb\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "ulb", + "column": "Ulb" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "xDeathDownloadsByWard", + "documentType": "_doc", + "action": "", + "plotLabel": "Ulb", + "aggregationPaths": [ + "total_downloads_mobile_app", + "total_downloads_web", + "total_downloads", + "delayed_registrations" + ], + "pathDataTypeMapping": [ + { + "total_downloads_mobile_app": "number" + }, + { + "total_downloads_web": "number" + }, + { + "total_downloads": "number" + }, + { + "delayed_registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xDeathDownloadsByWard": { + "chartName": "DSS_CERT_DOWNLOAD_BY_WARD", + "queries": [ + { + "module": "DEATH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "ward", + "column": "Ward" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "aggregationPaths": [ + "total_downloads_mobile_app", + "total_downloads_web", + "total_downloads", + "delayed_registrations" + ], + "pathDataTypeMapping": [ + { + "total_downloads_mobile_app": "number" + }, + { + "total_downloads_web": "number" + }, + { + "total_downloads": "number" + }, + { + "delayed_registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "dssBirthTotalApplication": { + "chartName": "DSS_BIRTH_TOTAL_APPLICATION", + "queries": [ + { + "module": "BIRTH", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Birth total Application" + ], + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totalApplication is the chartId" + }, + "dssDeathTotalApplication": { + "chartName": "DSS_DEATH_TOTAL_APPLICATION", + "queries": [ + { + "module": "DEATH", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Death total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Death total Application" + ], + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totalApplication is the chartId" + }, + "birthNetCollection": { + "chartName": "DSS_BIRTH_NET_COLLECTION", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Birth total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Birth total Collection" + ], + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "deathNetCollection": { + "chartName": "DSS_DEATH_NET_COLLECTION", + "queries": [ + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Death total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Death total Collection" + ], + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "deathByCategory": { + "chartName": "DSS_DEATH_BY_CATEGORY", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"category\":{\"terms\":{\"field\":\"Data.gender.keyword\"}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "deathByCategoryDrilldownAge", + "drillFields": [ + "selectedType", + "" + ], + "aggregationPaths": [ + "category" + ], + "insight": {}, + "_comment": "Death By Age Category" + }, + "deathByCategoryDrilldownAge": { + "chartName": "DSS_DEATH_BY_CATEGORY_DRILLDOWN_AGE", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\":\"Data.ward.keyword\",\"district\":\"Data.district.keyword\",\"tenantId\":\"Data.tenantId.keyword\",\"selectedType\":\"Data.gender.keyword\"}", + "dateRefField": "Data.dateofissue", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"1_lessthan-2\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"to\":1}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"2_2-14\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":2,\"to\":14}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"3_15-29\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":15,\"to\":29}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"4_30-44\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":30,\"to\":44}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"5_45-59\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":45,\"to\":59}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"6_60-74\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":60,\"to\":74}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"7_greaterthan-75\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":75}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "filterKeys": [ + { + "key": "selectedType", + "column": "gender" + } + ], + "drillChart": "none", + "order": "asc", + "aggregationPaths": [ + "1_lessthan-2", + "2_2-14", + "3_15-29", + "4_30-44", + "5_45-59", + "6_60-74", + "7_greaterthan-75" + ], + "insight": {}, + "_comment": "Death By Age Category" + }, + "financeTotalCollection": { + "chartName": "DSS_FINANCE_TOTAL_COLLECTION", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"totalreceiptvoucheramounts\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Collection" + ], + "insight": { + "chartResponseMap": "financeTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "financeTotalBillAmount": { + "chartName": "DSS_FINANCE_TOTAL_BILL_AMOUNT", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[]}},\"aggs\":{\"Total Bill Amount\":{\"sum\":{\"field\":\"totalbillamounts\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Bill Amount" + ], + "insight": { + "chartResponseMap": "financeTotalBillAmount", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "financeTotalPaidAmount": { + "chartName": "DSS_FINANCE_TOTAL_PAID_AMOUNT", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[]}},\"aggs\":{\"Total Paid Amount\":{\"sum\":{\"field\":\"totalpaymentamounts\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "Amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Paid Amount" + ], + "insight": { + "chartResponseMap": "financeTotalPaidAmount", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "financeTotalBillsGenerated": { + "chartName": "DSS_FINANCE_TOTAL_BILLS_GENERATED", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[]}},\"aggs\":{\"Bills Generated\":{\"sum\":{\"field\":\"numberofbills\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Bills Generated" + ], + "insight": { + "chartResponseMap": "financeTotalBillsGenerated", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "financeTotalPayments": { + "chartName": "DSS_FINANCE_TOTAL_PAYMENTS", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[]}},\"aggs\":{\"Total Payments\":{\"sum\":{\"field\":\"numberofpayments\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Payments" + ], + "insight": { + "chartResponseMap": "financeTotalPayments", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "financeInsights": { + "chartName": "DSS_FINANCE_BOUNDARY", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Tenants\":{\"terms\":{\"field\":\"ulbname.keyword\"},\"aggs\":{\"City Name\":{\"terms\":{\"field\":\"ulbname.keyword\"}},\"Total Bills Generated\":{\"sum\":{\"field\":\"numberofbills\"}},\"Total Vouchers Generated\":{\"sum\":{\"field\":\"numberofvouchersforbill\"}},\"Total Billed Amount\":{\"sum\":{\"field\":\"totalbillamounts\"}},\"Bills Paid\":{\"sum\":{\"field\":\"numberofbillspaid\"}},\"Payments Done\":{\"sum\":{\"field\":\"numberofpayments\"}},\"Bill Amount Paid\":{\"sum\":{\"field\":\"billamountpaid\"}},\"Receipt Vouchers Passed\":{\"sum\":{\"field\":\"numberofreceiptvoucher\"}},\"Vendors\":{\"sum\":{\"field\":\"numberofcontractorsuppliers\"}},\"Bank Accounts\":{\"sum\":{\"field\":\"numberofbankaccounts\"}},\"Finance Collection\":{\"sum\":{\"field\":\"totalreceiptvoucheramounts\"}}}}}}}}" + } + ], + "isMdmsEnabled": false, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "amount", + "action": "", + "plotLabel": "DDRs", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "documentType": "_doc", + "drillChart": "financeInsightsUlbDrilldown", + "aggregationPaths": [ + "Total Bills Generated", + "Total Vouchers Generated", + "Total Billed Amount", + "Bills Paid", + "Payments Done", + "Bill Amount Paid", + "Receipt Vouchers Passed", + "Finance Collection", + "Vendors", + "Bank Accounts" + ], + "pathDataTypeMapping": [ + { + "Total Bills Generated": "number" + }, + { + "Total Vouchers Generated": "number" + }, + { + "Total Billed Amount": "amount" + }, + { + "Bills Paid": "number" + }, + { + "Payments Done": "number" + }, + { + "Bill Amount Paid": "amount" + }, + { + "Receipt Vouchers Passed": "number" + }, + { + "Finance Collection": "amount" + }, + { + "Vendors": "number" + }, + { + "Bank Accounts": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "financeInsightsUlbDrilldown": { + "chartName": "DSS_FINANCE_BOUNDARY_ULB_DRILLDOWN", + "queries": [ + { + "module": "FINANCE", + "dateRefField": "timestamp", + "requestQueryMap": "{\"region\" : \"regionname.keyword\",\"district\" : \"districtname.keyword\", \"ulb\" : \"ulbname.keyword\"}", + "indexName": "financeindex-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Tenants\":{\"terms\":{\"field\":\"ulbname.keyword\"},\"aggs\":{\"City Name\":{\"terms\":{\"field\":\"ulbname.keyword\"}},\"Total Bills Generated\":{\"sum\":{\"field\":\"numberofbills\"}},\"Total Vouchers Generated\":{\"sum\":{\"field\":\"numberofvouchersforbill\"}},\"Total Billed Amount\":{\"sum\":{\"field\":\"totalbillamounts\"}},\"Bills Paid\":{\"sum\":{\"field\":\"numberofbillspaid\"}},\"Payments Done\":{\"sum\":{\"field\":\"numberofpayments\"}},\"Bill Amount Paid\":{\"sum\":{\"field\":\"billamountpaid\"}},\"Receipt Vouchers Passed\":{\"sum\":{\"field\":\"numberofreceiptvoucher\"}},\"Vendors\":{\"sum\":{\"field\":\"numberofcontractorsuppliers\"}},\"Bank Accounts\":{\"sum\":{\"field\":\"numberofbankaccounts\"}},\"Finance Collection\":{\"sum\":{\"field\":\"totalreceiptvoucheramounts\"}}}}}}}}" + } + ], + "isMdmsEnabled": false, + "filterKeys": [ + { + "key": "ulb", + "column": "ULBs" + } + ], + "chartType": "table", + "valueType": "amount", + "action": "", + "plotLabel": "ULBs", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Total Bills Generated", + "Total Vouchers Generated", + "Total Billed Amount", + "Bills Paid", + "Payments Done", + "Bill Amount Paid", + "Receipt Vouchers Passed", + "Finance Collection", + "Vendors", + "Bank Accounts" + ], + "pathDataTypeMapping": [ + { + "Total Bills Generated": "number" + }, + { + "Total Vouchers Generated": "number" + }, + { + "Total Billed Amount": "amount" + }, + { + "Bills Paid": "number" + }, + { + "Payments Done": "number" + }, + { + "Bill Amount Paid": "amount" + }, + { + "Receipt Vouchers Passed": "number" + }, + { + "Finance Collection": "amount" + }, + { + "Vendors": "number" + }, + { + "Bank Accounts": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "nssBirthCertificateDownloadTrend": { + "chartName": "NSS_BIRTH_CERTIFICATE_DOWNLOAD_TREND", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "date", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"downloads\\\":{\\\"date_histogram\\\":{\\\"field\\\":\\\"date\\\",\\\"interval\\\":\\\"intervalvalue\\\"},\\\"aggs\\\":{\\\"Applications Total\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"channel\\\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "downloads" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "nssNumberOfBirthsTodayByGender": { + "chartName": "NSS_NUMBER_OF_BIRTHS_TODAY_BY_GENDER", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"ward.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", + "dateRefField": "date", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Number of Birth Today By Gender\":{\"terms\":{\"field\":\"gender.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"_id\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Number of Births Today By Gender" + ], + "insight": {}, + "_comment": "Number of Births Today By Gender" + }, + "nssNumberOfBirthCertificateDownloadByChannel": { + "chartName": "NSS_NUMBER_OF_BIRTH_CERTIFICATE_DOWNLOAD_BY_CHANNEL", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"ward.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", + "dateRefField": "date", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Number Of Birth Certificate Download By Channel\\\":{\\\"terms\\\":{\\\"field\\\":\\\"channel.keyword\\\"},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"_id\\\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Number Of Birth Certificate Download By Channel" + ], + "insight": {}, + "_comment": "Number Of Birth Certificate Download By Channel" + }, + "nssBirthTotalCertificateDownload": { + "chartName": "NSS_BIRTH_TOTAL_CERTIFICATE_DOWNLOAD", + "queries": [ + { + "module": "BIRTH", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Birth total Certificate Download\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"totalDownloads\\\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"ward.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", + "dateRefField": "date" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Birth total Certificate Download" + ], + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totalApplication is the chartId" + }, + "nssBirthTodaysCollection": { + "chartName": "NSS_BIRTH_TODAYS_COLLECTION", + "queries": [ + { + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Birth todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Birth todays Collection" + ], + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "nssNumberOfBirthCertificateDownloadByBoundary": { + "chartName": "NSS_BND_CERT_DOWNLOAD_BY_BOUNDARY", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "dateRefField": "date", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Total Downloads (Mobile App)\\\":{\\\"filter\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"terms\\\":{\\\"channel\\\":[\\\"mobileapp\\\"]}}]}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"certificateDownloadsByBoundaryByMobileApp\\\"}}}},\\\"Total Downloads (Web)\\\":{\\\"filter\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"terms\\\":{\\\"channel\\\":[\\\"web\\\"]}}]}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"certificateDownloadsByBoundaryByWeb\\\"}}}},\\\"Total Downloads\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"totalCertificateDownload\\\"}},\\\"Delayed Registrations\\\":{\\\"filter\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"script\\\":{\\\"script\\\":{\\\"source\\\":\\\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\\\",\\\"lang\\\":\\\"painless\\\",\\\"params\\\":{\\\"threshold\\\":31556952000}}}}]}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"delayedRegistration\\\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xNssBirthDownloadByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xNssBirthDownloadByUlb": { + "chartName": "NSS_BND_CERT_DOWNLOAD_BY_ULB", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "dateRefField": "date", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"ulb\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByMobileApp\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByWeb\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"totalCertificateDownload\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"delayedRegistration\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xNssBirthDownloadByWard", + "documentType": "_doc", + "action": "", + "plotLabel": "ULB", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xNssBirthDownloadByWard": { + "chartName": "NSS_BND_CERT_DOWNLOAD_BY_WARD", + "queries": [ + { + "module": "BIRTH", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "dateRefField": "date", + "indexName": "birth-cert-national-dashboard", + "aggrQuery": "\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"ulb\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByMobileApp\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByWeb\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"totalCertificateDownload\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"delayedRegistration\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "ward", + "column": "Ward" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "nssDeathCertificateDownloadTrend": { + "chartName": "NSS_DEATH_CERTIFICATE_DOWNLOAD_TREND", + "queries": [ + { + "module": "DEATH", + "dateRefField": "date", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"downloads\\\":{\\\"date_histogram\\\":{\\\"field\\\":\\\"date\\\",\\\"interval\\\":\\\"intervalvalue\\\"},\\\"aggs\\\":{\\\"Applications Total\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"channel\\\"}}}}}}}}}}" + } + ], + "chartType": "line", + "valueType": "number", + "action": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "downloads" + ], + "isCumulative": false, + "interval": "month", + "insight": {}, + "_comment": " " + }, + "nssNumberOfDeathsTodayByGender": { + "chartName": "NSS_NUMBER_OF_DEATHS_TODAY_BY_GENDER", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"ward.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", + "dateRefField": "date", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Number of death Today By Gender\":{\"terms\":{\"field\":\"gender.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"_id\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Number of Deaths Today By Gender" + ], + "insight": {}, + "_comment": "Number of Deaths Today By Gender" + }, + "nssNumberOfDeathCertificateDownloadByChannel": { + "chartName": "NSS_NUMBER_OF_DEATH_CERTIFICATE_DOWNLOAD_BY_CHANNEL", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"ward.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", + "dateRefField": "date", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Number Of Death Certificate Download By Channel\\\":{\\\"terms\\\":{\\\"field\\\":\\\"channel\\\"},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"_id\\\"}}}}}}}}" + } + ], + "chartType": "pie", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Number Of Death Certificate Download By Channel" + ], + "insight": {}, + "_comment": "Number Of Death Certificate Download By Channel" + }, + "nssDeathTotalCertificateDownload": { + "chartName": "NSS_DEATH_TOTAL_CERTIFICATE_DOWNLOAD", + "queries": [ + { + "module": "DEATH", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Death total Certificate Download\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"totalDownloads\\\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"ward.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", + "dateRefField": "date" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Death total Certificate Download" + ], + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " totalApplication is the chartId" + }, + "nssDeathTodaysCollection": { + "chartName": "NSS_DEATH_TODAYS_COLLECTION", + "queries": [ + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Death todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Death todays Collection" + ], + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" + }, + "_comment": " " + }, + "nssNumberOfDeathCertificateDownloadByBoundary": { + "chartName": "NSS_DEATH_CERT_DOWNLOAD_BY_BOUNDARY", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "dateRefField": "date", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\\\"aggs\\\":{\\\"AGGR\\\":{\\\"filter\\\":{\\\"bool\\\":{}},\\\"aggs\\\":{\\\"Total Downloads (Mobile App)\\\":{\\\"filter\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"terms\\\":{\\\"channel\\\":[\\\"mobileapp\\\"]}}]}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"certificateDownloadsByBoundaryByMobileApp\\\"}}}},\\\"Total Downloads (Web)\\\":{\\\"filter\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"terms\\\":{\\\"channel\\\":[\\\"web\\\"]}}]}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"certificateDownloadsByBoundaryByWeb\\\"}}}},\\\"Total Downloads\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"totalCertificateDownload\\\"}},\\\"Delayed Registrations\\\":{\\\"filter\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"script\\\":{\\\"script\\\":{\\\"source\\\":\\\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\\\",\\\"lang\\\":\\\"painless\\\",\\\"params\\\":{\\\"threshold\\\":31556952000}}}}]}},\\\"aggs\\\":{\\\"Count\\\":{\\\"value_count\\\":{\\\"field\\\":\\\"delayedRegistration\\\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xNssDeathDownloadByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xNssDeathDownloadByUlb": { + "chartName": "NSS_DEATH_CERT_DOWNLOAD_BY_ULB", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "dateRefField": "date", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"ulb\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByMobileApp\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByWeb\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"totalCertificateDownload\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"delayedRegistration\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xNssDeathDownloadByWard", + "documentType": "_doc", + "action": "", + "plotLabel": "ULB", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "xNssDeathDownloadByWard": { + "chartName": "NSS_DEATH_CERT_DOWNLOAD_BY_WARD", + "queries": [ + { + "module": "DEATH", + "requestQueryMap": "{\"wardId\" : \"ward\", \"district\" : \"region\", \"tenantId\" : \"ulb\"}", + "dateRefField": "date", + "indexName": "death-cert-national-dashboard", + "aggrQuery": "\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"ulb\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByMobileApp\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"channel\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"certificateDownloadsByBoundaryByWeb\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"totalCertificateDownload\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"delayedRegistration\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "ward", + "column": "Ward" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Ward", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Total Downloads (Mobile App)", + "Total Downloads (Web)", + "Total Downloads", + "Delayed Registrations" + ], + "pathDataTypeMapping": [ + { + "Total Downloads (Mobile App)": "number" + }, + { + "Total Downloads (Web)": "number" + }, + { + "Total Downloads": "number" + }, + { + "Delayed Registrations": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "totalNoOfProperties": { + "chartName": "DSS_PT_TOTAL_NO_OF_PROPERTIES", + "queries": [ + { + "module": "PT", + "indexName": "property-services", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total No Of Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Total No Of Application" + ], + "_comment": " totol properties count" + }, + "totalMutationProperties": { + "chartName": "DSS_PT_TOTAL_MUTATION_PROPERTIES", + "queries": [ + { + "module": "PT", + "indexName": "property-application", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.creationReason.keyword\":\"MUTATION\"}}]}},\"aggs\":{\"Mutation Applications\":{\"value_count\":{\"field\":\"Data.creationReason.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"district\" : \"Data.tenantData.city.districtCode\", \"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Mutation Applications" + ], + "_comment": " totol properties count" + }, + "totalMutationFeeCalculation": { + "chartName": "DSS_PT_MUTATION_FEE_CALCULATION", + "queries": [ + { + "module": "PT", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT.MUTATION\"}}]}},\"aggs\":{\"Mutataion Fee\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"district\" : \"Data.tenantData.city.districtCode\", \"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "documentType": "_doc", + "drillChart": "none", + "aggregationPaths": [ + "Mutataion Fee" + ], + "_comment": " totol properties count" + }, + "xptFyByDDRWithoutFilter": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"ACTIVE\"}}]}},\"aggs\":{\"Fys\":{\"terms\":{\"field\":\"Data.financialYear.keyword\",\"size\":10},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.financialYear.keyword\"}}}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xptFyByTenant", + "plotLabel": "DDRs", + "order": "desc", + "insight": {}, + "_comment": "" + }, + "xptFyByTenantWithoutFilter": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" }", + "dateRefField": "", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"ACTIVE\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Fys\":{\"terms\":{\"field\":\"Data.financialYear.keyword\",\"size\":10},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.financialYear.keyword\"}}}}}}}}}}" + } + ], + "filterKeys": [ + { + "key": "tenantId", + "column": "ULBs" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "xptFyByWard", + "plotLabel": "ULBs", + "order": "desc", + "insight": {}, + "_comment": "" + }, + "xptFyByWardWithoutFilter": { + "chartName": "DSS_TL_STATUS_BY_TENANT", + "queries": [ + { + "module": "PT", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\" , \"wardId\" : \"Data.ward.locality.name.keyword\"}", + "dateRefField": "", + "indexName": "property-assessments", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"od.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"ACTIVE\"}}]}},\"aggs\":{\"Wards \":{\"terms\":{\"field\":\"Data.ward.locality.name.keyword\"},\"aggs\":{\"Fys\":{\"terms\":{\"field\":\"Data.financialYear.keyword\",\"size\":10},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.financialYear.keyword\"}}}}}}}}}}\r\n" + } + ], + "filterKeys": [ + { + "key": "wardId", + "column": "Wards" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "plotLabel": "Wards", + "order": "desc", + "insight": {}, + "_comment": "" + }, + "avgTaxCollectedPerProperty": { + "chartName": "NATIONAL_PT_DSS_AVG_TAX_COLLECTION", + "queries": [ + { + "module": "PT", + "dateRefField": "date", + "requestQueryMap": "{\"ward\" : \"ward.keyword\",\"ulb\" : \"ulb.keyword\", \"state\" : \"state.keyword\"}", + "indexName": "pt-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}},\"No of properties paid\":{\"sum\":{\"field\":\"noOfPropertiesPaidToday\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "ND_Total_Collection", + "No of properties paid" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "DivisionComputedField", + "fields": [ + "ND_Total_Collection", + "No of properties paid" + ], + "newField": "Avg Tax Collected per property", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": { + "chartResponseMap": "avgTaxCollectedPerProperty", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Average tax collected per property" + }, + "totalNonTaxCollection": { + "chartName": "DSS_TOTAL_NON_TAX_COLLECTION", + "queries": [ + { + "module": "OBPS", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "obps-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "FIRENOC", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "firenoc-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "MC", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "mcollect-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "W&S", + "dateRefField": "date", + "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", + "indexName": "ws-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}" + }, + { + "module": "BND", + "dateRefField": "date", + "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", + "indexName": "bnd-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "amount", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "Total_Non_Tax_Collection" + ], + "insight": { + "chartResponseMap": "totalNonTaxCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Total Non Tax Collection" + }, + "nonTaxRevenueContribution": { + "chartName": "DSS_NON_TAX_REVENUE_CONTRIBUTION", + "queries": [ + { + "module": "OBPS", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "obps-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "FIRENOC", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "firenoc-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "MC", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "mcollect-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "W&S", + "dateRefField": "date", + "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", + "indexName": "ws-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}" + }, + { + "module": "BND", + "dateRefField": "date", + "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", + "indexName": "bnd-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}" + }, + { + "module": "TL", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "tl-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}" + }, + { + "module": "PT", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "pt-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}" + }, + { + "module": "TL", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "tl-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}" + }, + { + "module": "OBPS", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "obps-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "FIRENOC", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "firenoc-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "MC", + "dateRefField": "date", + "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", + "indexName": "mcollect-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" + }, + { + "module": "W&S", + "dateRefField": "date", + "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", + "indexName": "ws-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}" + }, + { + "module": "BND", + "dateRefField": "date", + "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", + "indexName": "bnd-national-dashboard", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "isRoundOff": true, + "aggregationPaths": [ + "Total_Non_Tax_Collection", + "ND_Total_Collection" + ], + "insight": { + "chartResponseMap": "totalNonTaxContribution", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "Total non tax collection" + }, + "_comment": "HEALTH charts below-----------------------------------------------------------------------", + "todaysVisits": { + "chartName": "DSS_HEALTH_NATIONAL_HOUSEHOLDS_VISITED_TODAY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Todays visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "filterForCurrentDay": true, + "action": "", + "aggregationPaths": [ + "Todays visits" + ], + "insight": { + "chartResponseMap": "todaysVisits", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "day" + }, + "_comment": " " + }, + "totalVisits": { + "chartName": "DSS_HEALTH_NATIONAL_TOTAL_HOUSEHOLD_VISITS", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total visits" + ], + "insight": {}, + "_comment": " " + }, + "populationCoveredToday": { + "chartName": "DSS_HEALTH_NATIONAL_POPULATION_COVERED_TODAY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "filterForCurrentDay": true, + "action": "", + "aggregationPaths": [ + "Population Covered Today" + ], + "insight": { + "chartResponseMap": "populationCoveredToday", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "day" + }, + "_comment": " " + }, + "totalPopulationCovered": { + "chartName": "DSS_HEALTH_NATIONAL_TOTAL_POPULATION_COVERED", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "insight": {}, + "_comment": " " + }, + "todayDistributions": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_DISTRIBUTED_TODAY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Today Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "filterForCurrentDay": true, + "action": "", + "aggregationPaths": [ + "Today Distributions" + ], + "insight": { + "chartResponseMap": "todayDistributions", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "day" + }, + "_comment": " " + }, + "totalDistributions": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_DISTRIBUTED_TOTAL", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Distributions" + ], + "insight": {}, + "_comment": " " + }, + "householdVisitsWithinDateRange": { + "chartName": "DSS_HEALTH_OVERVIEW_HOUSEHOLDS_VISITED_OVER_DATERANGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"DateRange visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "DateRange visits" + ], + "insight": {}, + "_comment": " " + }, + "householdVisitsTargetProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_TARGET_HOUSEHOLD_VISITS_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\":\"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Households per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Target Households per Day" + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "insight": {}, + "_comment": " " + }, + "householdVisitsTargetDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_TARGET_HOUSEHOLD_VISITS_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Households per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Target Households per Day" + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": true, + "insight": {}, + "_comment": " " + }, + "totalHouseholdCoverageProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_COVERAGE_HOUSEHOLD_VISITS_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\"aggs\":{\"Total visits\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.deliveredTo.keyword\":\"HOUSEHOLD\"}},{\"match_phrase\": {\"Data.productVariant\": \"PVAR\"}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Overall target\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"TargetValue\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "isCappedTillToday": true, + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total visits", + "Overall target" + ], + "postAggregationTheory": "", + "insight": { + "chartResponseMap": "totalHouseholdCoverageProvince", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, + "_comment": " " + }, + "totalHouseholdCoverageDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_COVERAGE_HOUSEHOLD_VISITS_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Overall target\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"TargetValue\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "isCappedTillToday": true, + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total visits", + "Overall target" + ], + "postAggregationTheory": "", + "insight": { + "chartResponseMap": "totalHouseholdCoverageDistrict", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, + "_comment": " " + }, + "distributionsByRange": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_DISTRIBUTED", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Distributions By Range\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Data.quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Distributions By Range" + ], + "insight": {}, + "_comment": " " + }, + "totalDistributionsTillToday": { + "chartName": "DSS_HEALTH_NATIONAL_TOTAL_BED_NETS_DISTRIBUTED_TILL_TODAY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Distributions" + ], + "insight": {}, + "_comment": " " + }, + "userSyncSummaryProvince": { + "chartName": "DSS_HEALTH_USER_SYNC_SUMMARY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "DATA SYNC", + "filterForCurrentDay": true, + "excludedColumns": [ + "S.N.", + "DATA SYNC", + "Total Users Created", + "Unique Users Synced" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" + } + ], + "insight": {}, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "userSyncSummaryDistrict": { + "chartName": "DSS_HEALTH_USER_SYNC_SUMMARY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "DATA SYNC", + "filterForCurrentDay": true, + "excludedColumns": [ + "S.N.", + "DATA SYNC", + "Total Users Created", + "Unique Users Synced" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Users Created" + ], + "newField": "Total_Users_Created", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Unique Users Synced" + ], + "newField": "Unique_Users_Synced", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Unique_Users_Synced", + "Total_Users_Created" + ], + "newField": "User_Sync_Rate", + "_comments": "" + } + ], + "insight": {}, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "bednetsTargetProvince": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_TARGET_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filters\": {\n \"filters\": {\n \"nets\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target by Range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target\"\n },\n \"script\": \"(params.target) * 365\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Target by Range" + ], + "insight": {}, + "_comment": " " + }, + "bednetsTargetDistrict": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_TARGET_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filters\": {\n \"filters\": {\n \"nets\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target by Range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target\"\n },\n \"script\": \"(params.target) * 365\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": true, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Target by Range" + ], + "insight": {}, + "_comment": " " + }, + "bednetsDistributionCoverageProvince": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_COVERAGE_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions Coverage\": {\n \"filter\": {\n \"bool\": {\n \"must\":[\n {\n \"term\":{\n \"Data.deliveredTo.keyword\":\"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\":{\n \"Data.productVariant\":\"PVAR\"\n }\n }]\n }\n },\n \"aggs\": {\n \"overallQuantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "isCappedTillToday": true, + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Total Distributions Coverage", + "Bednets Target" + ], + "insight": { + "chartResponseMap": "bednetsDistributionCoverage", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, + "_comment": " " + }, + "bednetsDistributionCoverageDistrict": { + "chartName": "DSS_HEALTH_NATIONAL_BED_NETS_COVERAGE_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Bednets Target\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions Coverage\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "isCappedTillToday": true, + "aggregationPaths": [ + "Total Distributions Coverage", + "Bednets Target" + ], + "insight": { + "chartResponseMap": "bednetsDistributionCoverage", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, + "_comment": " " + }, + "overviewPopulationCovered": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERED", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\":[\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n }, \n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered for Date range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Population Covered for Date range" + ], + "insight": {}, + "_comment": " " + }, + "overviewTotalPopulationCovered": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_POPULATION_COVERED", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "insight": {}, + "_comment": " " + }, + "overviewPopulationTargetedProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_TARGETED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Population per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd) * 365\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Target Population per Day" + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "insight": {}, + "_comment": " " + }, + "overviewPopulationTargetedDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_TARGETED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target Population per Day\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target per day\"\n },\n \"script\": \"(params.tpd) * 365\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Target Population per Day" + ], + "postAggregationTheory": "repsonseToDifferenceOfDates", + "isCappedByCampaignPeriod": true, + "insight": {}, + "_comment": " " + }, + "overviewPopulationCoverageAchievedProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERAGE_ACHIEVED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered till Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\":{\n \"bool\": {\n \"must\" : [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }" + } + ], + "chartType": "metric", + "valueType": "percentage", + "isCappedTillToday": true, + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Population Covered till Today", + "Overall Population Target" + ], + "insight": { + "chartResponseMap": "provincialOrDistrictPopulationCoverageAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, + "_comment": " " + }, + "overviewPopulationCoverageAchievedDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_POPULATION_COVERAGE_ACHIEVED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Household\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Covered till Today\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"sum\": \"SUM\"\n },\n \"script\": \"(params.sum) * 1.8\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Campaign Filter\":{\n \"bool\": {\n \"must\" : [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }" + } + ], + "chartType": "metric", + "isCappedTillToday": true, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Population Covered till Today", + "Overall Population Target" + ], + "insight": { + "chartResponseMap": "provincialOrDistrictPopulationCoverageAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "dateRange" + }, + "_comment": " " + }, + "totalHouseholdsNotDeliveredProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered\": {\n \"terms\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "totalHouseholdsNotDeliveredDrilldownProvince", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Not Delivered" + ], + "insight": {}, + "_comment": " " + }, + "totalHouseholdsNotDeliveredDrilldownProvince": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DRILLDOWN_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.deliveryComments.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered Drilldown\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Not Delivered Drilldown" + ], + "insight": {}, + "_comment": " " + }, + "totalHouseholdsNotDeliveredDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered\": {\n \"terms\": {\n \"field\": \"Data.deliveryComments.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "totalHouseholdsNotDeliveredDrilldownDistrict", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Not Delivered" + ], + "insight": {}, + "_comment": " " + }, + "totalHouseholdsNotDeliveredDrilldownDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_HOUSEHOLDS_NOT_DELIVERED_DRILLDOWN_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.deliveryComments.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"Total household not delivered\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Not Delivered Drilldown\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Not Delivered Drilldown" + ], + "insight": {}, + "_comment": " " + }, + "rdTotalHouseholdsNotDeliveredChartProvince": { + "chartName": "DSS_HEALTH_R_D_TOTAL_HOUSEHOLDS_NOT_DELIVERED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "valueType": "number", + "drillChart": "rdTotalHouseholdsNotDeliveredChartDistrict", + "isCumulative": false, + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Households not Delivered" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, + "_comment": " " + }, + "rdTotalHouseholdsNotDeliveredChartDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered by AP\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdTotalHouseholdsNotDeliveredChartAp", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Households not Delivered by AP" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, + "_comment": " " + }, + "rdTotalHouseholdsNotDeliveredChartAp": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered by Locality\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdTotalHouseholdsNotDeliveredChartLocality", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Households not Delivered by Locality" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, + "_comment": " " + }, + "rdTotalHouseholdsNotDeliveredChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_NOT_DELIVERED_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Households not Delivered by Village\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households not delivered\": {\n \"filter\": {\n \"term\": {\n \"Data.quantity\": 0\n }\n }, \n \"aggs\": {\n \"NAME\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Households not Delivered by Village" + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartProvince": { + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdBednetsDistributedChartDistrict", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total No. of Bednets Distributed" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartProvincePercent": { + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_PROVINCE_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdBednetsDistributedChartDistrictPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdBednetsDistributedChartAp", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total No. of Bednets Distributed" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartDistrictPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdBednetsDistributedChartApPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartAp": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdBednetsDistributedChartLocality", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total No. of Bednets Distributed" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartApPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_AP_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdBednetsDistributedChartLocalityPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total No. of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total No. of Bednets Distributed" + ], + "insight": {}, + "_comment": " " + }, + "rdBednetsDistributedChartLocalityPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_BEDNETS_DISTRIBUTED_DISTRICT_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Bednets Distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Bednets Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartProvince": { + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdPopulationChartDistrict", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartProvincePercent": { + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_PROVINCE_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdPopulationChartDistrictPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdPopulationChartAP", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartDistrictPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_DISTRICT_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdPopulationChartApPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdPopulationChartLocality", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartApPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_AP_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdPopulationChartLocalityPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Total Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Population Covered" + ], + "insight": {}, + "_comment": " " + }, + "rdPopulationChartLocalityPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_POPULATION_COVERED_LOCALITY_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Population Covered\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartProvince": { + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdHouseholdsCoveredChartDistrict", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartProvincePercent": { + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_PROVINCE_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdHouseholdsCoveredChartDistrictPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "Target for daterange" + ], + "newField": "Households for daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdHouseholdsCoveredChartAp", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartDistrictPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_DISTRICT_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdHouseholdsCoveredChartApPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "Target for daterange" + ], + "newField": "Households over daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartAp": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "rdHouseholdsCoveredChartLocality", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartApPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_AP_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "rdHouseholdsCoveredChartLocalityPercent", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "Target for daterange" + ], + "newField": "Households over daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Number of households visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Number of households visited" + ], + "insight": {}, + "_comment": " " + }, + "rdHouseholdsCoveredChartLocalityPercent": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY_PERCENT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Percentage of Households Visited\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Households Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "fields": [ + "Target for daterange" + ], + "newField": "Households over daterange", + "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + } + ], + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationProvince": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "rdUncoveredPopulationDistrict", + "documentType": "_doc", + "targetLineChart": "rdUncoveredPopulationTargetLineProvince", + "computeMultiPaths": true, + "filterKeys": [ + { + "key": "district" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineProvince": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_PROVINCE_TARGET_LINE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "documentType": "_doc", + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "rdUncoveredPopulationAP", + "documentType": "_doc", + "targetLineChart": "rdUncoveredPopulationTargetLineDistrict", + "computeMultiPaths": true, + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineDistrict": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_DISTRICT_TARGET_LINE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "documentType": "_doc", + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "rdUncoveredPopulationLocality", + "documentType": "_doc", + "targetLineChart": "rdUncoveredPopulationTargetLineAP", + "computeMultiPaths": true, + "filterKeys": [ + { + "key": "locality" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineAP": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_AP_TARGET_LINE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "documentType": "_doc", + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "targetLineChart": "rdUncoveredPopulationTargetLineLocality", + "computeMultiPaths": true, + "filterKeys": [ + { + "key": "village" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "action": "", + "insight": {}, + "_comment": " " + }, + "rdUncoveredPopulationTargetLineLocality": { + "chartName": "DSS_HEALTH_UNCOVERED_POPULATION_LOCALITY_TARGET_LINE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Total Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Population target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Total Population target\"\n },\n \"script\": \"params.target * 0.85\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population Total\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * -1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", + "_comments": "" + } + ], + "isCumulative": false, + "isCappedTillToday": true, + "valueType": "number", + "drillChart": "none", + "computeMultiPaths": true, + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], + "documentType": "_doc", + "action": "", + "insight": {}, + "_comment": " " + }, + "daysInventoryStockLastsProvince": { + "chartName": "DSS_HEALTH_OVERVIEW_DAYS_INVENTORY_CAN_LAST_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Days Stock Can Last\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "division", + "aggregationPaths": [ + "No. of Days Stock Can Last", + "Target Per Day" + ], + "insight": {}, + "_comment": " " + }, + "daysInventoryStockLastsDistrict": { + "chartName": "DSS_HEALTH_OVERVIEW_DAYS_INVENTORY_CAN_LAST_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Days Stock Can Last\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "module": "W&S", - "indexName": "water-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\",\"REJECTED\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.auditDetails.lastModifiedTime'].date.millis - doc['Data.auditDetails.createdTime'].date.millis < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}", - "dateRefField": "Data.@timestamp" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\":[\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n }, \n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "division", + "aggregationPaths": [ + "No. of Days Stock Can Last", + "Target Per Day" + ], + "insight": {}, + "_comment": " " + }, + "householdsCoverageBarchartByDistrict": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "module": "W&S", - "indexName": "sewerage-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"CONNECTION_ACTIVATED\",\"REJECTED\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.auditDetails.lastModifiedTime'].date.millis - doc['Data.auditDetails.createdTime'].date.millis < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}", - "dateRefField": "Data.@timestamp" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "householdsCoverageBarchartByAP", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueAsc", + "fields": [ + "Target" + ], + "newField": "Coverage", + "_comments": "" + } + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, + "_comment": " " + }, + "householdsCoverageBarchartByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "householdsCoverageBarchartByLocality", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueAsc", + "fields": [ + "Target" + ], + "newField": "Coverage", + "_comments": "" + } + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, + "_comment": " " + }, + "householdsCoverageBarchartByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "householdsCoverageBarchartByVillage", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueAsc", + "fields": [ + "Target" + ], + "newField": "Coverage", + "_comments": "" + } + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, + "_comment": " " + }, + "householdsCoverageBarchartByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_VILLAGE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Coverage\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Households Target\": {\n \"terms\": {\n \"size\": 500, \n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Target Households\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n \n },\n \"Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tpd\": \"Target Households\"\n },\n \"script\": \"(params.tpd)*365\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "drillChart": "none", + "documentType": "_doc", + "action": "percentage", + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "", + "sort": "sortValueAsc", + "fields": [ + "Target" + ], + "newField": "Coverage", + "_comments": "" + } + ], + "insight": {}, + "_comment": " " + }, + "summaryByDistrict": { + "chartName": "DSS_HEALTH_SUMMARY_BY_DISTRICT", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Household Rejected delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Absent\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Household Relocated delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Household Closed delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + { + "key": "district", + "column": "District" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "summaryByAdministrativeProvince", + "documentType": "_doc", + "action": "", + "plotLabel": "District", + "excludedColumns": [ + "Household Closed delivery count", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Households distributed", + "Overall Household target" + ], + "newField": "Target Achievement Household", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Population covered", + "Overall Population target" + ], + "newField": "Target Achievement Population", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Bednets distributed", + "Overall Bednets target" + ], + "newField": "Target Achievement Bednets", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Households distributed count" + ], + "newField": "Households distributed", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Population covered count" + ], + "newField": "Population covered", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Bednets distributed count" + ], + "newField": "Bednets distributed", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Household Rejected delivery count" + ], + "newField": "Non Delivery HH Rejected", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Household Relocated delivery count" + ], + "newField": "Non Delivery HH Relocated", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Household Closed delivery count" + ], + "newField": "Non Delivery HH Closed", + "_comments": "" + } + ], + "insight": {}, + "sort": "sortKeyAsc", + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " + }, + "summaryByAdministrativeProvince": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_SUMMARY_BY_ADMINISTRATIVE_PROVINCE", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Bednets target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Total Bednets distributed\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.administrativeProvince.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Households distributed count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population covered count\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Bednets Total\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Bednets distributed count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "module": "FIRENOC", - "indexName": "firenoc-services", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\", \"district\" : \"Data.tenantData.city.districtCode\"}", - "aggrQuery": "{\"aggs\":{\"FireNOC\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fireNOCDetails.status.keyword\":[\"APPROVED\",\"CANCELED\",\"REJECTED\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].valueaggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Household Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target Household\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULBs"} - - ], - "chartType": "xtable", + "chartType": "line", + "isCumulative": true, "valueType": "number", - "drillChart": "taxHeadsBreakupBoundaryDrill", + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "ULBs", + "predictionPath": "Household Target", "aggregationPaths": [ - "PT Tax", - "Fire Cess", - "Cancer Cess", - "Rebate", - "Penalty", - "Time Interest","Round Off", "Total Amount" + "Household Target", + "Household Distribution" ], - - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - "taxHeadsBreakupBoundaryDrill": { - "chartName": "Tax head Breakup boundary", + "actualVsPlannedBednetsLineGraphDistrict": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_BEDNETS_LINE_GRAPH_DISTRICT", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.usageCategory.keyword\",\"minorUsageId\" : \"domainObject.usageCategory.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Bednets Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "wardId", "column": "Ward"} - ], - "chartType": "table", + "chartType": "line", + "isCumulative": true, "valueType": "number", - "drillChart": "", + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Ward", + "predictionPath": "Bednets Target", "aggregationPaths": [ - "PT Tax", - "Fire Cess", - "Cancer Cess", - "Rebate", - "Penalty", - "Time Interest","Round Off","Total Amount" + "Bednets Target", + "Bednets Distribution" ], - - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - - "taxHeadsBreakupUsage": { - "chartName": "DSS_PT_TAX_HEAD_BREAKUP_USAGE", + "actualVsPlannedPopulationLineGraphDistrict": { + "chartName": "DSS_HEALTH_ACTUAL_VS_PLANNED_POPULATION_LINE_GRAPH_DISTRICT", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Distribution\": {\n \"date_histogram\": {\n \"field\": \"Data.createdTime\",\n \"interval\": \"day\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Day wise distributions\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Population distributed\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Day wise distributions\"\n },\n \"script\": \"params.target*1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"chartSpecificProperty\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"startDate\": {\n \"terms\": {\n \"field\": \"Data.startDate\"\n }\n },\n \"endDate\": {\n \"terms\": {\n \"field\": \"Data.endDate\"\n }\n },\n \"Population Target\": {\n \"date_histogram\": {\n \"field\": \"Data.startDate\",\n \"interval\": \"day\"\n },\n \"aggs\": {\n \"Target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - - ], - "chartType": "table", + "chartType": "line", + "isCumulative": true, "valueType": "number", - "drillChart": "", + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Usage Type", + "predictionPath": "Population Target", "aggregationPaths": [ - "Total Amount", - "PT Tax", - "Fire Cess", - "Cancer Cess", - "Rebate", - "Penalty" + "Population Target", + "Population Distribution" ], - "pathDataTypeMapping": [ - { - "Total Amount": "amount" - }, - { - "PT Tax": "amount" - }, - { - "Fire Cess": "amount" - }, + "insight": {}, + "_comment": " " + }, + "inventoryStockInHandProvince": { + "chartName": "DSS_HEALTH_INVENTORY_STOCK_IN_HAND_PROVINCE", + "queries": [ { - "Cancer Cess": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "Rebate": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "Penalty": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value*(-1)\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "insight": { - }, - "_comment": "" - }, - "taxHeadsBreakupUsageMinor": { - "chartName": "", - "queries": [ + "chartType": "line", + "computedFields": [ { - "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.usageCategory.keyword\",\"minorUsageId\" : \"domainObject.usageCategory.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Target", + "Distributions by district" + ], + "newField": "Required Stock", + "_comments": "" } ], - "filterKeys": [ - {"key": "minorUsageId", "column": "Minor Usage Type"} - ], - "chartType": "table", + "isCumulative": false, "valueType": "number", - "drillChart": "taxHeadsBreakupUsageSubMinor", + "plotLabel": "none", + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Minor Usage Type", + "computeMultiPaths": true, "aggregationPaths": [ - "Total Amount", - "PT Tax", - "Fire Cess", - "Cancer Cess", - "Rebate", - "Penalty" + "Available Stock", + "Overall Target", + "Distributions by district" ], - "pathDataTypeMapping": [ - { - "Total Amount": "amount" - }, - { - "PT Tax": "amount" - }, - { - "Fire Cess": "amount" - }, + "insight": {}, + "_comment": " " + }, + "inventoryStockInHandDistrict": { + "chartName": "DSS_HEALTH_INVENTORY_STOCK_IN_HAND_DISTRICT", + "queries": [ { - "Cancer Cess": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "Rebate": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "Penalty": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by APs\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity'].value*(-1)\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "insight": { - }, - "_comment": "" - }, - "taxHeadsBreakupUsageSubMinor": { - "chartName": "", - "queries": [ + "chartType": "line", + "computedFields": [ { - "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.usageCategory.keyword\",\"minorUsageId\" : \"domainObject.usageCategory.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Overall Target", + "Distributions by APs" + ], + "newField": "Required Stock", + "_comments": "" } ], - "filterKeys": [ - "" - ], - "chartType": "table", + "isCumulative": false, "valueType": "number", - "drillChart": "", + "plotLabel": "none", + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Sub Minor Usage Type", + "computeMultiPaths": true, "aggregationPaths": [ - "Total Amount", - "PT Tax", - "Fire Cess", - "Cancer Cess", - "Rebate", - "Penalty" + "Available Stock", + "Overall Target", + "Distributions by APs" ], - "pathDataTypeMapping": [ - { - "Total Amount": "amount" - }, - { - "PT Tax": "amount" - }, - { - "Fire Cess": "amount" - }, + "insight": {}, + "_comment": " " + }, + "householdsCoverageHeatMap": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP", + "queries": [ { - "Cancer Cess": "amount" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Household target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { - "Rebate": "amount" - }, + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.province.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "householdsCoverageHeatMapProvince", + "documentType": "_doc", + "action": "", + "plotLabel": "Province", + "excludedColumns": [ + "S.N.", + "Overall Household target" + ], + "computedFields": [ { - "Penalty": "amount" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Overall Household target" + ], + "newField": "percentage_value", + "_comments": "" } ], - "insight": { - }, - "_comment": "" + "insight": {}, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " }, - "demandCollectionIndexUsageRevenue": { - "chartName": "DSS_PT_DEMAND_COLLECTION_USAGETYPE", + "householdsCoverageHeatMapProvince": { + "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_HEATMAP_PROVINCE", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\",\"usageId\" : \"domainObject.usageCategory.keyword\",\"minorUsageId\" : \"domainObject.usageCategory.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.assessmentsDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.assessmentsDetails.assessmentNumber.keyword\"}}}}}}}}}}", - "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Approved\"]}}]}},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.assessmentsDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.assessmentsDetails.assessmentNumber.keyword\"}}}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households distributed\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"total_count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - - ], - "chartType": "table", + "filterKeys": [], + "chartType": "xtable", "valueType": "number", "drillChart": "", - "drillFields": [ - "Ward", - "" - ], "documentType": "_doc", "action": "", - "plotLabel": "Usage Type", - "aggregationPaths": [ - "Total Collection", - "Transactions", - "Assessed Properties" - + "plotLabel": "Districts", + "isCappedByCampaignPeriod": [ + "Overall Target" ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, + "excludedColumns": [ + "S.N.", + "Target for daterange" + ], + "computedFields": [ { - "Transactions": "number" + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for daterange" + ], + "newField": "Household Target", + "_comments": "" }, { - "Assessed Properties": "number" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Household Target" + ], + "newField": "percentage_value", + "_comments": "" } ], - "insight": { - }, - "_comment": "" + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " }, - "usageRevenueDrillDownMinor": { - "chartName": "", + "coverageByProvince": { + "chartName": "DSS_COVERAGE_BY_PROVINCE", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.usageCategory.keyword\",\"minorUsageId\" : \"domainObject.usageCategory.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.assessmentsDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.assessmentsDetails.assessmentNumber.keyword\"}}}}}}}}}}", - "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Approved\"]}}]}},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.assessmentsDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.assessmentsDetails.assessmentNumber.keyword\"}}}}}}}}}}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Todays visits\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"range\": {\n \"Data.@timestamp\": {\n \"gte\": \"now/d\",\n \"lte\": \"now\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total Today\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"min_doc_count\":0\n },\n \"aggs\": {\n \"Total Households Visited Today\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Total\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Total Households Visited Cumulative\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n \n ]\n }\n },\n \"aggs\": {\n \"Population Total\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"Total Population Covered\":{\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n \n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Household Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Household Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "minorUsageId", "column": "Minor Usage Type"} - ], - "chartType": "table", + "chartType": "xtable", "valueType": "number", - "drillChart": "usageRevenueDrillDownSubMinor", + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Minor Usage Type", - "aggregationPaths": [ - "Total Collection", - "Transactions", - "Assessed Properties" - ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, + "plotLabel": "Provinces", + "excludedColumns": [ + "Overall Population Target", + "Overall Household Target", + "Quantity", + "Total Population Covered" + ], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ { - "Transactions": "number" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Households Visited Cumulative", + "Overall Household Target" + ], + "newField": "Household Coverage", + "_comments": "" }, { - "Assessed Properties": "number" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Population Covered", + "Overall Population Target" + ], + "newField": "Population Coverage", + "_comments": "" } ], - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - "usageRevenueDrillDownSubMinor": { - "chartName": "", + "populationCoverageHeatMap": { + "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.usageCategory.keyword\",\"minorUsageId\" : \"domainObject.usageCategory.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.assessmentsDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.assessmentsDetails.assessmentNumber.keyword\"}}}}}}}}}}", - "aggrQuerybc": "{\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - - ], - "chartType": "table", + "filterKeys": [], + "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "populationCoverageHeatMapProvince", "documentType": "_doc", "action": "", - "plotLabel": "Sub Minor Usage Type", - "aggregationPaths": [ - "Total Collection", - "Transactions", - "Assessed Properties" + "plotLabel": "Province", + "excludedColumns": [ + "S.N.", + "Overall Population target" ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, + "computedFields": [ { - "Assessed Properties": "number" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Overall Population target" + ], + "newField": "percentage_value", + "_comments": "" } ], - "insight": { - }, - "_comment": "" + "insight": {}, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " }, - - - - "_comment": "TL COLLECTION CHARTS", - - "licenseIssuedDDRRevenue": { - "chartName": "DSS_TL_KEY_FY_INDICATORS", + "populationCoverageHeatMapProvince": { + "chartName": "DSS_HEALTH_POPULATION_COVERAGE_HEATMAP_PROVINCE", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" - }, - { - "module": "TL", - "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\": {\"Total Licence Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", - "dateRefField": "Data.tradelicense.issuedDate" + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", - "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Population covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Quantity\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n },\n \"total_count\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Quantity\"\n },\n \"script\": \"params.target * 1.8\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "isMdmsEnabled": true, - "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} - ], - "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "table", + "filterKeys": [], + "chartType": "xtable", "valueType": "number", - "drillChart": "licenseIssuedBoundaryRevenue", + "drillChart": "", "documentType": "_doc", "action": "", - "plotLabel": "DDRs", - "aggregationPaths": [ - "Total Collection", - "Transactions", - "Total Licence Issued", - "Target Collection" + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, + "computedFields": [ { - "Total Licence Issued": "number" + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for daterange" + ], + "newField": "Population Target", + "_comments": "" }, { - "Target Collection": "amount" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Population Target" + ], + "newField": "percentage_value", + "_comments": "" } ], - "insight": { - }, - "_comment": "" + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " }, - "licenseIssuedBoundaryRevenue": { - "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", + "totalComplaintsRegistered": { + "chartName": "DSS_HEALTH_OVERVIEW_TOTAL_COMPLAINTS_BREAKDOWN", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByTypeDrilldown", + "filterKeys": [ { - "module": "TL", - "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", - "dateRefField": "Data.tradelicense.issuedDate" - }, + "key": "applicationStatus" + } + ], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints Status" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByTypeDrilldown": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_TYPE", + "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", - "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\"\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULBs"} - ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "table", + "chartType": "pie", + "isCumulative": false, "valueType": "number", - "drillChart": "licenseIssuedBoundaryDrillDown", + "showLabel": true, + "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "ULBs", "aggregationPaths": [ - "Total Collection", - "Transactions", - "Total Licence Issued", - "Target Collection" + "Complaints Type" ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, + "insight": {}, + "_comment": " " + }, + "complaintsByDistrictTotal": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_DISTRICT_TOTAL", + "queries": [ { - "Total Licence Issued": "number" - }, + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByAPTotal", + "filterKeys": [ { - "Target Collection": "amount" + "key": "district" } ], - "insight": { - }, - "_comment": "" + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints" + ], + "insight": {}, + "_comment": " " }, - "licenseIssuedBoundaryDrillDown": { - "chartName": "", + "totalComplaintsRegisteredByType": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_TYPE", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" - }, - { - "module": "TL", - "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", - "dateRefField": "Data.tradelicense.issuedDate" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Type\": {\n \"terms\": {\n \"field\": \"Data.service.serviceCode.keyword\"\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "chartType": "pie", + "valueType": "number", + "showLabel": true, + "drillChart": "totalComplaintsRegisteredByStatusDrilldown", "filterKeys": [ - {"key": "wardId", "column": "Ward"} + { + "key": "serviceCode" + } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "table", - "valueType": "number", - "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Ward", "aggregationPaths": [ - "Total Collection", - "Transactions", - "Total Licence Issued" + "Complaints Type" ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, + "insight": {}, + "_comment": " " + }, + "totalComplaintsRegisteredByStatusDrilldown": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_STATUS", + "queries": [ { - "Total Licence Issued": "number" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"selectedType\":\"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints Status\": {\n \"terms\": {\n \"field\": \"Data.service.applicationStatus.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "insight": { - }, - "_comment": "" + "chartType": "pie", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Complaints Status" + ], + "insight": {}, + "_comment": " " }, - - "_comment": " TL Nested Array related newer queries", - "licenceTaxHeadsBreakupDDR": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "complaintsByAPTotal": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_AP_TOTAL", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"TL\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "isMdmsEnabled": true, + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByLocalityTotal", "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "administrativeProvince" + } ], - "isPostResponseHandlerA": true, - "chartType": "xtable", - "valueType": "number", - "drillChart": "licenceTaxHeadsBreakupBoundary", "documentType": "_doc", "action": "", - "plotLabel": "DDRs", "aggregationPaths": [ - "TL Tax", - "Adhoc Penalty", - "Adhoc Rebate" - ], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["TL Tax", "Adhoc Penalty", "Adhoc Rebate"], - "newField" : "Total Amount", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } + "Complaints" ], - - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - "licenceTaxHeadsBreakupBoundary": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", + "complaintsByLocalityTotal": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_LOCALITY_TOTAL", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "showLabel": true, + "drillChart": "complaintsByVillageTotal", "filterKeys": [ - {"key": "tenantId", "column": "ULBs"} + { + "key": "locality" + } ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "licenceTaxHeadsBreakupWard", "documentType": "_doc", "action": "", - "plotLabel": "ULBs", "aggregationPaths": [ - "TL Tax", - "Adhoc Penalty", - "Adhoc Rebate","Total Amount" + "Complaints" ], - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - "licenceTaxHeadsBreakupWard": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_WARD", + "complaintsByVillageTotal": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_VILLAGE_TOTAL", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "wardId", "column": "Ward"} - ], - "chartType": "xtable", + "chartType": "line", + "isCumulative": false, "valueType": "number", + "showLabel": true, "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Ward", "aggregationPaths": [ - "TL Tax", - "Adhoc Penalty", - "Adhoc Rebate", "Total Amount" + "Complaints" ], - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - - "_comment": "FSM charts below-----------------------------------------------------------------------", - - "fsmTotalrequest": { - "chartName": "DSS_FSM_TOTAL_REQUESTS", + "complaintsByStatusBreakdownProvincial": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_PROVINCIAL", "queries": [ { - "module": "FSM", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.fsm.@timestamp\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.fsm.@timestamp" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", + "chartType": "line", + "isCumulative": false, "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByStatusBreakdownDistrict", + "filterKeys": [ + { + "key": "district" + } + ], + "documentType": "_doc", "action": "", - "drillChart": "none", "aggregationPaths": [ - "Total Application" + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" ], - "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " FSM Total Applications" + "insight": {}, + "_comment": " " }, - "totalSludgeTreated": { - "chartName": "DSS_FSM_TOTAL_SLUDGE_TREATED", + "complaintsByStatusBreakdownDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_DISTRICT", "queries": [ { - "module": "FSM", - "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Sludge Collection\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.vehicleTrip.@timestamp" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", + "chartType": "line", + "isCumulative": false, "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByStatusBreakdownAP", + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "documentType": "_doc", "action": "", - "drillChart": "none", "aggregationPaths": [ - "Total Sludge Collection" + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" ], - "insight": { - "chartResponseMap" : "totalSludgeTreated", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " FSM Total Sludge Treated" + "insight": {}, + "_comment": " " }, - "avgFSMCostRequest": { - "chartName": "DSS_FSM_AVG_FSM_COST_OR_REQ", + "complaintsByStatusBreakdownAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_AP", "queries": [ { - "module": "FSM", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Average Collection\":{\"avg\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.fsm.@timestamp" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Localities\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Localities\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", - "valueType": "amount", + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByStatusBreakdownLocality", + "filterKeys": [ + { + "key": "locality" + } + ], + "documentType": "_doc", "action": "", - "drillChart": "none", - "isRoundOff": true, "aggregationPaths": [ - "Average Collection" + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" ], - "insight": { - "chartResponseMap" : "averageCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " FSM Average Collection" + "insight": {}, + "_comment": " " }, - "totalCollectioninLacs": { - "chartName": "DSS_FSM_TOTAL_COLLECTION", + "complaintsByStatusBreakdownLocality": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_BREAKDOWN_LOCALITY", "queries": [ { - "module": "FSM", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.payments.paymentDetails.receiptDate" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\", \"selectedStack\": \"Data.service.applicationStatus.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"PENDING_ASSIGNMENT\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Villages\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"RESOLVED\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Villages\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"REJECTED\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", - "valueType": "amount", - "action": "", + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", + "action": "", "aggregationPaths": [ - "Total Collection" + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" ], - "insight": { - "chartResponseMap" : "totalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " FSM Total Collection" + "insight": {}, + "_comment": " " }, - "slaCompliance": { - "chartName": "DSS_FSM_SLA_COMPLIANCE", + "complaintsByStatusSummaryProvince": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_PROVINCE", "queries": [ { - "module": "FSM", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.service.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.fsm.@timestamp" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Districts\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", - "valueType": "percentage", - "drillChart": "none", + "filterKeys": [ + { + "key": "district", + "column": "Districts" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "complaintsByStatusSummaryDistrict", "documentType": "_doc", - "action": "percentage", - "isRoundOff": true, - "aggregationPaths": [ - "Closed With In Sla", - "Total Applications" + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "hideInsights": true, + "showFooter": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", + "_comments": "" + } ], - "insight": { - "chartResponseMap" : "slaCompliance", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " SLA Compliance" + "insight": {}, + "sort": "sortKeyAsc", + "_comment": " " }, - "citizenAvgRating": { - "chartName": "DSS_FSM_CITIZEN_AVG_RATING", + "complaintsByStatusSummaryDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DISTRICT", "queries": [ { - "module": "FSM", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"Citizen Average Rating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.fsm.@timestamp" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by APs\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + { + "key": "administrativeProvince", + "column": "APs" } ], - "chartType": "metric", + "chartType": "xtable", "valueType": "number", - "action": "", - "drillChart": "none", + "drillChart": "complaintsByStatusSummaryAP", "documentType": "_doc", - "aggregationPaths": [ - "Citizen Average Rating" + "action": "", + "showFooter": true, + "plotLabel": "APs", + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", + "_comments": "" + } ], - "postAggregationTheory": "", "insight": {}, - "_comment": " Citizen Average rating" + "sort": "sortKeyAsc", + "_comment": " " }, - "fsmCollectionByUsageType": { - "chartName": "DSS_FSM_COLLECTION_BY_USAGE_TYPE", + "complaintsByStatusSummaryAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_AP", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.fsm.propertyUsage.keyword\"},\"aggs\":{\"Assessed Properties\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Locality\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", + "filterKeys": [ + { + "key": "locality", + "column": "Locality" + } + ], + "chartType": "xtable", "valueType": "number", - "action": "", + "drillChart": "complaintsByStatusSummaryLocality", "documentType": "_doc", - "drillChart": "none", - "aggregationPaths": [ - "Usage Type" + "action": "", + "showFooter": true, + "plotLabel": "Locality", + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", + "_comments": "" + } ], - "insight": { - }, + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " - },"fsmCollectionByGender": { - "chartName": "DSS_FSM_RESQUEST_BY_GENDER", + }, + "complaintsByStatusSummaryLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_Locality", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pb.testing\"}}]}}, \"aggs\": {\"Gender\": {\"terms\": {\"field\": \"Data.fsm.citizen.gender.keyword\"}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", + "chartType": "xtable", "valueType": "number", - "action": "", - "documentType": "_doc", "drillChart": "none", - "aggregationPaths": [ - "Gender" + "documentType": "_doc", + "action": "", + "showFooter": true, + "plotLabel": "Village", + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", + "_comments": "" + } ], - "insight": { - }, + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "fsmRequestByPaymentPreference": { - "chartName": "DSS_FSM_RESQUEST_BY_PAYMENT_PREFERENCE", + "averageResolutionTimeProvince": { + "chartName": "DSS_HEALTH_COMPLAINTS_AVVERAGE_RESOLUTION_TIME_PROVINCE", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pb.testing\"}}]}}, \"aggs\": {\"Payment Preference\": {\"terms\": {\"field\": \"Data.fsm.paymentPreference.keyword\"}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", + "chartType": "line", + "isCumulative": false, "valueType": "number", - "action": "", + "drillChart": "averageResolutionTimeDistrict", "documentType": "_doc", - "drillChart": "none", + "action": "", "aggregationPaths": [ - "Payment Preference" + "Resolution time in hours" ], - "insight": { - }, + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, "_comment": " " }, - - "fsmTotalRequestsbyStatus": { - "chartName": "DSS_FSM_TOTAL_REQUESTS_BY_STATUS", + "averageResolutionTimeDistrict": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_DISTRICT", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Completed\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"completed\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CITIZEN_FEEDBACK_PENDING\",\"COMPLETED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Received\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"received\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CREATED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Pending\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"pending\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"PENDING_APPL_FEE_PAYMENT\",\"DSO_INPROGRESS\",\"PENDING_DSO_APPROVAL\",\"ASSING_DSO\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Rejected\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"rejected\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"REJECTED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}}}}}}" - + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", + "isCumulative": false, "valueType": "number", - "action": "", - "drillChart": "none", + "drillChart": "averageResolutionTimeAP", "documentType": "_doc", + "action": "", "aggregationPaths": [ - "Received", - "Completed", - "Pending", - "Rejected" + "Resolution time in hours" ], - "isCumulative": false, - "interval": "month", - "insight": { - }, + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, "_comment": " " }, - - "fsmTotalCumulativeCollection": { - "chartName": "DSS_FSM_TOTAL_CUMULATIVE_COLLECTION", + "averageResolutionTimeAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_AP", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Collection\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", + "isCumulative": false, "valueType": "number", - "action": "", - "drillChart": "none", + "drillChart": "averageResolutionTimeLocality", "documentType": "_doc", + "action": "", "aggregationPaths": [ - "Total Collection" + "Resolution time in hours" ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, - "topPerformanceUlbs": { - "chartName": "DSS_FSM_PERFORMANCE_ULB", + "averageResolutionTimeLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_LOCALITY", "queries": [ - { - "module": "FSM", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.history.businesssServiceSla\":{\"gt\":0}}},{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "dateRefField": "Data.fsm.@timestamp" + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Solved filter's\": {\n \"filters\": {\n \"filters\": {\n \"NAME\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Resolution time in hours\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Created Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.createdTime\"\n }\n },\n \"Last Modified Time\": {\n \"sum\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n },\n \"Difference of Time\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"CT\": \"Created Time\",\n \"LMT\": \"Last Modified Time\",\n \"CC\": \"Complaints Count\"\n },\n \"script\": \"(params.LMT-params.CT)/3600000/params.CC\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", - "valueType": "amount", - "action": "", + "isCumulative": false, + "valueType": "number", "drillChart": "none", "documentType": "_doc", - "aggregationPaths": [ - "Closed With In Sla", - "Total Applications" + "action": "", + "aggregationPaths": [ + "Resolution time in hours" ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "filterKeys": [ + { + "key": "village" + } + ], + "insight": {}, "_comment": " " }, - "fsmTopUlbByPerformance": { - "chartName": "DSS_FSM_TOP_ULB_BY_PERFORMANCE", + "bednetsCoverageHeatMapProvince": { + "chartName": "DSS_HEALTH_BEDNETS_COVERAGE_HEATMAP_PROVINCE", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Bednets Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"target\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for daterange\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"SUM\": \"target\"\n },\n \"script\": \"(params.SUM) * 365\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.isDelivered\": true\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Bednets covered\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"total_count\": {\n \"sum\": {\n \"field\": \"Data.quantity\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "perform", - "valueType": "percentage", - "drillChart": "none", + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "drillChart": "ulbTopDrillChart", - "action": "percentage", - "plotLabel": "DSS_COMPLETION_RATE", - "isRoundOff": true, - "order": "desc", - "limit": 3, - "aggregationPaths": [ - "Closed With In Sla", - "Total Applications" + "action": "", + "plotLabel": "Districts", + "excludedColumns": [ + "S.N.", + "Target for daterange" ], - "isCumulative": false, - "interval": "month", - "insight": { - }, - "_comment": "" + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for daterange" + ], + "newField": "Bednets Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "total_count", + "Bednets Target" + ], + "newField": "percentage_value", + "_comments": "" + } + ], + "insight": {}, + "hideInsights": true, + "hideHeaderDenomination": true, + "_comment": " " }, - "ulbTopDrillChart": { - "chartName": "DSS_FSM_ULB_PERFORMANCE", + "InventorySummaryByDistrict": { + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_DISTRICT", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"TotalRequests\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"ClosedWithInSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"ClosedOutsideSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULB"} - ], - "isPostResponseHandler": true, - "chartType": "table", + "chartType": "xtable", "valueType": "number", - "action": "", - "documentType": "_doc", "drillChart": "none", - "plotLabel":"ULB", - "aggregationPaths": [ - "TotalRequests", - "ClosedWithInSLA", - "ClosedOutsideSLA", - "CitizenAverageRating" + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By District", + "filterKeys": [ + { + "key": "Data.district.keyword", + "column": "Inventory summary By District" + } ], - "pathDataTypeMapping": [ + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", + "_comments": "" + }, { - "TotalRequests" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", + "_comments": "" }, { - "ClosedWithInSLA" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", + "_comments": "" }, { - "ClosedOutsideSLA" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", + "_comments": "" }, { - "CitizenAverageRating" : "number" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", + "_comments": "" } ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "fsmBottomUlbByPerformance": { - "chartName": "DSS_FSM_BOTTOM_ULB_BY_PERFORMANCE", + "InventorySummaryByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_AP", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "perform", - "valueType": "percentage", + "chartType": "xtable", + "valueType": "number", "drillChart": "none", "documentType": "_doc", - "drillChart": "ulbBottomDrillChart", - "action": "percentage", - "isRoundOff": true, - "plotLabel": "DSS_COMPLETION_RATE", - "order": "asc", - "limit": 3, - "aggregationPaths": [ - "Closed With In Sla", - "Total Applications" - ], - "isCumulative": false, - "interval": "month", - "insight": { - }, - "_comment": "" - }, - "ulbBottomDrillChart": { - "chartName": "DSS_FSM_ULB_PERFORMANCE", - "queries": [ + "action": "", + "plotLabel": "Inventory summary By AP", + "filterKeys": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"TotalRequests\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"ClosedWithInSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"ClosedOutsideSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" + "key": "Data.administrativeProvince.keyword", + "column": "Inventory summary By AP" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULB"} - ], - "isPostResponseHandler": true, - "chartType": "table", - "valueType": "number", - "action": "", - "documentType": "_doc", - "drillChart": "none", - "plotLabel":"ULB", - "aggregationPaths": [ - "TotalRequests", - "ClosedWithInSLA", - "ClosedOutsideSLA", - "CitizenAverageRating" + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" ], - "pathDataTypeMapping": [ + "computedFields": [ { - "TotalRequests" : "number" + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", + "_comments": "" }, { - "ClosedWithInSLA" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", + "_comments": "" }, { - "ClosedOutsideSLA" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", + "_comments": "" }, { - "CitizenAverageRating" : "number" + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", + "_comments": "" } ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "fsmCapacityUtilization": { - "chartName": "DSS_FSTP_CAPACITY_UTILIZATION", + "InventorySummaryByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_LOCALITY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.vehicleTrip.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Capacity Utilization\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"avg_rating\":{\"avg\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", + "chartType": "xtable", "valueType": "number", - "action": "", - "isRoundOff": true, - "documentType": "_doc", "drillChart": "none", - "aggregationPaths": [ - "Capacity Utilization" + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By Locality", + "filterKeys": [ + { + "key": "Data.locality.keyword", + "column": "Inventory summary By Locality" + } ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", + "_comments": "" + } + ], + "insight": {}, "_comment": " " }, - "fsmMonthlyWasteCal": { - "chartName": "DSS_FSM_MONTHLY_WASTE_CAL", + "InventorySummaryByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_VILLAGE", "queries": [ { - "module": "FSM", - "dateRefField": "Data.vehicleTrip.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Septage Dumped At Plant\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}},\"Septage Collected\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)/1000.0\"}}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", + "chartType": "xtable", "valueType": "number", - "action": "", - "isRoundOff": true, - "documentType": "_doc", "drillChart": "none", - "aggregationPaths": [ - "Septage Collected", - "Septage Dumped At Plant" + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By Village", + "filterKeys": [ + { + "key": "village", + "column": "Inventory summary By Village" + } ], - "isCumulative": false, - "interval": "month", - "insight": { - }, + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", + "_comments": "" + } + ], + "insight": {}, "_comment": " " }, - - "fsmCustomerRatings": { - "chartName": "DSS_FSM_CUSTOMER_RATINGS", + "complaintsByTypeBreakdownProvincial": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_PROVINCIAL", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"Customer Rating\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"avg_rating\":{\"avg\":{\"field\":\"Data.history.rating\"}}}}}}}}" - } + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } ], "chartType": "line", + "isCumulative": false, "valueType": "number", - "action": "", - "isRoundOff": true, + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownDistrict", + "filterKeys": [ + { + "key": "district" + } + ], "documentType": "_doc", - "drillChart": "none", + "action": "", "aggregationPaths": [ - "Customer Rating" + "SyncNotWorking", + "NotEnoughStock", + "Other" ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmTopDsoByPerformance": { - "chartName": "DSS_FSM_TOP_DSO_BY_PERFORMANCE", + "complaintsByTypeBreakdownDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_DISTRICT", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", + "isCumulative": false, "valueType": "number", - "action": "", - "drillChart": "dsoTopDrillChart", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownAP", + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "documentType": "_doc", + "action": "", "aggregationPaths": [ - "Raised", - "Closed Within SLA", - "Closed Outside SLA" + "SyncNotWorking", + "NotEnoughStock", + "Other" ], - "isCumulative": false, - "interval": "month", - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - "dsoTopDrillChart": { - "chartName": "DSS_FSM_DSO_PERFORMANCE", + "complaintsByTypeBreakdownAP": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_AP", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"DSOName\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":1000,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"TotalRequest\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}},\"ClosedWithinSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"ClosedOutsideSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownLocality", "filterKeys": [ - {"key": "dsoName", "column": "DSOName"} + { + "key": "locality" + } ], - "isPostResponseHandler": true, - "chartType": "table", - "valueType": "number", - "action": "", "documentType": "_doc", - "drillChart": "none", - "plotLabel":"DSOName", + "action": "", "aggregationPaths": [ - "TotalRequest", - "ClosedWithinSLA", - "ClosedOutsideSLA", - "CitizenAverageRating" - ], - "pathDataTypeMapping": [ - { - "TotalRequest" : "number" - }, - { - "ClosedWithinSLA" : "number" - }, - { - "ClosedOutsideSLA" : "number" - }, - { - "CitizenAverageRating" : "number" - } + "SyncNotWorking", + "NotEnoughStock", + "Other" ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmBottomDsoByPerformance": { - "chartName": "DSS_FSM_BOTTOM_DSO_BY_PERFORMANCE", + "complaintsByTypeBreakdownLocality": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_LOCALITY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", + "isCumulative": false, "valueType": "number", - "action": "", - "drillChart": "dsoBottomDrillChart", + "plotLabel": "none", + "drillChart": "none", "documentType": "_doc", + "action": "", "aggregationPaths": [ - "Raised", - "Closed Within SLA", - "Closed Outside SLA" + "SyncNotWorking", + "NotEnoughStock", + "Other" ], - "isCumulative": false, - "interval": "month", - "insight": { - }, - "_comment": "" + "insight": {}, + "_comment": " " }, - "dsoBottomDrillChart": { - "chartName": "DSS_FSM_DSO_PERFORMANCE", + "complaintsByStatusSummaryDay": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DAY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"DSOName\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":1000,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"TotalRequest\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}},\"ClosedWithinSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"ClosedOutsideSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "dsoName", "column": "DSOName"} - ], - "isPostResponseHandler": true, - "chartType": "table", + "chartType": "xtable", "valueType": "number", - "action": "", - "documentType": "_doc", "drillChart": "none", - "plotLabel":"DSOName", - "aggregationPaths": [ - "TotalRequest", - "ClosedWithinSLA", - "ClosedOutsideSLA", - "CitizenAverageRating" - ], - "pathDataTypeMapping": [ + "documentType": "_doc", + "action": "", + "showFooter": true, + "plotLabel": "Summary Daywise", + "excludedColumns": [ + "S.N.", + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "hideInsights": true, + "hideHeaderDenomination": true, + "computedFields": [ { - "TotalRequest" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", + "_comments": "" }, { - "ClosedWithinSLA" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", + "_comments": "" }, { - "ClosedOutsideSLA" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", + "_comments": "" }, { - "CitizenAverageRating" : "number" + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", + "_comments": "" } ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmTotalReqByDistrict": { - "chartName": "DSS_FSM_TOTAL_REQ_BY_DISTRICT", + "ComplaintsShareByDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "isMdmsEnabled": true, - "filterKeys": [ - {"key": "tenantId", "column": "District"} + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByAP", + "documentType": "_doc", + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" ], - "chartType": "xtable", - "valueType": "number", - "isRoundOff": true, - "drillChart": "fsmTotalReqByTenant", - "plotLabel": "District", - "excludedColumns": ["ClosedWithInSla"], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["ClosedReq", "TotalReq"], - "newField" : "CompletionRateIn%", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - }, + "filterKeys": [ { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["ClosedWithInSla","TotalReq"], - "newField" : "SLAAchievedIn%", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "key": "district" } ], - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "District", - "OpenReq", - "ClosedReq", - "TotalReq", - "CompletionRateIn%", - "SLAAchievedIn%", - "TotalCollection" - ] - }, - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmTotalReqByTenant": { - "chartName": "DSS_FSM_TOTAL_REQ_BY_ULB", + "ComplaintsShareByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByLocality", + "documentType": "_doc", + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" ], - "chartType": "xtable", - "valueType": "number", - "isRoundOff": true, - "drillChart": "fsmTotalReqByWard", - "plotLabel": "ULB", - "excludedColumns": ["ClosedWithInSla"], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["ClosedReq", "TotalReq"], - "newField" : "CompletionRateIn%", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - }, + "filterKeys": [ { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["ClosedWithInSla","TotalReq"], - "newField" : "SLAAchievedIn%", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "key": "administrativeProvince" } ], - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "ULB", - "OpenReq", - "ClosedReq", - "TotalReq", - "CompletionRateIn%", - "SLAAchievedIn%", - "TotalCollection" - ] - }, - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmTotalReqByWard": { - "chartName": "DSS_FSM_TOTAL_REQ_BY_WARD", + "ComplaintsShareByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.fsm.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByVillage", + "documentType": "_doc", + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" + ], "filterKeys": [ - {"key": "wardId", "column": "Ward"}, - {"key": "ulbId", "column": "ULB"} + { + "key": "locality" + } ], - "chartType": "xtable", - "valueType": "number", - "isRoundOff": true, - "drillChart": "none", - "action": "", - "documentType": "_doc", - "plotLabel": "Ward", - "excludedColumns": ["ClosedWithInSla"], - "computedFields": [ + "insight": {}, + "_comment": " " + }, + "ComplaintsShareByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "queries": [ { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["ClosedReq", "TotalReq"], - "newField" : "CompletionRateIn%", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" }, { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["ClosedWithInSla","TotalReq"], - "newField" : "SLAAchievedIn%", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "Ward", - "OpenReq", - "ClosedReq", - "TotalReq", - "CompletionRateIn%", - "SLAAchievedIn%", - "TotalCollection" - ] - }, - "insight": { - }, + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" + ], + "insight": {}, "_comment": " " }, - "fsmVehicleLogReportByDDR": { - "chartName": "DSS_FSM_VECHILE_LOG_REPORT", + "openComplaintsSummaryByDistrict": { + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_DISTRICT", "queries": [ { - "module": "FSM", - "dateRefField": "Data.vehicleTrip.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", - "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"No_Of_Trips\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.tripDetails.volume\"}}}},\"Total_Septage_Collected\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageCollected\":{\"sum\":{\"field\":\"Data.vehicleTrip.tripDetails.volume\"}}}},\"Total_Septage_Dumped\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageDumped\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}},\"Capacity_Utilization\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"CapacityUtilization\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true, \n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n \n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "District"} + { + "key": "district", + "column": "Open complaints District" + } ], - "isPostResponseHandler": true, "chartType": "xtable", "valueType": "number", - "action": "", - "isRoundOff": true, + "drillChart": "openComplaintsSummaryByAP", "documentType": "_doc", - "drillChart": "fsmVehicleLogReportByTenant", - "plotLabel":"District", + "action": "", + "showFooter": true, + "plotLabel": "Open complaints District", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, "aggregationPaths": [ - "NoOfTrips", - "TotalSeptageCollected", - "TotalSeptageDumped", - "CapacityUtilization" - ], - "pathDataTypeMapping": [ - { - "NoOfTrips" : "number" - }, - { - "TotalSeptageCollected" : "number" - }, - { - "TotalSeptageDumped" : "number" - }, - { - "CapacityUtilization" : "number" - } + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" ], - "isCumulative": true, - "interval": "month", - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "District", - "NoOfTrips", - "TotalSeptageCollected", - "TotalSeptageDumped", - "CapacityUtilization" - ] - }, - "insight": { - }, + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "fsmVehicleLogReportByTenant": { - "chartName": "DSS_FSM_VECHILE_LOG_REPORT", + "openComplaintsSummaryByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_AP", "queries": [ { - "module": "FSM", - "dateRefField": "Data.vehicleTrip.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", - "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.vehicleTrip.tenantId.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "administrativeProvince", + "column": "Open complaints AP" + } ], - "isPostResponseHandler": true, "chartType": "xtable", "valueType": "number", - "action": "", - "isRoundOff": true, + "drillChart": "openComplaintsSummaryByLocality", "documentType": "_doc", - "drillChart": "fsmVehicleLogReportByVehicleNo", - "plotLabel":"Boundary", + "action": "", + "showFooter": true, + "plotLabel": "Open complaints AP", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, "aggregationPaths": [ - "NoOfTrips", - "TotalSeptageCollected", - "TotalSeptageDumped", - "CapacityUtilization" - ], - "pathDataTypeMapping": [ - { - "NoOfTrips" : "number" - }, - { - "TotalSeptageCollected" : "number" - }, - { - "TotalSeptageDumped" : "number" - }, - { - "CapacityUtilization" : "number" - } + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "fsmVehicleLogReportByVehicleNo": { - "chartName": "DSS_FSM_VECHILE_LOG_REPORT", + "openComplaintsSummaryByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_LOCALITY", "queries": [ { - "module": "FSM", - "dateRefField": "Data.vehicleTrip.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", - "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Vehicle Reg No\":{\"terms\":{\"field\":\"Data.vehicleTrip.vehicle.registrationNumber.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"TankCapacity\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.vehicle.tankCapacity'].value)\"}}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], "filterKeys": [ - {"key": "registrationNumber", "column": "Vehicle_No"}, - {"key": "wardId", "column": "Ward"}, - {"key": "ulbId", "column": "ULB"} + { + "key": "locality", + "column": "Open complaints Locality" + } ], - "isPostResponseHandler": true, "chartType": "xtable", "valueType": "number", - "action": "", - "isRoundOff": true, + "drillChart": "openComplaintsSummaryByVillage", "documentType": "_doc", - "drillChart": "none", - "plotLabel":"Vehicle_No", + "action": "", + "showFooter": true, + "plotLabel": "Open complaints Locality", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, "aggregationPaths": [ - "NoOfTrips", - "TotalSeptageCollected", - "TotalSeptageDumped", - "CapacityUtilization", - "TankCapacity" + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" ], - "pathDataTypeMapping": [ - { - "NoOfTrips" : "number" - }, - { - "TotalSeptageCollected" : "number" - }, - { - "TotalSeptageDumped" : "number" - }, - { - "CapacityUtilization" : "number" - }, + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", + "_comment": " " + }, + "openComplaintsSummaryByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_VILLAGE", + "queries": [ { - "TankCapacity" : "number" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\",\"locality\": \"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "isCumulative": true, - "interval": "month", - "insight": { - }, + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "showFooter": true, + "plotLabel": "Open complaints Village", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": [ + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" + ], + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " - }, - - "_comment": "COMMON charts below-----------------------------------------------------------------------", - - "mcTodaysCollection": { - "chartName": "DSS_TOTAL_COLLECTION_TODAY", + }, + "checklistCompletionRateOfNationalSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_NATIONAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}],\"must\":[{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gte\":\"now-1d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], - "chartType": "metric", - "valueType": "Amount", + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", "action": "", + "filterKeys": [], "aggregationPaths": [ - "Todays Collection" + "Checklist name" ], "insight": {}, "_comment": " " }, - - "mcTotalCollection": { - "chartName": "DSS_TOTAL_COLLECTION", + "checklistCompletionRateOfProvincialSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_PROVINCIAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], - "chartType": "metric", - "valueType": "Amount", + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", "action": "", + "filterKeys": [], "aggregationPaths": [ - "Total Collection" + "Checklist name" ], - "insight": { - "chartResponseMap" : "mcTotalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - - }, + "insight": {}, "_comment": " " }, - - "mcCumulativeCollection": { - "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", + "checklistCompletionRateOfDistrictSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], "chartType": "line", - "valueType": "amount", - "action": "", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", "drillChart": "none", "documentType": "_doc", + "action": "", + "filterKeys": [], "aggregationPaths": [ - "Collections" + "Checklist name" ], - "isCumulative": true, - "interval": "month", "insight": {}, "_comment": " " }, - "mcTargetAchieved": { - "chartName": "DSS_TARGET_ACHIEVED", + "userSyncRateByDistrict": { + "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_DISTRICT", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"tenantIdForMunicipalCorporation\"}", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "userSyncRateByAP", + "documentType": "_doc", + "action": "percentage", + "filterKeys": [ + { + "key": "district" + } + ], + "aggregationPaths": [ + "Sync Rate Percentage", + "AGGS" + ], + "insight": {}, + "_comment": " " + }, + "userSyncRateByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_AP", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"district\" : \"dataObject.tenantData.city.districtCode\", \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection3\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" } ], - "chartType": "metric", + "chartType": "line", + "isCumulative": false, "valueType": "percentage", + "plotLabel": "none", "drillChart": "none", - "isRoundOff": true, "documentType": "_doc", "action": "percentage", "aggregationPaths": [ - "Total Collection3", - "Actual collection" + "Sync Rate Percentage", + "AGGS" ], - "insight": { - "chartResponseMap": "targetAchieved", - "action": "differenceOfNumbers", - "upwardIndicator": "positive", - "downwardIndicator": "negative", - "textMessage": "$indicator$value% than last $insightInterval", - "colorCode": "#228B22", - "insightInterval": "month", - "isRoundOff": true - }, + "insight": {}, "_comment": " " }, - - "mcTotalCollectionCategoryWise": { - "chartName": "DSS_MC_COLLECTION_CATEGORY_WISE", + "householdsVisitedLatLongPoints": { + "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"order\":{\"total\":\"desc\"}},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 10000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", - "valueType": "amount", + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", + "action": "", + "plotLabel": "Households", + "excludedColumns": [ + "S.N.", + "LONGITUDE", + "LATITUDE", + "Household Covered Count" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "longitude", + "fields": [ + "LONGITUDE" + ], + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "latitude", + "fields": [ + "LATITUDE" + ], + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "Households", + "fields": [ + "Household Covered Count" + ], + "_comments": "" + } + ], + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "warehouseDistributionLatLongPoints": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "xtable", + "valueType": "number", + "drillChart": "", + "documentType": "_doc", "action": "", + "plotLabel": "Warehouse Name", + "excludedColumns": [ + "S.N.", + "LONGITUDE", + "LATITUDE" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "longitude", + "fields": [ + "LONGITUDE" + ], + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "latitude", + "fields": [ + "LATITUDE" + ], + "_comments": "" + } + ], + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " + }, + "warehouseDistributionLatLongTableDaysStockLastsDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Will last for\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [], + "chartType": "line", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "drillChart": "none", + "action": "division", + "plotLabel": "District", + "isCumulative": false, "aggregationPaths": [ - "Business Service" + "Will last for", + "Target Per Day" ], "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - - "mcCollectionByPaymentType": { - "chartName": "DSS_MC_COLLECTION_BY_PAYMENT_TYPE", + "warehouseDistributionLatLongTableAvlRcvdDispDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"FSM.TRIP_CHARGES\",\"PT.MUTATION\",\"SW\",\"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_SAN_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "pie", - "valueType": "amount", - "action": "", + "filterKeys": [], + "chartType": "line", + "valueType": "number", + "drillChart": "", "documentType": "_doc", - "drillChart": "none", + "action": "", + "plotLabel": "District", + "isCumulative": false, "aggregationPaths": [ - "Payment Mode" + "Stock in Hand", + "Stock Received", + "Stock Dispatched" ], "insight": {}, - "_comment": "" + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " }, - - "totalmcDDRRevenue": { - "chartName": "DSS_MC_KEY_FY_INDICATORS", + "warehouseDistributionLatLongTableAvlRcvdDispFacilities": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" - } - ], - "isMdmsEnabled": true, - "filterKeys": [ - { - "key": "Business Service", - "column": "Business Service" + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "isPostResponseHandler": true, - "postAggregationTheory": "repsonseToDifferenceOfDates", - "chartType": "table", + "filterKeys": [], + "chartType": "line", "valueType": "number", - "drillChart": "totalmcBoundaryRevenue", + "drillChart": "", "documentType": "_doc", "action": "", - "plotLabel": "Business Service", + "plotLabel": "Warehouse Name", + "isCumulative": false, "aggregationPaths": [ - "Total Collection", - "Transactions", - "Target Collection" - ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, - { - "Target Collection": "amount" - } + "Stock in Hand", + "Stock Received", + "Stock Dispatched" ], "insight": {}, - "_comment": "" + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " }, - - "totalmcBoundaryRevenue": { - "chartName": "DSS_MC_DEMAND_COLLECTION_BOUNDARY", + "warehouseDistributionLatLongTableStockStatusDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":2000,\"order\":{\"total\":\"asc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", "dateRefField": "", - "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" - } - ], - "filterKeys": [ + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Overall Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"ot\": \"SUM\"\n },\n \"script\": \"params.ot * (-1)\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, { - "key": "Business Service", - "column": "Business Service" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity']\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "postAggregationTheory": "repsonseToDifferenceOfDates", - "chartType": "table", + "filterKeys": [], + "chartType": "line", "valueType": "number", - "drillChart": "totalmcBoundaryDrillDown", + "drillChart": "", "documentType": "_doc", "action": "", - "plotLabel": "Business Service", - "aggregationPaths": [ - "Total Collection", - "Transactions", - "Target Collection" - ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, + "plotLabel": "District", + "isCumulative": false, + "computedFields": [ { - "Target Collection": "amount" + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Stock in Hand", + "Overall Target", + "Distributions by district" + ], + "newField": "Status", + "_comments": "" } ], + "computeMultiPaths": true, + "aggregationPaths": [ + "Stock in Hand", + "Overall Target", + "Distributions by district" + ], "insight": {}, - "_comment": "" + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " }, - - "totalmcBoundaryDrillDown": { - "chartName": "DSS_MC_DEMAND_COLLECTION_BOUNDARYDDR", + "warehouseDistributionLatLongTableWarNumDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { - "module": "MC", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"dataObject.tenantId.keyword\":[\"pb.testing\",\"pb\"]}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":200,\"order\":{\"Total Collection\":\"desc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Warehouses\": {\n \"terms\": {\n \"size\": 50000,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"CARDINALITY\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.facilityName.keyword\"\n }, \n \"init_script\": \"state.list=[]\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "postAggregationTheory": "repsonseToDifferenceOfDates", - "filterKeys": [ - {"key": "businessService", "column": "Business Service"} - ], - "chartType": "xtable", + "filterKeys": [], + "chartType": "line", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", - "plotLabel": "Boundary", "action": "", - + "plotLabel": "District", + "isCumulative": false, "aggregationPaths": [ - "Total Collection", - "Transactions" - ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - } + "No. of Warehouses" ], "insight": {}, - "_comment": "" + "hideInsights": false, + "hideHeaderDenomination": true, + "_comment": " " }, - - "mCollectTodaysCollectionv2": { - "chartName": "DSS_TODAYS_COLLECTION", - "queries": [ - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"todaysDate\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}},\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}" - } - ], - "chartType": "metric", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "TodaysCollection":true, - "aggregationPaths": [ - "Todays Collection" - ], - "insight": { - - }, - "_comment": " " - }, - - "mCollectTotalCollectionv2": { - "chartName": "DSS_TOTAL_COLLECTION", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Collection" - ], - "insight": { - "chartResponseMap" : "mCollectTotalCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "mCollectTotalChallansv2": { - "chartName": "DSS_TOTAL_CHALLANS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Challans\":{\"sum\":{\"field\":\"numberOfChallansForChallanStatus\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Challans" - ], - "insight": { - "chartResponseMap" : "mCollectTotalChallansv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "mCollectTotalReceiptsv2": { - "chartName": "DSS_TOTAL_RECEIPTS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Receipts" - ], - "insight": { - "chartResponseMap" : "mCollectTotalReceiptsv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "mCollectTotalCategoriesv2": { - "chartName": "DSS_TOTAL_CATEGORIES", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Categories\":{\"cardinality\":{\"field\":\"category.keyword\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Categories" - ], - "insight": { - "chartResponseMap" : "mCollectTotalCategoriesv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "mcCollectionByPaymentModev2": { - "chartName": "DSS_MC_COLLECTION_BY_PAYMENT_MODE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"paymentMode.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Payment Mode" - ], - "insight": { - - }, - "_comment": " " - }, - - "mcRceiptsByPaymentModev2": { - "chartName": "DSS_MC_RECEIPTS_BY_PAYMENT_MODE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"paymentMode.keyword\"},\"aggs\":{\"Total Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Payment Mode" - ], - "insight": { - - }, - "_comment": " " - }, - - "mcMonthlyCumulativeCollectionv2": { - "chartName": "DSS_MC_MONTHLY_CUMULATIVE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}}}" - } - ], - "chartType": "line", - "valueType": "amount", - "action": "", - "drillChart": "none", - "documentType": "_doc", - "aggregationPaths": [ - "Collections" - ], - "isCumulative": true, - "interval": "month", - "insight": {}, - "_comment": " " - }, - - "mcCollectionByStatusv2": { - "chartName": "DSS_MC_COLLECTION_BY_STATUS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Collection Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"todaysCollectionForStatus\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Collection Status" - ], - "insight": { - - }, - "_comment": " " - }, - - "mcChallanByStatusv2": { - "chartName": "DSS_MC_CHALLAN_BY_STATUS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Challan Status\":{\"terms\":{\"field\":\"challanStatus.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"numberOfChallansForChallanStatus\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Challan Status" - ], - "insight": { - - }, - "_comment": " " - }, - - "mcReceiptsByStatusv2": { - "chartName": "DSS_MC_RECEIPTS_BY_STATUS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Receipts Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"numberOfReceiptsForStatus\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Receipts Status" - ], - "insight": { - - }, - "_comment": " " - }, - - "mcCollectionCategoryWisev2": { - "chartName": "DSS_MC_COLLECTION_CATEGORY_WISE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"category.keyword\",\"order\":{\"total\":\"desc\"}},\"aggs\":{\"total\":{\"sum\":{\"field\":\"todaysCollectionForCategory\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "amount", - "action": "", - "documentType": "_doc", - "drillChart": "none", - "aggregationPaths": [ - "Business Service" - ], - "insight": {}, - "_comment": " " - }, - - "mcReportByStatev3": { - "chartName": "DSS_MC_REPORT_BY_STATE", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\"}", - "dateRefField": "date", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"State name\":{\"terms\":{\"field\":\"state.keyword\"}, \"aggs\":{\"Total_Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}},\"MC_TOTAL_COLLECTION\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}},\"Total_Challans\":{\"sum\":{\"field\":\"numberOfChallansForChallanStatus\"}} }}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "state", "column": "States"} - ], - "chartType": "xtable", - "drillChart": "mcReportByTenantv3", - "plotLabel": "States", - "aggregationPaths": [ - - "Total_Challans", - "Total_Receipts", - "MC_TOTAL_COLLECTION" - ], - "pathDataTypeMapping": [ - { - "MC_TOTAL_COLLECTION": "amount" - }, - { - "Total_Challans": "number" - }, - { - "Total_Receipts": "number" - } - ], - - "insight": { - }, - "_comment": "" - }, - - "mcReportByDDRv3": { - "chartName": "DSS_MC_REPORT_BY_DDR", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"region\" : \"region.keyword\"}", - "dateRefField": "date", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Region\":{\"terms\":{\"field\":\"region.keyword\"}, \"aggs\":{\"Total_Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}},\"Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}},\"Total_Challans\":{\"sum\":{\"field\":\"numberOfChallansForChallanStatus\"}} }}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "region", "column": "DDR"} - ], - "chartType": "xtable", - "drillChart": "mcReportByTenantv3", - "plotLabel": "DDR", - "aggregationPaths": [ - "Total_Collection", - "Total_Challans", - "Total_Receipts" - ], - "pathDataTypeMapping": [ - { - "Total_Collection": "amount" - }, - { - "Total_Challans": "number" - }, - { - "Total_Receipts": "number" - } - ], - - "insight": { - }, - "_comment": "" - }, - - "mcReportByTenantv3": { - "chartName": "DSS_MC_REPORT_BY_TENANT", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Tenant\":{\"terms\":{\"field\":\"ulb.keyword\"}, \"aggs\":{\"Total_Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}},\"MC_TOTAL_COLLECTION\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}},\"Total_Challans\":{\"sum\":{\"field\":\"numberOfChallansForChallanStatus\"}} }}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "ulb", "column": "ULB"} - ], - "chartType": "xtable", - "drillChart": "mcReportByWardv3", - "plotLabel": "ULB", - "aggregationPaths": [ - - "Total_Challans", - "Total_Receipts", - "MC_TOTAL_COLLECTION" - ], - "pathDataTypeMapping": [ - { - "MC_TOTAL_COLLECTION": "amount" - }, - { - "Total_Challans": "number" - }, - { - "Total_Receipts": "number" - } - ], - - "insight": { - }, - "_comment": "" - }, - - "mcReportByWardv3": { - "chartName": "DSS_MC_REPORT_BY_WARD", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"ulb\" : \"ulb.keyword\", \"ward\" : \"ward.keyword\"}", - "dateRefField": "date", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"ward.keyword\"}, \"aggs\":{\"Total_Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}},\"MC_TOTAL_COLLECTION\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}},\"Total_Challans\":{\"sum\":{\"field\":\"numberOfChallansForChallanStatus\"}} }}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "ward", "column": "Ward"} - ], - "chartType": "xtable", - "drillChart": "none", - "plotLabel": "Ward", - "aggregationPaths": [ - - "Total_Challans", - "Total_Receipts", - "MC_TOTAL_COLLECTION" - ], - "pathDataTypeMapping": [ - { - "MC_TOTAL_COLLECTION": "amount" - }, - { - "Total_Challans": "number" - }, - { - "Total_Receipts": "number" - } - ], - - "insight": { - }, - "_comment": "" - }, - - "mcMonthlyCollectionv2": { - "chartName": "DSS_MC_MONTHLY_REPORT", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"month\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}},\"Receipts\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"month\"},\"aggs\":{\"Total Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForPaymentMode\"}}}} }}}}" - } - ], - - "valueType":"amount", - "chartType": "line", - "action": "", - "drillChart": "none", - "documentType": "_doc", - "aggregationPaths": [ - "Collections", - "Receipts" - ], - "pathDataTypeMapping": [ - { - "Collections": "amount" - }, - { - "Receipts": "number" - } - ], - "isCumulative": false, - "interval": "month", - "insight": { - }, - "_comment": " " - }, - - "mcReportByCategoryv3": { - "chartName": "DSS_MC_STATUS_BY_CATEGORY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"departmentId\" : \"category.keyword\" , \"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\" , \"ward\" : \"ward.keyword\" }", - "dateRefField": "date", - "indexName": "mcollect-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Department\":{\"terms\":{\"field\":\"category.keyword\"}, \"aggs\":{\"Total_Receipts\":{\"sum\":{\"field\":\"numberOfReceiptsForCategory\"}},\"MC_TOTAL_COLLECTION\":{\"sum\":{\"field\":\"todaysCollectionForCategory\"}}, \"Total_Challans\":{\"sum\":{\"field\":\"numberOfChallansForCategory\"}}}}}}}}" - } - - ], - "filterKeys": [ - {"key": "departmentId", "column": "Department"} - ], - "chartType": "xtable", - "drillChart": "none", - - "documentType": "_doc", - "action": "", - "plotLabel": "Department", - "aggregationPaths": [ - - "Total_Challans", - "Total_Receipts", - "MC_TOTAL_COLLECTION" - ], - "pathDataTypeMapping": [ - { - "MC_TOTAL_COLLECTION": "amount" - }, - { - "Total_Challans": "number" - }, - { - "Total_Receipts": "number" - } - ], - "insight": { - }, - "_comment": "" - }, - - "tradeLicenseTodaysCollectionv2": { - "chartName": "DSS_TODAYS_COLLECTION", - "queries": [ - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"todaysDate\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}},\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}" - } - ], - "chartType": "metric", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "TodaysCollection":true, - "aggregationPaths": [ - "Todays Collection" - ], - "insight": { - - }, - "_comment": " " - }, - - "tradeLicenseTotalCollectionv2": { - "chartName": "DSS_TL_TOTAL_COLLECTION", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "Amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Collection" - ], - "insight": { - "chartResponseMap" : "tradeLicenseTotalCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "totalLicensesIssuedv2": { - "chartName": "DSS_TOTAL_LICENSES", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Licenses\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Licenses" - ], - "insight": { - "chartResponseMap" : "totalLicensesIssuedv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - } - }, - - "tlMonthlyCumulativeCollectionv2": { - "chartName": "DSS_TL_MONTHLY_CUMULATIVE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"month\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}}}" - } - ], - "chartType": "line", - "valueType": "amount", - "action": "", - "drillChart": "none", - "documentType": "_doc", - "aggregationPaths": [ - "Collections" - ], - "isCumulative": true, - "interval": "month", - "insight": {}, - "_comment": " " - }, - - "totalTransactionsv2": { - "chartName": "DSS_TOTAL_TRANSACTIONS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"transactions\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Transactions\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Transactions" - ], - "insight": { - "chartResponseMap" : "totalTransactionsv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - } - }, - - "totalApplicationsv2": { - "chartName": "DSS_TOTAL_APPLICATIONS", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\",\"size\":200},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\",\"size\":200},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\",\"size\":200},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Applications" - ], - "insight": { - "chartResponseMap" : "totalApplicationsv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - } - }, - - "tlCollectionByTradeTypev2": { - "chartName": "DSS_TL_COLLECTION_BY_TRADE_TYPE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Trade Type\":{\"terms\":{\"field\":\"tradeType.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Trade Type" - ], - "insight": { - - }, - "_comment": " " - }, - - "tlTradeLicenseByStatusv2": { - "chartName": "DSS_TL_COLLECTION_BY_TRADE_TYPE", - "queries": [ - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"Total Licenses\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}" - } - ], - "chartType": "pie", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Status" - ], - "insight": { - - }, - "_comment": " " - }, - - "tlTargetAchieved": { - "chartName": "DSS_TARGET_ACHIEVED", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "master-national-dashboard", - - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"term\":{\"module.keyword\":\"TL\"}},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" - }, - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}" - } - - ], - "chartType": "metric", - "valueType": "percentage", - "drillChart": "none", - "documentType": "_doc", - "action": "percentage", - "isRoundOff": true, - "preActionTheory":{ - "Target Collection":"repsonseToDifferenceOfDates" - }, - "aggregationPaths": [ - "Total Collection", - "Target Collection" - ], - "insight": { - "chartResponseMap" : "tlTargetAchieved", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "tlTargetCollection": { - "chartName": "DSS_TARGET_COLLECTION", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"term\":{\"module.keyword\":\"TL\"}},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "amount", - "action": "", - "drillChart": "none", - "documentType": "_doc", - "aggregationPaths": [ - "Target Collection" - ], - "isDayUnit": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "insight": { - "chartResponseMap" : "tlTargetCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " " - }, - - "tlTopPerformingUlbs": { - "chartName": "NATIONAL_DSS_TOP_PERFORMING_STATES", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\r\n \"module\" : \"module.keyword\", \n\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"term\":{\"module.keyword\":\"TL\"}},\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"state.keyword\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" - }, - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}}}" - } - ], - "chartType": "perform", - "valueType": "percentage", - "drillChart": "none", - "documentType": "_doc", - "action": "percentage", - "isRoundOff": true, - "plotLabel": "DSS_TARGET_ACHIEVED", - "order": "desc", - "limit": 3, - "aggregationPaths": [ - "Total Collection","Target Collection" - ], - "preActionTheory":{ - "Target Collection":"repsonseToDifferenceOfDates" - }, - "insight": { - }, - "_comment": " Top Performing Ulbs for target achieved" - }, - - "tlBottomPerformingUlbs": { - "chartName": "NATIONAL_DSS_BOTTOM_PERFORMING_STATES", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\r\n \"module\" : \"module.keyword\", \n\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"term\":{\"module.keyword\":\"TL\"}},\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"state.keyword\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" - }, - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}}}" - } - ], - "chartType": "perform", - "valueType": "percentage", - "drillChart": "none", - "documentType": "_doc", - "action": "percentage", - "isRoundOff": true, - "plotLabel": "DSS_TARGET_ACHIEVED", - "order": "asc", - "limit": 3, - "aggregationPaths": [ - "Total Collection","Target Collection" - ], - "preActionTheory":{ - "Target Collection":"repsonseToDifferenceOfDates" - }, - "insight": { - }, - "_comment": " Bottom Performing Ulbs for target achieved" - }, - - "tlactiveUlbs": { - "chartName": "DSS_TL_TOTAL_ACTIVE_ULBS", - "queries": [ - - { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"ulb.keyword\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "action": "", - "documentType": "_doc", - "drillChart": "none", - "aggregationPaths": [ - "Active ULBs" - ], - "insight": { - "chartResponseMap" : "tlactiveUlbs", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month", - "isRoundOff": true - }, - "_comment": " total ULBs count" - }, - - "tlReportByStatev3": { - "chartName": "DSS_TL_REPORT_BY_STATE", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"State name\":{\"terms\":{\"field\":\"state.keyword\"}, \"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}", - "aggrQueryBC":"{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"States\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"status.keyword\":\"PAID\"}}}}}}}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "state", "column": "States"} - ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "tlReportByTenantv3", - "plotLabel": "States", - - - "aggregationPathsA": [ - "APPROVED", - "Initiated", - "APPLIED", - "PENDINGPAYMENT", - "Pending Approval", - "Field Inspection", - "Cancelled", - "Pending Payment", - "Paid" - ], - "pathDataTypeMappingA": [ - { - "APPROVED": "number" - }, - { - "Initiated": "number" - }, - { - "APPLIED": "number" - }, - { - "Rejected": "number" - }, - { - "Pending Approval": "number" - }, - { - "Field Inspection": "number" - }, - { - "Cancelled": "number" - }, - { - "PENDINGPAYMENT": "number" - }, - { - "Paid": "number" - } - ], - - - "insight": { - }, - "_comment": "" - }, - - "tlReportByDDRv3": { - "chartName": "DSS_TL_REPORT_BY_DDR", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"region\" : \"region.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Region name\":{\"terms\":{\"field\":\"region.keyword\"}, \"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}", - "aggrQueryBC":"{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"DDR\":{\"terms\":{\"field\":\"region.keyword\"},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"status.keyword\":\"PAID\"}}}}}}}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "region", "column": "DDR"} - ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "tlReportByTenantv3", - "plotLabel": "DDR", - "aggregationPathsA": [ - "Approved", - "Initiated", - "Applied", - "Rejected", - "Pending Approval", - "Field Inspection", - "Cancelled", - "Pending Payment", - "Paid" - ], - "pathDataTypeMappingA": [ - { - "Approved": "number" - }, - { - "Initiated": "number" - }, - { - "Applied": "number" - }, - { - "Rejected": "number" - }, - { - "Pending Approval": "number" - }, - { - "Field Inspection": "number" - }, - { - "Cancelled": "number" - }, - { - "Pending Payment": "number" - }, - { - "Paid": "number" - } - ], - - - "insight": { - }, - "_comment": "" - }, - - "tlReportByTenantv3": { - "chartName": "DSS_TL_REPORT_BY_TENANT", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Tenant name\":{\"terms\":{\"field\":\"ulb.keyword\"}, \"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}", - "aggrQueryBC":"{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"status.keyword\":\"PAID\"}}}}}}}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "tenantId", "column": "ULB"} - ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "tlReportByWardv3", - "plotLabel": "ULB", - "aggregationPathsA": [ - "Approved", - "Initiated", - "Applied", - "Rejected", - "Pending Approval", - "Field Inspection", - "Cancelled", - "Pending Payment", - "Paid" - ], - "pathDataTypeMappingA": [ - { - "Approved": "number" - }, - { - "Initiated": "number" - }, - { - "Applied": "number" - }, - { - "Rejected": "number" - }, - { - "Pending Approval": "number" - }, - { - "Field Inspection": "number" - }, - { - "Cancelled": "number" - }, - { - "Pending Payment": "number" - }, - { - "Paid": "number" - } - ], - - - "insight": { - }, - "_comment": "" - }, - - "tlReportByWardv3": { - "chartName": "DSS_TL_REPORT_BY_WARD", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"region\" : \"region.keyword\", \"tenantId\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\" }", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"ward.keyword\"}, \"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\"},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}", - "aggrQueryBC":"{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"status.keyword\":\"PAID\"}}}}}}}}}}}" - } - ], - "isMdmsEnabled": false, - "filterKeys": [ - {"key": "ward", "column": "Ward"} - ], - "chartType": "xtable", - "valueType": "number", - "drillChart": "none", - "plotLabel": "Ward", - "aggregationPathsA": [ - "Approved", - "Initiated", - "Applied", - "Rejected", - "Pending Approval", - "Field Inspection", - "Cancelled", - "Pending Payment", - "Paid" - ], - "pathDataTypeMappingA": [ - { - "Approved": "number" - }, - { - "Initiated": "number" - }, - { - "Applied": "number" - }, - { - "Rejected": "number" - }, - { - "Pending Approval": "number" - }, - { - "Field Inspection": "number" - }, - { - "Cancelled": "number" - }, - { - "Pending Payment": "number" - }, - { - "Paid": "number" - } - ], - - - "insight": { - }, - "_comment": "" - }, - - "licenseIssuedBoundaryRevenuev3": { - "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"States\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"TL_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}},\"Total_Licence_Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}},\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"transactions\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"Transactions\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}}}}}}" - }, - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\"}", - "dateRefField": "date", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[{\"term\":{\"module.keyword\":\"TL\"}}]}},\"aggs\":{\"States\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" - } - - ], - "filterKeys": [ - {"key": "state", "column": "States"} - ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "xtable", - "valueType": "number", - "drillChart": "licenseIssuedTenantRevenuev3", - "documentType": "_doc", - "action": "", - "plotLabel": "States", - "aggregationPaths": [ - "TL_Total_Collection", - "Transactions", - "Total_Licence_Issued", - "Target_Collection" - ], - "pathDataTypeMapping": [ - { - "TL_Total_Collection": "amount" - }, - { - "Target_Collection": "amount" - }, - { - "Transactions": "number" - }, - { - "Total_Licence_Issued": "number" - }, - { - "TL_Target_Collection": "amount" - } - ], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : ["Target_Collection"], - "newField" : "TL_Target_Collection", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["TL_Total_Collection", "TL_Target_Collection"], - "newField" : "TL_Target_Achieved", - "isRoundOff": true, - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } - - ], - "excludedColumns":["Target_Collection"], - "insight": { - }, - "_comment": "" - }, - - "licenseIssuedDDDRRevenuev3": { - "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Regions\":{\"terms\":{\"field\":\"region.keyword\"},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}},\"Transactions\":{\"sum\":{\"field\":\"transactions\"}},\"Total Licence Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}" - }, - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\"}", - "dateRefField": "", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Regions\":{\"terms\":{\"field\":\"region.keyword\"},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "regionId", "column": "Regions"} - ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "xtable", - "valueType": "number", - "drillChart": "licenseIssuedTenantRevenuev3", - "documentType": "_doc", - "action": "", - "plotLabel": "Regions", - "aggregationPaths": [ - "Total Collection", - "Transactions", - "Total Licence Issued", - "Target Collection" - ], - "pathDataTypeMapping": [ - { - "Total Collection": "amount" - }, - { - "Transactions": "number" - }, - { - "Total Licence Issued": "number" - }, - { - "Target Collection": "amount" - } - ], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "PercentageComputedField", - "fields" : ["Total Collection", "Target Collection"], - "newField" : "Target Achieved", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } - - ], - "insight": { - }, - "_comment": "" - }, - - "licenseIssuedTenantRevenuev3": { - "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\", \"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Tenants\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"TL_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}},\"Total_Licence_Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}},\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"transactions\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"Transactions\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}}}}}}" - }, - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\", \"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[{\"term\":{\"module.keyword\":\"TL\"}}]}},\"aggs\":{\"Tenants\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "ulb", "column": "ULB"} - ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "xtable", - "valueType": "number", - "drillChart": "licenseIssuedWardRevenuev3", - "documentType": "_doc", - "action": "", - "plotLabel": "ULB", - "aggregationPaths": [ - "TL_Total_Collection", - "Transactions", - "Total_Licence_Issued", - "Target_Collection" - ], - "pathDataTypeMapping": [ - { - "TL_Total_Collection": "amount" - }, - { - "Target_Collection": "amount" - }, - { - "Transactions": "number" - }, - { - "Total_Licence_Issued": "number" - }, - { - "TL_Target_Collection": "amount" - } - ], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : ["Target_Collection"], - "newField" : "TL_Target_Collection", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["TL_Total_Collection", "TL_Target_Collection"], - "newField" : "TL_Target_Achieved", - "isRoundOff": true, - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } - - ], - "excludedColumns":["Target_Collection"], - "insight": { - }, - "_comment": "" - }, - - "licenseIssuedWardRevenuev3": { - "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\", \"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\" }", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Wards\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"TL_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}},\"Total_Licence_Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}},\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"transactions\"}}}},\"Transactions\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}}}}}}" - }, - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\", \"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}", - "dateRefField": "date", - "indexName": "master-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[],\"must\":[{\"term\":{\"module.keyword\":\"TL\"}}]}},\"aggs\":{\"Wards\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "ward", "column": "Wards"} - ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "chartType": "xtable", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "plotLabel": "Wards", - "aggregationPaths": [ - "TL_Total_Collection", - "Transactions", - "Total_Licence_Issued", - "Target_Collection" - ], - "pathDataTypeMapping": [ - { - "TL_Total_Collection": "amount" - }, - { - "Target_Collection": "amount" - }, - { - "Transactions": "number" - }, - { - "Total_Licence_Issued": "number" - }, - { - "TL_Target_Collection": "amount" - } - ], - "computedFields": [ - { - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "actionName": "AdditiveComputedField", - "fields" : ["Target_Collection"], - "newField" : "TL_Target_Collection", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - }, - { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : ["TL_Total_Collection", "TL_Target_Collection"], - "newField" : "TL_Target_Achieved", - "isRoundOff": true, - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } - - ], - "excludedColumns":["Target_Collection"], - "insight": { - }, - "_comment": "" - }, - - "licenceTaxHeadsBreakupState": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"States\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsTax\":{\"avg\":{\"field\":\"tlTax\"}},\"applicationsPenalty\":{\"avg\":{\"field\":\"adhocPenalty\"}},\"applicationsRebate\":{\"avg\":{\"field\":\"adhocRebate\"}}}},\"wardapplicationsTax\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsTax\"}},\"wardapplicationsPenalty\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsPenalty\"}},\"wardapplicationsRebate\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsRebate\"}}}},\"ulbApplicationsTax\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplicationsTax\"}},\"ulbApplicationsPenalty\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplicationsPenalty\"}},\"ulbApplicationsRebate\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplicationsRebate\"}}}},\"TL_Tax\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplicationsTax\"}},\"Adhoc_Penalty\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplicationsPenalty\"}},\"Adhoc_Rebate\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplicationsRebate\"}},\"Total_Amount\":{\"bucket_script\":{\"buckets_path\":{\"Adhoc_Rebate\":\"Adhoc_Rebate\",\"TL_Tax\":\"TL_Tax\",\"Adhoc_Penalty\":\"Adhoc_Penalty\"},\"script\":{\"source\":\" params.TL_Tax + params.Adhoc_Penalty - params.Adhoc_Rebate\"}}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "state", "column": "States"} - ], - "chartType": "xtable", - "valueType": "amount", - "drillChart": "licenceTaxHeadsBreakupTenant", - "documentType": "_doc", - "action": "", - "plotLabel": "States", - "aggregationPaths": [ - "TL_Tax", - "Adhoc_Penalty", - "Adhoc_Rebate", - "Total_Amount" - ], - "pathDataTypeMapping": [ - { - "TL_Tax": "amount" - }, - { - "Adhoc_Penalty": "amount" - }, - { - "Adhoc_Rebate": "amount" - }, - { - "Total_Amount":"amount" - } - ], - - - - "insight": { - }, - "_comment": "" - }, - - "licenceTaxHeadsBreakupDDRv3": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Regions\":{\"terms\":{\"field\":\"region.keyword\"},\"aggs\":{\"TL Tax\":{\"sum\":{\"field\":\"tlTax\"}},\"Adhoc Penalty\":{\"sum\":{\"field\":\"adhocPenalty\"}},\"Adhoc Rebate\":{\"sum\":{\"field\":\"adhocRebate\"}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "regionId", "column": "Regions"} - ], - "chartType": "xtable", - "valueType": "amount", - "drillChart": "licenceTaxHeadsBreakupTenant", - "documentType": "_doc", - "action": "", - "plotLabel": "Regions", - "aggregationPaths": [ - "TL Tax", - "Adhoc Penalty", - "Adhoc Rebate" - ], - "pathDataTypeMapping": [ - { - "TL Tax": "amount" - }, - { - "Adhoc Penalty": "amount" - }, - { - "Adhoc Rebate": "amount" - } - ], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["TL Tax", "Adhoc Penalty", "Adhoc Rebate"], - "newField" : "Total Amount", - "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " - } - ], - - "insight": { - }, - "_comment": "" - }, - - "licenceTaxHeadsBreakupTenant": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\", \"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"ULBs\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsTax\":{\"avg\":{\"field\":\"tlTax\"}},\"applicationsPenalty\":{\"avg\":{\"field\":\"adhocPenalty\"}},\"applicationsRebate\":{\"avg\":{\"field\":\"adhocRebate\"}}}},\"wardapplicationsTax\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsTax\"}},\"wardapplicationsPenalty\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsPenalty\"}},\"wardapplicationsRebate\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsRebate\"}}}},\"TL_Tax\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplicationsTax\"}},\"Adhoc_Penalty\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplicationsPenalty\"}},\"Adhoc_Rebate\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplicationsRebate\"}},\"Total_Amount\":{\"bucket_script\":{\"buckets_path\":{\"Adhoc_Rebate\":\"Adhoc_Rebate\",\"TL_Tax\":\"TL_Tax\",\"Adhoc_Penalty\":\"Adhoc_Penalty\"},\"script\":{\"source\":\" params.TL_Tax + params.Adhoc_Penalty - params.Adhoc_Rebate\"}}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "ulb", "column": "ULB"} - ], - "chartType": "xtable", - "valueType": "amount", - "drillChart": "licenceTaxHeadsBreakupWardv3", - "documentType": "_doc", - "action": "", - "plotLabel": "ULB", - "aggregationPaths": [ - "TL_Tax", - "Adhoc_Penalty", - "Adhoc_Rebate", - "Total_Amount" - ], - "pathDataTypeMapping": [ - { - "TL_Tax": "amount" - }, - { - "Adhoc_Penalty": "amount" - }, - { - "Adhoc_Rebate": "amount" - }, - { - "Total_Amount": "amount" - } - ], - - - "insight": { - }, - "_comment": "" - }, - - "licenceTaxHeadsBreakupWardv3": { - "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", - "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\", \"regionId\" : \"region.keyword\", \"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\" }", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Wards\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsTax\":{\"avg\":{\"field\":\"tlTax\"}},\"applicationsPenalty\":{\"avg\":{\"field\":\"adhocPenalty\"}},\"applicationsRebate\":{\"avg\":{\"field\":\"adhocRebate\"}}}},\"TL_Tax\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsTax\"}},\"Adhoc_Penalty\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsPenalty\"}},\"Adhoc_Rebate\":{\"sum_bucket\":{\"buckets_path\":\"days.applicationsRebate\"}},\"Total_Amount\":{\"bucket_script\":{\"buckets_path\":{\"Adhoc_Rebate\":\"Adhoc_Rebate\",\"TL_Tax\":\"TL_Tax\",\"Adhoc_Penalty\":\"Adhoc_Penalty\"},\"script\":{\"source\":\" params.TL_Tax + params.Adhoc_Penalty - params.Adhoc_Rebate\"}}}}}}}}}" - } - ], - "filterKeys": [ - {"key": "ward", "column": "Wards"} - ], - "chartType": "xtable", - "valueType": "amount", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "plotLabel": "Wards", - "aggregationPaths": [ - "TL_Tax", - "Adhoc_Penalty", - "Adhoc_Rebate", - "Total_Amount" - ], - "pathDataTypeMapping": [ - { - "TL_Tax": "amount" - }, - { - "Adhoc_Penalty": "amount" - }, - { - "Adhoc_Rebate": "amount" - }, - { - "Total_Amount" : "amount" - } - ], - - - "insight": { - }, - "_comment": "" - }, - - "tlTopPerformingUlbsCompletionRate": { - "chartName": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_COMPLETION_RATE", - "queries": [ - - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Licenses Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysLicenseIssuedWithinSLA\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"Licenses Within SLA\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Licenses\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"licenses\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}},\"wardlicenses\":{\"sum_bucket\":{\"buckets_path\":\"days.licenses\"}}}},\"ulblicenses\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardlicenses\"}}}},\"totalLicenses\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulblicenses\"}}}}}}}}" - } - ], - "chartType": "perform", - "valueType": "percentage", - "drillChart": "none", - "documentType": "_doc", - "action": "percentage", - "isRoundOff": true, - "plotLabel": "DSS_COMPLETION_RATE", - "order": "desc", - "limit": 3, - "aggregationPaths": [ - "Licenses Within SLA", - "Total Licenses" - ], - "insight": { - }, - "_comment": " Top Performing Ulbs for Completion rate" - }, - - "tlBottomPerformingUlbsCompletionRate": { - "chartName": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_COMPLETION_RATE", - "queries": [ - - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Licenses Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysLicenseIssuedWithinSLA\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"Licenses Within SLA\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Licenses\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"licenses\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}},\"wardlicenses\":{\"sum_bucket\":{\"buckets_path\":\"days.licenses\"}}}},\"ulblicenses\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardlicenses\"}}}},\"totalLicenses\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulblicenses\"}}}}}}}}" - } - ], - "chartType": "perform", - "valueType": "percentage", - "drillChart": "none", - "documentType": "_doc", - "action": "percentage", - "isRoundOff": true, - "plotLabel": "DSS_COMPLETION_RATE", - "order": "asc", - "limit": 3, - "aggregationPaths": [ - "Licenses Within SLA", - "Total Licenses" - ], - "insight": { - }, - "_comment": " Top Performing Ulbs for Completion rate" - }, - - "cumulativeLicenseIssuedv2": { - "chartName": "DSS_TL_CUMULATIVE_LICENSE_ISSUED", - "queries": [ - { - "module": "COMMON", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Trade Licence Issued\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"month\"},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date" - }, - { - "module": "COMMON", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"month\"},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"allApplications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}}}", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date" - } - ], - "chartType": "line", - "valueType": "number", - "action": "", - "documentType": "_doc", - "drillChart": "none", - "aggregationPaths": [ - "Total Application", - "Trade Licence Issued" - ], - "isCumulative": true, - "interval": "month", - "insight": { - }, - "_comment": " Total Number of License having issued" - }, - - "nocApplicationVsProvisionalVsActual": { - "chartName": "DSS_APPLICATION_VS_PROVISIONAL_VS_ACTUAL", - "queries": [ - { - "module": "FIRENOC", - "dateRefField": "Data.@timestamp", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", - "indexName": "firenoc-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Applications\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Provisional NOCs Issued\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Provisional\":{\"filter\":{\"terms\":{\"Data.fireNOCDetails.fireNOCType.keyword\":[\"PROVISIONAL\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Actual NOCs Issued\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Actual\":{\"filter\":{\"terms\":{\"Data.fireNOCDetails.fireNOCType.keyword\":[\"NEW\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" - } - ], - "chartType": "line", - "valueType": "number", - "action": "", - "drillChart": "none", - "documentType": "_doc", - "aggregationPaths": [ - "Total Applications", - "Provisional NOCs Issued", - "Actual NOCs Issued" - ], - "isCumulative": true, - "interval": "month", - "insight": { - }, - "_comment": "" - }, - - "nurtOnboardedStates":{ - "chartName": "NURT_ONBOARDED_STATES", + "pqmSubmittedTestsPercentangeOutOfTotalTests": { + "chartName": "DSS_PQM_SUBMITTED_TESTS_PERCENTAGE_OUT_OF_TOTAL_TESTS", "queries": [ { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"match\":{\"status\":\"OnBoarded\"}},\"aggs\":{\"OnBoardedStates\":{\"cardinality\":{\"field\":\"state.keyword\"}}}}}}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"aggs\":{\"Total_Tests\":{\"value_count\":{\"field\":\"_id\"}},\"Submitted_Tests\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], "chartType": "metric", - "valueType": "number", + "valueType": "percentage", + "action": "percentage", + "isRoundOff": true, "drillChart": "none", - "documentType": "_doc", - "action": "", "aggregationPaths": [ - "OnBoardedStates" + "Submitted_Tests", + "Total_Tests" ], "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": " " + "_comment": " PQM Percentage of Submitted Tests out of Total Tests" }, - "nurtUnderImpStates":{ - "chartName": "NURT_UNDERIMPL_STATES", + "pqmPercentageOfTestResultsMeetingBenchmarks": { + "chartName": "DSS_PQM_PERCENTAGE_OF_TEST_RESULTS_MEETING_BENCHMARKS", "queries": [ { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"match\":{\"status\":\"UnderImplementation\"}},\"aggs\":{\"underImpmStates\":{\"cardinality\":{\"field\":\"state.keyword\"}}}}}}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"aggs\":{\"TOTAL_TESTS\":{\"value_count\":{\"field\":\"_id\"}},\"PASSED_TESTS\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], "chartType": "metric", - "valueType": "number", + "valueType": "percentage", + "action": "percentage", + "isRoundOff": true, "drillChart": "none", - "documentType": "_doc", - "action": "", "aggregationPaths": [ - "underImpmStates" + "PASSED_TESTS", + "TOTAL_TESTS" ], "insight": { + "chartResponseMap": "pqmPercentageOfTestResultsMeetingBenchmarks", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": " " + "_comment": " PQM Percentage of Test Results Meeting Benchmarks" }, - "nurtLiveStates":{ - "chartName": "NURT_LIVE_STATES", + "pqmTotalAlerts": { + "chartName": "DSS_PQM_TOTAL_ALERTS", "queries": [ { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"match\":{\"status\":\"Live\"}},\"aggs\":{\"liveStates\":{\"cardinality\":{\"field\":\"state.keyword\"}}}}}}" + "module": "PQM", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"TOTAL_ALERTS\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp" } ], "chartType": "metric", "valueType": "number", - "drillChart": "none", - "documentType": "_doc", "action": "", + "drillChart": "none", "aggregationPaths": [ - "liveStates" + "TOTAL_ALERTS" ], "insight": { + "chartResponseMap": "pqmTotalAlerts", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": " " + "_comment": "PQM Total Alerts" }, - "nurtLiveUlbs":{ - "chartName": "NURT_LIVE_ULB", + "pqmTotalIncomingSludge": { + "chartName": "DSS_PQM_TOTAL_INCOMING_SLUDGE", "queries": [ { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}},{\"range\":{\"liveUlbsCountForServiceModuleCode\":{\"gte\":1}}}]}},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"modules\":{\"terms\":{\"field\":\"serviceModuleCode.keyword\"},\"aggs\":{\"intermediateAggr\":{\"avg\":{\"field\":\"liveUlbsCountForServiceModuleCode\"}}}},\"LiveUlbCount\":{\"avg\":{\"field\":\"totalLiveUlbsCount\"}}}},\"totalLiveUlbCount\":{\"avg_bucket\":{\"buckets_path\":\"latest.LiveUlbCount\"}}}}}}" + "module": "PQM", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Sludge Collection\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantData.code\"}", + "dateRefField": "Data.vehicleTrip.@timestamp" } ], "chartType": "metric", "valueType": "number", - "drillChart": "none", - "documentType": "_doc", "action": "", + "drillChart": "none", + "isRoundOff": true, "aggregationPaths": [ - "totalLiveUlbCount" + "Total Sludge Collection" ], "insight": { + "chartResponseMap": "pqmTotalIncomingSludge", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": " " + "_comment": " PQM Total Incoming Sludge" }, - - "nurtTotalCitzens":{ - "chartName": "NURT_TOTAL_CITIZENS", + "pqmTotalPlants": { + "chartName": "DSS_PQM_TOTAL_PLANTS", "queries": [ { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}}]}},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"totalCitizensCount\":{\"avg\":{\"field\":\"totalCitizensCount\"}}}},\"totalCitizensCount\":{\"avg_bucket\":{\"buckets_path\":\"latest.totalCitizensCount\"}}}}}}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"aggs\":{\"TOTAL_PLANTS\":{\"cardinality\":{\"field\":\"Data.tests.plantCode.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], "chartType": "metric", "valueType": "number", - "drillChart": "none", - "documentType": "_doc", "action": "", + "drillChart": "none", "aggregationPaths": [ - "totalCitizensCount" + "TOTAL_PLANTS" ], "insight": { - "chartResponseMap" : "nurtTotalCitzens", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "isRoundOff":true, - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "pqmTotalPlants", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": " " + "_comment": " PQM Total Plants" }, - "nurtSlaAchieved":{ - "chartName": "NURT_SLA_ACHIEVED", + "pqmPlantsWithPercentageTestPassedGreaterThan90": { + "chartName": "DSS_PQM_PLANTS_WITH_PERCENTAGE_TEST_PASSED_90", "queries": [ { - "module": "COMMON", - "dateRefField": "date", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}}]}},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"slaAchieve\":{\"avg\":{\"field\":\"slaAchievement\"}}}},\"slaAchievement\":{\"avg_bucket\":{\"buckets_path\":\"latest.slaAchieve\"}}}}}}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"size\":0,\"query\":{\"bool\":{\"must\":[{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}]}},\"aggs\":{\"plants_pass_percentage\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\",\"size\":10},\"aggs\":{\"TotalPassTest\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}},\"PassPercentage\":{\"bucket_script\":{\"buckets_path\":{\"passCount\":\"TotalPassTest._count\",\"totalCount\":\"_count\"},\"script\":\"params.passCount/params.totalCount*100\"}},\"PassPercentageFilter\":{\"bucket_selector\":{\"buckets_path\":{\"passPercentage\":\"PassPercentage\"},\"script\":\"params.passPercentage>90\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], "chartType": "metric", - "valueType": "percentage", - "drillChart": "none", - "documentType": "_doc", + "valueType": "number", "action": "", - "isRoundOff": true, + "drillChart": "none", "aggregationPaths": [ - "slaAchievement" + "DSS_PQM_PLANTS_WITH_PERCENTAGE_TEST_PASSED_90" ], "insight": { - "chartResponseMap" : "nurtSlaAchieved", + "chartResponseMap" : "pqmPlantsWithPercentageTestPassedGreaterThan90", "action" : "differenceOfNumbers", "upwardIndicator" : "positive", "downwardIndicator" : "negative", - "isRoundOff":true, "textMessage" : "$indicator$value% than last $insightInterval", "colorCode" : "#228B22", "insightInterval" : "year", - "isRoundOff": true + "isRoundOff": true }, - "_comment": " " + "_comment": " PQM Plants With Percentage Test Passed Greater Than 90" }, - - "nurtProjectStatusModule": { - "chartName": "NURT_PROJECT_STAUS", + "pqmTestCompliance": { + "chartName": "DSS_PQM_TEST_COMPLIANCE", "queries": [ - { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}},{\"range\":{\"liveUlbsCountForServiceModuleCode\":{\"gte\":1}}}]}},\"aggs\":{\"module\":{\"terms\":{\"field\":\"serviceModuleCode.keyword\"},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"liveUlbPerModule\":{\"avg\":{\"field\":\"liveUlbsCountForServiceModuleCode\"}}}}}},\"totalLiveUlbCount\":{\"avg\":{\"field\":\"totalLiveUlbsCount\"}}}}}}" + { + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"size\":0,\"aggs\":{\"plant_code\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\"},\"aggs\":{\"wfStatus_submitted_count\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], - "isMdmsEnabled": false, - "isPostResponseHandler": true, - "chartType": "table", - "valueType": "number", + "chartType": "metric", + "valueType": "percentage", + "action": "percentage", + "isRoundOff": true, "drillChart": "none", - "documentType": "_doc", - "action": "", "aggregationPaths": [ - "module", - "liveUlbPerModule" + "wfStatus_submitted_count", + "plant_code" ], - "plotLabel": "module", - "pathDataTypeMapping": [ - { - "module": "string" - }, + "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " PQM Percentage of Test Compliance" + }, + "pqmQualityTestPassed": { + "chartName": "DSS_PQM_QUALITY_TEST_PASSED", + "queries": [ { - "liveUlbPerModule": "number" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"size\":0,\"aggs\":{\"plant_code\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\"},\"aggs\":{\"test_criteria_passed\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], + "chartType": "metric", + "valueType": "percentage", + "action": "percentage", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "plant_code", + "test_criteria_passed" + ], "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": "" + "_comment": " PQM Percentage of Quality test passed" }, - "nurtliveOnboardedUlbs": { - "chartName": "NURT_LIVE_ACTIVE_ULBS", + "pqmAlerts": { + "chartName": "DSS_PQM_ALERTS", "queries": [ { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}", - "dateRefField": "date", - "indexName": "common-national-dashboard", - "aggrQuery": "{\"size\":0,\"query\":{\"bool\":{\"adjust_pure_negative\":true,\"boost\":1}},\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"onBoardeUlbsCount\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"onBoardeUlbsCount\":{\"avg\":{\"field\":\"onboardedUlbsCount\"}}}},\"onBoardeUlbsCount\":{\"sum_bucket\":{\"buckets_path\":\"latest.onBoardeUlbsCount\"}}}},\"liveUlbsCount\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}},{\"range\":{\"liveUlbsCountForServiceModuleCode\":{\"gte\":1}}}]}},\"aggs\":{\"test\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"LiveUlbCount\":{\"avg\":{\"field\":\"totalLiveUlbsCount\"}}}},\"liveUlbsCount\":{\"sum_bucket\":{\"buckets_path\":\"latest.LiveUlbCount\"}}}}}}}}}}" + "module": "PQM", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"size\":0,\"aggs\":{\"anomaly_types\":{\"terms\":{\"field\":\"Data.pqmAnomalys.anomalyType.keyword\",\"size\":3}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp" } ], - "chartType": "line", + "chartType": "metric", "valueType": "number", "action": "", + "isRoundOff": true, "drillChart": "none", - "documentType": "_doc", "aggregationPaths": [ - "onBoardeUlbsCount", - "liveUlbsCount" + "anomaly_types" ], - "isCumulative": false, - "interval": "month", - "insight": {}, - "_comment": " " + "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " PQM Number of total alerts" }, - - "tlStatusByState": { - "chartName": "DSS_TL_STATUS_BY_STATE", + "pqmAlertsTest": { + "chartName": "PQM_ANOMALY_TYPE", "queries": [ { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\"} ", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"ulb.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"State\":{\"terms\":{\"field\":\"state.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\",\"size\":1000,\"min_doc_count\":0,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}" - + "module": "PQM", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" } ], + "isMdmsEnabled": true, "filterKeys": [ - {"key": "state", "column": "State"} + { + "key": "tenantId", + "column": "DDRs" + } ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", - "drillChart": "tlStatusByUlb", - "drillFields": [ - "" + "drillChart": "xBirthDownloadByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Anomaly_type_lab_results", + "TotalAlerts" ], "pathDataTypeMapping": [ - - { - "INITIATED": "number" - }, - { - "FIELDINSPECTION": "number" - }, - { - "REJECTED": "number" - }, - { - "APPROVED": "number" - }, - { - "APPLIED": "number" - }, - { - "PENDINGAPPROVAL": "number" - }, - { - "CANCELLED": "number" - }, - { - "PENDINGPAYMENT": "number" - }, - { - "PAID": "number" - }, - { - "EXPIRED": "number" - }, { - "DOCUMENTVERIFICATION" : "number" + "Anomaly_type_lab_results": "number" }, { - "CITIZENACTIONREQUIRED" : "number" + "TotalAlerts": "number" } ], - - "documentType": "_doc", - "action": "", - "plotLabel": "State", - - - - - "insight": { - }, + "insight": {}, "_comment": "" }, - - "tlStatusByUlb": { - "chartName": "DSS_TL_STATUS_BY_WARD", + "pqmAlertsTest2": { + "chartName": "PQM_ANOMALY_TYPE", "queries": [ { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\" , \"ulb\" : \"ulb.keyword\" } ", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"ulb.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"ulb.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\",\"size\":1000,\"min_doc_count\":0,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}" - + "module": "PQM", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" } ], + "isMdmsEnabled": true, "filterKeys": [ - {"key": "ulb", "column": "ULB"} + { + "key": "tenantId" + } ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", - "drillChart": "tlStatusByWard", - "drillFields": [ - "" + "drillChart": "xBirthDownloadByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Anomaly_type_lab_results", + "TotalAlerts" ], "pathDataTypeMapping": [ - - { - "INITIATED": "number" - }, - { - "FIELDINSPECTION": "number" - }, - { - "REJECTED": "number" - }, - { - "APPROVED": "number" - }, - { - "APPLIED": "number" - }, - { - "PENDINGAPPROVAL": "number" - }, { - "CANCELLED": "number" - }, - { - "PENDINGPAYMENT": "number" - }, - { - "PAID": "number" - }, - { - "EXPIRED": "number" - }, - { - "DOCUMENTVERIFICATION" : "number" + "Anomaly_type_lab_results": "number" }, { - "CITIZENACTIONREQUIRED" : "number" + "TotalAlerts": "number" } ], - - "documentType": "_doc", - "action": "", - "plotLabel": "ULB", - - - - - "insight": { - }, + "insight": {}, "_comment": "" }, - - "tlStatusByWard": { - "chartName": "DSS_TL_STATUS_BY_WARD", + "pqmAlertLabTestResult": { + "chartName": "DSS_PQM_ALERT_LAB_TEST_RESULT", "queries": [ { - "module": "COMMON", - "requestQueryMap": "{\"state\" : \"state.keyword\" , \"ulb\" : \"ulb.keyword\" , \"ward\" : \"ward.keyword\" } ", - "dateRefField": "date", - "indexName": "tl-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"ulb.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"ward.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"status.keyword\",\"size\":1000,\"min_doc_count\":0,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"License Issued\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}}}" - + "module": "PQM", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"lab_results_count\":{\"filter\":{\"term\":{\"Data.pqmAnomalys.anomalyType.keyword\":\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp" } ], - "filterKeys": [ - {"key": "ward", "column": "Ward"} - ], - "chartType": "xtable", + "chartType": "metric", "valueType": "number", + "action": "", + "isRoundOff": true, "drillChart": "none", - "drillFields": [ - "" - ], - "pathDataTypeMapping": [ - - { - "INITIATED": "number" - }, - { - "FIELDINSPECTION": "number" - }, - { - "REJECTED": "number" - }, - { - "APPROVED": "number" - }, - { - "APPLIED": "number" - }, - { - "PENDINGAPPROVAL": "number" - }, - { - "CANCELLED": "number" - }, - { - "PENDINGPAYMENT": "number" - }, - { - "PAID": "number" - }, - { - "EXPIRED": "number" - }, - { - "DOCUMENTVERIFICATION" : "number" - }, - { - "CITIZENACTIONREQUIRED" : "number" - } + "aggregationPaths": [ + "lab_results_count" ], - - "documentType": "_doc", - "action": "", - "plotLabel": "Ward", - - - - "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "_comment": "" - }, - } \ No newline at end of file + "_comment": " PQM Number of total alerts of lab result" + } +} \ No newline at end of file From 726a44c4f3e8bcdb2aac1d5e7b57e7579d2a3ee6 Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Sat, 18 Nov 2023 15:07:36 +0530 Subject: [PATCH 022/158] updated the estimate persister file --- works/egov-persister/estimate-service.yml | 48 ++++++++++++++++++----- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/works/egov-persister/estimate-service.yml b/works/egov-persister/estimate-service.yml index ae4a3d1e0..790bc0176 100644 --- a/works/egov-persister/estimate-service.yml +++ b/works/egov-persister/estimate-service.yml @@ -51,7 +51,7 @@ serviceMaps: - jsonPath: $.estimate.auditDetails.lastModifiedTime - - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,is_active,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.estimate.estimateDetails.* jsonMaps: @@ -63,8 +63,6 @@ serviceMaps: - jsonPath: $.estimate.estimateDetails.*.sorId - - jsonPath: $.estimate.estimateDetails.*.isActive - - jsonPath: $.estimate.estimateDetails.*.category - jsonPath: $.estimate.estimateDetails.*.name @@ -83,6 +81,18 @@ serviceMaps: type: JSON dbType: JSONB + - jsonPath: $.estimate.estimateDetails.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.length + + - jsonPath: $.estimate.estimateDetails.*.width + + - jsonPath: $.estimate.estimateDetails.*.height + + - jsonPath: $.estimate.estimateDetails.*.quantity + + - jsonPath: $.estimate.estimateDetails.*.isDeduction + - query: INSERT INTO eg_wms_estimate_address(id,tenant_id,estimate_id,latitude,longitude,address_number,address_line_1,address_line_2,landmark,city,pin_code,detail) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.estimate.address @@ -167,7 +177,7 @@ serviceMaps: - jsonPath: $.estimate.id - - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,is_active,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET sor_id=?, is_active = ?,name=?, description=?,unit_rate=?, no_of_unit=?,category=?,uom=?, uom_value=?, additional_details=?; + - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET sor_id=?, category=?, name=?, description=?,unit_rate=?, no_of_unit=?,uom=?, uom_value=?, additional_details=?,is_active = ?,length = ?,width = ?,height = ?,quantity = ?,is_deduction = ?; basePath: $.estimate.estimateDetails.* jsonMaps: @@ -179,8 +189,6 @@ serviceMaps: - jsonPath: $.estimate.estimateDetails.*.sorId - - jsonPath: $.estimate.estimateDetails.*.isActive - - jsonPath: $.estimate.estimateDetails.*.category - jsonPath: $.estimate.estimateDetails.*.name @@ -199,9 +207,21 @@ serviceMaps: type: JSON dbType: JSONB + - jsonPath: $.estimate.estimateDetails.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.length + + - jsonPath: $.estimate.estimateDetails.*.width + + - jsonPath: $.estimate.estimateDetails.*.height + + - jsonPath: $.estimate.estimateDetails.*.quantity + + - jsonPath: $.estimate.estimateDetails.*.isDeduction + - jsonPath: $.estimate.estimateDetails.*.sorId - - jsonPath: $.estimate.estimateDetails.*.isActive + - jsonPath: $.estimate.estimateDetails.*.category - jsonPath: $.estimate.estimateDetails.*.name @@ -211,8 +231,6 @@ serviceMaps: - jsonPath: $.estimate.estimateDetails.*.noOfunit - - jsonPath: $.estimate.estimateDetails.*.category - - jsonPath: $.estimate.estimateDetails.*.uom - jsonPath: $.estimate.estimateDetails.*.uomValue @@ -221,6 +239,18 @@ serviceMaps: type: JSON dbType: JSONB + - jsonPath: $.estimate.estimateDetails.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.length + + - jsonPath: $.estimate.estimateDetails.*.width + + - jsonPath: $.estimate.estimateDetails.*.height + + - jsonPath: $.estimate.estimateDetails.*.quantity + + - jsonPath: $.estimate.estimateDetails.*.isDeduction + - query: UPDATE eg_wms_estimate_address set latitude=?, longitude=?, address_number=?,address_line_1=?, address_line_2=?,landmark=?,city=?, pin_code=?, detail=? where id=?; basePath: $.estimate.address From 2be112c312c3017b13f6bfc80b6db2ee9908fa77 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 22 Nov 2023 20:18:40 +0530 Subject: [PATCH 023/158] alertchange --- .../dashboard-analytics/ChartApiConfig.json | 16310 ++++++++-------- 1 file changed, 8661 insertions(+), 7649 deletions(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index 84de32be9..d4da6d6e9 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -7,14 +7,14 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.bill.billDetails.businessService.keyword\":\"PT\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.bill.billDetails.businessService.keyword\":\"PT\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" }, { "module": "TL", "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.bill.billDetails.businessService.keyword\":\"TL\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.bill.billDetails.businessService.keyword\":\"TL\"}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -26,18 +26,16 @@ "Todays Collection" ], "insight": { - "chartResponseMap" : "totalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " - }, - - + }, "licenseByLicenseTypev2": { "chartName": "DSS_TL_LICENSE_BY_TYPE", "queries": [ @@ -46,7 +44,7 @@ "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Licens Issued\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Licens Issued\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -57,11 +55,9 @@ "aggregationPaths": [ "License Instrument Type" ], - "insight": { - }, + "insight": {}, "_comment": " License Application which are issued by License Type" }, - "licenseIssuedDDRRevenuev2": { "chartName": "DSS_TL_KEY_FY_INDICATORS", "queries": [ @@ -70,7 +66,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}" }, { "module": "COMMON", @@ -82,10 +78,13 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "licenseIssuedBoundaryRevenuev2", @@ -112,8 +111,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "licenseIssuedBoundaryRevenuev2": { @@ -124,7 +122,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" }, { "module": "COMMON", @@ -135,9 +133,12 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "licenseIssuedBoundaryDrillDown", @@ -164,8 +165,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "licenseIssuedBoundaryDrillDownv2": { @@ -176,10 +176,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "", @@ -206,11 +206,9 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "licenceTaxHeadsBreakupDDRv2": { "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", "queries": [ @@ -219,12 +217,15 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandlerA": true, "chartType": "xtable", @@ -240,16 +241,18 @@ ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["TL Tax", "Adhoc Penalty", "Adhoc Rebate"], - "newField" : "Total Amount", + "fields": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate" + ], + "newField": "Total Amount", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "licenceTaxHeadsBreakupBoundaryv2": { @@ -260,11 +263,14 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", @@ -275,10 +281,10 @@ "aggregationPaths": [ "TL Tax", "Adhoc Penalty", - "Adhoc Rebate","Total Amount" + "Adhoc Rebate", + "Total Amount" ], - "insight": { - }, + "insight": {}, "_comment": "" }, "licenceTaxHeadsBreakupWardv2": { @@ -289,11 +295,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -303,13 +308,12 @@ "aggregationPaths": [ "TL Tax", "Adhoc Penalty", - "Adhoc Rebate", "Total Amount" + "Adhoc Rebate", + "Total Amount" ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "totalCollectionDeptWisev2": { "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION:_DEPARTMENT_WISE", "queries": [ @@ -318,7 +322,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -329,8 +333,7 @@ "aggregationPaths": [ "Business Service" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "totalCollectionv2": { @@ -341,21 +344,21 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" }, { "module": "TL", "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" }, { "module": "FSM", "dateRefField": "Data.payments.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -367,18 +370,16 @@ "Total Collection" ], "insight": { - "chartResponseMap" : "totalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - - "targetAchievedv2": { "chartName": "DSS_TARGET_ACHIEVED", "queries": [ @@ -394,9 +395,8 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } - ], "chartType": "metric", "valueType": "percentage", @@ -408,20 +408,18 @@ "Actual collection" ], "insight": { - "chartResponseMap" : "targetAchieved", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "targetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - - "_comment": "dss-collectionindex new queries ", - "cumulativeCollectionv2": { + "cumulativeCollectionv2": { "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", "queries": [ { @@ -429,7 +427,7 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"FSM.TRIP_CHARGES\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\",\"FSM.TRIP_CHARGES\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "line", @@ -442,8 +440,7 @@ ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "topPerformingUlbsv2": { @@ -461,7 +458,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "perform", @@ -473,10 +470,10 @@ "order": "desc", "limit": 3, "aggregationPaths": [ - "Total Collection","Target Collection" + "Total Collection", + "Target Collection" ], - "insight": { - }, + "insight": {}, "_comment": " Top Performing Ulbs for target achieved" }, "bottomPerformingUlbsv2": { @@ -494,7 +491,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "perform", @@ -506,13 +503,13 @@ "order": "asc", "limit": 3, "aggregationPaths": [ - "Total Collection", "Target Collection" + "Total Collection", + "Target Collection" ], - "insight": { - }, + "insight": {}, "_comment": " Bottom Performing Ulbs for target achieved" }, - "collectionByUsageTypev2": { + "collectionByUsageTypev2": { "chartName": "DSS_PT_COLLECTION_BY_USAGE_TYPE", "queries": [ { @@ -520,7 +517,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200}}}}}}}}" } ], "chartType": "pie", @@ -531,12 +528,9 @@ "aggregationPaths": [ "Usage Type" ], - "insight": { - }, + "insight": {}, "_comment": " collection/amount per usage type" }, - - "demandCollectionIndexDDRRevenuev2": { "chartName": "DSS_PT_KEY_FY_INDICATORS", "queries": [ @@ -545,7 +539,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" }, { "module": "COMMON", @@ -557,7 +551,10 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "table", "valueType": "number", @@ -565,7 +562,7 @@ "action": "", "plotLabel": "DDRs", "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "aggregationPaths": [ "Total Collection", "Transactions", @@ -586,8 +583,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "demandCollectionIndexBoundaryRevenuev2": { @@ -598,7 +594,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" }, { "module": "COMMON", @@ -609,9 +605,13 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", "chartType": "table", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", "valueType": "number", "drillChart": "boundaryDrillDownv2", "drillFields": [ @@ -641,8 +641,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "boundaryDrillDown": { @@ -654,7 +653,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" } ], "chartType": "table", @@ -679,8 +678,7 @@ "Assessed Properties": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "demandCollectionIndexUsageRevenuev2": { @@ -691,12 +689,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", @@ -711,7 +707,6 @@ "Total Collection", "Transactions", "Assessed Properties" - ], "pathDataTypeMapping": [ { @@ -724,11 +719,9 @@ "Assessed Properties": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "taxHeadsBreakupDDRRevenuev2": { "chartName": "DSS_PT_TAX_HEAD_BREAKUP_REVENUE", "queries": [ @@ -737,13 +730,15 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.totalAmount\"}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.totalAmount\"}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} - + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", @@ -758,19 +753,27 @@ "Cancer Cess", "Rebate", "Penalty", - "Time Interest","Round Off" + "Time Interest", + "Round Off" ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "PT Tax", "Fire Cess", "Cancer Cess", "Rebate", "Penalty", "Time Interest","Round Off"], - "newField" : "Total Amount", + "fields": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off" + ], + "newField": "Total Amount", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupRevenuev2": { @@ -781,12 +784,14 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} - + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", @@ -804,11 +809,11 @@ "Cancer Cess", "Rebate", "Penalty", - "Time Interest","Round Off", "Total Amount" + "Time Interest", + "Round Off", + "Total Amount" ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupBoundaryDrillv2": { @@ -819,12 +824,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -841,11 +844,11 @@ "Cancer Cess", "Rebate", "Penalty", - "Time Interest","Round Off","Total Amount" + "Time Interest", + "Round Off", + "Total Amount" ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupUsagev2": { @@ -856,12 +859,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-payment_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", @@ -896,12 +897,9 @@ "Penalty": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - - "totalCollection": { "chartName": "DSS_TOTAL_COLLECTION", "queries": [ @@ -910,21 +908,21 @@ "dateRefField": "dataObject.Bill.billDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" }, { "module": "TL", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" }, { "module": "FSM", "dateRefField": "Data.payments.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\", \"district\" : \"Data.tenantData.cityDistrictCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -936,13 +934,13 @@ "Total Collection" ], "insight": { - "chartResponseMap" : "totalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, @@ -954,7 +952,7 @@ "dateRefField": "dataObject.Bill.billDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.Bill.billDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.Bill.billDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.Bill.billDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.Bill.billDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "line", @@ -967,8 +965,7 @@ ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "targetAchieved": { @@ -986,9 +983,8 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"district\" : \"dataObject.tenantData.cityDistrictCode\", \"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" } - ], "chartType": "metric", "valueType": "percentage", @@ -1000,13 +996,13 @@ "Actual collection" ], "insight": { - "chartResponseMap" : "targetAchieved", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "targetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, @@ -1018,21 +1014,21 @@ "dateRefField": "dataObject.Bill.billDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"PT\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" }, { "module": "TL", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.businessService.keyword\":\"TL\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}" }, { "module": "FSM", "dateRefField": "Data.payments.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"data.ward.name.keyword\",\"module\" : \"Data.payments.paymentDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -1043,8 +1039,7 @@ "aggregationPaths": [ "Total Collection" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "totalCollectionDeptWise": { @@ -1055,7 +1050,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.Bill.billDetails.businessService.keyword\":[\"PT\",\"TL\",\"FSM.TRIP_CHARGES\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.Bill.billDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.Bill.billDetails.businessService.keyword\":[\"PT\",\"TL\",\"FSM.TRIP_CHARGES\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.Bill.billDetails.businessService.keyword\"},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -1066,8 +1061,7 @@ "aggregationPaths": [ "Business Service" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "topPerformingUlbs": { @@ -1085,7 +1079,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "perform", @@ -1097,10 +1091,10 @@ "order": "desc", "limit": 3, "aggregationPaths": [ - "Total Collection","Target Collection" + "Total Collection", + "Target Collection" ], - "insight": { - }, + "insight": {}, "_comment": " Top Performing Ulbs for target achieved" }, "bottomPerformingUlbs": { @@ -1118,7 +1112,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "perform", @@ -1130,10 +1124,10 @@ "order": "asc", "limit": 3, "aggregationPaths": [ - "Total Collection", "Target Collection" + "Total Collection", + "Target Collection" ], - "insight": { - }, + "insight": {}, "_comment": " Bottom Performing Ulbs for target achieved" }, "licenseByLicenseType": { @@ -1144,7 +1138,7 @@ "requestQueryMap": "{\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantData.code\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.instrument.typeName.keyword\"},\"aggs\":{\"Licens Issued\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.instrument.typeName.keyword\"},\"aggs\":{\"Licens Issued\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -1155,11 +1149,9 @@ "aggregationPaths": [ "License Instrument Type" ], - "insight": { - }, + "insight": {}, "_comment": " License Application which are issued by License Type" }, - "_comment": "COMMON NON-COLLECTION CHARTS", "totalApplication": { "chartName": "DSS_TOTAL_APPLICATION", @@ -1167,28 +1159,28 @@ { "module": "PT", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "dateRefField": "Data.@timestamp" }, { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid.keyword\" \r\n}", "dateRefField": "Data.tradelicense.applicationDate" }, { "module": "PGR", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "dateRefField": "Data.dateOfComplaint" }, { "module": "FSM", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.@timestamp\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.@timestamp\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "dateRefField": "Data.@timestamp" } @@ -1202,13 +1194,13 @@ "Total Application" ], "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totalApplication is the chartId" }, @@ -1220,28 +1212,28 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}" }, { "module": "TL", "dateRefField": "Data.tradelicense.applicationdate", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid.keyword\" \r\n}", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}" }, { "module": "PGR", "dateRefField": "Data.dateOfComplaint", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" }, { "module": "FSM", "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"completed\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.@timestamp\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"completed\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.@timestamp\"}}}}}}}}" } ], "chartType": "metric", @@ -1253,13 +1245,13 @@ "Applications Closed" ], "insight": { - "chartResponseMap" : "closedApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "closedApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totalApplication is the chartId" }, @@ -1269,7 +1261,7 @@ { "module": "PGR", "indexName": "pgr-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.service.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Citizen Registered\":{\"terms\":{\"field\":\"Data.service.citizen.uuid.keyword\"},\"aggs\":{\"type_count\":{\"cardinality\":{\"field\":\"Data.service.citizen.uuid.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.service.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Citizen Registered\":{\"terms\":{\"field\":\"Data.service.citizen.uuid.keyword\"},\"aggs\":{\"type_count\":{\"cardinality\":{\"field\":\"Data.service.citizen.uuid.keyword\"}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"district\" : \"Data.tenantData.city.districtCode\", \"tenantId\" : \"Data.service.tenantId.keyword\", \"status\" : \"Data.service.applicationStatus\"}", "dateRefField": "Data.@timestamp" } @@ -1283,13 +1275,13 @@ "Citizen Registered" ], "insight": { - "chartResponseMap" : "citizenRegistered", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "citizenRegistered", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": " totalApplication is the chartId" }, @@ -1301,28 +1293,28 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Property Tax\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Property Tax\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" }, { "module": "TL", "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Trade Licence\":{\"value_count\":{\"field\":\"Data.tradelicense.tenantid.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Trade Licence\":{\"value_count\":{\"field\":\"Data.tradelicense.tenantid.keyword\"}}}}}}" }, { "module": "PGR", "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"PGR\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"PGR\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" }, { "module": "FSM", "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"FSM\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"FSM\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" } ], "chartType": "pie", @@ -1335,8 +1327,7 @@ "Trade Licence", "PGR" ], - "insight": { - }, + "insight": {}, "_comment": " totalApplication is the chartId" }, "totalApplication&ClosedApplication": { @@ -1347,30 +1338,28 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}}}}}" }, { "module": "TL", "dateRefField": "Data.tradelicense.applicationdate", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid.keyword\" \r\n}", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}}}" - + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}}}" }, { "module": "PGR", "dateRefField": "Data.dateOfComplaint", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" - + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"closed\",\"resolved\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" }, { "module": "FSM", "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.fsm.tenantid.keyword\" \r\n}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"completed\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Closed\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.status.keyword\":[\"completed\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationNo.keyword\"}}}}}}}}}}" } ], "chartType": "line", @@ -1384,8 +1373,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "topPerformingUlbsCompletionRate": { @@ -1396,28 +1384,28 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"term\":{\"Data.status.keyword\":\"resolved\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"order\":{\"_key\":\"asc\"},\"size\":100},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"order\":{\"_key\":\"asc\"},\"size\":100},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"term\":{\"Data.status.keyword\":\"resolved\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"order\":{\"_key\":\"asc\"},\"size\":100},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"order\":{\"_key\":\"asc\"},\"size\":100},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" }, { "module": "PT", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.propertyId.keyword\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.propertyId.keyword\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" }, { "module": "TL", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.tradelicense.applicationdate", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.issueddate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.applicationdate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.issueddate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.applicationdate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" }, { "module": "FSM", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" } ], "chartType": "perform", @@ -1432,8 +1420,7 @@ "Closed Application", "Total Application" ], - "insight": { - }, + "insight": {}, "_comment": " Top Performing Ulbs for Completion rate" }, "bottomPerformingUlbsCompletionRate": { @@ -1444,28 +1431,28 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"term\":{\"Data.status.keyword\":\"resolved\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"term\":{\"Data.status.keyword\":\"resolved\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" }, { "module": "PT", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.propertyId.keyword\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.propertyId.keyword\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Total Application\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" }, { "module": "TL", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.tradelicense.applicationdate", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.issueddate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.applicationdate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.issueddate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.tradelicense.applicationdate\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" }, { "module": "FSM", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"module\" : \"businessService.keyword\",\"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.fsm.@timestamp", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}},\"Total Application\":{\"filter\":{\"exists\":{\"field\":\"Data.fsm.@timestamp\"}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.tenantData.code.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}}}}}" } ], "chartType": "perform", @@ -1480,11 +1467,9 @@ "Closed Application", "Total Application" ], - "insight": { - }, + "insight": {}, "_comment": " Bottom Performing Ulbs for Completion rate" - }, - + }, "_comment": "COMMON COLLECTION CHARTS", "targetCollection": { "chartName": "DSS_TARGET_COLLECTION", @@ -1506,13 +1491,10 @@ "Target Collection" ], "isDayUnit": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "insight": { - }, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "insight": {}, "_comment": " " }, - - "collectionByUsageType": { "chartName": "DSS_PT_COLLECTION_BY_USAGE_TYPE", "queries": [ @@ -1521,7 +1503,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200}}}}}}}}" } ], "chartType": "pie", @@ -1532,14 +1514,13 @@ "drillFields": [ "selectedType", "" - ], "aggregationPaths": [ + ], + "aggregationPaths": [ "Usage Type" ], - "insight": { - }, + "insight": {}, "_comment": " collection/amount per usage type" }, - "collectionBySelectedType": { "chartName": "DSS_COLLECTION_BY_SELECTED_TYPE", "queries": [ @@ -1548,25 +1529,26 @@ "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantData.code\", \"district\" : \"dataObject.tenantData.city.districtCode\", \"selectedType\" : \"domainObject.units.usageCategory.keyword\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"tenant\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Amount Paid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"tenant\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Amount Paid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "chartType": "pie", "valueType": "amount", "action": "", "documentType": "_doc", - "filterKeys": [ - {"key": "selectedType", "column": "UsageCategory"} - ], - "drillChart": "none", + "filterKeys": [ + { + "key": "selectedType", + "column": "UsageCategory" + } + ], + "drillChart": "none", "aggregationPaths": [ "Payment Mode" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "_comment": "PT NON-COLLECTION CHARTS", "propertiesByUsageType": { "chartName": "DSS_PT_PROPERTIES_BY_USAGE_TYPE", @@ -1576,8 +1558,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"module\" : \"Data.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"Data.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "Data.@timestamp", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.propertyDetails.units.usageCategoryMajor.keyword\"},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" - + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.propertyDetails.units.usageCategoryMajor.keyword\"},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -1588,8 +1569,7 @@ "aggregationPaths": [ "Usage Type" ], - "insight": { - }, + "insight": {}, "_comment": " properties having assessmentNumber per usage type" }, "totalProperties": { @@ -1598,7 +1578,7 @@ { "module": "PT", "indexName": "property-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "dateRefField": "" } @@ -1619,7 +1599,7 @@ { "module": "PT", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp" } @@ -1633,13 +1613,13 @@ "Assessed Properties" ], "insight": { - "chartResponseMap" : "propertiesAssessed", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "propertiesAssessed", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totol properties having assessmentNumber " }, @@ -1649,7 +1629,7 @@ { "module": "PT", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"Data.paymentDetails.businessService.keyword\":\"PT\"}},{\"term\":{\"Data.paymentDetails.totalDue\":{\"value\":0}} } ]}},\"aggs\":{\"Paid Properties\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"Data.paymentDetails.businessService.keyword\":\"PT\"}},{\"term\":{\"Data.paymentDetails.totalDue\":{\"value\":0}} } ]}},\"aggs\":{\"Paid Properties\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp" } @@ -1663,13 +1643,13 @@ "Paid Properties" ], "insight": { - "chartResponseMap" : "propertiesPaid", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "propertiesPaid", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " total paid properties " }, @@ -1679,8 +1659,7 @@ { "module": "PT", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}", - + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Assessed Properties\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp" } @@ -1694,13 +1673,13 @@ "Assessed Properties" ], "insight": { - "chartResponseMap" : "totalAssessment", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalAssessment", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totol properties having assessmentNumber " }, @@ -1710,7 +1689,7 @@ { "module": "PT", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.@timestamp" } @@ -1725,8 +1704,7 @@ ], "isCumulative": true, "interval": "week", - "insight": { - }, + "insight": {}, "_comment": " totol properties having assessmentNumber " }, "activeUlbs": { @@ -1737,21 +1715,21 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.@timestamp", "indexName": "ptindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantId.keyword\"}}}}}}" }, { "module": "TL", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\"}", "dateRefField": "Data.tradelicense.@timestamp", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantData.code.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantData.code.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}" }, { "module": "FSM", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\"}", "dateRefField": "Data.@timestamp", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantData.code.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantData.code.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Active ULBs\":{\"cardinality\":{\"field\":\"Data.tenantData.code.keyword\"}}}}}}" } ], "chartType": "metric", @@ -1763,19 +1741,17 @@ "Active ULBs" ], "insight": { - "chartResponseMap" : "activeUlbs", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "activeUlbs", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " total ULBs count" }, - "_comment": "PT COLLECTION CHARTS (Tax heads)", - "_comment": "PT COLLECTION CHARTS (Demands) ", "demandCollectionIndexDDRRevenue": { "chartName": "DSS_PT_KEY_FY_INDICATORS", @@ -1785,7 +1761,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" }, { "module": "COMMON", @@ -1797,7 +1773,10 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "table", "valueType": "number", @@ -1805,7 +1784,7 @@ "action": "", "plotLabel": "DDRs", "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "aggregationPaths": [ "Total Collection", "Transactions", @@ -1826,8 +1805,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "demandCollectionIndexBoundaryRevenue": { @@ -1838,7 +1816,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"domainObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"domainObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" }, { "module": "COMMON", @@ -1849,9 +1827,13 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", "chartType": "table", + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "table", "valueType": "number", "drillChart": "boundaryDrillDown", "drillFields": [ @@ -1881,8 +1863,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "boundaryDrillDown": { @@ -1894,7 +1875,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" } ], "chartType": "table", @@ -1923,12 +1904,9 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - - "_comment": " PT Nested Array related new queries", "taxHeadsBreakupDDRRevenue": { "chartName": "DSS_PT_TAX_HEAD_BREAKUP_REVENUE", @@ -1938,13 +1916,15 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.totalAmount\"}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.totalAmount\"}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} - + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", @@ -1959,19 +1939,27 @@ "Cancer Cess", "Rebate", "Penalty", - "Time Interest","Round Off" + "Time Interest", + "Round Off" ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "PT Tax", "Fire Cess", "Cancer Cess", "Rebate", "Penalty", "Time Interest","Round Off"], - "newField" : "Total Amount", + "fields": [ + "PT Tax", + "Fire Cess", + "Cancer Cess", + "Rebate", + "Penalty", + "Time Interest", + "Round Off" + ], + "newField": "Total Amount", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupRevenue": { @@ -1982,12 +1970,14 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} - + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", @@ -2005,11 +1995,11 @@ "Cancer Cess", "Rebate", "Penalty", - "Time Interest","Round Off", "Total Amount" + "Time Interest", + "Round Off", + "Total Amount" ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupBoundaryDrill": { @@ -2020,12 +2010,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"usageId\" : \"domainObject.propertyDetails.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"PT Tax>aggrFilter>amount\",\"c2\":\"Fire Cess>aggrFilter>amount\",\"c3\":\"Cancer Cess>aggrFilter>amount\",\"c4\":\"Rebate>aggrFilter>amount\",\"c5\":\"Penalty>aggrFilter>amount\",\"c6\":\"Time Interest>aggrFilter>amount\",\"c7\":\"Round Off>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3+params.c4+params.c5+params.c6+params.c7\"}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Time Interest\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Round Off\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_ROUNDOFF\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -2042,14 +2030,13 @@ "Cancer Cess", "Rebate", "Penalty", - "Time Interest","Round Off","Total Amount" + "Time Interest", + "Round Off", + "Total Amount" ], - - "insight": { - }, + "insight": {}, "_comment": "" }, - "taxHeadsBreakupUsage": { "chartName": "DSS_PT_TAX_HEAD_BREAKUP_USAGE", "queries": [ @@ -2058,12 +2045,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", @@ -2098,8 +2083,7 @@ "Penalty": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupUsageMinor": { @@ -2110,11 +2094,14 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "minorUsageId", "column": "Minor Usage Type"} + { + "key": "minorUsageId", + "column": "Minor Usage Type" + } ], "chartType": "table", "valueType": "number", @@ -2150,8 +2137,7 @@ "Penalty": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "taxHeadsBreakupUsageSubMinor": { @@ -2162,7 +2148,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"Usage \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"PT\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"PT Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Fire Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_FIRE_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Cancer Cess\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_CANCER_CESS\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"PT_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}}}" } ], "filterKeys": [ @@ -2202,8 +2188,7 @@ "Penalty": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "demandCollectionIndexUsageRevenue": { @@ -2214,13 +2199,11 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", - "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.status.keyword\":\"Approved\"}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", + "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"dataObject.Bill.billDetails.status.keyword\":\"Approved\"}}]}},\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", @@ -2235,7 +2218,6 @@ "Total Collection", "Transactions", "Assessed Properties" - ], "pathDataTypeMapping": [ { @@ -2248,8 +2230,7 @@ "Assessed Properties": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "usageRevenueDrillDownMinor": { @@ -2260,12 +2241,15 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", "aggrQuerybc": "{\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "minorUsageId", "column": "Minor Usage Type"} + { + "key": "minorUsageId", + "column": "Minor Usage Type" + } ], "chartType": "table", "valueType": "number", @@ -2289,8 +2273,7 @@ "Assessed Properties": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "usageRevenueDrillDownSubMinor": { @@ -2301,13 +2284,11 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"usageId\" : \"domainObject.propertyDetails.units.usageCategoryMajor.keyword\",\"minorUsageId\" : \"domainObject.propertyDetails.units.usageCategoryMinor.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}}}},\"Transactions\":{\"reverse_nested\":{},\"aggs\":{\"top_tags_per_comment\":{\"cardinality\":{\"field\":\"dataObject.transactionId.keyword\"}}}},\"Assessed Properties\":{\"nested\":{\"path\":\"domainObject.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"domainObject.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}}}", "aggrQuerybc": "{\"aggs\":{\"attrs_root\":{\"nested\":{\"path\":\"domainObject.propertyDetails.units\"},\"aggs\":{\"UsageType \":{\"terms\":{\"field\":\"domainObject.propertyDetails.units.usageCategorySubMinor.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Assessed Properties\":{\"nested\":{\"path\":\"Data.propertyDetails\"},\"aggs\":{\"attr\":{\"cardinality\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}}}" } ], - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "none", @@ -2330,15 +2311,10 @@ "Assessed Properties": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - - - "_comment": "TL COLLECTION CHARTS", - "licenseIssuedDDRRevenue": { "chartName": "DSS_TL_KEY_FY_INDICATORS", "queries": [ @@ -2347,12 +2323,12 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" }, { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\": {\"Total Licence Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\": {\"Total Licence Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", "dateRefField": "Data.tradelicense.issuedDate" }, @@ -2366,10 +2342,13 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "licenseIssuedBoundaryRevenue", @@ -2396,8 +2375,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "licenseIssuedBoundaryRevenue": { @@ -2408,12 +2386,12 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" }, { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", "dateRefField": "Data.tradelicense.issuedDate" }, @@ -2426,9 +2404,12 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "licenseIssuedBoundaryDrillDown", @@ -2455,8 +2436,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "licenseIssuedBoundaryDrillDown": { @@ -2467,17 +2447,17 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"domainObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.billId.keyword\"}}}}}}}}" }, { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Licence Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licenseNumber.keyword\"}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantId\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", "dateRefField": "Data.tradelicense.issuedDate" } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "", @@ -2500,11 +2480,9 @@ "Total Licence Issued": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "_comment": " TL Nested Array related newer queries", "licenceTaxHeadsBreakupDDR": { "chartName": "DSS_TL_TAX_HEAD_BREAKUP_BOUNDARY", @@ -2514,12 +2492,15 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"TL\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Amount\":{\"nested\":{\"path\":\"dataObject.Bill.taxAndPayments\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.taxAndPayments.businessService.keyword\":[\"TL\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.taxAndPayments.taxAmount\"}}}}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandlerA": true, "chartType": "xtable", @@ -2535,16 +2516,18 @@ ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["TL Tax", "Adhoc Penalty", "Adhoc Rebate"], - "newField" : "Total Amount", + "fields": [ + "TL Tax", + "Adhoc Penalty", + "Adhoc Rebate" + ], + "newField": "Total Amount", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "licenceTaxHeadsBreakupBoundary": { @@ -2555,11 +2538,14 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", @@ -2570,10 +2556,10 @@ "aggregationPaths": [ "TL Tax", "Adhoc Penalty", - "Adhoc Rebate","Total Amount" + "Adhoc Rebate", + "Total Amount" ], - "insight": { - }, + "insight": {}, "_comment": "" }, "licenceTaxHeadsBreakupWard": { @@ -2584,11 +2570,10 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Amount\":{\"bucket_script\":{\"buckets_path\":{\"c1\":\"TL Tax>aggrFilter>amount\",\"c2\":\"Adhoc Penalty>aggrFilter>amount\",\"c3\":\"Adhoc Rebate>aggrFilter>amount\"},\"script\":{\"source\":\"params.c1+params.c2+params.c3\"}}},\"TL Tax\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_TAX\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Penalty\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}},\"Adhoc Rebate\":{\"nested\":{\"path\":\"dataObject.Bill.billDetails.billAccountDetails\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"dataObject.Bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"TL_ADHOC_REBATE\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -2598,14 +2583,12 @@ "aggregationPaths": [ "TL Tax", "Adhoc Penalty", - "Adhoc Rebate", "Total Amount" + "Adhoc Rebate", + "Total Amount" ], - "insight": { - }, + "insight": {}, "_comment": "" }, - - "_comment": "TL NON-COLLECTION CHARTS", "licenseIssued": { "chartName": "DSS_TL_LICENSE_ISSUED", @@ -2613,7 +2596,7 @@ { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\": {\"License Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\": {\"License Issued\": {\"value_count\": {\"field\": \"Data.tradelicense.licenseNumber.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tradelicense.tenantid\" \r\n, \r\n\"businessService\" : \"dataObject.Bill.billDetails.businessServices\" \r\n}", "dateRefField": "Data.tradelicense.issuedDate" } @@ -2627,13 +2610,13 @@ "License Issued" ], "insight": { - "chartResponseMap" : "licenseIssued", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "licenseIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " licenseIssued is the Chart ID" }, @@ -2643,14 +2626,14 @@ { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Trade Licence Issued\":{\"date_histogram\":{\"field\":\"Data.tradelicense.issueddate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Trade Licence Issued\":{\"date_histogram\":{\"field\":\"Data.tradelicense.issueddate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.tradelicense.issueddate" }, { "module": "TL", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"Data.tradelicense.applicationdate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tradelicense.applicationnumber.keyword\"}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" ,\"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.tradelicense.applicationdate" } @@ -2666,8 +2649,7 @@ ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " Total Number of License having issued" }, "licenseApplicationByStatus": { @@ -2678,8 +2660,8 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\", \"district\" : \"Data.tenantData.cityDistrictCode\"}", "dateRefField": "Data.tradelicense.issueddate", "indexName": "tlindex-v1", - "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\"},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.status.keyword\"}}}}}}}}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"cardinality\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}}}" + "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\"},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.status.keyword\"}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"cardinality\":{\"field\":\"Data.tradelicense.applicationNumber.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -2690,8 +2672,7 @@ "aggregationPaths": [ "Status" ], - "insight": { - }, + "insight": {}, "_comment": " License Application which are issued by License Type" }, "slaAchieved": { @@ -2702,7 +2683,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \r\n \"module\" : \"businessService.keyword\", \n\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}, \"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"Within SLA\",\"from\":0,\"to\":360}]}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Application\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}, \"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"Within SLA\",\"from\":0,\"to\":360}]}}}}}}" } ], "chartType": "metric", @@ -2715,13 +2696,13 @@ "Total Application" ], "insight": { - "chartResponseMap" : "slaAchieved", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "slaAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " SLA Achieved Percentage " }, @@ -2733,13 +2714,16 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tradelicense.tenantid.keyword\" }", "dateRefField": "Data.tradelicense.issueddate", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}", - "aggrQueryBC": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}", + "aggrQueryBC": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", @@ -2790,8 +2774,7 @@ "Paid": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "tlStatusByTenant": { @@ -2802,12 +2785,15 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tradelicense.tenantid.keyword\" }", "dateRefField": "Data.tradelicense.issueddate", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantid.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}}}", - "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantid.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}}}", + "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tradelicense.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", @@ -2818,14 +2804,9 @@ "documentType": "_doc", "action": "", "plotLabel": "ULBs", - "aggregationPaths": [ - - ], - "pathDataTypeMapping": [ - - ], - "insight": { - }, + "aggregationPaths": [], + "pathDataTypeMapping": [], + "insight": {}, "_comment": "" }, "tlStatusByTenantDrillDown": { @@ -2836,12 +2817,11 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tradelicense.tenantid.keyword\" }", "dateRefField": "Data.tradelicense.issueddate", "indexName": "tlindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}}}", - "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantid.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"terms\":{\"field\":\"Data.tradelicense.status.keyword\",\"size\":1000,\"min_doc_count\":0},\"aggs\":{\"License Issued\":{\"value_count\":{\"field\":\"Data.tradelicense.licensenumber.keyword\"}}}}}}}}}}", + "aggrQueryBc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tradelicense.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":1000},\"aggs\":{\"Status\":{\"filters\":{\"filters\":{\"Approved\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPROVED\"}},\"Initiated\":{\"match\":{\"Data.tradelicense.status.keyword\":\"INITIATED\"}},\"Applied\":{\"match\":{\"Data.tradelicense.status.keyword\":\"APPLIED\"}},\"Rejected\":{\"match\":{\"Data.tradelicense.status.keyword\":\"REJECTED\"}},\"Pending Approval\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGAPPROVAL\"}},\"Field Inspection\":{\"match\":{\"Data.tradelicense.status.keyword\":\"FIELDINSPECTION\"}},\"Cancelled\":{\"match\":{\"Data.tradelicense.status.keyword\":\"CANCELLED\"}},\"Pending Payment\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PENDINGPAYMENT\"}},\"Paid\":{\"match\":{\"Data.tradelicense.status.keyword\":\"PAID\"}}}}}}}}}}}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -2891,11 +2871,9 @@ "Paid": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "_comment": "Enhanced table charts..TODO: refactor to remove xtable type ", "xlicenseIssuedBoundaryRevenue": { "chartName": "DSS_TL_DEMAND_COLLECTION_BOUNDARY", @@ -2905,7 +2883,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.Bill.billDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.Bill.billDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200,\"min_doc_count\":0},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.Bill.billDetails.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200,\"min_doc_count\":0},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.Bill.billDetails.amountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionId.keyword\"}},\"Total Licence Issued\":{\"value_count\":{\"field\":\"domainObject.tradelicense.licensenumber.keyword\"}}}}}}}}" }, { "module": "COMMON", @@ -2916,35 +2894,41 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "", "plotLabel": "Boundary", - "aggregationPaths": [ - ], + "aggregationPaths": [], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "PercentageComputedField", - "fields" : ["Target Collection", "Total Collection"], - "newField" : "Target Achieved", + "fields": [ + "Target Collection", + "Total Collection" + ], + "newField": "Target Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "PercentageComputedField", - "fields" : ["Target Collection", "Total Collection"], - "newField" : "Target Achieved", + "fields": [ + "Target Collection", + "Total Collection" + ], + "newField": "Target Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "pathDataTypeMapping": [ - ], - "insight": { - }, + "pathDataTypeMapping": [], + "insight": {}, "_comment": "" }, "xptFyByDDR": { @@ -2962,20 +2946,22 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" }", "dateRefField": "Data.assessmentDate", "indexName": "property-assessments", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" - } + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xptFyByTenant", "plotLabel": "DDRs", "order": "desc", - "insight": { - }, + "insight": {}, "_comment": "" }, "xptFyByTenant": { @@ -2993,19 +2979,21 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" }", "dateRefField": "Data.assessmentDate", "indexName": "property-assessments", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBS \":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBS \":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "ULBs"} + { + "key": "tenantId", + "column": "ULBs" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xptFyByWard", "plotLabel": "ULBs", "order": "desc", - "insight": { - }, + "insight": {}, "_comment": "" }, "xptFyByWard": { @@ -3023,22 +3011,23 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\" , \"wardId\" : \"Data.ward.name.keyword\"}", "dateRefField": "Data.assessmentDate", "indexName": "property-assessments", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\"},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\"},\"aggs\":{\"Total\":{\"value_count\":{\"field\":\"Data.propertyDetails.assessmentNumber.keyword\"}}}}}}}}" } ], "filterKeys": [ - {"key": "wardId", "column": "Wards"} + { + "key": "wardId", + "column": "Wards" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Wards", "order": "desc", - "insight": { - }, + "insight": {}, "_comment": "" }, - "xpgrStatusByDDR": { "chartName": "DSS_PGR_STATUS_BY_TENANT", "queries": [ @@ -3047,36 +3036,46 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xpgrStatusByTenant", "plotLabel": "DDRs", - "excludedColumns": ["withinSLA"], + "excludedColumns": [ + "withinSLA" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Closed Complaints", "Total Complaints"], - "newField" : "Completion Rate", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["withinSLA","Total Complaints"], - "newField" : "Sla Achieved", + "fields": [ + "withinSLA", + "Total Complaints" + ], + "newField": "Sla Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xpgrStatusByTenant": { @@ -3087,35 +3086,45 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xpgrStatusByWard", "plotLabel": "Boundary", - "excludedColumns": ["withinSLA"], + "excludedColumns": [ + "withinSLA" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Closed Complaints", "Total Complaints"], - "newField" : "Completion Rate", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Complaints", "withinSLA"], - "newField" : "Sla Achieved", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xpgrStatusByWard": { @@ -3126,41 +3135,49 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.complaintWard.name.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.complaintWard.name.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xpgrStatusByComplaintCategory", - "documentType": "_doc", "action": "", "plotLabel": "Ward", - "excludedColumns": ["withinSLA"], + "excludedColumns": [ + "withinSLA" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Closed Complaints", "Total Complaints"], - "newField" : "Completion Rate", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Complaints", "withinSLA"], - "newField" : "Sla Achieved", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "xpgrStatusByComplaintCategory": { "chartName": "DSS_PGR_STATUS_BY_COMPLAINT_CATEGORY", "queries": [ @@ -3169,41 +3186,49 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.code.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "wardId", "column": "Ward"} + { + "key": "wardId", + "column": "Ward" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", - "documentType": "_doc", "action": "", "plotLabel": "Complaint Category", - "excludedColumns": ["withinSLA"], + "excludedColumns": [ + "withinSLA" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Closed Complaints", "Total Complaints"], - "newField" : "Completion Rate", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Complaints", "withinSLA"], - "newField" : "Sla Achieved", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "xpgrStatusByDept": { "chartName": "DSS_PGR_STATUS_BY_TENANT", "queries": [ @@ -3212,38 +3237,47 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Department \":{\"terms\":{\"field\":\"Data.department.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Department \":{\"terms\":{\"field\":\"Data.department.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "departmentId", "column": "Department"} + { + "key": "departmentId", + "column": "Department" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xpgrStatusByCatagory", - "documentType": "_doc", "action": "", "plotLabel": "Department", - "excludedColumns": ["withinSLA"], + "excludedColumns": [ + "withinSLA" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Closed Complaints", "Total Complaints"], - "newField" : "Completion Rate", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Complaints", "withinSLA"], - "newField" : "Sla Achieved", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xpgrStatusByCatagory": { @@ -3254,41 +3288,49 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"withinSLA\":{\"range\":{\"script\":{\"lang\":\"painless\",\"source\":\"doc['Data.slaHours'].value\"},\"ranges\":[{\"key\":\"withinSLA\",\"from\":0,\"to\":360}]}},\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Closed Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Open_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Open Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Reopened_Complaints\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopen\"]}},\"aggs\":{\"Reopened Complaints\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "departmentId", "column": "Department"} + { + "key": "departmentId", + "column": "Department" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", - "documentType": "_doc", "action": "", "plotLabel": "Complaint Category", - "excludedColumns": ["withinSLA"], + "excludedColumns": [ + "withinSLA" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Closed Complaints", "Total Complaints"], - "newField" : "Completion Rate", + "fields": [ + "Closed Complaints", + "Total Complaints" + ], + "newField": "Completion Rate", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Complaints", "withinSLA"], - "newField" : "Sla Achieved", + "fields": [ + "Total Complaints", + "withinSLA" + ], + "newField": "Sla Achieved", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "_comment": "PGR NON-COLLECTION CHARTS", "completionRate": { "chartName": "DSS_PGR_COMPLETION_RATE", @@ -3298,7 +3340,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed Complaints\":{\"filters\":{\"filters\":{\"closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}},\"Closed Complaints\":{\"filters\":{\"filters\":{\"closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}}}}}}}}}" } ], "chartType": "metric", @@ -3311,13 +3353,13 @@ "Total Complaints" ], "insight": { - "chartResponseMap" : "completionRate", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "completionRate", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " Total Number of Complaints " }, @@ -3329,7 +3371,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}" } ], "chartType": "metric", @@ -3341,13 +3383,13 @@ "Total Complaints" ], "insight": { - "chartResponseMap" : "totalComplaints", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalComplaints", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " Total Number of Complaints " }, @@ -3359,7 +3401,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}}}}}}}}}" } ], "chartType": "metric", @@ -3371,13 +3413,13 @@ "Closed Complaints" ], "insight": { - "chartResponseMap" : "closedComplaints", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "closedComplaints", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " Total Number of Closed Complaints " }, @@ -3389,7 +3431,7 @@ "dateRefField": "Data.dateOfComplaint", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Closed Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Closed\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Reopened Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Reopened\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopened\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}},\"Closed Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Closed\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\",\"rejected\",\"resolved\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}},\"Reopened Complaints\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Reopened\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"reopened\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}}}}}" } ], "chartType": "line", @@ -3401,12 +3443,10 @@ "Closed Complaints", "Reopened Complaints", "Total Complaints" - ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "totalComplaintsbySource": { @@ -3417,7 +3457,7 @@ "dateRefField": "Data.dateOfComplaint", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ivr\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"ivr\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"ivr\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Web\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"web\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"web\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Whatsapp\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"whatapp\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"whatsapp\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Mobileapp\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"mobileapp\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ivr\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"ivr\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"ivr\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Web\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"web\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"web\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Whatsapp\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"whatapp\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"whatsapp\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Mobileapp\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"mobileapp\":{\"filter\":{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" } ], "chartType": "line", @@ -3433,8 +3473,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "totalComplaintsbyStatus": { @@ -3445,7 +3484,7 @@ "dateRefField": "Data.dateOfComplaint", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Open\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"open\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Closed\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"closed\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Open\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"open\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"open\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}},\"Closed\":{\"date_histogram\":{\"field\":\"Data.dateOfComplaint\",\"interval\":\"intervalvalue\"},\"aggs\":{\"closed\":{\"filter\":{\"terms\":{\"Data.status.keyword\":[\"closed\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}}}" } ], "chartType": "line", @@ -3459,8 +3498,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "complaintsByStatus": { @@ -3471,7 +3509,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints By Status\":{\"terms\":{\"field\":\"Data.status.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Status\":{\"terms\":{\"field\":\"Data.status.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" } ], "chartType": "pie", @@ -3482,8 +3520,7 @@ "aggregationPaths": [ "Complaints By Status" ], - "insight": { - }, + "insight": {}, "_comment": " Complaints By Their Statuses" }, "complaintsByChannel": { @@ -3494,7 +3531,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" } ], "chartType": "pie", @@ -3505,8 +3542,7 @@ "aggregationPaths": [ "Complaints By Channels" ], - "insight": { - }, + "insight": {}, "_comment": " Top 3 Channels For Complaints" }, "complaintsByCategory": { @@ -3517,7 +3553,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints By Category\":{\"terms\":{\"field\":\"Data.complainCategory.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Category\":{\"terms\":{\"field\":\"Data.complainCategory.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" } ], "chartType": "pie", @@ -3528,8 +3564,7 @@ "aggregationPaths": [ "Complaints By Category" ], - "insight": { - }, + "insight": {}, "_comment": " Top 3 Channels For Complaints" }, "complaintsByTenant": { @@ -3540,7 +3575,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints By Tenant\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Tenant\":{\"terms\":{\"field\":\"Data.tenantId.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" } ], "chartType": "pie", @@ -3551,8 +3586,7 @@ "aggregationPaths": [ "Complaints By Tenant" ], - "insight": { - }, + "insight": {}, "_comment": " Complaints by Tenant" }, "complaintsByDistrict": { @@ -3563,7 +3597,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints By District\":{\"terms\":{\"field\":\"Data.tenantData.city.districtName.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By District\":{\"terms\":{\"field\":\"Data.tenantData.city.districtName.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" } ], "chartType": "pie", @@ -3574,8 +3608,7 @@ "aggregationPaths": [ "Complaints By District" ], - "insight": { - }, + "insight": {}, "_comment": " Complaints by District" }, "complaintsByDepartment": { @@ -3586,7 +3619,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints By Department\":{\"terms\":{\"field\":\"Data.department.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints By Department\":{\"terms\":{\"field\":\"Data.department.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.dateOfComplaint\"}}}}}}}}" } ], "chartType": "pie", @@ -3597,8 +3630,7 @@ "aggregationPaths": [ "Complaints By Department" ], - "insight": { - }, + "insight": {}, "_comment": " Complaints by Department" }, "pgrStatusByDDR": { @@ -3609,12 +3641,15 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\",\"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "table", "valueType": "number", @@ -3657,8 +3692,7 @@ "ReassignRequested": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "pgrStatusByTenant": { @@ -3669,11 +3703,14 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "table", "valueType": "number", @@ -3716,8 +3753,7 @@ "ReassignRequested": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "pgrStatusWardDrillDown": { @@ -3728,11 +3764,10 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.complaintWard.name.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.complaintWard.name.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", @@ -3774,8 +3809,7 @@ "ReassignRequested": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "pgrStatusByDepartment": { @@ -3786,11 +3820,14 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" }", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Department \":{\"terms\":{\"field\":\"Data.department.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Department \":{\"terms\":{\"field\":\"Data.department.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" } ], "filterKeys": [ - {"key": "departmentId", "column": "Department"} + { + "key": "departmentId", + "column": "Department" + } ], "chartType": "table", "valueType": "number", @@ -3830,8 +3867,7 @@ "ReassignRequested": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "pgrStatusCategoryDrillDown": { @@ -3842,11 +3878,10 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId.keyword\" , \"departmentId\" : \"Data.department.keyword\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Category \":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":1000},\"aggs\":{\"Closed Complaints\":{\"filters\":{\"filters\":{\"Open\":{\"match\":{\"Data.status.keyword\":\"open\"}},\"Reopen\":{\"match\":{\"Data.status.keyword\":\"reopen\"}},\"Assigned\":{\"match\":{\"Data.status.keyword\":\"assigned\"}},\"Closed\":{\"match\":{\"Data.status.keyword\":\"closed\"}},\"Resolved\":{\"match\":{\"Data.status.keyword\":\"resolved\"}},\"Rejected\":{\"match\":{\"Data.status.keyword\":\"rejected\"}},\"ReassignRequested\":{\"match\":{\"Data.status.keyword\":\"reassignrequested\"}}}}}}}}}}}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", @@ -3888,8 +3923,7 @@ "ReassignRequested": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "topFiveComplaints": { @@ -3900,7 +3934,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.dateOfComplaint", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complain Category\":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":6,\"order\":{\"Count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.complainCategory.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complain Category\":{\"terms\":{\"field\":\"Data.complainCategory.keyword\",\"size\":6,\"order\":{\"Count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.complainCategory.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -3911,8 +3945,7 @@ "aggregationPaths": [ "Complain Category" ], - "insight": { - }, + "insight": {}, "_comment": " Complaints By Their Statuses" }, "averageTurnAroundTime": { @@ -3924,7 +3957,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "indexName": "pgrindex-v1", "aggrQuery": "{\"aggs\":{\"Complaints Average Turn Around Time (in Days)\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"each_open\":{\"terms\":{\"field\":\"_id\",\"min_doc_count\":0, \"size\":200},\"aggs\":{\"Open_Complaints\":{\"nested\":{\"path\":\"Data.actionHistory.actions\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.actionHistory.actions.status.keyword\":[\"open\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.actionHistory.actions.when\"}}}}}},\"Closed_Complaints\":{\"nested\":{\"path\":\"Data.actionHistory.actions\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.actionHistory.actions.status.keyword\":[\"closed\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.actionHistory.actions.when\"}}}}}},\"computedValueATA\":{\"bucket_script\":{\"buckets_path\":{\"max\":\"Closed_Complaints>aggrFilter>amount\",\"min\":\"Open_Complaints>aggrFilter>amount\"},\"script\":{\"source\":\"params.max-params.min\"}}}}}}}}}", - "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Complaints Average Turn Around Time (in Days)\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"each_open\":{\"terms\":{\"field\":\"_id\",\"min_doc_count\":0},\"aggs\":{\"Open_Complaints\":{\"min\":{\"field\":\"Data.actionHistory.actions.when\"}},\"Closed_Complaints\":{\"max\":{\"field\":\"Data.actionHistory.actions.when\"}},\"computedValueATA\":{\"bucket_script\":{\"buckets_path\":{\"max\":\"Closed_Complaints\",\"min\":\"Open_Complaints\"},\"script\":{\"source\":\"if(params.max == null && params.min == null) {0} else {params.max-params.min}\"}}}}}}}}}}}" + "aggrQuerybc": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Complaints Average Turn Around Time (in Days)\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"each_open\":{\"terms\":{\"field\":\"_id\",\"min_doc_count\":0},\"aggs\":{\"Open_Complaints\":{\"min\":{\"field\":\"Data.actionHistory.actions.when\"}},\"Closed_Complaints\":{\"max\":{\"field\":\"Data.actionHistory.actions.when\"}},\"computedValueATA\":{\"bucket_script\":{\"buckets_path\":{\"max\":\"Closed_Complaints\",\"min\":\"Open_Complaints\"},\"script\":{\"source\":\"if(params.max == null && params.min == null) {0} else {params.max-params.min}\"}}}}}}}}}}}" } ], "chartType": "line", @@ -3937,17 +3970,18 @@ ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AverageComputedField", - "fields" : ["computedValueATA"], - "newField" : "ATA", + "fields": [ + "computedValueATA" + ], + "newField": "ATA", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "pgrCitizenOnDateRange": { @@ -3958,7 +3992,7 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.complaintWard.name.keyword\", \"tenantId\" : \"Data.tenantId\"}", "indexName": "pgrindex-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Citizens\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"count\":{\"cardinality\":{\"field\":\"Data.citizen.uuid.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Citizens\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"count\":{\"cardinality\":{\"field\":\"Data.citizen.uuid.keyword\"}}}}}}}}" } ], "chartType": "line", @@ -3971,14 +4005,9 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - - - - "_comment": "W&S charts below-----------------------------------------------------------------------", "wstodaysCollection": { "chartName": "DSS_W&S_TODAYS_COLLECTION", @@ -3998,8 +4027,7 @@ "aggregationPaths": [ "Total Collection" ], - "insight": { - }, + "insight": {}, "_comment": "W&S total collections " }, "wstotalCollection": { @@ -4008,7 +4036,7 @@ { "module": "W&S", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.paymentDetails.billDate.keyword\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Today's collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.paymentDetails.billDate.keyword\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Today's collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", "dateRefField": "Data.@timestamp" } @@ -4020,8 +4048,7 @@ "aggregationPaths": [ "Today's collection" ], - "insight": { - }, + "insight": {}, "_comment": "W&S today's collections" }, "wstargetCollection": { @@ -4044,9 +4071,8 @@ "Target Collection" ], "isDayUnit": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "insight": { - }, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "insight": {}, "_comment": " " }, "wstargetAchieved": { @@ -4066,7 +4092,6 @@ "indexName": "receipts-consumers", "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"status\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"totalamount\"}}}}}}" } - ], "translateTenantCode": true, "chartType": "metric", @@ -4079,13 +4104,13 @@ "Actual collection" ], "insight": { - "chartResponseMap" : "wstargetAchieved", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "wstargetAchieved", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, @@ -4097,7 +4122,7 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"Water Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}},\"Sewerage Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"Water Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}},\"Sewerage Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "translateTenantCode": false, @@ -4109,15 +4134,12 @@ "aggregationPaths": [ "Water Collections", "Sewerage Collections" - ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "wstopPerformingUlbs": { "chartName": "DSS_W&S_TOP_3_PERFORMING_ULBS", "queries": [ @@ -4133,7 +4155,7 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "translateTenantCode": true, @@ -4146,10 +4168,10 @@ "order": "desc", "limit": 3, "aggregationPaths": [ - "Total Collection","Target Collection" + "Total Collection", + "Target Collection" ], - "insight": { - }, + "insight": {}, "_comment": " Top Performing Ulbs for target achieved" }, "wsbottomPerformingUlbs": { @@ -4167,7 +4189,7 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "translateTenantCode": true, @@ -4180,10 +4202,10 @@ "order": "asc", "limit": 3, "aggregationPaths": [ - "Total Collection", "Target Collection" + "Total Collection", + "Target Collection" ], - "insight": { - }, + "insight": {}, "_comment": " Bottom Performing Ulbs for target achieved" }, "wscollectionByUsage": { @@ -4194,7 +4216,7 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Collection by Usage\":{\"terms\":{\"field\":\"domainObject.propertyUsageType.keyword\"},\"aggs\":{\"total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Collection by Usage\":{\"terms\":{\"field\":\"domainObject.propertyUsageType.keyword\"},\"aggs\":{\"total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "translateTenantCode": true, @@ -4206,11 +4228,9 @@ "aggregationPaths": [ "Collection by Usage" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "wsFinancialIndicatorDDR": { "chartName": "DSS_W&S_DEMAND_COLLECTION_BOUNDARY", "queries": [ @@ -4239,7 +4259,10 @@ "isMdmsEnabled": true, "translateTenantCode": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "table", "valueType": "number", @@ -4247,13 +4270,12 @@ "action": "", "plotLabel": "DDRs", "isPostResponseHandler": true, - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Total Collection", "Total Receipt", "No of Bill", "Project Demand" - ], "pathDataTypeMapping": [ { @@ -4269,8 +4291,7 @@ "Project Demand": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "wsFinancialIndicatorUlb": { @@ -4301,7 +4322,10 @@ "isMdmsEnabled": false, "translateTenantCode": true, "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "chartType": "table", "valueType": "number", @@ -4309,13 +4333,12 @@ "action": "", "plotLabel": "ULB", "isPostResponseHandler": true, - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Total Collection", "Total Receipt", "No of Bill", "Project Demand" - ], "pathDataTypeMapping": [ { @@ -4331,8 +4354,7 @@ "Project Demand": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "wsFinancialIndicatorWard": { @@ -4362,22 +4384,19 @@ ], "isMdmsEnabled": false, "translateTenantCode": true, - "filterKeys": [ - - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "", "action": "", "plotLabel": "Ward", "isPostResponseHandler": true, - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Total Collection", "Total Receipt", "No of Bill", "Project Demand" - ], "pathDataTypeMapping": [ { @@ -4393,11 +4412,9 @@ "Project Demand": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "wsTaxHeadDDR": { "chartName": "DSS_W&S_TAX_HEAD_BOUNDARY", "queries": [ @@ -4406,42 +4423,49 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}" }, { "module": "W&S", "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", "dateRefField": "", "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"Ws_Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"Ws_Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} - ], - "chartType": "xtable", - "valueType": "number", + { + "key": "tenantId", + "column": "DDRs" + } + ], + "chartType": "xtable", + "valueType": "number", "drillChart": "wsTaxHeadUlb", "action": "", "plotLabel": "DDRs", - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Total Collection", "Penalty", "Interest", "Ws_Target_Collection" - ], + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : ["Ws_Target_Collection"], - "newField" : "Target Collection", + "fields": [ + "Ws_Target_Collection" + ], + "newField": "Target Collection", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } - ], - "excludedColumns":["Ws_Target_Collection"], + ], + "excludedColumns": [ + "Ws_Target_Collection" + ], "pathDataTypeMapping": [ { "Total Collection": "amount" @@ -4459,8 +4483,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "wsTaxHeadUlb": { @@ -4471,43 +4494,50 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" }, { "module": "W&S", "requestQueryMap": "{\"module\" : \"businessService.keyword\", \"tenantId\" : \"tenantIdForMunicipalCorporation.keyword\"}", "dateRefField": "", "indexName": "dss-target_v1", - "aggrQuery": "{\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Ws_Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"tenantIdForMunicipalCorporation.keyword\",\"size\":1000},\"aggs\":{\"Ws_Target_Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}" } ], "translateTenantCode": false, "isMdmsEnabled": false, "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "wsTaxHeadWard", "action": "", "plotLabel": "ULB", - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Total Collection", "Penalty", "Interest", "Ws_Target_Collection" - ], + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : ["Ws_Target_Collection"], - "newField" : "Target Collection", + "fields": [ + "Ws_Target_Collection" + ], + "newField": "Target Collection", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } - ], - "excludedColumns":["Ws_Target_Collection"], + ], + "excludedColumns": [ + "Ws_Target_Collection" + ], "pathDataTypeMapping": [ { "Total Collection": "amount" @@ -4525,8 +4555,7 @@ "Target Collection": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "wsTaxHeadWard": { @@ -4537,19 +4566,18 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":200},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.totalAmount\"}},\"Penalty\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_PENALTY\",\"WS_TIME_PENALTY\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}},\"Interest\":{\"nested\":{\"path\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode\"},\"aggs\":{\"aggrFilter\":{\"filter\":{\"terms\":{\"Data.paymentDetails.bill.billDetails.billAccountDetails.taxHeadCode.keyword\":[\"SW_TIME_INTEREST\",\"WS_TIME_INTEREST\"]}},\"aggs\":{\"amount\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.billAccountDetails.amount\"}}}}}}}}}}}}" } ], "isMdmsEnabled": false, "translateTenantCode": false, - "filterKeys": [ - ], + "filterKeys": [], "chartType": "table", "valueType": "number", "drillChart": "none", "action": "", "plotLabel": "Ward", - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Total Collection", "Penalty", @@ -4566,11 +4594,9 @@ "Interest": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "wstotalConnection": { "chartName": "DSS_WS_TOTAL_CONNECTIONS", "queries": [ @@ -4595,10 +4621,10 @@ "action": "additive", "drillChart": "none", "aggregationPaths": [ - "Total Water Connection","Total Sewerage Connection" + "Total Water Connection", + "Total Sewerage Connection" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "wstotalApplications": { @@ -4625,10 +4651,10 @@ "action": "additive", "drillChart": "none", "aggregationPaths": [ - "Total Water Applications","Total Sewerage Applications" + "Total Water Applications", + "Total Sewerage Applications" ], - "insight": { - }, + "insight": {}, "_comment": "" }, "wsActiveUlbs": { @@ -4650,8 +4676,7 @@ "aggregationPaths": [ "Active Ulbs" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "wsNewWaterConnection": { @@ -4673,8 +4698,7 @@ "aggregationPaths": [ "Water Connections" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "wsNewSewerageConnection": { @@ -4696,11 +4720,9 @@ "aggregationPaths": [ "Sewerage Connections" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "wscumulativeConnections": { "chartName": "DSS_W&S_CUMULATIVE_CONNECTION", "queries": [ @@ -4728,15 +4750,12 @@ "aggregationPaths": [ "Water Connections", "Sewerage Connections" - ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "wsConsumersByConnectionType": { "chartName": "DSS_W&S_WATER_CONNECTION_BY_USAGE", "queries": [ @@ -4757,11 +4776,9 @@ "aggregationPaths": [ "Water Consumers by Connection Type" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "wsConsumersByUsageType": { "chartName": "DSS_W&S_SEWERAGE_CONNECTION_BY_USAGE", "queries": [ @@ -4782,11 +4799,9 @@ "aggregationPaths": [ "W & S Consumers by Usage Type" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "wsConsumersByChannel": { "chartName": "DSS_W&S_CONNECTION_BY_CHANNEL", "queries": [ @@ -4807,11 +4822,9 @@ "aggregationPaths": [ "W & S Consumers by Channel" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "wsConnectionAgeingDDR": { "chartName": "DSS_W&S_CONNECTION_AGEING", "queries": [ @@ -4820,20 +4833,22 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", "dateRefField": "Data.connectionExecutionDate", "indexName": "water-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-7d\/d\",\"to\":\"now-3d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-7d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}],\"format\":\"dd-MM-yyyy\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-7d\/d\",\"to\":\"now-3d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-7d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}],\"format\":\"dd-MM-yyyy\"}}}}}}" }, { "module": "W&S", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", "dateRefField": "Data.connectionExecutionDate", "indexName": "sewerage-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-7d\/d\",\"to\":\"now-3d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-7d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}],\"format\":\"dd-MM-yyyy\"}}}}}}" - + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-7d\/d\",\"to\":\"now-3d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-7d\"}],\"format\":\"dd-MM-yyyy\"}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}],\"format\":\"dd-MM-yyyy\"}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", @@ -4849,19 +4864,19 @@ ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Pending from 0 to 3 days", + "fields": [ + "Pending from 0 to 3 days", "Pending from 3 to 7 days", "Pending from 7 to 15 days", - "Pending from more than 15 days"], - "newField" : "Total Pending", + "Pending from more than 15 days" + ], + "newField": "Total Pending", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "wsConnectionAgeingUlb": { @@ -4872,19 +4887,22 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", "dateRefField": "Data.connectionExecutionDate", "indexName": "water-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"2\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":170,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"2\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":170,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" }, { "module": "W&S", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\" }", "dateRefField": "Data.connectionExecutionDate", "indexName": "sewerage-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"2\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":170,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"2\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":170,\"order\":{\"_key\":\"asc\"}},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" } ], "isMdmsEnabled": false, "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "chartType": "xtable", "valueType": "number", @@ -4892,29 +4910,28 @@ "action": "", "plotLabel": "ULB", "isPostResponseHandler": true, - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Pending from 0 to 3 days", "Pending from 3 to 7 days", "Pending from 7 to 15 days", "Pending from more than 15 days" - ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Pending from 0 to 3 days", - "Pending from 3 to 7 days", - "Pending from 7 to 15 days", - "Pending from more than 15 days"], - "newField" : "Total Pending", + "fields": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "newField": "Total Pending", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - - "insight": { - }, + "insight": {}, "_comment": "" }, "wsConnectionAgeingWard": { @@ -4925,48 +4942,48 @@ "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", "dateRefField": "Data.@timestamp", "indexName": "water-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":170},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":170},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" }, { "module": "W&S", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"Data.ward.name.keyword\" }", "dateRefField": "Data.@timestamp", "indexName": "sewerage-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":170},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.applicationStatus.keyword\":\"CONNECTION_ACTIVATED\"}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.name.keyword\",\"size\":170},\"aggs\":{\"Pending from 0 to 3 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-3d\/d\",\"to\":\"now\"}]}},\"Pending from 3 to 7 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-1w\",\"to\":\"now-3d\/d\"}]}},\"Pending from 7 to 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-15d\",\"to\":\"now-1w\"}]}},\"Pending from more than 15 days\":{\"date_range\":{\"field\":\"Data.@timestamp\",\"ranges\":[{\"from\":\"now-2y\",\"to\":\"now-15d\"}]}}}}}}}}" } ], "isMdmsEnabled": false, - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", "action": "", "plotLabel": "Ward", "isPostResponseHandler": true, - "postAggregationTheory" : "", + "postAggregationTheory": "", "aggregationPaths": [ "Pending from 0 to 3 days", "Pending from 3 to 7 days", "Pending from 7 to 15 days", "Pending from more than 15 days" - ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Pending from 0 to 3 days", "Pending from 3 to 7 days", "Pending from 7 to 15 days", "Pending from more than 15 days"], - "newField" : "Total Pending Applications", + "fields": [ + "Pending from 0 to 3 days", + "Pending from 3 to 7 days", + "Pending from 7 to 15 days", + "Pending from more than 15 days" + ], + "newField": "Total Pending Applications", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - - "insight": { - }, + "insight": {}, "_comment": "" }, - "wnsCollectionBySelectedType": { "chartName": "DSS_W&S_COLLECTION_BY_CHANNEL", "queries": [ @@ -4975,10 +4992,9 @@ "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\" }", "dateRefField": "Data.transactionDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.tenantId.keyword\": \"pb.testing\"}},{\"terms\": {\"Data.paymentStatus.keyword\": [\"Cancelled\"]}}],\"must\": [{\"terms\": {\"Data.paymentStatus.keyword\": [ \"DEPOSITED\",\"NEW\"]}},{\"terms\": {\"Data.paymentDetails.businessService.keyword\": [\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\"]}}]}},\"aggs\": {\"collection_channels\": {\"terms\": {\"field\": \"Data.paymentMode.keyword\"},\"aggs\": {\"totalcollection_from mode\": {\"sum\": {\"field\": \"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" - }], - - + "aggrQuery": "{\"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.tenantId.keyword\": \"pg.testing\"}},{\"terms\": {\"Data.paymentStatus.keyword\": [\"Cancelled\"]}}],\"must\": [{\"terms\": {\"Data.paymentStatus.keyword\": [ \"DEPOSITED\",\"NEW\"]}},{\"terms\": {\"Data.paymentDetails.businessService.keyword\": [\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\"]}}]}},\"aggs\": {\"collection_channels\": {\"terms\": {\"field\": \"Data.paymentMode.keyword\"},\"aggs\": {\"totalcollection_from mode\": {\"sum\": {\"field\": \"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } + ], "chartType": "pie", "valueType": "amount", "action": "", @@ -4987,16 +5003,11 @@ "aggregationPaths": [ "collection_channels" ], - "insight": { - }, + "insight": {}, "_comment": " collection/amount per collection channel", - - "isPostResponseHandler": true, - "postAggregationTheory" : "" - + "postAggregationTheory": "" }, - "wnsCollectionByUsageType": { "chartName": "DSS_W&S_COLLECTION_BY_USAGE_TYPE", "queries": [ @@ -5005,7 +5016,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", "dateRefField": "dataObject.transactionDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"AmountPaid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"domainObject.usageCategory.keyword\",\"size\":200},\"aggs\":{\"AmountPaid\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -5020,8 +5031,7 @@ "aggregationPaths": [ "Usage Type" ], - "insight": { - }, + "insight": {}, "_comment": " collection/amount per usage type" }, "wsActiveWaterConnection": { @@ -5044,17 +5054,16 @@ "Active Water Connections" ], "insight": { - "chartResponseMap" : "wsActiveWaterConnection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "wsActiveWaterConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "active water connections" }, - "wsActiveMeteredWaterConnection": { "chartName": "DSS_W&S_ACTIVE_METERED_WATER_CONNECTIONS", "queries": [ @@ -5075,17 +5084,16 @@ "Active Metered Water Connections" ], "insight": { - "chartResponseMap" : "wsActiveMeteredWaterConnection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "wsActiveMeteredWaterConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "active metered water connections" }, - "wsActiveNonMeteredWaterConnection": { "chartName": "DSS_W&S_ACTIVE_NON_METERED_WATER_CONNECTIONS", "queries": [ @@ -5106,13 +5114,13 @@ "Active Non-Metered Water Connections" ], "insight": { - "chartResponseMap" : "wsActiveNonMeteredWaterConnection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "wsActiveNonMeteredWaterConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "active non-metered water connections" }, @@ -5136,26 +5144,23 @@ "Active Sewerage Connections" ], "insight": { - "chartResponseMap" : "wsActiveSewerageConnection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "wsActiveSewerageConnection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "active sewerage connections " }, - - - "wstodaysCollectionv2": { "chartName": "DSS_W&S_TODAYS_COLLECTION", "queries": [ { "module": "W&S", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.paymentDetails.billDate.keyword\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"Data.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Today's collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"Data.paymentDetails.billDate.keyword\":{\"gte\":\"now-24h\",\"lte\":\"now\"}}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}],\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"Data.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Today's collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId.keyword\", \"wardId\" : \"block.keyword\"}", "dateRefField": "Data.@timestamp" } @@ -5167,8 +5172,7 @@ "aggregationPaths": [ "Today's collection" ], - "insight": { - }, + "insight": {}, "_comment": "W&S today's collections" }, "wstotalCollectionv2": { @@ -5177,7 +5181,7 @@ { "module": "W&S", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}", "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", "dateRefField": "Data.@timestamp" } @@ -5190,8 +5194,7 @@ "aggregationPaths": [ "Total Collection" ], - "insight": { - }, + "insight": {}, "_comment": "W&S total collections " }, "wstargetCollectionv2": { @@ -5214,9 +5217,8 @@ "Target Collection" ], "isDayUnit": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", - "insight": { - }, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "insight": {}, "_comment": " " }, "wstargetAchievedv2": { @@ -5234,9 +5236,8 @@ "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\",\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" } - ], "translateTenantCode": false, "chartType": "metric", @@ -5249,17 +5250,16 @@ "Actual Collection" ], "insight": { - "chartResponseMap" : "wstargetAchievedv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "wstargetAchievedv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": " " }, - "mcTodaysCollection": { "chartName": "DSS_TOTAL_COLLECTION_TODAY", "queries": [ @@ -5268,7 +5268,7 @@ "dateRefField": "", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" } ], "chartType": "metric", @@ -5282,7 +5282,6 @@ "insight": {}, "_comment": " " }, - "mcTotalCollection": { "chartName": "DSS_TOTAL_COLLECTION", "queries": [ @@ -5291,7 +5290,7 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" } ], "chartType": "metric", @@ -5305,7 +5304,6 @@ "insight": {}, "_comment": " " }, - "mcCumulativeCollection": { "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", "queries": [ @@ -5314,7 +5312,7 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "chartType": "line", @@ -5345,7 +5343,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"district\" : \"dataObject.tenantData.city.districtCode\", \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection3\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Total Collection3\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}" } ], "chartType": "metric", @@ -5368,7 +5366,6 @@ }, "_comment": " " }, - "mcTotalCollectionCategoryWise": { "chartName": "DSS_MC_COLLECTION:_CATEGORY_WISE", "queries": [ @@ -5377,7 +5374,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"order\":{\"total\":\"desc\"}},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"PT\",\"TL\"]}}]}},\"aggs\":{\"Business Service\":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"order\":{\"total\":\"desc\"}},\"aggs\":{\"total\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -5391,7 +5388,6 @@ "insight": {}, "_comment": " " }, - "mcCollectionByPaymentType": { "chartName": "DSS_MC_COLLECTION_BY_PAYMENT_TYPE", "queries": [ @@ -5400,7 +5396,7 @@ "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Payment Mode\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Total collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -5414,7 +5410,6 @@ "insight": {}, "_comment": "" }, - "totalmcDDRRevenue": { "chartName": "DSS_MC_KEY_FY_INDICATORS", "queries": [ @@ -5423,7 +5418,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}" }, { "module": "COMMON", @@ -5467,7 +5462,6 @@ "insight": {}, "_comment": "" }, - "totalmcBoundaryRevenue": { "chartName": "DSS_MC_DEMAND_COLLECTION_BOUNDARY", "queries": [ @@ -5476,7 +5470,7 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":2000,\"order\":{\"total\":\"asc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":2000,\"order\":{\"total\":\"asc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" }, { "module": "COMMON", @@ -5518,7 +5512,6 @@ "insight": {}, "_comment": "" }, - "totalmcBoundaryDrillDown": { "chartName": "DSS_MC_DEMAND_COLLECTION_BOUNDARYDDR", "queries": [ @@ -5527,12 +5520,15 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\"}", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":200,\"order\":{\"Total Collection\":\"desc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Business Service \":{\"terms\":{\"field\":\"dataObject.paymentDetails.businessService.keyword\",\"size\":200,\"order\":{\"Total Collection\":\"desc\"}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}},\"Transactions\":{\"value_count\":{\"field\":\"dataObject.transactionNumber.keyword\"}}}}}}}}" } ], "postAggregationTheory": "repsonseToDifferenceOfDates", - "filterKeys": [ - {"key": "businessService", "column": "Business Service"} + "filterKeys": [ + { + "key": "businessService", + "column": "Business Service" + } ], "chartType": "xtable", "valueType": "number", @@ -5540,7 +5536,6 @@ "documentType": "_doc", "plotLabel": "Boundary", "action": "", - "aggregationPaths": [ "Total Collection", "Transactions" @@ -5556,17 +5551,15 @@ "insight": {}, "_comment": "" }, - "mcTopCategories": { "chartName": "DSS_MC_TOP_3_PERFORMING_CATEGORIES", "queries": [ - { "module": "COMMON", "requestQueryMap": "{\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.@timestamp", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Payment Status\":{\"terms\":{\"field\":\"Data.paymentDetails.businessService.keyword\",\"order\": {\"Sum\": \"desc\"}},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.bill.status.keyword\":[\"Cancelled\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"TL\",\"PT\"]}}]}},\"aggs\":{\"Payment Status\":{\"terms\":{\"field\":\"Data.paymentDetails.businessService.keyword\",\"order\": {\"Sum\": \"desc\"}},\"aggs\":{\"Sum\":{\"value_count\":{\"field\":\"Data.paymentDetails.totalAmountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -5577,12 +5570,9 @@ "aggregationPaths": [ "Payment Status" ], - "insight": { - }, + "insight": {}, "_comment": " Top Performing Ulbs for target achieved" }, - - "wscumulativeCollectionsv2": { "chartName": "DSS_W&S_CUMULATIVE_COLLECTION", "queries": [ @@ -5591,7 +5581,7 @@ "dateRefField": "Data.@timestamp", "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"Water Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}},\"Sewerage Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"Water Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"WS\",\"WS.ONE_TIME_FEE\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}},\"Sewerage Collections\":{\"date_histogram\":{\"field\":\"Data.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.paymentStatus.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"Data.paymentStatus.keyword\":[\"DEPOSITED\",\"NEW\"]}},{\"terms\":{\"Data.paymentDetails.businessService.keyword\":[\"SW.ONE_TIME_FEE\",\"SW\"]}}]}},\"aggs\":{\"Count\":{\"sum\":{\"field\":\"Data.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "translateTenantCode": true, @@ -5603,15 +5593,12 @@ "aggregationPaths": [ "Water Collections", "Sewerage Collections" - ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "_comment": "BPA charts below-----------------------------------------------------------------------", "bpaTodaysCollection": { "chartName": "DSS_BPA_TODAYS_COLLECTION", @@ -5619,9 +5606,9 @@ { "module": "BPA", "indexName": "dss-collection_v2", - "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"range\": { \"dataObject.paymentDetails.billDate.keyword\": { \"gte\": \"now-24h\", \"lte\": \"now\" } } }, { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pb.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Today's collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } }", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"range\": { \"dataObject.paymentDetails.billDate.keyword\": { \"gte\": \"now-24h\", \"lte\": \"now\" } } }, { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pg.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Today's collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } }", "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", - "dateRefField": "Data.@timestamp" + "dateRefField": "Data.@timestamp" } ], "chartType": "metric", @@ -5632,13 +5619,13 @@ "Today's Collection" ], "insight": { - "chartResponseMap" : "bpaTodaysCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaTodaysCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "BPA Today's collections " @@ -5648,10 +5635,10 @@ "queries": [ { "module": "BPA", - "requestQueryMap":"{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", + "requestQueryMap": "{\"tenantId\" : \"cityname.keyword\", \"wardId\" : \"block.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": " { \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pb.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Total collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } } ", - "dateRefField": "Data.@timestamp" + "aggrQuery": " { \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"dataObject.paymentDetails.businessService.keyword\": [ \"BPA.LOW_RISK_PERMIT_FEE\",\"BPA.NC_APP_FEE\",\"BPA.NC_OC_APP_FEE\" ] } } ], \"must_not\": [ { \"term\": { \"dataObject.tenantId.keyword\": \"pg.testing\" } }, { \"term\": { \"dataObject.paymentStatus.keyword\": \"Cancelled\" } } ] } }, \"aggs\": { \"Total collection\": { \"sum\": { \"field\": \"dataObject.paymentDetails.totalAmountPaid\" } } } } } } ", + "dateRefField": "Data.@timestamp" } ], "translateTenantCode": false, @@ -5663,48 +5650,48 @@ "Total Collection" ], "insight": { - "chartResponseMap" : "bpaTotalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "BPA total collections " }, - "bpaTotalPlansScrutinized": { - "chartName": "DSS_BPA_TOTAL_PLANS_SCRUTINIZED", - "queries": [ - { - "module": "OBPS", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "dateRefField": "Data.@timestamp", - "indexName": "edcr-index", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"terms\":{\"Data.applicationType.keyword\":[\"PERMIT\",\"OCCUPANCY_CERTIFICATE\"]}}]}},\"aggs\":{\"Total Plans Scrutnized\":{\"value_count\":{\"field\":\"Data.dcrNumber.keyword\"}}}}}}" - } - ], - "chartType": "metric", - "valueType": "number", - "drillChart": "none", - "documentType": "_doc", - "action": "", - "aggregationPaths": [ - "Total Plans Scrutnized" - ], - "insight": { - "chartResponseMap" : "bpaTotalPlansScrutinized", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", - "isRoundOff": true - }, - "_comment": " Total Number of Complaints " - }, + "bpaTotalPlansScrutinized": { + "chartName": "DSS_BPA_TOTAL_PLANS_SCRUTINIZED", + "queries": [ + { + "module": "OBPS", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", + "dateRefField": "Data.@timestamp", + "indexName": "edcr-index", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"terms\":{\"Data.applicationType.keyword\":[\"PERMIT\",\"OCCUPANCY_CERTIFICATE\"]}}]}},\"aggs\":{\"Total Plans Scrutnized\":{\"value_count\":{\"field\":\"Data.dcrNumber.keyword\"}}}}}}" + } + ], + "chartType": "metric", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "Total Plans Scrutnized" + ], + "insight": { + "chartResponseMap": "bpaTotalPlansScrutinized", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " Total Number of Complaints " + }, "bpaTotalApplicationsSubmitted": { "chartName": "DSS_BPA_TOTAL_APPLICATIONS_SUBMITTED", "queries": [ @@ -5712,9 +5699,9 @@ "module": "OBPS", "indexName": "bpa-index", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pb.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Applications\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } }} ", "dateRefField": "", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Applications\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } }} ", + "dateRefField": "", "dateRefField": "Data.@timestamp" - } ], "translateTenantCode": false, @@ -5726,13 +5713,13 @@ "Total Applications" ], "insight": { - "chartResponseMap" : "bpaTotalApplicationsSubmitted", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaTotalApplicationsSubmitted", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "BPA Total Applications" @@ -5744,7 +5731,7 @@ "module": "OBPS", "indexName": "bpa-index", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pb.testing\" } } ], \"must\": [ { \"term\": { \"Data.status.keyword\": \"APPROVED\" } }, { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Permits Issued\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } } }", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ], \"must\": [ { \"term\": { \"Data.status.keyword\": \"APPROVED\" } }, { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } } ] } }, \"aggs\": { \"Total Permits Issued\": { \"value_count\": { \"field\": \"Data.applicationNo.keyword\" } } } } } }", "dateRefField": "Data.@timestamp" } ], @@ -5757,13 +5744,13 @@ "Total Permits Issued" ], "insight": { - "chartResponseMap" : "bpaTotalPermitsIssued", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaTotalPermitsIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Total Permits Issued" @@ -5775,7 +5762,7 @@ "module": "OBPS", "indexName": "bpa-index", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"APPROVED\"}},{\"terms\":{\"Data.businessService.keyword\":[\"BPA_OC\"]}}]}},\"aggs\":{\"Total OC Issued\":{\"value_count\":{\"field\":\"Data.applicationNo.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.status.keyword\":\"APPROVED\"}},{\"terms\":{\"Data.businessService.keyword\":[\"BPA_OC\"]}}]}},\"aggs\":{\"Total OC Issued\":{\"value_count\":{\"field\":\"Data.applicationNo.keyword\"}}}}}}", "dateRefField": "Data.@timestamp" } ], @@ -5788,18 +5775,17 @@ "Total OC Issued" ], "insight": { - "chartResponseMap" : "bpaTotalOCIssued", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaTotalOCIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Total OC Issued" }, - "bpaTotalLandApplied": { "chartName": "DSS_BPA_TOTAL_LAND_APPLIED", "queries": [ @@ -5807,7 +5793,7 @@ "module": "OBPS", "indexName": "bpa-index", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery":"{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pb.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\",\"BPA_OC\"] } } ] } }, \"aggs\": { \"Total Land Applied\": { \"sum\": { \"field\": \"Data.plotArea\" } } } } } }", + "aggrQuery": "{ \"aggs\": { \"AGGR\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ], \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\",\"BPA_OC\"] } } ] } }, \"aggs\": { \"Total Land Applied\": { \"sum\": { \"field\": \"Data.plotArea\" } } } } } }", "dateRefField": "Data.@timestamp" } ], @@ -5820,18 +5806,17 @@ "Total Land Applied" ], "insight": { - "chartResponseMap" : "bpaTotalLandApplied", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaTotalLandApplied", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Total Land Applied" }, - "bpaAverageDaysToIssuePermit": { "chartName": "DSS_BPA_AVERAGE_DAYS_ISSUE_PERMIT", "queries": [ @@ -5839,7 +5824,7 @@ "module": "OBPS", "indexName": "bpa-index", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery":"{ \"aggs\": { \"BPA\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pb.testing\" } } ] } }, \"aggs\": { \"Average days to issue Permit\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } }, { \"term\": { \"Data.status.keyword\": \"APPROVED\" } } ] } }, \"aggs\": { \"average_days\": { \"avg\": { \"script\": { \"source\": \"(doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value)/(86400*1000)\" } } } } } } } } }", + "aggrQuery": "{ \"aggs\": { \"BPA\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pg.testing\" } } ] } }, \"aggs\": { \"Average days to issue Permit\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } }, { \"term\": { \"Data.status.keyword\": \"APPROVED\" } } ] } }, \"aggs\": { \"average_days\": { \"avg\": { \"script\": { \"source\": \"(doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value)/(86400*1000)\" } } } } } } } } }", "dateRefField": "Data.@timestamp" } ], @@ -5852,13 +5837,13 @@ "Average days to issue Permit" ], "insight": { - "chartResponseMap" : "bpaAverageDaysToIssuePermit", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "bpaAverageDaysToIssuePermit", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Average days to issue Permit" @@ -5870,7 +5855,7 @@ "module": "OBPS", "indexName": "bpa-index", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\" \r\n}", - "aggrQuery":"{ \"aggs\": { \"BPA\": { \"filter\": { \"bool\": { \"must_not\": [ { \"term\": { \"Data.tenantId.keyword\": \"pb.testing\" } } ] } }, \"aggs\": { \"SLA Compliance Permit\": { \"filter\": { \"bool\": { \"must\": [ { \"terms\": { \"Data.businessService.keyword\": [\"BPA\",\"BPA_LOW\"] } }, { \"term\": { \"Data.status.keyword\": \"APPROVED\" } }, { \"script\": { \"script\": { \"source\": \"doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value=Long.parseLong(params['_source']['Data']['amountDetails'][i]['fromBillingPeriod'])&¤tEventTime<=Long.parseLong(params['_source']['Data']['amountDetails'][i]['toBillingPeriod'])){currentDemandAmount=currentDemandAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentDemandAmount;\"}}}}},\"Arrear Demand\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"arrearDemandAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long currentDemandAmount=0;if(params['_source']['Data']['eventType']=='Receipt'){String currentEventTimeString=params['_source']['Data']['eventTime'];long currentEventTime=Long.parseLong(currentEventTimeString);for(int i=0;iLong.parseLong(params['_source']['Data']['amountDetails'][i]['toBillingPeriod'])){currentDemandAmount=currentDemandAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentDemandAmount;\"}}}}},\"Current Bill\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"currentBillAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long currentBillAmount=0;if(params['_source']['Data']['eventType']=='Payment'){String currentEventTimeString=params['_source']['Data']['eventTime'];long currentEventTime=Long.parseLong(currentEventTimeString);for(int i=0;i=Long.parseLong(params['_source']['Data']['amountDetails'][i]['fromBillingPeriod'])){currentBillAmount=currentBillAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentBillAmount;\"}}}}},\"Old Bill\":{\"date_histogram\":{\"field\":\"Data.eventTime\",\"interval\":\"month\"},\"aggs\":{\"oldBillAmount\":{\"sum\":{\"script\":{\"lang\":\"painless\",\"source\":\"long currentBillAmount=0;if(params['_source']['Data']['eventType']=='Payment'){String currentEventTimeString=params['_source']['Data']['eventTime'];long currentEventTime=Long.parseLong(currentEventTimeString);for(int i=0;iLong.parseLong(params['_source']['Data']['amountDetails'][i]['toBillingPeriod'])){currentBillAmount=currentBillAmount+params['_source']['Data']['amountDetails'][i]['amount'];}}}return currentBillAmount;\"}}}}}}}" - } ], "chartType": "line", @@ -7409,8 +7385,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "dssIfixExpenditureComposition": { @@ -7434,8 +7409,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "dssIfixDemandAndBillMetricsByZone": { @@ -7455,7 +7429,7 @@ "action": "", "plotLabel": "Zone", "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "documentType": "_doc", "drillChart": "none", "aggregationPaths": [ @@ -7478,8 +7452,7 @@ "Paid": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "dssIfixUnderperformingGPWSCs": { @@ -7499,7 +7472,7 @@ "action": "", "plotLabel": "GPWSCS", "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "documentType": "_doc", "drillChart": "none", "aggregationPaths": [ @@ -7522,20 +7495,16 @@ "Paid": "amount" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - - - "nocTotalCollection": { "chartName": "DSS_NOC_TOTAL_COLLECTION", "queries": [ { "module": "FIRENOC", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"FIRENOC\"]}}],\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"term\":{\"dataObject.paymentStatus.keyword\":\"Cancelled\"}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.totalAmountPaid\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\r\n \"module\" : \"dataObject.paymentDetails.businessService.keyword\", \n\"tenantId\" : \"dataObject.tenantId\"}", "dateRefField": "dataObject.paymentDetails.receiptDate" } @@ -7548,24 +7517,23 @@ "Total Collection" ], "insight": { - "chartResponseMap" : "nocTotalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "nocTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "FIRE NOC total collections " }, - "nocTotalApplications": { "chartName": "DSS_NOC_TOTAL_APPLICATIONS", "queries": [ { "module": "FIRENOC", "indexName": "firenoc-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total Applications\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Applications\":{\"value_count\":{\"field\":\"Data.tenantId.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.auditDetails.createdTime" } @@ -7578,24 +7546,23 @@ "Total Applications" ], "insight": { - "chartResponseMap" : "nocTotalApplications", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "nocTotalApplications", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "FIRE NOC total applications " }, - "nocProvisionalIssued": { "chartName": "DSS_NOC_PROVISIONAL_ISSUED", "queries": [ { "module": "FIRENOC", "indexName": "firenoc-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Provisional Fire Nocs issued\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}}]}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Provisional Fire Nocs issued\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}}]}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.auditDetails.createdTime" } @@ -7608,24 +7575,23 @@ "Provisional Fire Nocs issued" ], "insight": { - "chartResponseMap" : "nocProvisionalIssued", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "nocProvisionalIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "FIRE NOC Provisional Issued" }, - "nocActualIssued": { "chartName": "DSS_NOC_ACTUAL_ISSUED", "queries": [ { "module": "FIRENOC", "indexName": "firenoc-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Actual Fire Nocs issued\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"NEW\"}}]}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Actual Fire Nocs issued\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"NEW\"}}]}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.auditDetails.createdTime" } @@ -7638,24 +7604,23 @@ "Actual Fire Nocs issued" ], "insight": { - "chartResponseMap" : "nocActualIssued", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "nocActualIssued", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "FIRE NOC Actual NOCs Issued" }, - "nocAverageDaysToIssueProvisional": { "chartName": "DSS_NOC_AVERAGE_DAYS_TO_ISSUE_PROVISIONAL", "queries": [ { "module": "FIRENOC", "indexName": "firenoc-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Average days to issue Provisional NOC\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}},{\"term\":{\"Data.fireNOCDetails.status.keyword\":\"APPROVED\"}}]}},\"aggs\":{\"average_days\":{\"avg\":{\"script\":{\"source\":\"(doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value)\/(86400*1000)\"}}}}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Average days to issue Provisional NOC\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}},{\"term\":{\"Data.fireNOCDetails.status.keyword\":\"APPROVED\"}}]}},\"aggs\":{\"average_days\":{\"avg\":{\"script\":{\"source\":\"(doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value)\/(86400*1000)\"}}}}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\",\"tenantId\" : \"Data.tenantId\"}", "dateRefField": "Data.auditDetails.createdTime" } @@ -7668,24 +7633,23 @@ "Average days to issue Provisional NOC" ], "insight": { - "chartResponseMap" : "nocAvgDayToIssueProvisional", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "nocAvgDayToIssueProvisional", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": "FIRE Avg. days to issue Provisional" }, - "nocSLAComplianceProvisional": { "chartName": "DSS_NOC_SLA_COMPLIANCE_PROVISIONAL", "queries": [ { "module": "FIRENOC", "indexName": "firenoc-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"SLA Compliance (Provisional NOC)\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.fireNOCDetails.fireNOCType.keyword\":\"PROVISIONAL\"}},{\"term\":{\"Data.fireNOCDetails.status.keyword\":\"APPROVED\"}},{\"script\":{\"script\":{\"source\":\"doc['Data.auditDetails.lastModifiedTime'].value-doc['Data.auditDetails.createdTime'].value params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } ], "isPostResponseHandler": true, "chartType": "table", @@ -16982,7 +16706,7 @@ "action": "", "documentType": "_doc", "drillChart": "none", - "plotLabel":"ULB", + "plotLabel": "ULB", "aggregationPaths": [ "TotalRequests", "ClosedWithInSLA", @@ -16991,25 +16715,23 @@ ], "pathDataTypeMapping": [ { - "TotalRequests" : "number" + "TotalRequests": "number" }, { - "ClosedWithInSLA" : "number" + "ClosedWithInSLA": "number" }, { - "ClosedOutsideSLA" : "number" + "ClosedOutsideSLA": "number" }, { - "CitizenAverageRating" : "number" + "CitizenAverageRating": "number" } ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmBottomUlbByPerformance": { "chartName": "DSS_FSM_BOTTOM_ULB_BY_PERFORMANCE", "queries": [ @@ -17018,7 +16740,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Closed With In Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"count\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}},\"Total Applications\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\"},\"aggs\":{\"tenant_count\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" } ], "chartType": "perform", @@ -17037,8 +16759,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": "" }, "ulbBottomDrillChart": { @@ -17052,8 +16773,11 @@ "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULB\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"TotalRequests\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"ClosedWithInSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"ClosedOutsideSLA\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"CitizenAverageRating\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CitizenAvgRating\":{\"avg\":{\"script\":\"int sum = 0;int count =0;if(params['_source']['Data']['history']!=null){ for (item in params['_source']['Data']['history']) {if(item.rating!=null){ sum += item.rating;} }} return sum;\"}}}}}}}}}}" } ], - "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + "filterKeys": [ + { + "key": "tenantId", + "column": "ULB" + } ], "isPostResponseHandler": true, "chartType": "table", @@ -17061,7 +16785,7 @@ "action": "", "documentType": "_doc", "drillChart": "none", - "plotLabel":"ULB", + "plotLabel": "ULB", "aggregationPaths": [ "TotalRequests", "ClosedWithInSLA", @@ -17070,22 +16794,21 @@ ], "pathDataTypeMapping": [ { - "TotalRequests" : "number" + "TotalRequests": "number" }, { - "ClosedWithInSLA" : "number" + "ClosedWithInSLA": "number" }, { - "ClosedOutsideSLA" : "number" + "ClosedOutsideSLA": "number" }, { - "CitizenAverageRating" : "number" + "CitizenAverageRating": "number" } ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "fsmCollectionByUsageType": { @@ -17096,7 +16819,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.fsm.propertyUsage.keyword\"},\"aggs\":{\"Assessed Properties\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Usage Type\":{\"terms\":{\"field\":\"Data.fsm.propertyUsage.keyword\"},\"aggs\":{\"Assessed Properties\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], "chartType": "pie", @@ -17107,11 +16830,9 @@ "aggregationPaths": [ "Usage Type" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmCapacityUtilization": { "chartName": "DSS_FSTP_CAPACITY_UTILIZATION", "queries": [ @@ -17120,7 +16841,7 @@ "dateRefField": "Data.vehicleTrip.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Capacity Utilization\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Capacity Utilization\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}}}}}}" } ], "chartType": "line", @@ -17134,11 +16855,9 @@ ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmMonthlyWasteCal": { "chartName": "DSS_FSM_MONTHLY_WASTE_CAL", "queries": [ @@ -17147,7 +16866,7 @@ "dateRefField": "Data.vehicleTrip.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Septage Dumped At Plant\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}},\"Septage Collected\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)/1000.0\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Septage Dumped At Plant\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}},\"Septage Collected\":{\"date_histogram\":{\"field\":\"Data.vehicleTrip.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Count\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)/1000.0\"}}}}}}}}}" } ], "chartType": "line", @@ -17162,11 +16881,9 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmCustomerRatings": { "chartName": "DSS_FSM_CUSTOMER_RATINGS", "queries": [ @@ -17175,8 +16892,8 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CustomerRating\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"CitizenAverageRating\":{\"avg\":{\"script\":\"intsum=0;intcount=0;if(params['_source']['Data']['history']!=null){for(iteminparams['_source']['Data']['history']){if(item.rating!=null){sum+=item.rating;}}}returnsum;\"}}}}}}}}" - } + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\"]}},{\"term\":{\"Data.history.action.keyword\":\"RATE\"}},{\"exists\":{\"field\":\"Data.history\"}},{\"range\":{\"Data.history.rating\":{\"gte\":1}}}]}},\"aggs\":{\"CustomerRating\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"month\"},\"aggs\":{\"CitizenAverageRating\":{\"avg\":{\"script\":\"intsum=0;intcount=0;if(params['_source']['Data']['history']!=null){for(iteminparams['_source']['Data']['history']){if(item.rating!=null){sum+=item.rating;}}}returnsum;\"}}}}}}}}" + } ], "chartType": "line", "valueType": "number", @@ -17189,11 +16906,9 @@ ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmTopDsoByPerformance": { "chartName": "DSS_FSM_TOP_DSO_BY_PERFORMANCE", "queries": [ @@ -17202,7 +16917,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"desc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" } ], "chartType": "line", @@ -17217,11 +16932,9 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": "" }, - "fsmBottomDsoByPerformance": { "chartName": "DSS_FSM_BOTTOM_DSO_BY_PERFORMANCE", "queries": [ @@ -17230,7 +16943,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Raised\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}},\"Closed Within SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}},\"Closed Outside SLA\":{\"terms\":{\"field\":\"Data.vendor.name.keyword\",\"size\":3,\"order\":{\"_count\":\"asc\"}},\"aggs\":{\"Count\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value > params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"valueCount\":{\"value_count\":{\"field\":\"Data.vendor.name.keyword\"}}}}}}}}}}" } ], "chartType": "line", @@ -17245,11 +16958,9 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": "" }, - "fsmTotalReqByDistrict": { "chartName": "DSS_FSM_TOTAL_REQ_BY_DISTRICT", "queries": [ @@ -17258,59 +16969,68 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}" }, { "module": "FSM", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", "dateRefField": "Data.payments.paymentDetails.receiptDate" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "District"} + { + "key": "tenantId", + "column": "District" + } ], "chartType": "xtable", "valueType": "number", "isRoundOff": true, "drillChart": "fsmTotalReqByTenant", "plotLabel": "District", - "excludedColumns": ["ClosedWithInSla"], + "excludedColumns": [ + "ClosedWithInSla" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["ClosedReq", "TotalReq"], - "newField" : "CompletionRateIn%", + "fields": [ + "ClosedReq", + "TotalReq" + ], + "newField": "CompletionRateIn%", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["ClosedWithInSla","TotalReq"], - "newField" : "SLAAchievedIn%", + "fields": [ + "ClosedWithInSla", + "TotalReq" + ], + "newField": "SLAAchievedIn%", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "District", - "OpenReq", - "ClosedReq", - "TotalReq", - "CompletionRateIn%", - "SLAAchievedIn%", - "TotalCollection" - ] - }, - "insight": { + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "District", + "OpenReq", + "ClosedReq", + "TotalReq", + "CompletionRateIn%", + "SLAAchievedIn%", + "TotalCollection" + ] }, + "insight": {}, "_comment": " " }, - "fsmTotalReqByTenant": { "chartName": "DSS_FSM_TOTAL_REQ_BY_ULB", "queries": [ @@ -17324,50 +17044,60 @@ { "module": "FSM", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", "dateRefField": "Data.payments.paymentDetails.receiptDate" } ], "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "chartType": "xtable", "valueType": "number", "isRoundOff": true, "drillChart": "fsmTotalReqByWard", "plotLabel": "ULB", - "excludedColumns": ["ClosedWithInSla"], + "excludedColumns": [ + "ClosedWithInSla" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["ClosedReq", "TotalReq"], - "newField" : "CompletionRateIn%", + "fields": [ + "ClosedReq", + "TotalReq" + ], + "newField": "CompletionRateIn%", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["ClosedWithInSla","TotalReq"], - "newField" : "SLAAchievedIn%", + "fields": [ + "ClosedWithInSla", + "TotalReq" + ], + "newField": "SLAAchievedIn%", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "ULB", - "OpenReq", - "ClosedReq", - "TotalReq", - "CompletionRateIn%", - "SLAAchievedIn%", - "TotalCollection" - ] - }, - "insight": { + "XtableColumnOrder": [ + "S.N.", + "ULB", + "OpenReq", + "ClosedReq", + "TotalReq", + "CompletionRateIn%", + "SLAAchievedIn%", + "TotalCollection" + ] }, + "insight": {}, "_comment": " " }, "fsmTotalReqByWard": { @@ -17383,14 +17113,20 @@ { "module": "FSM", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}],\"must\":[{\"term\":{\"Data.payments.paymentDetails.businessService.keyword\":\"FSM.TRIP_CHARGES\"}}]}},\"aggs\":{\"TotalCollection\":{\"sum\":{\"field\":\"Data.payments.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "dateRefField": "Data.payments.paymentDetails.receiptDate" } ], "filterKeys": [ - {"key": "wardId", "column": "Ward"}, - {"key": "ulbId", "column": "ULB"} + { + "key": "wardId", + "column": "Ward" + }, + { + "key": "ulbId", + "column": "ULB" + } ], "chartType": "xtable", "valueType": "number", @@ -17399,40 +17135,46 @@ "action": "", "documentType": "_doc", "plotLabel": "Ward", - "excludedColumns": ["ClosedWithInSla"], + "excludedColumns": [ + "ClosedWithInSla" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["ClosedReq", "TotalReq"], - "newField" : "CompletionRateIn%", + "fields": [ + "ClosedReq", + "TotalReq" + ], + "newField": "CompletionRateIn%", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["ClosedWithInSla","TotalReq"], - "newField" : "SLAAchievedIn%", + "fields": [ + "ClosedWithInSla", + "TotalReq" + ], + "newField": "SLAAchievedIn%", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "Ward", - "OpenReq", - "ClosedReq", - "TotalReq", - "CompletionRateIn%", - "SLAAchievedIn%", - "TotalCollection" - ] - }, - "insight": { + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "Ward", + "OpenReq", + "ClosedReq", + "TotalReq", + "CompletionRateIn%", + "SLAAchievedIn%", + "TotalCollection" + ] }, + "insight": {}, "_comment": " " }, - "fsmVehicleLogReportByDDR": { "chartName": "DSS_FSM_VECHILE_LOG_REPORT", "queries": [ @@ -17441,12 +17183,15 @@ "dateRefField": "Data.vehicleTrip.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"No_Of_Trips\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}}}},\"Total_Septage_Collected\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageCollected\":{\"sum\":{\"field\":\"Data.vehicleTrip.tripDetails.volume\"}}}},\"Total_Septage_Dumped\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageDumped\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}},\"Capacity_Utilization\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"CapacityUtilization\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}}}}}}" - } + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"No_Of_Trips\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}}}},\"Total_Septage_Collected\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageCollected\":{\"sum\":{\"field\":\"Data.vehicleTrip.tripDetails.volume\"}}}},\"Total_Septage_Dumped\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"TotalSeptageDumped\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}},\"Capacity_Utilization\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.vehicleTrip.businessService.keyword\":\"FSM_VEHICLE_TRIP\"}}]}},\"aggs\":{\"CapacityUtilization\":{\"sum\":{\"field\":\"Data.vehicleTrip.volumeCarried\"}}}}}}}}" + } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "District"} + { + "key": "tenantId", + "column": "District" + } ], "isPostResponseHandler": true, "chartType": "xtable", @@ -17455,7 +17200,7 @@ "isRoundOff": true, "documentType": "_doc", "drillChart": "fsmVehicleLogReportByTenant", - "plotLabel":"District", + "plotLabel": "District", "aggregationPaths": [ "NoOfTrips", "TotalSeptageCollected", @@ -17464,43 +17209,44 @@ ], "pathDataTypeMapping": [ { - "NoOfTrips" : "number" + "NoOfTrips": "number" }, { - "TotalSeptageCollected" : "number" + "TotalSeptageCollected": "number" }, { - "TotalSeptageDumped" : "number" + "TotalSeptageDumped": "number" }, { - "CapacityUtilization" : "number" + "CapacityUtilization": "number" } ], "isCumulative": true, "interval": "month", - "computedFields": [ + "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["CapacityUtilization"], + "fields": [ + "CapacityUtilization" + ], "_comments": " " } ], - "chartSpecificProperty": { - "XtableColumnOrder":[ - "S.N.", - "District", - "NoOfTrips", - "TotalSeptageCollected", - "TotalSeptageDumped", - "CapacityUtilization" - ] - }, - "insight": { + "chartSpecificProperty": { + "XtableColumnOrder": [ + "S.N.", + "District", + "NoOfTrips", + "TotalSeptageCollected", + "TotalSeptageDumped", + "CapacityUtilization" + ] }, + "insight": {}, "_comment": " " }, -"fsmVehicleLogReportByTenant": { + "fsmVehicleLogReportByTenant": { "chartName": "DSS_FSM_VECHILE_LOG_REPORT", "queries": [ { @@ -17508,11 +17254,14 @@ "dateRefField": "Data.vehicleTrip.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.vehicleTrip.tenantId.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.vehicleTrip.tenantId.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "isPostResponseHandler": true, "chartType": "xtable", @@ -17521,7 +17270,7 @@ "isRoundOff": true, "documentType": "_doc", "drillChart": "fsmVehicleLogReportByVehicleNo", - "plotLabel":"Boundary", + "plotLabel": "Boundary", "aggregationPaths": [ "NoOfTrips", "TotalSeptageCollected", @@ -17530,22 +17279,21 @@ ], "pathDataTypeMapping": [ { - "NoOfTrips" : "number" + "NoOfTrips": "number" }, { - "TotalSeptageCollected" : "number" + "TotalSeptageCollected": "number" }, { - "TotalSeptageDumped" : "number" + "TotalSeptageDumped": "number" }, { - "CapacityUtilization" : "number" + "CapacityUtilization": "number" } ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "fsmVehicleLogReportByVehicleNo": { @@ -17556,13 +17304,22 @@ "dateRefField": "Data.vehicleTrip.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "vehicletrip", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Vehicle Reg No\":{\"terms\":{\"field\":\"Data.vehicleTrip.vehicle.registrationNumber.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"TankCapacity\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.vehicle.tankCapacity'].value)\"}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Vehicle Reg No\":{\"terms\":{\"field\":\"Data.vehicleTrip.vehicle.registrationNumber.keyword\",\"size\":1000},\"aggs\":{\"NoOfTrips\":{\"value_count\":{\"field\":\"Data.vehicleTrip.@timestamp\"}},\"TotalSeptageCollected\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.tripDetails.volume'].value)\"}}},\"TotalSeptageDumped\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"CapacityUtilization\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)\"}}},\"TankCapacity\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.vehicle.tankCapacity'].value)\"}}}}}}}}}" } ], "filterKeys": [ - {"key": "registrationNumber", "column": "Vehicle_No"}, - {"key": "wardId", "column": "Ward"}, - {"key": "ulbId", "column": "ULB"} + { + "key": "registrationNumber", + "column": "Vehicle_No" + }, + { + "key": "wardId", + "column": "Ward" + }, + { + "key": "ulbId", + "column": "ULB" + } ], "isPostResponseHandler": true, "chartType": "xtable", @@ -17571,7 +17328,7 @@ "isRoundOff": true, "documentType": "_doc", "drillChart": "none", - "plotLabel":"Vehicle_No", + "plotLabel": "Vehicle_No", "aggregationPaths": [ "NoOfTrips", "TotalSeptageCollected", @@ -17581,27 +17338,26 @@ ], "pathDataTypeMapping": [ { - "NoOfTrips" : "number" + "NoOfTrips": "number" }, { - "TotalSeptageCollected" : "number" + "TotalSeptageCollected": "number" }, { - "TotalSeptageDumped" : "number" + "TotalSeptageDumped": "number" }, { - "CapacityUtilization" : "number" + "CapacityUtilization": "number" }, { - "TankCapacity" : "number" + "TankCapacity": "number" } ], "isCumulative": true, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " - }, + }, "fsmCollectionByGender": { "chartName": "DSS_FSM_RESQUEST_BY_GENDER", "queries": [ @@ -17610,7 +17366,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pb.testing\"}}]}}, \"aggs\": {\"Gender\": {\"terms\": {\"field\": \"Data.fsm.citizen.gender.keyword\"}}}}}}" + "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pg.testing\"}}]}}, \"aggs\": {\"Gender\": {\"terms\": {\"field\": \"Data.fsm.citizen.gender.keyword\"}}}}}}" } ], "chartType": "pie", @@ -17621,11 +17377,10 @@ "aggregationPaths": [ "Gender" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmRequestByPaymentPreference": { + "fsmRequestByPaymentPreference": { "chartName": "DSS_FSM_RESQUEST_BY_PAYMENT_PREFERENCE", "queries": [ { @@ -17633,7 +17388,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pb.testing\"}}]}}, \"aggs\": {\"Payment Preference\": {\"terms\": {\"field\": \"Data.fsm.paymentPreference.keyword\"}}}}}}" + "aggrQuery": "{ \"aggs\": {\"AGGR\": {\"filter\": {\"bool\": {\"must_not\": [{\"term\": {\"Data.fsm.tenantId.keyword\": \"pg.testing\"}}]}}, \"aggs\": {\"Payment Preference\": {\"terms\": {\"field\": \"Data.fsm.paymentPreference.keyword\"}}}}}}" } ], "chartType": "pie", @@ -17644,11 +17399,9 @@ "aggregationPaths": [ "Payment Preference" ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "fsmTotalRequestsbyStatus": { "chartName": "DSS_FSM_TOTAL_REQUESTS_BY_STATUS", "queries": [ @@ -17657,9 +17410,10 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtCode\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Completed\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"completed\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CITIZEN_FEEDBACK_PENDING\",\"COMPLETED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Received\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"received\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CREATED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Pending\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"pending\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"PENDING_APPL_FEE_PAYMENT\",\"DSO_INPROGRESS\",\"PENDING_DSO_APPROVAL\",\"ASSING_DSO\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Rejected\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"rejected\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"REJECTED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}}}}}}" } + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Completed\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"completed\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CITIZEN_FEEDBACK_PENDING\",\"COMPLETED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Received\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"received\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"CREATED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Pending\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"pending\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"PENDING_APPL_FEE_PAYMENT\",\"DSO_INPROGRESS\",\"PENDING_DSO_APPROVAL\",\"ASSING_DSO\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}},\"Rejected\":{\"date_histogram\":{\"field\":\"Data.fsm.@timestamp\",\"interval\":\"intervalvalue\"},\"aggs\":{\"rejected\":{\"filter\":{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"REJECTED\"]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.fsm.applicationStatus.keyword\"}}}}}}}}}}" + } ], - "chartType": "line", + "chartType": "line", "valueType": "number", "action": "", "drillChart": "none", @@ -17668,35 +17422,32 @@ "Received", "Completed", "Pending", - "Rejected" + "Rejected" ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - - "dssBNDTotalApplication": { "chartName": "DSS_TOTAL_APPLICATION", "queries": [ - { - "module": "COMMON", - "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", - "dateRefField": "Data.dateofissue" - }, - { - "module": "COMMON", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Death total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", - "dateRefField": "Data.dateofissue" - } - ], - "chartType": "metric", + { + "module": "COMMON", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", + "dateRefField": "Data.dateofissue" + }, + { + "module": "COMMON", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Death total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId.keyword\" \r\n}", + "dateRefField": "Data.dateofissue" + } + ], + "chartType": "metric", "valueType": "number", "action": "", "documentType": "_doc", @@ -17707,21 +17458,24 @@ ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Birth total Application", "Death total Application"], - "newField" : "Total Applications", + "fields": [ + "Birth total Application", + "Death total Application" + ], + "newField": "Total Applications", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": " totalApplication is the chartId" }, @@ -17729,19 +17483,19 @@ "chartName": "DSS_TOTAL_COLLECTION", "queries": [ { - "module": "BIRTH", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" - }, - { - "module": "DEATH", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" - } + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + }, + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } ], "chartType": "metric", "valueType": "amount", @@ -17751,14 +17505,14 @@ "aggregationPaths": [ "Total Collection" ], - "insight": { - "chartResponseMap" : "dssBNDTotalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "insight": { + "chartResponseMap": "dssBNDTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, @@ -17766,12 +17520,12 @@ "chartName": "DSS_BIRTH_DOWNLOAD_TREND", "queries": [ { - "module": "BIRTH", - "dateRefField": "Data.dateofissue", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\": [{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"downloads\":{\"date_histogram\":{\"field\": \"Data.dateofissue\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Total\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Count\": {\"value_count\": {\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" - } + "module": "BIRTH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\": [{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"downloads\":{\"date_histogram\":{\"field\": \"Data.dateofissue\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Total\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Count\": {\"value_count\": {\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" + } ], "chartType": "line", "valueType": "number", @@ -17783,20 +17537,18 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, - "birthTransactionsByChannel": { "chartName": "DSS_DOWNLOADS_BY_CHANNEL", "queries": [ { "module": "BIRTH", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Transactions By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Transactions By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -17807,8 +17559,7 @@ "aggregationPaths": [ "Transactions By Channels" ], - "insight": { - }, + "insight": {}, "_comment": "Transactions By Channel" }, "dssBirthByGender": { @@ -17816,10 +17567,10 @@ "queries": [ { "module": "BIRTH", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth By Gender\":{\"terms\":{\"field\":\"Data.gender.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth By Gender\":{\"terms\":{\"field\":\"Data.gender.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -17830,8 +17581,7 @@ "aggregationPaths": [ "Birth By Gender" ], - "insight": { - }, + "insight": {}, "_comment": "Birth By Gender" }, "dssBirthByPlace": { @@ -17839,10 +17589,10 @@ "queries": [ { "module": "BIRTH", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth By Place\":{\"terms\":{\"field\":\"Data.birthPlace.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth By Place\":{\"terms\":{\"field\":\"Data.birthPlace.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -17853,8 +17603,7 @@ "aggregationPaths": [ "Birth By Place" ], - "insight": { - }, + "insight": {}, "_comment": "Birth By Place" }, "xBirthDownloadStatusByBoundary": { @@ -17862,18 +17611,21 @@ "queries": [ { "module": "BIRTH", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xBirthDownloadByUlb", @@ -17881,11 +17633,9 @@ "action": "", "plotLabel": "DDRs", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -17906,8 +17656,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xBirthDownloadByUlb": { @@ -17918,14 +17667,17 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"ULB \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xBirthDownloadByWard", @@ -17933,11 +17685,9 @@ "action": "", "plotLabel": "ULB", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -17958,8 +17708,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xBirthDownloadByWard": { @@ -17970,14 +17719,17 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ward \":{\"terms\":{\"field\":\"Data.ward.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Downloads (Mobile App)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"mobileapp\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads (Web)\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.source.keyword\":[\"web\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}},\"Total Downloads\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}},\"Delayed Registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofbirth'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31556952000}}}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "ward", "column": "Ward"} + { + "key": "ward", + "column": "Ward" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -17985,11 +17737,9 @@ "action": "", "plotLabel": "Ward", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -18010,8 +17760,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xBirthDownloadByChannel": { @@ -18022,24 +17771,26 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "birth-cert-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"Data.tenantId.keyword\": \"pb.testing\"\n }\n },\n {\n \"terms\": {\n \"Data.applicationStatus.keyword\": [\n \"ACTIVE\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"ULBs \": {\n \"terms\": {\n \"field\": \"Data.tenantId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Total Applications\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"ivr\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"ivr\"\n ]\n }\n },\n \"aggs\": {\n \"ivr\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"mobileapp\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"mobileapp\"\n ]\n }\n },\n \"aggs\": {\n \"mobileapp\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"web\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"web\"\n ]\n }\n },\n \"aggs\": {\n \"web\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"Data.tenantId.keyword\": \"pg.testing\"\n }\n },\n {\n \"terms\": {\n \"Data.applicationStatus.keyword\": [\n \"ACTIVE\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"ULBs \": {\n \"terms\": {\n \"field\": \"Data.tenantId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Total Applications\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"ivr\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"ivr\"\n ]\n }\n },\n \"aggs\": {\n \"ivr\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"mobileapp\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"mobileapp\"\n ]\n }\n },\n \"aggs\": {\n \"mobileapp\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"web\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"web\"\n ]\n }\n },\n \"aggs\": {\n \"web\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Boundary", - "aggregationPaths":[ + "aggregationPaths": [ "ivr", "mobileapp", "web", "Total Applications" ], - "insight": { - }, + "insight": {}, "_comment": "" }, "deathTransactionsByChannel": { @@ -18050,7 +17801,7 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Transactions By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Transactions By Channels\":{\"terms\":{\"field\":\"Data.source.keyword\"},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.id.keyword\"}}}}}}}}" } ], "chartType": "pie", @@ -18061,8 +17812,7 @@ "aggregationPaths": [ "Transactions By Channels" ], - "insight": { - }, + "insight": {}, "_comment": "Transactions By Channel" }, "xDeathDownloadStatusByTenant": { @@ -18073,23 +17823,23 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Downloads\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\",\"PAID\",\"PAID_PDF_GENERATED\",\"PAID_DOWNLOAD\"]}}]}},\"aggs\":{\"Downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Downloads\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\",\"PAID\",\"PAID_PDF_GENERATED\",\"PAID_DOWNLOAD\"]}}]}},\"aggs\":{\"Downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Boundary", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "insight": { - }, + "removedFields": [], + "computedFields": [], + "insight": {}, "_comment": "" }, "xDeathDownloadByChannel": { @@ -18100,24 +17850,26 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "death-cert-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"Data.tenantId.keyword\": \"pb.testing\"\n }\n },\n {\n \"terms\": {\n \"Data.applicationStatus.keyword\": [\n \"ACTIVE\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"ULBs \": {\n \"terms\": {\n \"field\": \"Data.tenantId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Total Applications\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"ivr\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"ivr\"\n ]\n }\n },\n \"aggs\": {\n \"ivr\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"mobileapp\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"mobileapp\"\n ]\n }\n },\n \"aggs\": {\n \"mobileapp\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"web\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"web\"\n ]\n }\n },\n \"aggs\": {\n \"web\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"Data.tenantId.keyword\": \"pg.testing\"\n }\n },\n {\n \"terms\": {\n \"Data.applicationStatus.keyword\": [\n \"ACTIVE\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"ULBs \": {\n \"terms\": {\n \"field\": \"Data.tenantId.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Total Applications\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n },\n \"ivr\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"ivr\"\n ]\n }\n },\n \"aggs\": {\n \"ivr\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"mobileapp\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"mobileapp\"\n ]\n }\n },\n \"aggs\": {\n \"mobileapp\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n },\n \"web\": {\n \"filter\": {\n \"terms\": {\n \"Data.source.keyword\": [\n \"web\"\n ]\n }\n },\n \"aggs\": {\n \"web\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Boundary", - "aggregationPaths":[ + "aggregationPaths": [ "ivr", "mobileapp", "web", "Total Applications" ], - "insight": { - }, + "insight": {}, "_comment": "" }, "todaysNetCollectionv2": { @@ -18128,14 +17880,14 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d\/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d\/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" }, { "module": "DEATH", "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d\/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}},{\"range\":{\"dataObject.paymentDetails.receiptDate\":{\"gt\":\"now-1d\/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -18147,17 +17899,17 @@ "Todays Collection" ], "insight": { - "chartResponseMap" : "todaysNetCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "todaysNetCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " - }, - "dssBNDNetCollection": { + }, + "dssBNDNetCollection": { "chartName": "DSS_BND_NET_COLLECTION", "queries": [ { @@ -18165,7 +17917,7 @@ "requestQueryMap": "{\"wardId\" : \"dataObject.ward.name.keyword\",\"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.city.districtCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\",\"DEATH_CERT\"]}}]}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "translateTenantCode": false, @@ -18177,13 +17929,13 @@ "Total Collection" ], "insight": { - "chartResponseMap" : "netCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year" + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year" }, "_comment": " " }, @@ -18191,19 +17943,19 @@ "chartName": "DSS_TOTAL_CUMULATIVE_COLLECTION", "queries": [ { - "module": "BIRTH", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" - }, - { - "module": "DEATH", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" - } + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + }, + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\", \n\"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"dataObject.paymentDetails.receiptDate\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + } ], "chartType": "line", "valueType": "amount", @@ -18215,28 +17967,26 @@ ], "isCumulative": true, "interval": "day", - "insight": { - }, + "insight": {}, "_comment": " " }, "transactionCountByPaymentMode": { "chartName": "DSS_TRASACTIONS_BY_PAYMENT_MODE", "queries": [ - { - "module": "BIRTH", - "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Transaction Count\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}}}}}}" - }, - { - "module": "DEATH", - "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Transaction Count\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}}}}}}" - } - + { + "module": "BIRTH", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Transaction Count\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}}}}}}" + }, + { + "module": "DEATH", + "requestQueryMap": "{\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"License Instrument Type\":{\"terms\":{\"field\":\"dataObject.paymentMode.keyword\"},\"aggs\":{\"Transaction Count\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}}}}}}" + } ], "chartType": "pie", "valueType": "number", @@ -18246,8 +17996,7 @@ "aggregationPaths": [ "License Instrument Type" ], - "insight": { - }, + "insight": {}, "_comment": " License Application which are issued by License Type" }, "xBirthCollectionByTenant": { @@ -18258,25 +18007,25 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Transactions\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billId.keyword\"}}}},\"Total Amount\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Transactions\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billId.keyword\"}}}},\"Total Amount\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Boundary", "excludedColumns": [], - "oldComputedFields": [ - ], - "insight": { - }, + "oldComputedFields": [], + "insight": {}, "_comment": "" - }, - - "xDeathCollectionByTenant": { + }, + "xDeathCollectionByTenant": { "chartName": "DSS_CERT_COLLECTION_BY_TENANT", "queries": [ { @@ -18284,21 +18033,22 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Transactions\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billId.keyword\"}}}},\"Total Amount\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"Total Transactions\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.billId.keyword\"}}}},\"Total Amount\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Amount\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "tenantId", "column": "Boundary"} + { + "key": "tenantId", + "column": "Boundary" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Boundary", "excludedColumns": [], - "oldComputedFields": [ - ], - "insight": { - }, + "oldComputedFields": [], + "insight": {}, "_comment": "" }, "transactionByPaymentModeBreakUp": { @@ -18309,18 +18059,17 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"Total Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}}}}}}" + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"Total Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}}}}}}" }, { "module": "DEATH", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"Total Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}}}}}}" + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"value_count\":{\"field\":\"dataObject.id.keyword\"}}}},\"Total Transactions\":{\"value_count\":{\"field\":\"dataObject.paymentDetails.id.keyword\"}}}}}}}}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -18336,11 +18085,10 @@ "CARD", "ONLINE" ], - "insight": { - }, + "insight": {}, "_comment": "" - }, - "collectionByPaymentModeBreakUp":{ + }, + "collectionByPaymentModeBreakUp": { "chartName": "DSS_COLLECTIONS_BY_PAYMENT_MODE", "queries": [ { @@ -18348,17 +18096,17 @@ "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" }, { "module": "DEATH", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId\", \"district\" : \"dataObject.tenantData.cityDistrictCode\" }", "dateRefField": "dataObject.paymentDetails.receiptDate", "indexName": "dss-collection_v2", - "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" + "aggrQuery": "{\"size\":0,\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"ULBs \":{\"terms\":{\"field\":\"dataObject.tenantId.keyword\",\"size\":200},\"aggs\":{\"CASH\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CASH\"]}},\"aggs\":{\"CASH\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"ONLINE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"ONLINE\"]}},\"aggs\":{\"ONLINE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CARD\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CARD\"]}},\"aggs\":{\"CARD\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_RTGS\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_RTGS\"]}},\"aggs\":{\"OFFLINE_RTGS\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"OFFLINE_NEFT\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"OFFLINE_NEFT\"]}},\"aggs\":{\"OFFLINE_NEFT\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"CHEQUE\":{\"filter\":{\"terms\":{\"dataObject.paymentMode.keyword\":[\"CHEQUE\"]}},\"aggs\":{\"CHEQUE\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}},\"Total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}}}" } ], - "filterKeys":[], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -18374,21 +18122,19 @@ "CARD", "ONLINE" ], - "insight": { - }, + "insight": {}, "_comment": "" }, - - "deathDownloadTrend": { + "deathDownloadTrend": { "chartName": "DSS_DEATH_DOWNLOAD_TREND", "queries": [ - { - "module": "DEATH", - "dateRefField": "Data.dateofissue", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\": [{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"downloads\":{\"date_histogram\":{\"field\": \"Data.dateofissue\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Total\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Count\": {\"value_count\": {\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" - } + { + "module": "DEATH", + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\": [{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"downloads\":{\"date_histogram\":{\"field\": \"Data.dateofissue\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Applications Total\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Count\": {\"value_count\": {\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + } ], "chartType": "line", "valueType": "number", @@ -18400,8 +18146,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "xDeathDownloadsByBoundary": { @@ -18409,18 +18154,21 @@ "queries": [ { "module": "DEATH", - "dateRefField": "Data.dateofissue", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}" + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xDeathDownloadsByUlb", @@ -18447,27 +18195,28 @@ "delayed_registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "xDeathDownloadsByUlb": { "chartName": "DSS_CERT_DOWNLOAD_BY_ULB", "queries": [ { "module": "DEATH", - "dateRefField": "Data.dateofissue", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ulb\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ulb\":{\"terms\":{\"field\":\"Data.tenantId.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "ulb", "column": "Ulb"} + { + "key": "ulb", + "column": "Ulb" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "xDeathDownloadsByWard", @@ -18494,27 +18243,28 @@ "delayed_registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "xDeathDownloadsByWard": { "chartName": "DSS_CERT_DOWNLOAD_BY_WARD", "queries": [ { "module": "DEATH", - "dateRefField": "Data.dateofissue", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" + "dateRefField": "Data.dateofissue", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Ward\":{\"terms\":{\"field\":\"Data.ward.keyword\",\"size\":1000,\"order\":{\"_term\":\"asc\"}},\"aggs\":{\"total_downloads_mobile_app\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"mobileapp\"}}]}},\"aggs\":{\"mobile_app\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads_web\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"Data.source.keyword\":\"web\"}}]}},\"aggs\":{\"web\":{\"value_count\":{\"field\":\"Data.source.keyword\"}}}},\"total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"delayed_registrations\":{\"filter\":{\"bool\":{\"must\":[{\"script\":{\"script\":{\"source\":\"doc['Data.dateofreport'].value-doc['Data.dateofdeath'].value>params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":31536000000}}}}]}},\"aggs\":{\"registrations\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}}}}}" } ], "filterKeys": [ - {"key": "ward", "column": "Ward"} + { + "key": "ward", + "column": "Ward" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "table", "valueType": "number", "drillChart": "", @@ -18541,22 +18291,21 @@ "delayed_registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "dssBirthTotalApplication": { + "dssBirthTotalApplication": { "chartName": "DSS_BIRTH_TOTAL_APPLICATION", "queries": [ - { - "module": "BIRTH", - "indexName": "birth-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "dateRefField": "Data.dateofissue" - } - ], - "chartType": "metric", + { + "module": "BIRTH", + "indexName": "birth-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Birth total Application\":{\"value_count\":{\"field\":\"Data.birthCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue" + } + ], + "chartType": "metric", "valueType": "number", "action": "", "documentType": "_doc", @@ -18564,29 +18313,29 @@ "aggregationPaths": [ "Birth total Application" ], - "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totalApplication is the chartId" }, "dssDeathTotalApplication": { "chartName": "DSS_DEATH_TOTAL_APPLICATION", "queries": [ - { - "module": "DEATH", - "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Death total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", - "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", - "dateRefField": "Data.dateofissue" - } - ], - "chartType": "metric", + { + "module": "DEATH", + "indexName": "death-cert-v1", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"Death total Application\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}}}}}}", + "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", + "dateRefField": "Data.dateofissue" + } + ], + "chartType": "metric", "valueType": "number", "action": "", "documentType": "_doc", @@ -18594,14 +18343,14 @@ "aggregationPaths": [ "Death total Application" ], - "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "insight": { + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totalApplication is the chartId" }, @@ -18609,12 +18358,12 @@ "chartName": "DSS_BIRTH_NET_COLLECTION", "queries": [ { - "module": "BIRTH", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Birth total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" - } + "module": "BIRTH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Birth total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } ], "chartType": "metric", "valueType": "amount", @@ -18624,27 +18373,27 @@ "aggregationPaths": [ "Birth total Collection" ], - "insight": { - "chartResponseMap" : "netCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, "deathNetCollection": { "chartName": "DSS_DEATH_NET_COLLECTION", "queries": [ - { - "module": "DEATH", - "dateRefField": "dataObject.paymentDetails.receiptDate", - "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", - "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Death total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" - } + { + "module": "DEATH", + "dateRefField": "dataObject.paymentDetails.receiptDate", + "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", + "indexName": "dss-collection_v2", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"DEATH_CERT\"]}}]}},\"aggs\":{\"Death total Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + } ], "chartType": "metric", "valueType": "amount", @@ -18654,19 +18403,18 @@ "aggregationPaths": [ "Death total Collection" ], - "insight": { - "chartResponseMap" : "netCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - - "deathByCategory": { + "deathByCategory": { "chartName": "DSS_DEATH_BY_CATEGORY", "queries": [ { @@ -18674,10 +18422,10 @@ "requestQueryMap": "{\"wardId\" : \"Data.ward.keyword\", \"district\" : \"Data.district.keyword\", \"tenantId\" : \"Data.tenantId.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"category\":{\"terms\":{\"field\":\"Data.gender.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"category\":{\"terms\":{\"field\":\"Data.gender.keyword\"}}}}}}" } ], - "chartType": "pie", + "chartType": "pie", "valueType": "number", "action": "", "documentType": "_doc", @@ -18685,12 +18433,11 @@ "drillFields": [ "selectedType", "" - ], + ], "aggregationPaths": [ "category" ], - "insight": { - }, + "insight": {}, "_comment": "Death By Age Category" }, "deathByCategoryDrilldownAge": { @@ -18701,7 +18448,7 @@ "requestQueryMap": "{\"wardId\":\"Data.ward.keyword\",\"district\":\"Data.district.keyword\",\"tenantId\":\"Data.tenantId.keyword\",\"selectedType\":\"Data.gender.keyword\"}", "dateRefField": "Data.dateofissue", "indexName": "death-cert-v1", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"1_lessthan-2\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"to\":1}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"2_2-14\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":2,\"to\":14}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"3_15-29\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":15,\"to\":29}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"4_30-44\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":30,\"to\":44}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"5_45-59\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":45,\"to\":59}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"6_60-74\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":60,\"to\":74}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"7_greaterthan-75\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":75}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"1_lessthan-2\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"to\":1}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"2_2-14\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":2,\"to\":14}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"3_15-29\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":15,\"to\":29}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"4_30-44\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":30,\"to\":44}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"5_45-59\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":45,\"to\":59}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"6_60-74\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":60,\"to\":74}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"7_greaterthan-75\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":75}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}}}}}}" } ], "chartType": "pie", @@ -18709,7 +18456,10 @@ "action": "", "documentType": "_doc", "filterKeys": [ - {"key": "selectedType", "column": "gender"} + { + "key": "selectedType", + "column": "gender" + } ], "drillChart": "none", "order": "asc", @@ -18720,13 +18470,11 @@ "4_30-44", "5_45-59", "6_60-74", - "7_greaterthan-75" + "7_greaterthan-75" ], - "insight": { - }, + "insight": {}, "_comment": "Death By Age Category" }, - "financeTotalCollection": { "chartName": "DSS_FINANCE_TOTAL_COLLECTION", "queries": [ @@ -18747,17 +18495,16 @@ "Total Collection" ], "insight": { - "chartResponseMap" : "financeTotalCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "financeTotalCollection", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - "financeTotalBillAmount": { "chartName": "DSS_FINANCE_TOTAL_BILL_AMOUNT", "queries": [ @@ -18778,17 +18525,16 @@ "Total Bill Amount" ], "insight": { - "chartResponseMap" : "financeTotalBillAmount", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "financeTotalBillAmount", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - "financeTotalPaidAmount": { "chartName": "DSS_FINANCE_TOTAL_PAID_AMOUNT", "queries": [ @@ -18809,17 +18555,16 @@ "Total Paid Amount" ], "insight": { - "chartResponseMap" : "financeTotalPaidAmount", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "financeTotalPaidAmount", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - "financeTotalBillsGenerated": { "chartName": "DSS_FINANCE_TOTAL_BILLS_GENERATED", "queries": [ @@ -18840,17 +18585,16 @@ "Bills Generated" ], "insight": { - "chartResponseMap" : "financeTotalBillsGenerated", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "financeTotalBillsGenerated", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - "financeTotalPayments": { "chartName": "DSS_FINANCE_TOTAL_PAYMENTS", "queries": [ @@ -18871,17 +18615,16 @@ "Total Payments" ], "insight": { - "chartResponseMap" : "financeTotalPayments", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "financeTotalPayments", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, - "financeInsights": { "chartName": "DSS_FINANCE_BOUNDARY", "queries": [ @@ -18895,14 +18638,17 @@ ], "isMdmsEnabled": false, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "amount", "action": "", "plotLabel": "DDRs", "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "documentType": "_doc", "drillChart": "financeInsightsUlbDrilldown", "aggregationPaths": [ @@ -18952,7 +18698,6 @@ "insight": {}, "_comment": "" }, - "financeInsightsUlbDrilldown": { "chartName": "DSS_FINANCE_BOUNDARY_ULB_DRILLDOWN", "queries": [ @@ -18966,14 +18711,17 @@ ], "isMdmsEnabled": false, "filterKeys": [ - {"key": "ulb", "column": "ULBs"} + { + "key": "ulb", + "column": "ULBs" + } ], "chartType": "table", "valueType": "amount", "action": "", "plotLabel": "ULBs", "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "documentType": "_doc", "drillChart": "none", "aggregationPaths": [ @@ -19044,8 +18792,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "nssNumberOfBirthsTodayByGender": { @@ -19067,8 +18814,7 @@ "aggregationPaths": [ "Number of Births Today By Gender" ], - "insight": { - }, + "insight": {}, "_comment": "Number of Births Today By Gender" }, "nssNumberOfBirthCertificateDownloadByChannel": { @@ -19090,8 +18836,7 @@ "aggregationPaths": [ "Number Of Birth Certificate Download By Channel" ], - "insight": { - }, + "insight": {}, "_comment": "Number Of Birth Certificate Download By Channel" }, "nssBirthTotalCertificateDownload": { @@ -19114,13 +18859,13 @@ "Birth total Certificate Download" ], "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totalApplication is the chartId" }, @@ -19132,7 +18877,7 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", "indexName": "birth-cert-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Birth todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Birth todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -19142,15 +18887,15 @@ "action": "", "aggregationPaths": [ "Birth todays Collection" - ], - "insight": { - "chartResponseMap" : "netCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + ], + "insight": { + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, @@ -19167,10 +18912,13 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xNssBirthDownloadByUlb", @@ -19178,11 +18926,9 @@ "action": "", "plotLabel": "DDRs", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -19203,8 +18949,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xNssBirthDownloadByUlb": { @@ -19219,10 +18964,13 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xNssBirthDownloadByWard", @@ -19230,11 +18978,9 @@ "action": "", "plotLabel": "ULB", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -19255,8 +19001,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xNssBirthDownloadByWard": { @@ -19271,10 +19016,13 @@ } ], "filterKeys": [ - {"key": "ward", "column": "Ward"} + { + "key": "ward", + "column": "Ward" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -19282,11 +19030,9 @@ "action": "", "plotLabel": "Ward", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -19307,8 +19053,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "nssDeathCertificateDownloadTrend": { @@ -19332,8 +19077,7 @@ ], "isCumulative": false, "interval": "month", - "insight": { - }, + "insight": {}, "_comment": " " }, "nssNumberOfDeathsTodayByGender": { @@ -19355,8 +19099,7 @@ "aggregationPaths": [ "Number of Deaths Today By Gender" ], - "insight": { - }, + "insight": {}, "_comment": "Number of Deaths Today By Gender" }, "nssNumberOfDeathCertificateDownloadByChannel": { @@ -19378,8 +19121,7 @@ "aggregationPaths": [ "Number Of Death Certificate Download By Channel" ], - "insight": { - }, + "insight": {}, "_comment": "Number Of Death Certificate Download By Channel" }, "nssDeathTotalCertificateDownload": { @@ -19402,13 +19144,13 @@ "Death total Certificate Download" ], "insight": { - "chartResponseMap" : "totalApplication", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "totalApplication", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " totalApplication is the chartId" }, @@ -19420,7 +19162,7 @@ "dateRefField": "dataObject.paymentDetails.receiptDate", "requestQueryMap": "{\"wardId\" : \"domainObject.ward.name.keyword\",\"module\" : \"dataObject.paymentDetails.businessService.keyword\", \"tenantId\" : \"dataObject.tenantId.keyword\"}", "indexName": "death-cert-national-dashboard", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Death todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.paymentDetails.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"terms\":{\"dataObject.paymentDetails.businessService.keyword\":[\"BIRTH_CERT\"]}}]}},\"aggs\":{\"Death todays Collection\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}" } ], "chartType": "metric", @@ -19432,13 +19174,13 @@ "Death todays Collection" ], "insight": { - "chartResponseMap" : "netCollectionv2", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "month" + "chartResponseMap": "netCollectionv2", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "month" }, "_comment": " " }, @@ -19455,10 +19197,13 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xNssDeathDownloadByUlb", @@ -19466,11 +19211,9 @@ "action": "", "plotLabel": "DDRs", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -19491,8 +19234,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xNssDeathDownloadByUlb": { @@ -19507,10 +19249,13 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "ULB"} + { + "key": "tenantId", + "column": "ULB" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "xNssDeathDownloadByWard", @@ -19518,11 +19263,9 @@ "action": "", "plotLabel": "ULB", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -19543,8 +19286,7 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, "xNssDeathDownloadByWard": { @@ -19559,10 +19301,13 @@ } ], "filterKeys": [ - {"key": "ward", "column": "Ward"} + { + "key": "ward", + "column": "Ward" + } ], "isPostResponseHandler": true, - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -19570,11 +19315,9 @@ "action": "", "plotLabel": "Ward", "excludedColumns": [], - "removedFields":[ - ], - "computedFields": [ - ], - "isRoundOff":true, + "removedFields": [], + "computedFields": [], + "isRoundOff": true, "aggregationPaths": [ "Total Downloads (Mobile App)", "Total Downloads (Web)", @@ -19595,18 +19338,16 @@ "Delayed Registrations": "number" } ], - "insight": { - }, + "insight": {}, "_comment": "" }, - "totalNoOfProperties": { "chartName": "DSS_PT_TOTAL_NO_OF_PROPERTIES", "queries": [ { "module": "PT", "indexName": "property-services", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pb.testing\"}}]}},\"aggs\":{\"Total No Of Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total No Of Application\":{\"value_count\":{\"field\":\"Data.propertyId.keyword\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \r\n \"district\" : \"Data.tenantData.city.districtCode\", \r\n\"tenantId\" : \"Data.tenantId\" \r\n}", "dateRefField": "" } @@ -19621,7 +19362,6 @@ ], "_comment": " totol properties count" }, - "totalMutationProperties": { "chartName": "DSS_PT_TOTAL_MUTATION_PROPERTIES", "queries": [ @@ -19649,7 +19389,7 @@ { "module": "PT", "indexName": "dss-collection_v2", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pb.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT.MUTATION\"}}]}},\"aggs\":{\"Mutataion Fee\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"dataObject.tenantId.keyword\":\"pg.testing\"}},{\"terms\":{\"dataObject.bill.status.keyword\":[\"Cancelled\"]}}],\"must\":[{\"term\":{\"dataObject.paymentDetails.businessService.keyword\":\"PT.MUTATION\"}}]}},\"aggs\":{\"Mutataion Fee\":{\"sum\":{\"field\":\"dataObject.paymentDetails.bill.billDetails.amountPaid\"}}}}}}", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"district\" : \"Data.tenantData.city.districtCode\", \"tenantId\" : \"Data.tenantId\" \r\n}", "dateRefField": "" } @@ -19677,15 +19417,17 @@ ], "isMdmsEnabled": true, "filterKeys": [ - {"key": "tenantId", "column": "DDRs"} + { + "key": "tenantId", + "column": "DDRs" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xptFyByTenant", "plotLabel": "DDRs", "order": "desc", - "insight": { - }, + "insight": {}, "_comment": "" }, "xptFyByTenantWithoutFilter": { @@ -19700,15 +19442,17 @@ } ], "filterKeys": [ - {"key": "tenantId", "column": "ULBs"} + { + "key": "tenantId", + "column": "ULBs" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "xptFyByWard", "plotLabel": "ULBs", "order": "desc", - "insight": { - }, + "insight": {}, "_comment": "" }, "xptFyByWardWithoutFilter": { @@ -19723,15 +19467,17 @@ } ], "filterKeys": [ - {"key": "wardId", "column": "Wards"} + { + "key": "wardId", + "column": "Wards" + } ], "chartType": "xtable", "valueType": "number", "drillChart": "none", "plotLabel": "Wards", "order": "desc", - "insight": { - }, + "insight": {}, "_comment": "" }, "avgTaxCollectedPerProperty": { @@ -19755,21 +19501,24 @@ ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "DivisionComputedField", - "fields" : ["ND_Total_Collection", "No of properties paid"], - "newField" : "Avg Tax Collected per property", + "fields": [ + "ND_Total_Collection", + "No of properties paid" + ], + "newField": "Avg Tax Collected per property", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], "insight": { - "chartResponseMap" : "avgTaxCollectedPerProperty", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "chartResponseMap": "avgTaxCollectedPerProperty", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Average tax collected per property" @@ -19822,12 +19571,12 @@ ], "insight": { "chartResponseMap": "totalNonTaxCollection", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Total Non Tax Collection" @@ -19939,19 +19688,17 @@ ], "insight": { "chartResponseMap": "totalNonTaxContribution", - "action" : "differenceOfNumbers", - "upwardIndicator" : "positive", - "downwardIndicator" : "negative", - "textMessage" : "$indicator$value% than last $insightInterval", - "colorCode" : "#228B22", - "insightInterval" : "year", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", "isRoundOff": true }, "_comment": "Total non tax collection" }, - "_comment": "HEALTH charts below-----------------------------------------------------------------------", - "todaysVisits": { "chartName": "DSS_HEALTH_NATIONAL_HOUSEHOLDS_VISITED_TODAY", "queries": [ @@ -20002,8 +19749,7 @@ "aggregationPaths": [ "Total visits" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "populationCoveredToday": { @@ -20109,8 +19855,7 @@ "aggregationPaths": [ "Total Distributions" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "householdVisitsWithinDateRange": { @@ -20132,8 +19877,7 @@ "aggregationPaths": [ "DateRange visits" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "householdVisitsTargetProvince": { @@ -20156,9 +19900,10 @@ "Target Households per Day" ], "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": ["Overall Target"], - "insight": { - }, + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "insight": {}, "_comment": " " }, "householdVisitsTargetDistrict": { @@ -20182,8 +19927,7 @@ ], "postAggregationTheory": "repsonseToDifferenceOfDates", "isCappedByCampaignPeriod": true, - "insight": { - }, + "insight": {}, "_comment": " " }, "totalHouseholdCoverageProvince": { @@ -20206,7 +19950,7 @@ ], "chartType": "metric", "valueType": "percentage", - "isCappedTillToday":true, + "isCappedTillToday": true, "drillChart": "none", "documentType": "_doc", "action": "percentage", @@ -20246,7 +19990,7 @@ ], "chartType": "metric", "valueType": "percentage", - "isCappedTillToday":true, + "isCappedTillToday": true, "drillChart": "none", "documentType": "_doc", "action": "percentage", @@ -20285,8 +20029,7 @@ "aggregationPaths": [ "Distributions By Range" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "totalDistributionsTillToday": { @@ -20308,8 +20051,7 @@ "aggregationPaths": [ "Total Distributions" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "userSyncSummaryProvince": { @@ -20330,8 +20072,7 @@ "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -20340,7 +20081,10 @@ "plotLabel": "DATA SYNC", "filterForCurrentDay": true, "excludedColumns": [ - "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" + "S.N.", + "DATA SYNC", + "Total Users Created", + "Unique Users Synced" ], "computedFields": [ { @@ -20372,8 +20116,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, "_comment": " " @@ -20396,8 +20139,7 @@ "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", "drillChart": "", @@ -20406,7 +20148,10 @@ "plotLabel": "DATA SYNC", "filterForCurrentDay": true, "excludedColumns": [ - "S.N.", "DATA SYNC", "Total Users Created","Unique Users Synced" + "S.N.", + "DATA SYNC", + "Total Users Created", + "Unique Users Synced" ], "computedFields": [ { @@ -20438,8 +20183,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, "_comment": " " @@ -20457,7 +20201,9 @@ ], "chartType": "metric", "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": ["Overall Target"], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "valueType": "number", "drillChart": "none", "documentType": "_doc", @@ -20465,8 +20211,7 @@ "aggregationPaths": [ "Target by Range" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "bednetsTargetDistrict": { @@ -20490,8 +20235,7 @@ "aggregationPaths": [ "Target by Range" ], - "insight": { - }, + "insight": {}, "_comment": " " }, "bednetsDistributionCoverageProvince": { @@ -20514,7 +20258,7 @@ ], "chartType": "metric", "valueType": "percentage", - "isCappedTillToday":true, + "isCappedTillToday": true, "drillChart": "none", "documentType": "_doc", "action": "percentage", @@ -20556,7 +20300,7 @@ "drillChart": "none", "documentType": "_doc", "action": "percentage", - "isCappedTillToday":true, + "isCappedTillToday": true, "aggregationPaths": [ "Total Distributions Coverage", "Bednets Target" @@ -20636,7 +20380,9 @@ "Target Population per Day" ], "postAggregationTheory": "repsonseToDifferenceOfDates", - "isCappedByCampaignPeriod": ["Overall Target"], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "insight": {}, "_comment": " " }, @@ -20684,7 +20430,7 @@ ], "chartType": "metric", "valueType": "percentage", - "isCappedTillToday":true, + "isCappedTillToday": true, "drillChart": "none", "documentType": "_doc", "action": "percentage", @@ -20722,7 +20468,7 @@ } ], "chartType": "metric", - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "percentage", "drillChart": "none", "documentType": "_doc", @@ -20856,7 +20602,11 @@ "aggregationPaths": [ "Households not Delivered" ], - "filterKeys": [{"key": "district"}], + "filterKeys": [ + { + "key": "district" + } + ], "insight": {}, "_comment": " " }, @@ -20881,7 +20631,11 @@ "aggregationPaths": [ "Households not Delivered by AP" ], - "filterKeys": [{"key": "administrativeProvince"}], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "insight": {}, "_comment": " " }, @@ -20906,7 +20660,11 @@ "aggregationPaths": [ "Households not Delivered by Locality" ], - "filterKeys": [{"key": "locality"}], + "filterKeys": [ + { + "key": "locality" + } + ], "insight": {}, "_comment": " " }, @@ -20954,8 +20712,12 @@ "aggregationPaths": [ "Total No. of Bednets Distributed" ], - "filterKeys": [{"key": "district"}], - "insight": { }, + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartProvincePercent": { @@ -20982,19 +20744,30 @@ "drillChart": "rdBednetsDistributedChartDistrictPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "district"}], + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "district" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartDistrict": { @@ -21018,8 +20791,12 @@ "aggregationPaths": [ "Total No. of Bednets Distributed" ], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartDistrictPercent": { @@ -21047,19 +20824,30 @@ "drillChart": "rdBednetsDistributedChartApPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "administrativeProvince"}], + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartAp": { @@ -21083,8 +20871,12 @@ "aggregationPaths": [ "Total No. of Bednets Distributed" ], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartApPercent": { @@ -21112,19 +20904,30 @@ "drillChart": "rdBednetsDistributedChartLocalityPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "locality"}], + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "locality" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartLocality": { @@ -21148,7 +20951,7 @@ "aggregationPaths": [ "Total No. of Bednets Distributed" ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdBednetsDistributedChartLocalityPercent": { @@ -21176,18 +20979,25 @@ "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Bednets Distributed","Bednets Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Percentage of Bednets Distributed", + "Bednets Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Bednets", + "fields": [ + "TPD" + ], + "newField": "Percentage Bednets", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdPopulationChartProvince": { @@ -21210,8 +21020,12 @@ "aggregationPaths": [ "Total Population Covered" ], - "filterKeys": [{"key": "district"}], - "insight": { }, + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, "_comment": " " }, "rdPopulationChartProvincePercent": { @@ -21231,7 +21045,6 @@ "indexName": "project-index-v1", "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } - ], "chartType": "line", "isCumulative": false, @@ -21239,19 +21052,30 @@ "drillChart": "rdPopulationChartDistrictPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "district"}], + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "district" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdPopulationChartDistrict": { @@ -21275,8 +21099,12 @@ "aggregationPaths": [ "Total Population Covered" ], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, "_comment": " " }, "rdPopulationChartDistrictPercent": { @@ -21297,7 +21125,6 @@ "indexName": "project-index-v1", "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.administrativeProvince.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } - ], "chartType": "line", "isCumulative": false, @@ -21305,19 +21132,30 @@ "drillChart": "rdPopulationChartApPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "administrativeProvince"}], + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdPopulationChartAP": { @@ -21341,8 +21179,12 @@ "aggregationPaths": [ "Total Population Covered" ], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, "rdPopulationChartApPercent": { @@ -21363,7 +21205,6 @@ "indexName": "project-index-v1", "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } - ], "chartType": "line", "isCumulative": false, @@ -21371,19 +21212,30 @@ "drillChart": "rdPopulationChartLocalityPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "locality"}], + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "locality" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdPopulationChartLocality": { @@ -21407,7 +21259,7 @@ "aggregationPaths": [ "Total Population Covered" ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdPopulationChartLocalityPercent": { @@ -21428,7 +21280,6 @@ "indexName": "project-index-v1", "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Population Targeted\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"TPD\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.targetPerDay'].value * 365\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } - ], "chartType": "line", "isCumulative": false, @@ -21436,18 +21287,25 @@ "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Population Covered","Population Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Percentage of Population Covered", + "Population Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "TPD" ], - "newField" : "Percentage Covered", + "fields": [ + "TPD" + ], + "newField": "Percentage Covered", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartProvince": { @@ -21470,8 +21328,12 @@ "aggregationPaths": [ "Number of households visited" ], - "filterKeys": [{"key": "district"}], - "insight": { }, + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartProvincePercent": { @@ -21498,19 +21360,30 @@ "drillChart": "rdHouseholdsCoveredChartDistrictPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "district"}], + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "district" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households for daterange", + "fields": [ + "Target for daterange" + ], + "newField": "Households for daterange", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartDistrict": { @@ -21534,8 +21407,12 @@ "aggregationPaths": [ "Number of households visited" ], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartDistrictPercent": { @@ -21563,19 +21440,30 @@ "drillChart": "rdHouseholdsCoveredChartApPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "administrativeProvince"}], + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households over daterange", + "fields": [ + "Target for daterange" + ], + "newField": "Households over daterange", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartAp": { @@ -21599,8 +21487,12 @@ "aggregationPaths": [ "Number of households visited" ], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartApPercent": { @@ -21628,22 +21520,33 @@ "drillChart": "rdHouseholdsCoveredChartLocalityPercent", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], - "filterKeys": [{"key": "locality"}], + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], + "filterKeys": [ + { + "key": "locality" + } + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households over daterange", + "fields": [ + "Target for daterange" + ], + "newField": "Households over daterange", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, - "rdHouseholdsCoveredChartLocality": { + "rdHouseholdsCoveredChartLocality": { "kind": "drillDown", "chartName": "DSS_HEALTH_R_D_HOUSEHOLDS_COVERED_LOCALITY", "queries": [ @@ -21664,7 +21567,7 @@ "aggregationPaths": [ "Number of households visited" ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdHouseholdsCoveredChartLocalityPercent": { @@ -21692,18 +21595,25 @@ "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Percentage of Households Visited","Households Targeted"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Percentage of Households Visited", + "Households Targeted" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", - "fields" : [ "Target for daterange" ], - "newField" : "Households over daterange", + "fields": [ + "Target for daterange" + ], + "newField": "Households over daterange", "_comments": "fields are field names picked from its aggregation query to use post aggregation newField value with given new field name " } ], - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationProvince": { @@ -21727,24 +21637,34 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "rdUncoveredPopulationDistrict", "documentType": "_doc", "targetLineChart": "rdUncoveredPopulationTargetLineProvince", "computeMultiPaths": true, - "filterKeys": [{"key": "district"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], + "filterKeys": [ + { + "key": "district" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationTargetLineProvince": { @@ -21768,23 +21688,28 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } - ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "none", "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "documentType": "_doc", "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationDistrict": { @@ -21809,24 +21734,34 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "rdUncoveredPopulationAP", "documentType": "_doc", "targetLineChart": "rdUncoveredPopulationTargetLineDistrict", "computeMultiPaths": true, - "filterKeys": [{"key": "administrativeProvince"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationTargetLineDistrict": { @@ -21850,23 +21785,28 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } - ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "none", "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "documentType": "_doc", "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationAP": { @@ -21891,24 +21831,34 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "rdUncoveredPopulationLocality", "documentType": "_doc", "targetLineChart": "rdUncoveredPopulationTargetLineAP", "computeMultiPaths": true, - "filterKeys": [{"key": "locality"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], + "filterKeys": [ + { + "key": "locality" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationTargetLineAP": { @@ -21932,23 +21882,28 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } - ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "none", "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "documentType": "_doc", "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationLocality": { @@ -21973,24 +21928,34 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "none", "documentType": "_doc", "targetLineChart": "rdUncoveredPopulationTargetLineLocality", "computeMultiPaths": true, - "filterKeys": [{"key": "village"}], - "aggregationPaths": ["Overall Population target","Total Population covered"], + "filterKeys": [ + { + "key": "village" + } + ], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "rdUncoveredPopulationTargetLineLocality": { @@ -22014,23 +21979,28 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Population target","Total Population covered"], - "newField" : "Uncovered Population", + "fields": [ + "Overall Population target", + "Total Population covered" + ], + "newField": "Uncovered Population", "_comments": "" } - ], "isCumulative": false, - "isCappedTillToday":true, + "isCappedTillToday": true, "valueType": "number", "drillChart": "none", "computeMultiPaths": true, - "aggregationPaths": ["Overall Population target","Total Population covered"], + "aggregationPaths": [ + "Overall Population target", + "Total Population covered" + ], "documentType": "_doc", "action": "", - "insight": { }, + "insight": {}, "_comment": " " }, "daysInventoryStockLastsProvince": { @@ -22057,8 +22027,11 @@ "drillChart": "none", "documentType": "_doc", "action": "division", - "aggregationPaths": ["No. of Days Stock Can Last", "Target Per Day"], - "insight": { }, + "aggregationPaths": [ + "No. of Days Stock Can Last", + "Target Per Day" + ], + "insight": {}, "_comment": " " }, "daysInventoryStockLastsDistrict": { @@ -22085,11 +22058,14 @@ "drillChart": "none", "documentType": "_doc", "action": "division", - "aggregationPaths": ["No. of Days Stock Can Last", "Target Per Day"], - "insight": { }, + "aggregationPaths": [ + "No. of Days Stock Can Last", + "Target Per Day" + ], + "insight": {}, "_comment": " " }, - "householdsCoverageBarchartByDistrict":{ + "householdsCoverageBarchartByDistrict": { "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_DISTRICT", "queries": [ { @@ -22113,23 +22089,34 @@ "drillChart": "householdsCoverageBarchartByAP", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", "sort": "sortValueAsc", - "fields" : ["Target"], - "newField" : "Coverage", + "fields": [ + "Target" + ], + "newField": "Coverage", "_comments": "" } ], - "filterKeys": [{"key": "district"}], - "insight": { }, + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, "_comment": " " }, - "householdsCoverageBarchartByAP":{ + "householdsCoverageBarchartByAP": { "kind": "drillDown", "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_AP", "queries": [ @@ -22154,23 +22141,34 @@ "drillChart": "householdsCoverageBarchartByLocality", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", "sort": "sortValueAsc", - "fields" : ["Target"], - "newField" : "Coverage", + "fields": [ + "Target" + ], + "newField": "Coverage", "_comments": "" } ], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, "_comment": " " }, - "householdsCoverageBarchartByLocality":{ + "householdsCoverageBarchartByLocality": { "kind": "drillDown", "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_LOCALITY", "queries": [ @@ -22195,23 +22193,34 @@ "drillChart": "householdsCoverageBarchartByVillage", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", "sort": "sortValueAsc", - "fields" : ["Target"], - "newField" : "Coverage", + "fields": [ + "Target" + ], + "newField": "Coverage", "_comments": "" } ], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, - "householdsCoverageBarchartByVillage":{ + "householdsCoverageBarchartByVillage": { "kind": "drillDown", "chartName": "DSS_HEALTH_HOUSEHOLDS_COVERAGE_BAR_CHART_BY_VILLAGE", "queries": [ @@ -22236,19 +22245,26 @@ "drillChart": "none", "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Households Coverage","Households Target"], - "isCappedByCampaignPeriod": ["Overall Target"], + "aggregationPaths": [ + "Households Coverage", + "Households Target" + ], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "", "sort": "sortValueAsc", - "fields" : ["Target"], - "newField" : "Coverage", + "fields": [ + "Target" + ], + "newField": "Coverage", "_comments": "" } ], - "insight": { }, + "insight": {}, "_comment": " " }, "summaryByDistrict": { @@ -22340,83 +22356,119 @@ } ], "filterKeys": [ - {"key": "district", "column": "District"} + { + "key": "district", + "column": "District" + } ], "chartType": "xtable", "valueType": "number", - "drillChart": "summaryByAdministrativeProvince", "documentType": "_doc", "action": "", "plotLabel": "District", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], + "excludedColumns": [ + "Household Closed delivery count", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", + "fields": [ + "Total Households distributed", + "Overall Household target" + ], + "newField": "Target Achievement Household", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", + "fields": [ + "Total Population covered", + "Overall Population target" + ], + "newField": "Target Achievement Population", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", + "fields": [ + "Total Bednets distributed", + "Overall Bednets target" + ], + "newField": "Target Achievement Bednets", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", + "fields": [ + "Households distributed count" + ], + "newField": "Households distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", + "fields": [ + "Population covered count" + ], + "newField": "Population covered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", + "fields": [ + "Bednets distributed count" + ], + "newField": "Bednets distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", + "fields": [ + "Household Rejected delivery count" + ], + "newField": "Non Delivery HH Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", + "fields": [ + "Household Relocated delivery count" + ], + "newField": "Non Delivery HH Relocated", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "fields": [ + "Household Closed delivery count" + ], + "newField": "Non Delivery HH Closed", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "hideInsights": true, "hideHeaderDenomination": true, @@ -22512,7 +22564,10 @@ } ], "filterKeys": [ - {"key": "administrativeProvince", "column": "AdministrativeProvince"} + { + "key": "administrativeProvince", + "column": "AdministrativeProvince" + } ], "chartType": "xtable", "valueType": "number", @@ -22520,75 +22575,108 @@ "documentType": "_doc", "action": "", "plotLabel": "AdministrativeProvince", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], - + "excludedColumns": [ + "Household Closed delivery count", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", + "fields": [ + "Total Households distributed", + "Overall Household target" + ], + "newField": "Target Achievement Household", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", + "fields": [ + "Total Population covered", + "Overall Population target" + ], + "newField": "Target Achievement Population", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", + "fields": [ + "Total Bednets distributed", + "Overall Bednets target" + ], + "newField": "Target Achievement Bednets", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", + "fields": [ + "Households distributed count" + ], + "newField": "Households distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", + "fields": [ + "Population covered count" + ], + "newField": "Population covered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", + "fields": [ + "Bednets distributed count" + ], + "newField": "Bednets distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", + "fields": [ + "Household Rejected delivery count" + ], + "newField": "Non Delivery HH Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", + "fields": [ + "Household Relocated delivery count" + ], + "newField": "Non Delivery HH Relocated", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "fields": [ + "Household Closed delivery count" + ], + "newField": "Non Delivery HH Closed", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "hideInsights": true, "hideHeaderDenomination": true, @@ -22684,7 +22772,10 @@ } ], "filterKeys": [ - {"key": "locality", "column": "Locality"} + { + "key": "locality", + "column": "Locality" + } ], "chartType": "xtable", "valueType": "number", @@ -22692,75 +22783,108 @@ "documentType": "_doc", "action": "", "plotLabel": "Locality", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], - + "excludedColumns": [ + "Household Closed delivery count", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", + "fields": [ + "Total Households distributed", + "Overall Household target" + ], + "newField": "Target Achievement Household", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", + "fields": [ + "Total Population covered", + "Overall Population target" + ], + "newField": "Target Achievement Population", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", + "fields": [ + "Total Bednets distributed", + "Overall Bednets target" + ], + "newField": "Target Achievement Bednets", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", + "fields": [ + "Households distributed count" + ], + "newField": "Households distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", + "fields": [ + "Population covered count" + ], + "newField": "Population covered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", + "fields": [ + "Bednets distributed count" + ], + "newField": "Bednets distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", + "fields": [ + "Household Rejected delivery count" + ], + "newField": "Non Delivery HH Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", + "fields": [ + "Household Relocated delivery count" + ], + "newField": "Non Delivery HH Relocated", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "fields": [ + "Household Closed delivery count" + ], + "newField": "Non Delivery HH Closed", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "hideInsights": true, "hideHeaderDenomination": true, @@ -22855,82 +22979,114 @@ "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }, \n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Household Closed delivery count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", "drillChart": "none", "documentType": "_doc", "action": "", "plotLabel": "Village", - "excludedColumns": ["Household Closed delivery count","Household Relocated delivery count","Household Rejected delivery count","Bednets distributed count","Population covered count","Households distributed count","Quantity","Total Households distributed","Overall Household target","Total Population covered","Overall Population target","Total Bednets distributed","Overall Bednets target"], - + "excludedColumns": [ + "Household Closed delivery count", + "Household Relocated delivery count", + "Household Rejected delivery count", + "Bednets distributed count", + "Population covered count", + "Households distributed count", + "Quantity", + "Total Households distributed", + "Overall Household target", + "Total Population covered", + "Overall Population target", + "Total Bednets distributed", + "Overall Bednets target" + ], "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households distributed","Overall Household target"], - "newField" : "Target Achievement Household", + "fields": [ + "Total Households distributed", + "Overall Household target" + ], + "newField": "Target Achievement Household", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population covered","Overall Population target"], - "newField" : "Target Achievement Population", + "fields": [ + "Total Population covered", + "Overall Population target" + ], + "newField": "Target Achievement Population", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Bednets distributed","Overall Bednets target"], - "newField" : "Target Achievement Bednets", + "fields": [ + "Total Bednets distributed", + "Overall Bednets target" + ], + "newField": "Target Achievement Bednets", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Households distributed count"], - "newField" : "Households distributed", + "fields": [ + "Households distributed count" + ], + "newField": "Households distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Population covered count"], - "newField" : "Population covered", + "fields": [ + "Population covered count" + ], + "newField": "Population covered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Bednets distributed count"], - "newField" : "Bednets distributed", + "fields": [ + "Bednets distributed count" + ], + "newField": "Bednets distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected delivery count"], - "newField" : "Non Delivery HH Rejected", + "fields": [ + "Household Rejected delivery count" + ], + "newField": "Non Delivery HH Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated delivery count"], - "newField" : "Non Delivery HH Relocated", + "fields": [ + "Household Relocated delivery count" + ], + "newField": "Non Delivery HH Relocated", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed delivery count"], - "newField" : "Non Delivery HH Closed", + "fields": [ + "Household Closed delivery count" + ], + "newField": "Non Delivery HH Closed", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "hideInsights": true, "hideHeaderDenomination": true, @@ -22987,7 +23143,6 @@ "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Rejected Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, { "module": "COMMON", @@ -23004,88 +23159,128 @@ "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Closed Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", "drillChart": "none", "documentType": "_doc", "action": "division", "plotLabel": "Daily Count", - "excludedColumns": ["S.N.","Daily Population Target","Total Households Visited","Households","Quantity","Total Population Covered","bednets total","Total Bednets Distributed","Daily Household Target","Daily Bednets Target","Household Rejected Delivery Count","Household Closed Delivery Count","Household Relocated Delivery Count"], - "divisorFields": ["Daily Household Target","Daily Population Target","Daily Bednets Target"], + "excludedColumns": [ + "S.N.", + "Daily Population Target", + "Total Households Visited", + "Households", + "Quantity", + "Total Population Covered", + "bednets total", + "Total Bednets Distributed", + "Daily Household Target", + "Daily Bednets Target", + "Household Rejected Delivery Count", + "Household Closed Delivery Count", + "Household Relocated Delivery Count" + ], + "divisorFields": [ + "Daily Household Target", + "Daily Population Target", + "Daily Bednets Target" + ], "filterKeys": [ - {"key": "Daily Count", "column": "Daily Count"} + { + "key": "Daily Count", + "column": "Daily Count" + } ], "showFooter": true, "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households Visited","Daily Household Target"], - "newField" : "Target Achievement Household", + "fields": [ + "Total Households Visited", + "Daily Household Target" + ], + "newField": "Target Achievement Household", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population Covered","Daily Population Target"], - "newField" : "Target Achievement Population", + "fields": [ + "Total Population Covered", + "Daily Population Target" + ], + "newField": "Target Achievement Population", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Bednets Distributed","Daily Bednets Target"], - "newField" : "Target Achievement Bednets", + "fields": [ + "Total Bednets Distributed", + "Daily Bednets Target" + ], + "newField": "Target Achievement Bednets", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Total Households Visited"], - "newField" : "Households distributed", + "fields": [ + "Total Households Visited" + ], + "newField": "Households distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Total Population Covered"], - "newField" : "Population covered", + "fields": [ + "Total Population Covered" + ], + "newField": "Population covered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Total Bednets Distributed"], - "newField" : "Bednets distributed", + "fields": [ + "Total Bednets Distributed" + ], + "newField": "Bednets distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected Delivery Count"], - "newField" : "Non Delivery HH Rejected", + "fields": [ + "Household Rejected Delivery Count" + ], + "newField": "Non Delivery HH Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated Delivery Count"], - "newField" : "Non Delivery HH Relocated", + "fields": [ + "Household Relocated Delivery Count" + ], + "newField": "Non Delivery HH Relocated", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed Delivery Count"], - "newField" : "Non Delivery HH Closed", + "fields": [ + "Household Closed Delivery Count" + ], + "newField": "Non Delivery HH Closed", "_comments": "" } ], - "insight": { - }, + "insight": {}, "_comment": " " }, "summaryByAdministrativeProvinceDay": { @@ -23139,7 +23334,6 @@ "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\"}", "indexName": "project-task-index-v1", "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Beneficiary Refused\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Rejected Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, { "module": "COMMON", @@ -23156,88 +23350,127 @@ "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"term\": {\n \"Data.quantity\": 0\n }\n },\n {\n \"term\": {\n \"Data.deliveryComments.keyword\": \"Insufficient Resources\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"household count\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"format\": \"dd MMM yyyy\",\n \"min_doc_count\": 1\n },\n \"aggs\": {\n \"Household Closed Delivery Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", "drillChart": "none", "documentType": "_doc", "action": "division", "plotLabel": "Daily Count", - "excludedColumns": ["S.N.","Daily Population Target","Total Households Visited","Quantity","Total Population Covered","bednets total","Total Bednets Distributed","Daily Household Target","Daily Bednets Target","Household Rejected Delivery Count","Household Closed Delivery Count","Household Relocated Delivery Count"], - "divisorFields": ["Daily Household Target","Daily Population Target","Daily Bednets Target"], + "excludedColumns": [ + "S.N.", + "Daily Population Target", + "Total Households Visited", + "Quantity", + "Total Population Covered", + "bednets total", + "Total Bednets Distributed", + "Daily Household Target", + "Daily Bednets Target", + "Household Rejected Delivery Count", + "Household Closed Delivery Count", + "Household Relocated Delivery Count" + ], + "divisorFields": [ + "Daily Household Target", + "Daily Population Target", + "Daily Bednets Target" + ], "filterKeys": [ - {"key": "Daily Count", "column": "Daily Count"} + { + "key": "Daily Count", + "column": "Daily Count" + } ], "showFooter": true, "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households Visited","Daily Household Target"], - "newField" : "Target Achievement Household", + "fields": [ + "Total Households Visited", + "Daily Household Target" + ], + "newField": "Target Achievement Household", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population Covered","Daily Population Target"], - "newField" : "Target Achievement Population", + "fields": [ + "Total Population Covered", + "Daily Population Target" + ], + "newField": "Target Achievement Population", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Bednets Distributed","Daily Bednets Target"], - "newField" : "Target Achievement Bednets", + "fields": [ + "Total Bednets Distributed", + "Daily Bednets Target" + ], + "newField": "Target Achievement Bednets", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Total Households Visited"], - "newField" : "Households distributed", + "fields": [ + "Total Households Visited" + ], + "newField": "Households distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Total Population Covered"], - "newField" : "Population covered", + "fields": [ + "Total Population Covered" + ], + "newField": "Population covered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Total Bednets Distributed"], - "newField" : "Bednets distributed", + "fields": [ + "Total Bednets Distributed" + ], + "newField": "Bednets distributed", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Rejected Delivery Count"], - "newField" : "Non Delivery HH Rejected", + "fields": [ + "Household Rejected Delivery Count" + ], + "newField": "Non Delivery HH Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Relocated Delivery Count"], - "newField" : "Non Delivery HH Relocated", + "fields": [ + "Household Relocated Delivery Count" + ], + "newField": "Non Delivery HH Relocated", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Household Closed Delivery Count"], - "newField" : "Non Delivery HH Closed", + "fields": [ + "Household Closed Delivery Count" + ], + "newField": "Non Delivery HH Closed", "_comments": "" } ], - "insight": { - }, + "insight": {}, "_comment": " " }, "actualVsPlannedHouseholdLineGraphProvince": { @@ -23264,11 +23497,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "predictionPath" : "Household Target", + "predictionPath": "Household Target", "aggregationPaths": [ - "Household Target","Household Distribution" + "Household Target", + "Household Distribution" ], - "insight": { }, + "insight": {}, "_comment": " " }, "actualVsPlannedBednetsLineGraphProvince": { @@ -23295,11 +23529,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "predictionPath" : "Bednets Target", + "predictionPath": "Bednets Target", "aggregationPaths": [ - "Bednets Target","Bednets Distribution" + "Bednets Target", + "Bednets Distribution" ], - "insight": { }, + "insight": {}, "_comment": " " }, "actualVsPlannedPopulationLineGraphProvince": { @@ -23326,11 +23561,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "predictionPath" : "Population Target", + "predictionPath": "Population Target", "aggregationPaths": [ - "Population Target","Population Distribution" + "Population Target", + "Population Distribution" ], - "insight": { }, + "insight": {}, "_comment": " " }, "actualVsPlannedHouseholdLineGraphDistrict": { @@ -23357,11 +23593,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "predictionPath" : "Household Target", + "predictionPath": "Household Target", "aggregationPaths": [ - "Household Target","Household Distribution" + "Household Target", + "Household Distribution" ], - "insight": { }, + "insight": {}, "_comment": " " }, "actualVsPlannedBednetsLineGraphDistrict": { @@ -23388,11 +23625,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "predictionPath" : "Bednets Target", + "predictionPath": "Bednets Target", "aggregationPaths": [ - "Bednets Target","Bednets Distribution" + "Bednets Target", + "Bednets Distribution" ], - "insight": { }, + "insight": {}, "_comment": " " }, "actualVsPlannedPopulationLineGraphDistrict": { @@ -23419,11 +23657,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "predictionPath" : "Population Target", + "predictionPath": "Population Target", "aggregationPaths": [ - "Population Target","Population Distribution" + "Population Target", + "Population Distribution" ], - "insight": { }, + "insight": {}, "_comment": " " }, "inventoryStockInHandProvince": { @@ -23454,13 +23693,15 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Target","Distributions by district"], - "newField" : "Required Stock", + "fields": [ + "Overall Target", + "Distributions by district" + ], + "newField": "Required Stock", "_comments": "" } - ], "isCumulative": false, "valueType": "number", @@ -23469,8 +23710,12 @@ "documentType": "_doc", "action": "", "computeMultiPaths": true, - "aggregationPaths": ["Available Stock","Overall Target","Distributions by district"], - "insight": { }, + "aggregationPaths": [ + "Available Stock", + "Overall Target", + "Distributions by district" + ], + "insight": {}, "_comment": " " }, "inventoryStockInHandDistrict": { @@ -23501,13 +23746,15 @@ "chartType": "line", "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "SumComputedField", - "fields" : ["Overall Target","Distributions by APs"], - "newField" : "Required Stock", + "fields": [ + "Overall Target", + "Distributions by APs" + ], + "newField": "Required Stock", "_comments": "" } - ], "isCumulative": false, "valueType": "number", @@ -23516,8 +23763,12 @@ "documentType": "_doc", "action": "", "computeMultiPaths": true, - "aggregationPaths": ["Available Stock","Overall Target","Distributions by APs"], - "insight": { }, + "aggregationPaths": [ + "Available Stock", + "Overall Target", + "Distributions by APs" + ], + "insight": {}, "_comment": " " }, "householdsCoverageHeatMap": { @@ -23561,8 +23812,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, "_comment": " " @@ -23592,17 +23842,21 @@ "documentType": "_doc", "action": "", "plotLabel": "Districts", - "isCappedByCampaignPeriod": ["Overall Target"], + "isCappedByCampaignPeriod": [ + "Overall Target" + ], "excludedColumns": [ "S.N.", "Target for daterange" ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for daterange" ], - "newField" : "Household Target", + "fields": [ + "Target for daterange" + ], + "newField": "Household Target", "_comments": "" }, { @@ -23616,8 +23870,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": false, "hideHeaderDenomination": true, "_comment": " " @@ -23661,34 +23914,43 @@ "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\":{\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"INDIVIDUAL\"\n }\n },\n {\n \"exists\": {\n \"field\":\"Data.province.keyword\"\n }\n }\n \n ],\n \"must_not\":[\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Population Target\": {\n \"terms\": {\n \"field\": \"Data.province.keyword\"\n },\n \"aggs\": {\n \"Overall Population Target\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", "drillChart": "none", "documentType": "_doc", "action": "", "plotLabel": "Provinces", - "excludedColumns": ["Overall Population Target","Overall Household Target","Quantity","Total Population Covered"], + "excludedColumns": [ + "Overall Population Target", + "Overall Household Target", + "Quantity", + "Total Population Covered" + ], "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Households Visited Cumulative","Overall Household Target"], - "newField" : "Household Coverage", + "fields": [ + "Total Households Visited Cumulative", + "Overall Household Target" + ], + "newField": "Household Coverage", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : ["Total Population Covered","Overall Population Target"], - "newField" : "Population Coverage", + "fields": [ + "Total Population Covered", + "Overall Population Target" + ], + "newField": "Population Coverage", "_comments": "" } ], - "insight": { - }, + "insight": {}, "_comment": " " }, "populationCoverageHeatMap": { @@ -23732,8 +23994,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, "_comment": " " @@ -23769,10 +24030,12 @@ ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for daterange" ], - "newField" : "Population Target", + "fields": [ + "Target for daterange" + ], + "newField": "Population Target", "_comments": "" }, { @@ -23786,8 +24049,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": false, "hideHeaderDenomination": true, "_comment": " " @@ -23807,7 +24069,11 @@ "valueType": "number", "showLabel": true, "drillChart": "complaintsByTypeDrilldown", - "filterKeys": [{"key": "applicationStatus"}], + "filterKeys": [ + { + "key": "applicationStatus" + } + ], "documentType": "_doc", "action": "", "aggregationPaths": [ @@ -23857,7 +24123,11 @@ "valueType": "number", "showLabel": true, "drillChart": "complaintsByAPTotal", - "filterKeys": [{"key": "district"}], + "filterKeys": [ + { + "key": "district" + } + ], "documentType": "_doc", "action": "", "aggregationPaths": [ @@ -23881,8 +24151,11 @@ "valueType": "number", "showLabel": true, "drillChart": "totalComplaintsRegisteredByStatusDrilldown", - "filterKeys": [{"key": "serviceCode"}], - + "filterKeys": [ + { + "key": "serviceCode" + } + ], "documentType": "_doc", "action": "", "aggregationPaths": [ @@ -23932,7 +24205,11 @@ "valueType": "number", "showLabel": true, "drillChart": "complaintsByLocalityTotal", - "filterKeys": [{"key": "administrativeProvince"}], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "documentType": "_doc", "action": "", "aggregationPaths": [ @@ -23958,7 +24235,11 @@ "valueType": "number", "showLabel": true, "drillChart": "complaintsByVillageTotal", - "filterKeys": [{"key": "locality"}], + "filterKeys": [ + { + "key": "locality" + } + ], "documentType": "_doc", "action": "", "aggregationPaths": [ @@ -24008,11 +24289,19 @@ "valueType": "number", "plotLabel": "none", "drillChart": "complaintsByStatusBreakdownDistrict", - "filterKeys": [{"key": "district"}], + "filterKeys": [ + { + "key": "district" + } + ], "documentType": "_doc", "action": "", - "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], - "insight": { }, + "aggregationPaths": [ + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" + ], + "insight": {}, "_comment": " " }, "complaintsByStatusBreakdownDistrict": { @@ -24031,11 +24320,19 @@ "valueType": "number", "plotLabel": "none", "drillChart": "complaintsByStatusBreakdownAP", - "filterKeys": [{"key": "administrativeProvince"}], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], "documentType": "_doc", "action": "", - "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], - "insight": { }, + "aggregationPaths": [ + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" + ], + "insight": {}, "_comment": " " }, "complaintsByStatusBreakdownAP": { @@ -24055,11 +24352,19 @@ "valueType": "number", "plotLabel": "none", "drillChart": "complaintsByStatusBreakdownLocality", - "filterKeys": [{"key": "locality"}], + "filterKeys": [ + { + "key": "locality" + } + ], "documentType": "_doc", "action": "", - "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], - "insight": { }, + "aggregationPaths": [ + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" + ], + "insight": {}, "_comment": " " }, "complaintsByStatusBreakdownLocality": { @@ -24080,8 +24385,12 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": ["PENDING_ASSIGNMENT","RESOLVED","REJECTED"], - "insight": { }, + "aggregationPaths": [ + "PENDING_ASSIGNMENT", + "RESOLVED", + "REJECTED" + ], + "insight": {}, "_comment": " " }, "complaintsByStatusSummaryProvince": { @@ -24096,7 +24405,10 @@ } ], "filterKeys": [ - {"key": "district", "column": "Districts"} + { + "key": "district", + "column": "Districts" + } ], "chartType": "xtable", "valueType": "number", @@ -24104,42 +24416,55 @@ "documentType": "_doc", "action": "", "plotLabel": "Districts", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], "hideInsights": true, "showFooter": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "_comment": " " }, @@ -24156,7 +24481,10 @@ } ], "filterKeys": [ - {"key": "administrativeProvince", "column": "APs"} + { + "key": "administrativeProvince", + "column": "APs" + } ], "chartType": "xtable", "valueType": "number", @@ -24165,41 +24493,54 @@ "action": "", "showFooter": true, "plotLabel": "APs", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "_comment": " " }, @@ -24216,7 +24557,10 @@ } ], "filterKeys": [ - {"key": "locality", "column": "Locality"} + { + "key": "locality", + "column": "Locality" + } ], "chartType": "xtable", "valueType": "number", @@ -24225,41 +24569,54 @@ "action": "", "showFooter": true, "plotLabel": "Locality", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "_comment": " " }, @@ -24275,7 +24632,6 @@ "aggrQuery": "{\n \"aggs\": {\n \"Open filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected filter by Village\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "xtable", "valueType": "number", "drillChart": "none", @@ -24283,45 +24639,58 @@ "action": "", "showFooter": true, "plotLabel": "Village", - "excludedColumns": ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "excludedColumns": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], "hideInsights": true, "hideHeaderDenomination": true, "computedFields": [ { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "_comment": " " }, - "averageResolutionTimeProvince":{ + "averageResolutionTimeProvince": { "chartName": "DSS_HEALTH_COMPLAINTS_AVVERAGE_RESOLUTION_TIME_PROVINCE", "queries": [ { @@ -24338,12 +24707,18 @@ "drillChart": "averageResolutionTimeDistrict", "documentType": "_doc", "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "district"}], - "insight": { }, + "aggregationPaths": [ + "Resolution time in hours" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, "_comment": " " }, - "averageResolutionTimeDistrict":{ + "averageResolutionTimeDistrict": { "kind": "drillDown", "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_DISTRICT", "queries": [ @@ -24361,12 +24736,18 @@ "drillChart": "averageResolutionTimeAP", "documentType": "_doc", "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "aggregationPaths": [ + "Resolution time in hours" + ], + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "insight": {}, "_comment": " " }, - "averageResolutionTimeAP":{ + "averageResolutionTimeAP": { "kind": "drillDown", "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_AP", "queries": [ @@ -24384,12 +24765,18 @@ "drillChart": "averageResolutionTimeLocality", "documentType": "_doc", "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "aggregationPaths": [ + "Resolution time in hours" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, - "averageResolutionTimeLocality":{ + "averageResolutionTimeLocality": { "kind": "drillDown", "chartName": "DSS_HEALTH_COMPLAINTS_AVERAGE_RESOLUTION_TIME_LOCALITY", "queries": [ @@ -24407,9 +24794,15 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "aggregationPaths": ["Resolution time in hours"], - "filterKeys": [{"key": "village"}], - "insight": { }, + "aggregationPaths": [ + "Resolution time in hours" + ], + "filterKeys": [ + { + "key": "village" + } + ], + "insight": {}, "_comment": " " }, "bednetsCoverageHeatMapProvince": { @@ -24443,10 +24836,12 @@ ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for daterange" ], - "newField" : "Bednets Target", + "fields": [ + "Target for daterange" + ], + "newField": "Bednets Target", "_comments": "" }, { @@ -24460,8 +24855,7 @@ "_comments": "" } ], - "insight": { - }, + "insight": {}, "hideInsights": true, "hideHeaderDenomination": true, "_comment": " " @@ -24505,52 +24899,73 @@ "action": "", "plotLabel": "Inventory summary By District", "filterKeys": [ - {"key": "Data.district.keyword", "column": "Inventory summary By District"} + { + "key": "Data.district.keyword", + "column": "Inventory summary By District" + } ], "divisorFields": [], "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "_comment": " " }, @@ -24594,86 +25009,216 @@ "action": "", "plotLabel": "Inventory summary By AP", "filterKeys": [ - {"key": "Data.administrativeProvince.keyword", "column": "Inventory summary By AP"} + { + "key": "Data.administrativeProvince.keyword", + "column": "Inventory summary By AP" + } ], "divisorFields": [], "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", "_comments": "" } ], - "insight": { - }, + "insight": {}, "sort": "sortKeyAsc", "_comment": " " }, - "InventorySummaryByLocality": { + "InventorySummaryByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.eventTimeStamp", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "plotLabel": "Inventory summary By Locality", + "filterKeys": [ + { + "key": "Data.locality.keyword", + "column": "Inventory summary By Locality" + } + ], + "divisorFields": [], + "showFooter": false, + "hideInsights": true, + "hideHeaderDenomination": true, + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], + "computedFields": [ + { + "postAggregationTheory": "repsonseToDifferenceOfDates", + "actionName": "AdditiveComputedField", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "PercentageComputedField", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", + "_comments": "" + } + ], + "insight": {}, + "_comment": " " + }, + "InventorySummaryByVillage": { "kind": "drillDown", - "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_LOCALITY", + "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_VILLAGE", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.locality.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.locality.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "xtable", @@ -24681,87 +25226,205 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Inventory summary By Locality", + "plotLabel": "Inventory summary By Village", "filterKeys": [ - {"key": "Data.locality.keyword", "column": "Inventory summary By Locality"} + { + "key": "village", + "column": "Inventory summary By Village" + } ], "divisorFields": [], "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], + "excludedColumns": [ + "SUM", + "Target for range", + "Target per day", + "Target for days to last", + "Incoming", + "Outgoing", + "Total Stock" + ], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "repsonseToDifferenceOfDates", "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", + "fields": [ + "Target for range" + ], + "newField": "Nets Target", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "fields": [ + "Incoming" + ], + "newField": "Incoming Stock", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "fields": [ + "Outgoing" + ], + "newField": "Outgoing Stock", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", + "fields": [ + "Total Stock" + ], + "newField": "Stock Left", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", + "fields": [ + "Total Stock", + "Target for days to last" + ], + "newField": "Days To Last", "_comments": "" } ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "InventorySummaryByVillage": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_INVENTORY_SUMMARY_BY_VILLAGE", + "complaintsByTypeBreakdownProvincial": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_PROVINCIAL", "queries": [ { "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Product Target\": {\n \"terms\": {\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\"\n },\n \"aggs\": {\n \"Target per day\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n },\n \"Target for range\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*365\"\n }\n },\n \"Target for days to last\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"target\": \"Target per day\"\n },\n \"script\": \"(params.target)*100\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownDistrict", + "filterKeys": [ + { + "key": "district" + } + ], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "SyncNotWorking", + "NotEnoughStock", + "Other" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByTypeBreakdownDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_DISTRICT", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownAP", + "filterKeys": [ + { + "key": "administrativeProvince" + } + ], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "SyncNotWorking", + "NotEnoughStock", + "Other" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByTypeBreakdownAP": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_AP", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.eventTimeStamp", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Outgoing\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "complaintsByTypeBreakdownLocality", + "filterKeys": [ + { + "key": "locality" + } + ], + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "SyncNotWorking", + "NotEnoughStock", + "Other" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByTypeBreakdownLocality": { + "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_LOCALITY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "aggregationPaths": [ + "SyncNotWorking", + "NotEnoughStock", + "Other" + ], + "insight": {}, + "_comment": " " + }, + "complaintsByStatusSummaryDay": { + "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DAY", + "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\",\"district\":\"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\",\"locality\":\"Data.locality.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.village.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Available Stock\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.village.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], "chartType": "xtable", @@ -24769,312 +25432,487 @@ "drillChart": "none", "documentType": "_doc", "action": "", - "plotLabel": "Inventory summary By Village", - "filterKeys": [ - {"key": "village", "column": "Inventory summary By Village"} + "showFooter": true, + "plotLabel": "Summary Daywise", + "excludedColumns": [ + "S.N.", + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" ], - "divisorFields": [], - "showFooter": false, "hideInsights": true, "hideHeaderDenomination": true, - "excludedColumns": ["SUM","Target for range","Target per day","Target for days to last","Incoming","Outgoing","Total Stock"], "computedFields": [ { - "postAggregationTheory" : "repsonseToDifferenceOfDates", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Target for range" ], - "newField" : "Nets Target", + "fields": [ + "Resolved Complaints Count", + "Rejected Complaints Count", + "Open Complaints Count" + ], + "newField": "Registered", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Incoming" ], - "newField" : "Incoming Stock", + "fields": [ + "Resolved Complaints Count" + ], + "newField": "Resolved", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Outgoing" ], - "newField" : "Outgoing Stock", + "fields": [ + "Rejected Complaints Count" + ], + "newField": "Rejected", "_comments": "" }, { - "postAggregationTheory" : "", + "postAggregationTheory": "", "actionName": "AdditiveComputedField", - "fields" : [ "Total Stock" ], - "newField" : "Stock Left", + "fields": [ + "Open Complaints Count" + ], + "newField": "Open", "_comments": "" + } + ], + "insight": {}, + "_comment": " " + }, + "ComplaintsShareByDistrict": { + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByAP", + "documentType": "_doc", + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" + ], + "filterKeys": [ + { + "key": "district" + } + ], + "insight": {}, + "_comment": " " + }, + "ComplaintsShareByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "queries": [ + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" }, { - "postAggregationTheory" : "", - "actionName": "PercentageComputedField", - "fields" : [ "Total Stock","Target for days to last" ], - "newField" : "Days To Last", - "_comments": "" + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "percentage", + "plotLabel": "none", + "drillChart": "ComplaintsShareByLocality", + "documentType": "_doc", + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" + ], + "filterKeys": [ + { + "key": "administrativeProvince" } ], - "insight": { - }, + "insight": {}, "_comment": " " }, - "complaintsByTypeBreakdownProvincial": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_PROVINCIAL", + "ComplaintsShareByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { "module": "COMMON", "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, - "valueType": "number", + "valueType": "percentage", "plotLabel": "none", - "drillChart": "complaintsByTypeBreakdownDistrict", - "filterKeys": [{"key": "district"}], + "drillChart": "ComplaintsShareByVillage", "documentType": "_doc", - "action": "", - "aggregationPaths": ["SyncNotWorking","NotEnoughStock","Other"], - "insight": { }, + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" + ], + "filterKeys": [ + { + "key": "locality" + } + ], + "insight": {}, "_comment": " " }, - "complaintsByTypeBreakdownDistrict": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_DISTRICT", + "ComplaintsShareByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", "queries": [ { "module": "COMMON", "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + }, + { + "module": "COMMON", + "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", + "indexName": "pgr-services", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, - "valueType": "number", + "valueType": "percentage", "plotLabel": "none", - "drillChart": "complaintsByTypeBreakdownAP", - "filterKeys": [{"key": "administrativeProvince"}], + "drillChart": "none", "documentType": "_doc", - "action": "", - "aggregationPaths": ["SyncNotWorking", "NotEnoughStock", "Other"], - "insight": { }, + "action": "divisionbyconstant", + "aggregationPaths": [ + "% of Total Complaints", + "Total Complaints" + ], + "insight": {}, "_comment": " " }, - "complaintsByTypeBreakdownAP": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_AP", + "openComplaintsSummaryByDistrict": { + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true, \n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n \n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "filterKeys": [ + { + "key": "district", + "column": "Open complaints District" + } + ], + "chartType": "xtable", "valueType": "number", - "plotLabel": "none", - "drillChart": "complaintsByTypeBreakdownLocality", - "filterKeys": [{"key": "locality"}], + "drillChart": "openComplaintsSummaryByAP", "documentType": "_doc", "action": "", - "aggregationPaths": ["SyncNotWorking", "NotEnoughStock", "Other"], - "insight": { }, + "showFooter": true, + "plotLabel": "Open complaints District", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": [ + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" + ], + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByTypeBreakdownLocality": { - "chartName": "DSS_HEALTH_COMPLAINTS_TYPE_BREAKDOWN_LOCALITY", + "openComplaintsSummaryByAP": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_AP", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\": \"Data.administrativeProvince.keyword\", \"locality\": \"Data.locality.keyword\", \"selectedStack\": \"Data.service.serviceCode.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"SyncNotWorking\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"SyncNotWorking\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Login Error\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"NotEnoughStock\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"NotEnoughStock\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"App Malfunction\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n },\n \"Other\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.serviceCode.keyword\": \"Other\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Stolen Device\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "chartType": "line", - "isCumulative": false, + "filterKeys": [ + { + "key": "administrativeProvince", + "column": "Open complaints AP" + } + ], + "chartType": "xtable", "valueType": "number", - "plotLabel": "none", - "drillChart": "none", + "drillChart": "openComplaintsSummaryByLocality", "documentType": "_doc", "action": "", - "aggregationPaths": ["SyncNotWorking", "NotEnoughStock", "Other"], - "insight": { }, + "showFooter": true, + "plotLabel": "Open complaints AP", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": [ + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" + ], + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "complaintsByStatusSummaryDay": { - "chartName": "DSS_HEALTH_COMPLAINTS_STATUS_SUMMARY_DAY", + "openComplaintsSummaryByLocality": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_LOCALITY", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Open Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Resolved\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"RESOLVED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Resolved Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Resolved Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n },\n \"Rejected\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"REJECTED\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Rejected Complaints\": {\n \"date_histogram\": {\n \"field\": \"Data.@timestamp\",\n \"interval\": \"day\",\n \"min_doc_count\": 1,\n \"format\": \"dd MMM yyyy\"\n },\n \"aggs\": {\n \"Rejected Complaints Count\": {\n \"value_count\": {\n \"field\": \"Data.service.auditDetails.lastModifiedTime\"\n }\n }\n }\n }\n }\n }\n }\n}" + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "filterKeys": [ + { + "key": "locality", + "column": "Open complaints Locality" } ], - "chartType": "xtable", "valueType": "number", - "drillChart": "none", + "drillChart": "openComplaintsSummaryByVillage", "documentType": "_doc", "action": "", "showFooter": true, - "plotLabel": "Summary Daywise", - "excludedColumns": ["S.N.","Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], + "plotLabel": "Open complaints Locality", + "excludedColumns": [], "hideInsights": true, "hideHeaderDenomination": true, - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count", "Rejected Complaints Count", "Open Complaints Count"], - "newField" : "Registered", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Resolved Complaints Count"], - "newField" : "Resolved", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Rejected Complaints Count"], - "newField" : "Rejected", - "_comments": "" - }, - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "fields" : ["Open Complaints Count"], - "newField" : "Open", - "_comments": "" - } + "aggregationPaths": [ + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" ], - "insight": { - }, + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", "_comment": " " }, - "ComplaintsShareByDistrict": { - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "openComplaintsSummaryByVillage": { + "kind": "drillDown", + "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_VILLAGE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "dateRefField": "", + "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\",\"locality\": \"Data.locality.keyword\"}", "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + } + ], + "chartType": "xtable", + "valueType": "number", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "showFooter": true, + "plotLabel": "Open complaints Village", + "excludedColumns": [], + "hideInsights": true, + "hideHeaderDenomination": true, + "aggregationPaths": [ + "open since 6h", + "open since 6h-12h", + "open since 12h-24h", + "open since 24h-48h", + "open for more than 48h" + ], + "computedFields": [], + "insight": {}, + "sort": "sortKeyAsc", + "_comment": " " + }, + "checklistCompletionRateOfNationalSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_NATIONAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], "chartType": "line", "isCumulative": false, - "valueType": "percentage", + "valueType": "number", "plotLabel": "none", - "drillChart": "ComplaintsShareByAP", + "drillChart": "none", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints","Total Complaints"], - "filterKeys": [{"key": "district"}], - "insight": { }, + "action": "", + "filterKeys": [], + "aggregationPaths": [ + "Checklist name" + ], + "insight": {}, "_comment": " " }, - "ComplaintsShareByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "checklistCompletionRateOfProvincialSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_PROVINCIAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" - }, + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + } + ], + "chartType": "line", + "isCumulative": false, + "valueType": "number", + "plotLabel": "none", + "drillChart": "none", + "documentType": "_doc", + "action": "", + "filterKeys": [], + "aggregationPaths": [ + "Checklist name" + ], + "insight": {}, + "_comment": " " + }, + "checklistCompletionRateOfDistrictSupervisor": { + "chartName": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", + "dateRefField": "Data.createdTime", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "indexName": "service-task-v1", + "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" } ], "chartType": "line", "isCumulative": false, - "valueType": "percentage", + "valueType": "number", "plotLabel": "none", - "drillChart": "ComplaintsShareByLocality", + "drillChart": "none", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints","Total Complaints"], - "filterKeys": [{"key": "administrativeProvince"}], - "insight": { }, + "action": "", + "filterKeys": [], + "aggregationPaths": [ + "Checklist name" + ], + "insight": {}, "_comment": " " }, - "ComplaintsShareByLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "userSyncRateByDistrict": { + "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_DISTRICT", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.locality.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", "isCumulative": false, "valueType": "percentage", "plotLabel": "none", - "drillChart": "ComplaintsShareByVillage", + "drillChart": "userSyncRateByAP", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints","Total Complaints"], - "filterKeys": [{"key": "locality"}], - "insight": { }, + "action": "percentage", + "filterKeys": [ + { + "key": "district" + } + ], + "aggregationPaths": [ + "Sync Rate Percentage", + "AGGS" + ], + "insight": {}, "_comment": " " }, - "ComplaintsShareByVillage": { + "userSyncRateByAP": { "kind": "drillDown", - "chartName": "DSS_HEALTH_COMPLAINTS_BY_BOUNDARY", + "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_AP", "queries": [ { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"PENDING_ASSIGNMENT\",\n \"RESOLVED\",\n \"REJECTED\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"% of Total Complaints\": {\n \"terms\": {\n \"order\": {\n \"_key\": \"asc\"\n },\n \"field\": \"Data.village.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Complaints Breakdown\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "Data.createdTime", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "user-sync-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" }, { "module": "COMMON", - "dateRefField": "Data.service.auditDetails.lastModifiedTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\",\"administrativeProvince\":\"Data.administrativeProvince.keyword\", \"locality\":\"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"terms\": {\n \"Data.service.applicationStatus.keyword\": [\n \"\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Complaints\": {\n \"value_count\": {\n \"field\": \"Data.service.id.keyword\"\n }\n }\n }\n }\n }\n}" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", + "indexName": "project-staff-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" } ], "chartType": "line", @@ -25083,549 +25921,723 @@ "plotLabel": "none", "drillChart": "none", "documentType": "_doc", - "action": "divisionbyconstant", - "aggregationPaths": ["% of Total Complaints","Total Complaints"], - "insight": { }, + "action": "percentage", + "aggregationPaths": [ + "Sync Rate Percentage", + "AGGS" + ], + "insight": {}, "_comment": " " }, - "openComplaintsSummaryByDistrict": { - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_DISTRICT", + "householdsVisitedLatLongPoints": { + "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true, \n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n \n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 10000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "district", "column": "Open complaints District"} - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "openComplaintsSummaryByAP", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints District", - "excludedColumns": [], - "hideInsights": true, + "plotLabel": "Households", + "excludedColumns": [ + "S.N.", + "LONGITUDE", + "LATITUDE", + "Household Covered Count" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "longitude", + "fields": [ + "LONGITUDE" + ], + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "latitude", + "fields": [ + "LATITUDE" + ], + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "Households", + "fields": [ + "Household Covered Count" + ], + "_comments": "" + } + ], + "insight": {}, + "hideInsights": false, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, - "sort": "sortKeyAsc", "_comment": " " }, - "openComplaintsSummaryByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_AP", + "warehouseDistributionLatLongPoints": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "administrativeProvince", "column": "Open complaints AP"} - ], + "filterKeys": [], "chartType": "xtable", "valueType": "number", - "drillChart": "openComplaintsSummaryByLocality", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints AP", - "excludedColumns": [], - "hideInsights": true, + "plotLabel": "Warehouse Name", + "excludedColumns": [ + "S.N.", + "LONGITUDE", + "LATITUDE" + ], + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "longitude", + "fields": [ + "LONGITUDE" + ], + "_comments": "" + }, + { + "postAggregationTheory": "", + "actionName": "AdditiveComputedField", + "newField": "latitude", + "fields": [ + "LATITUDE" + ], + "_comments": "" + } + ], + "insight": {}, + "hideInsights": false, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, - "sort": "sortKeyAsc", "_comment": " " }, - "openComplaintsSummaryByLocality": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_LOCALITY", + "warehouseDistributionLatLongTableDaysStockLastsDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.locality.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Will last for\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - "filterKeys": [ - {"key": "locality", "column": "Open complaints Locality"} - ], - "chartType": "xtable", + "filterKeys": [], + "chartType": "line", "valueType": "number", - "drillChart": "openComplaintsSummaryByVillage", + "drillChart": "", "documentType": "_doc", - "action": "", - "showFooter": true, - "plotLabel": "Open complaints Locality", - "excludedColumns": [], - "hideInsights": true, + "action": "division", + "plotLabel": "District", + "isCumulative": false, + "aggregationPaths": [ + "Will last for", + "Target Per Day" + ], + "insight": {}, + "hideInsights": false, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, - "sort": "sortKeyAsc", "_comment": " " }, - "openComplaintsSummaryByVillage": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_OPEN_COMPLAINTS_SUMMARY_BY_VILLAGE", + "warehouseDistributionLatLongTableAvlRcvdDispDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", "dateRefField": "", - "requestQueryMap": "{\"province\":\"Data.province.keyword\", \"district\":\"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\",\"locality\": \"Data.locality.keyword\"}", - "indexName": "pgr-services", - "aggrQuery": "{\n \"aggs\": {\n \"Open\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.service.applicationStatus.keyword\": \"PENDING_ASSIGNMENT\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Open complaints\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 500,\n \"order\": {\n \"_term\": \"asc\"\n }\n },\n \"aggs\": {\n \"Open Complaints count\": {\n \"date_range\": {\n \"field\": \"Data.@timestamp\",\n \"keyed\": true,\n \"ranges\": [\n {\n \"from\": \"now-6h\",\n \"to\": \"now\",\n \"key\": \"open since 6h\"\n },\n {\n \"from\": \"now-12h\",\n \"to\": \"now-6h\",\n \"key\": \"open since 6h-12h\"\n },\n {\n \"from\": \"now-24h\",\n \"to\": \"now-12h\",\n \"key\": \"open since 12h-24h\"\n },\n {\n \"from\": \"now-48h\",\n \"to\": \"now-24h\",\n \"key\": \"open since 24h-48h\"\n },\n {\n \"to\": \"now-48h\",\n \"key\": \"open for more than 48h\"\n }\n\n ]\n }\n }\n }\n }\n }\n }\n }\n}" + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], - - "chartType": "xtable", + "filterKeys": [], + "chartType": "line", "valueType": "number", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "showFooter": true, - "plotLabel": "Open complaints Village", - "excludedColumns": [], - "hideInsights": true, + "plotLabel": "District", + "isCumulative": false, + "aggregationPaths": [ + "Stock in Hand", + "Stock Received", + "Stock Dispatched" + ], + "insight": {}, + "hideInsights": false, "hideHeaderDenomination": true, - "aggregationPaths": ["open since 6h","open since 6h-12h","open since 12h-24h","open since 24h-48h","open for more than 48h"], - "computedFields": [], - "insight": { - }, - "sort": "sortKeyAsc", "_comment": " " }, - "checklistCompletionRateOfNationalSupervisor": { - "chartName": "DSS_HEALTH_SUPERVISION_NATIONAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "warehouseDistributionLatLongTableAvlRcvdDispFacilities": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "service-task-v1", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"NATIONAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, "valueType": "number", - "plotLabel": "none", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "filterKeys": [], - "aggregationPaths": ["Checklist name"], - "insight": { }, + "plotLabel": "Warehouse Name", + "isCumulative": false, + "aggregationPaths": [ + "Stock in Hand", + "Stock Received", + "Stock Dispatched" + ], + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "checklistCompletionRateOfProvincialSupervisor": { - "chartName": "DSS_HEALTH_SUPERVISION_PROVINCIAL_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "warehouseDistributionLatLongTableStockStatusDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "service-task-v1", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"PROVINCIAL_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Overall Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"ot\": \"SUM\"\n },\n \"script\": \"params.ot * (-1)\"\n }\n }\n }\n }\n }\n }\n }\n}" + }, + { + "module": "COMMON", + "dateRefField": "", + "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", + "indexName": "project-task-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity']\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, "valueType": "number", - "plotLabel": "none", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "filterKeys": [], - "aggregationPaths": ["Checklist name"], - "insight": { }, + "plotLabel": "District", + "isCumulative": false, + "computedFields": [ + { + "postAggregationTheory": "", + "actionName": "SumComputedField", + "fields": [ + "Stock in Hand", + "Overall Target", + "Distributions by district" + ], + "newField": "Status", + "_comments": "" + } + ], + "computeMultiPaths": true, + "aggregationPaths": [ + "Stock in Hand", + "Overall Target", + "Distributions by district" + ], + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "checklistCompletionRateOfDistrictSupervisor": { - "chartName": "DSS_HEALTH_SUPERVISION_DISTRICT_SUPERVISORS_CHECKLISTS_COMPLETION_RATE", + "warehouseDistributionLatLongTableWarNumDistrictWiseProvincialBoard": { + "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", "queries": [ { "module": "COMMON", - "dateRefField": "Data.createdTime", + "dateRefField": "", "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "service-task-v1", - "aggrQuery": "{\n\"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"terms\": {\n \"Data.supervisorLevel.keyword\": [\n \"DISTRICT_SUPERVISOR\"\n ]\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Checklist name\": {\n \"terms\": {\n \"field\": \"Data.checklistName.keyword\"\n },\n \"aggs\": {\n \"Checklist Count\": {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}\n" + "indexName": "stock-index-v1", + "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Warehouses\": {\n \"terms\": {\n \"size\": 50000,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"CARDINALITY\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.facilityName.keyword\"\n }, \n \"init_script\": \"state.list=[]\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" } ], + "filterKeys": [], "chartType": "line", - "isCumulative": false, "valueType": "number", - "plotLabel": "none", - "drillChart": "none", + "drillChart": "", "documentType": "_doc", "action": "", - "filterKeys": [], - "aggregationPaths": ["Checklist name"], - "insight": { }, + "plotLabel": "District", + "isCumulative": false, + "aggregationPaths": [ + "No. of Warehouses" + ], + "insight": {}, + "hideInsights": false, + "hideHeaderDenomination": true, "_comment": " " }, - "userSyncRateByDistrict": { - "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_DISTRICT", + "pqmSubmittedTestsPercentangeOutOfTotalTests": { + "chartName": "DSS_PQM_SUBMITTED_TESTS_PERCENTAGE_OUT_OF_TOTAL_TESTS", "queries": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "user-sync-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-staff-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"aggs\":{\"Total_Tests\":{\"value_count\":{\"field\":\"_id\"}},\"Submitted_Tests\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", "valueType": "percentage", - "plotLabel": "none", - "drillChart": "userSyncRateByAP", - "documentType": "_doc", "action": "percentage", - "filterKeys": [{"key": "district"}], - "aggregationPaths": ["Sync Rate Percentage","AGGS"], - "insight": { }, - "_comment": " " + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "Submitted_Tests", + "Total_Tests" + ], + "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " PQM Percentage of Submitted Tests out of Total Tests" }, - "userSyncRateByAP": { - "kind": "drillDown", - "chartName": "DSS_HEALTH_SUPERVISION_USER_SYNC_RATE_BY_AP", + "pqmPercentageOfTestResultsMeetingBenchmarks": { + "chartName": "DSS_PQM_PERCENTAGE_OF_TEST_RESULTS_MEETING_BENCHMARKS", "queries": [ { - "module": "COMMON", - "dateRefField": "Data.createdTime", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "user-sync-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Sync Rate Percentage\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Unique Users Synced\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.userId.keyword\"\n },\n \"init_script\": \"state.list = []\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\", \"administrativeProvince\": \"Data.administrativeProvince.keyword\"}", - "indexName": "project-staff-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGS\": {\n \"terms\": {\n \"field\": \"Data.administrativeProvince.keyword\",\n \"size\": 500\n },\n \"aggs\": {\n \"Total Users Created\": {\n \"value_count\": {\n \"field\": \"Data.userId.keyword\"\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"aggs\":{\"TOTAL_TESTS\":{\"value_count\":{\"field\":\"_id\"}},\"PASSED_TESTS\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], - "chartType": "line", - "isCumulative": false, + "chartType": "metric", "valueType": "percentage", - "plotLabel": "none", - "drillChart": "none", - "documentType": "_doc", "action": "percentage", - "aggregationPaths": ["Sync Rate Percentage","AGGS"], - "insight": { }, - "_comment": " " + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "PASSED_TESTS", + "TOTAL_TESTS" + ], + "insight": { + "chartResponseMap": "pqmPercentageOfTestResultsMeetingBenchmarks", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " PQM Percentage of Test Results Meeting Benchmarks" }, - "householdsVisitedLatLongPoints": { - "chartName": "DSS_HEALTH_RD_HH_VISITED_LATLONG", + "pqmTotalAlerts": { + "chartName": "DSS_PQM_TOTAL_ALERTS", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.village.keyword\",\n \"size\": 10000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Total Households\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"Household Covered Count\" : {\n \"value_count\": {\n \"field\": \"Data.id.keyword\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"TOTAL_ALERTS\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp" } ], - "filterKeys": [], - "chartType": "xtable", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "Households", - "excludedColumns": [ - "S.N.", - "LONGITUDE", "LATITUDE", "Household Covered Count" + "drillChart": "none", + "aggregationPaths": [ + "TOTAL_ALERTS" ], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "newField": "longitude", - "fields" : [ "LONGITUDE" ], - "_comments": "" - }, - { - "postAggregationTheory": "", - "actionName": "AdditiveComputedField", - "newField": "latitude", - "fields": ["LATITUDE"], - "_comments": "" - }, + "insight": { + "chartResponseMap": "pqmTotalAlerts", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": "PQM Total Alerts" + }, + "pqmTotalIncomingSludge": { + "chartName": "DSS_PQM_TOTAL_INCOMING_SLUDGE", + "queries": [ { - "postAggregationTheory": "", - "actionName": "AdditiveComputedField", - "newField": "Households", - "fields": ["Household Covered Count"], - "_comments": "" + "module": "PQM", + "indexName": "vehicletrip", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.vehicleTrip.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Total Sludge Collection\":{\"sum\":{\"script\":{\"source\":\"(doc['Data.vehicleTrip.volumeCarried'].value)/1000.0\"}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tenantData.code\"}", + "dateRefField": "Data.vehicleTrip.@timestamp" } ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "isRoundOff": true, + "aggregationPaths": [ + "Total Sludge Collection" + ], "insight": { + "chartResponseMap": "pqmTotalIncomingSludge", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "_comment": " PQM Total Incoming Sludge" + }, + "pqmTotalPlants": { + "chartName": "DSS_PQM_TOTAL_PLANTS", + "queries": [ + { + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"aggs\":{\"TOTAL_PLANTS\":{\"cardinality\":{\"field\":\"Data.tests.plantCode.keyword\"}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" + } + ], + "chartType": "metric", + "valueType": "number", + "action": "", + "drillChart": "none", + "aggregationPaths": [ + "TOTAL_PLANTS" + ], + "insight": { + "chartResponseMap": "pqmTotalPlants", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true + }, + "_comment": " PQM Total Plants" }, - "warehouseDistributionLatLongPoints": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "pqmPlantsWithPercentageTestPassedGreaterThan90": { + "chartName": "DSS_PQM_PLANTS_WITH_PERCENTAGE_TEST_PASSED_90", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 100\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"locationKey\": \"Data.province.keyword\", \"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"POINTS\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000000\n },\n \"aggs\": {\n \"LATITUDE\": {\n \"avg\": {\n \"field\": \"Data.latitude\"\n }\n },\n \"LONGITUDE\": {\n \"avg\": {\n \"field\": \"Data.longitude\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"size\":0,\"query\":{\"bool\":{\"must\":[{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}]}},\"aggs\":{\"plants_pass_percentage\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\",\"size\":10},\"aggs\":{\"TotalPassTest\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}},\"PassPercentage\":{\"bucket_script\":{\"buckets_path\":{\"passCount\":\"TotalPassTest._count\",\"totalCount\":\"_count\"},\"script\":\"params.passCount/params.totalCount*100\"}},\"PassPercentageFilter\":{\"bucket_selector\":{\"buckets_path\":{\"passPercentage\":\"PassPercentage\"},\"script\":\"params.passPercentage>90\"}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], - "filterKeys": [], - "chartType": "xtable", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "Warehouse Name", - "excludedColumns": [ - "S.N.", - "LONGITUDE", "LATITUDE" + "drillChart": "none", + "aggregationPaths": [ + "DSS_PQM_PLANTS_WITH_PERCENTAGE_TEST_PASSED_90" ], - "computedFields": [ - { - "postAggregationTheory" : "", - "actionName": "AdditiveComputedField", - "newField": "longitude", - "fields" : [ "LONGITUDE" ], - "_comments": "" - }, + "insight": { + "chartResponseMap" : "pqmPlantsWithPercentageTestPassedGreaterThan90", + "action" : "differenceOfNumbers", + "upwardIndicator" : "positive", + "downwardIndicator" : "negative", + "textMessage" : "$indicator$value% than last $insightInterval", + "colorCode" : "#228B22", + "insightInterval" : "year", + "isRoundOff": true + }, + "_comment": " PQM Plants With Percentage Test Passed Greater Than 90" + }, + "pqmTestCompliance": { + "chartName": "DSS_PQM_TEST_COMPLIANCE", + "queries": [ { - "postAggregationTheory": "", - "actionName": "AdditiveComputedField", - "newField": "latitude", - "fields": ["LATITUDE"], - "_comments": "" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"size\":0,\"aggs\":{\"plant_code\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\"},\"aggs\":{\"wfStatus_submitted_count\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], + "chartType": "metric", + "valueType": "percentage", + "action": "percentage", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "wfStatus_submitted_count", + "plant_code" + ], "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "_comment": " PQM Percentage of Test Compliance" }, - "warehouseDistributionLatLongTableDaysStockLastsDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "pqmQualityTestPassed": { + "chartName": "DSS_PQM_QUALITY_TEST_PASSED", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Will last for\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Target Per Day\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.targetPerDay\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-service", + "aggrQuery": "{\"size\":0,\"aggs\":{\"plant_code\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\"},\"aggs\":{\"test_criteria_passed\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "dateRefField": "Data.tests.@timestamp" } ], - "filterKeys": [], - "chartType": "line", - "valueType": "number", - "drillChart": "", - "documentType": "_doc", - "action": "division", - "plotLabel": "District", - "isCumulative" : false, - "aggregationPaths": ["Will last for", "Target Per Day"], + "chartType": "metric", + "valueType": "percentage", + "action": "percentage", + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "plant_code", + "test_criteria_passed" + ], "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "_comment": " PQM Percentage of Quality test passed" }, - "warehouseDistributionLatLongTableAvlRcvdDispDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "pqmAlerts": { + "chartName": "DSS_PQM_ALERTS", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" - }, - { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"size\":0,\"aggs\":{\"anomaly_types\":{\"terms\":{\"field\":\"Data.pqmAnomalys.anomalyType.keyword\",\"size\":3}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "District", - "isCumulative" : false, - "aggregationPaths": ["Stock in Hand", "Stock Received", "Stock Dispatched"], + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "anomaly_types" + ], "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "_comment": " PQM Number of total alerts" }, - "warehouseDistributionLatLongTableAvlRcvdDispFacilities": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "pqmAlertsTest": { + "chartName": "PQM_ANOMALY_TYPE", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.facilityName.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "module": "PQM", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock Received Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"Stock Received\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n },\n \"Stock Dispatched Filter\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"Stock Dispatched\": {\n \"terms\": {\n \"field\": \"Data.facilityName.keyword\",\n \"size\": 1000\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "key": "tenantId", + "column": "DDRs" } ], - "filterKeys": [], - "chartType": "line", + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", "valueType": "number", - "drillChart": "", + "drillChart": "xBirthDownloadByUlb", "documentType": "_doc", "action": "", - "plotLabel": "Warehouse Name", - "isCumulative" : false, - "aggregationPaths": ["Stock in Hand", "Stock Received", "Stock Dispatched"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " - }, - "warehouseDistributionLatLongTableStockStatusDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", - "queries": [ + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Anomaly_type_lab_results", + "TotalAlerts" + ], + "pathDataTypeMapping": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"Stock in Hand\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Incoming Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"RECEIVED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Outgoing Stock\": {\n \"filter\": {\n \"term\": {\n \"Data.eventType.keyword\": \"DISPATCHED\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.physicalCount\"\n }\n }\n }\n },\n \"Total Stock\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"IS\": \"Incoming Stock>SUM\",\n \"OS\": \"Outgoing Stock>SUM\"\n },\n \"script\": \"params.IS-params.OS\"\n }\n }\n }\n }\n }\n }\n }\n}" + "Anomaly_type_lab_results": "number" }, { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "project-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.targetType.keyword\": \"PRODUCT\"\n }\n },\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Overall Target\": {\n \"terms\": {\n \"size\": 500,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"SUM\": {\n \"sum\": {\n \"field\": \"Data.overallTarget\"\n }\n },\n \"Overall Target\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"ot\": \"SUM\"\n },\n \"script\": \"params.ot * (-1)\"\n }\n }\n }\n }\n }\n }\n }\n}" - }, + "TotalAlerts": "number" + } + ], + "insight": {}, + "_comment": "" + }, + "pqmAlertsTest2": { + "chartName": "PQM_ANOMALY_TYPE", + "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\"}", - "indexName": "project-task-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"Total Distributions\": {\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"Data.deliveredTo.keyword\": \"HOUSEHOLD\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"Distributions by district\": {\n \"terms\": {\n \"field\": \"Data.district.keyword\",\n \"size\": 500,\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"Distributions\": {\n \"sum\": {\n \"script\": {\n \"source\": \"doc['Data.quantity']\"\n }\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" } ], - "filterKeys": [], - "chartType": "line", + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", "valueType": "number", - "drillChart": "", + "drillChart": "xBirthDownloadByUlb", "documentType": "_doc", "action": "", - "plotLabel": "District", - "isCumulative" : false, - "computedFields": [ + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Anomaly_type_lab_results", + "TotalAlerts" + ], + "pathDataTypeMapping": [ { - "postAggregationTheory" : "", - "actionName": "SumComputedField", - "fields" : ["Stock in Hand","Overall Target","Distributions by district"], - "newField" : "Status", - "_comments": "" + "Anomaly_type_lab_results": "number" + }, + { + "TotalAlerts": "number" } - ], - "computeMultiPaths": true, - "aggregationPaths": ["Stock in Hand","Overall Target","Distributions by district"], - "insight": { - }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "insight": {}, + "_comment": "" }, - "warehouseDistributionLatLongTableWarNumDistrictWiseProvincialBoard": { - "chartName": "DSS_HEALTH_WH_DISTRIBUTION_LATLONG", + "pqmAlertLabTestResult": { + "chartName": "DSS_PQM_ALERT_LAB_TEST_RESULT", "queries": [ { - "module": "COMMON", - "dateRefField": "", - "requestQueryMap": "{\"province\": \"Data.province.keyword\", \"district\": \"Data.district.keyword\"}", - "indexName": "stock-index-v1", - "aggrQuery": "{\n \"aggs\": {\n \"AGGR\": {\n \"filters\": {\n \"filters\": {\n \"FILTERS\": {\n \"bool\": {\n \"must\": [\n {\n \"exists\": {\n \"field\": \"Data.district.keyword\"\n }\n },\n {\n \"match_phrase\": {\n \"Data.productVariant\": \"PVAR\"\n }\n }\n ],\n \"must_not\": [\n {\n \"exists\": {\n \"field\": \"Data.administrativeProvince.keyword\"\n }\n }\n ]\n }\n }\n }\n },\n \"aggs\": {\n \"No. of Warehouses\": {\n \"terms\": {\n \"size\": 50000,\n \"field\": \"Data.district.keyword\",\n \"order\": {\n \"_key\": \"asc\"\n }\n },\n \"aggs\": {\n \"CARDINALITY\": {\n \"scripted_metric\": {\n \"params\": {\n \"fieldName\": \"Data.facilityName.keyword\"\n }, \n \"init_script\": \"state.list=[]\",\n \"map_script\": \"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\n \"combine_script\": \"return state.list;\",\n \"reduce_script\": \"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"\n }\n }\n }\n }\n }\n }\n }\n}" + "module": "PQM", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"lab_results_count\":{\"filter\":{\"term\":{\"Data.pqmAnomalys.anomalyType.keyword\":\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"}}}}}", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp" } ], - "filterKeys": [], - "chartType": "line", + "chartType": "metric", "valueType": "number", - "drillChart": "", - "documentType": "_doc", "action": "", - "plotLabel": "District", - "isCumulative" : false, - "aggregationPaths": ["No. of Warehouses"], + "isRoundOff": true, + "drillChart": "none", + "aggregationPaths": [ + "lab_results_count" + ], "insight": { + "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "action": "differenceOfNumbers", + "upwardIndicator": "positive", + "downwardIndicator": "negative", + "textMessage": "$indicator$value% than last $insightInterval", + "colorCode": "#228B22", + "insightInterval": "year", + "isRoundOff": true }, - "hideInsights": false, - "hideHeaderDenomination": true, - "_comment": " " + "_comment": " PQM Number of total alerts of lab result" } -} - +} \ No newline at end of file From 009902e70446a9c90b00317eee3aae08360081b7 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Fri, 24 Nov 2023 13:27:56 +0530 Subject: [PATCH 024/158] plantuserconfig --- sanitation/egov-persister/pqm-persister.yaml | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index ad3588a44..c00b04b99 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -231,3 +231,64 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.testCriteria.*.id + - jsonPath: $.tests.*.testCriteria.*.id + + - version: 1.0 + description: Save plant and user mapping in eq_plant_user_map table + fromTopic: save-plant-user-mapping + isTransaction: true + queryMaps: + - query: INSERT INTO eq_plant_user_map(id, tenantId, plantCode, individualId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.id + - jsonPath: $.plantUsers.*.tenantId + - jsonPath: $.plantUsers.*.plantCode + - jsonPath: $.plantUsers.*.individualId + - jsonPath: $.plantUsers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.plantUsers.*.isActive + - jsonPath: $.plantUsers.*.auditDetails.createdBy + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy + - jsonPath: $.plantUsers.*.auditDetails.createdTime + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eq_plant_user_map_auditlog(id, tenantId, plantCode, individualId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.id + - jsonPath: $.plantUsers.*.tenantId + - jsonPath: $.plantUsers.*.plantCode + - jsonPath: $.plantUsers.*.individualId + - jsonPath: $.plantUsers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.plantUsers.*.isActive + - jsonPath: $.plantUsers.*.auditDetails.createdBy + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy + - jsonPath: $.plantUsers.*.auditDetails.createdTime + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update plant and user mapping in eq_plant_user_map table + fromTopic: update-plant-user-mapping + isTransaction: true + queryMaps: + - query: INSERT INTO eq_plant_user_map_auditlog SELECT * FROM eq_plant_user_map WHERE id = ? + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.id + + - query: UPDATE eq_plant_user_map SET isActive = ?, additionalDetails = ?::jsonb, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.isActive + - jsonPath: $.plantUsers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.plantUsers.*.auditDetails.createdBy + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy + - jsonPath: $.plantUsers.*.auditDetails.createdTime + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime + - jsonPath: $.plantUsers.*.id \ No newline at end of file From 0793e51738e3d9aa1c30254ddcee4443756dc53d Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Fri, 24 Nov 2023 18:01:45 +0530 Subject: [PATCH 025/158] SM-3393-adding pqm indexer config changes --- egov-indexer/egov-pqm-service.yml | 136 ++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 egov-indexer/egov-pqm-service.yml diff --git a/egov-indexer/egov-pqm-service.yml b/egov-indexer/egov-pqm-service.yml new file mode 100644 index 000000000..9dc9c14ce --- /dev/null +++ b/egov-indexer/egov-pqm-service.yml @@ -0,0 +1,136 @@ +ServiceMaps: + serviceName: pqm-service inbox + version: 1.0.0 + mappings: + - topic: save-test-event-application + configKey: INDEX + indexes: + - name: pqm-application + type: pqmInboxApplication + jsonPath: $.tests.* + id: $.id + timeStampField: $.auditDetails.createdTime + isBulk: true + customJsonMapping: + indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + fieldMapping: + - inJsonPath: $.testId + outJsonPath: $.Data.testId + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.plantCode + outJsonPath: $.Data.plantCode + - inJsonPath: $.processCode + outJsonPath: $.Data.processCode + - inJsonPath: $.stageCode + outJsonPath: $.Data.stageCode + - inJsonPath: $.materialCode + outJsonPath: $.Data.materialCode + - inJsonPath: $.testType + outJsonPath: $.Data.sourceType + - inJsonPath: $.scheduledDate + outJsonPath: $.Data.scheduledDate + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance + + - topic: update-test-event-application + configKey: INDEX + indexes: + - name: pqm-application + type: pqmInboxApplication + jsonPath: $.tests.* + id: $.id + timeStampField: $.auditDetails.createdTime + isBulk: true + customJsonMapping: + indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + fieldMapping: + - inJsonPath: $.testId + outJsonPath: $.Data.testId + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.plantCode + outJsonPath: $.Data.plantCode + - inJsonPath: $.processCode + outJsonPath: $.Data.processCode + - inJsonPath: $.stageCode + outJsonPath: $.Data.stageCode + - inJsonPath: $.materialCode + outJsonPath: $.Data.materialCode + - inJsonPath: $.testType + outJsonPath: $.Data.sourceType + - inJsonPath: $.scheduledDate + outJsonPath: $.Data.scheduledDate + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance + + + - topic: inbox-pqm-events-legacyindex + configKey: LEGACYINDEX + indexes: + - name: pqm-application + type: pqmInboxApplication + jsonPath: $.tests.* + id: $.id + timeStampField: $.auditDetails.createdTime + isBulk: true + customJsonMapping: + indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + fieldMapping: + - inJsonPath: $.testId + outJsonPath: $.Data.testId + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.plantCode + outJsonPath: $.Data.plantCode + - inJsonPath: $.processCode + outJsonPath: $.Data.processCode + - inJsonPath: $.stageCode + outJsonPath: $.Data.stageCode + - inJsonPath: $.materialCode + outJsonPath: $.Data.materialCode + - inJsonPath: $.testType + outJsonPath: $.Data.sourceType + - inJsonPath: $.scheduledDate + outJsonPath: $.Data.scheduledDate + - inJsonPath: $.@timestamp + outJsonPath: $.Data.@timestamp + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance \ No newline at end of file From 67536ad6252d4dce827538d4ffdea15d1e7ec600 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Mon, 27 Nov 2023 14:33:41 +0530 Subject: [PATCH 026/158] adding config in indexer --- .../egov-indexer/pqm-anomaly-finder-indexer.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml b/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml index b30433ff7..cfead9b53 100644 --- a/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml +++ b/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml @@ -4,6 +4,21 @@ ServiceMaps: mappings: - topic: save-pqm-test-anomaly-details configKey: INDEX + indexes: + - name: pqm-anomaly-finder + type: general + jsonPath: $.pqmAnomalys.* + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: {"Data":{"pqmAnomalys":{}}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data.pqmAnomalys + + - topic: pqm-anomaly-details-legacyindex + configKey: LEGACYINDEX indexes: - name: pqm-anomaly-finder type: general From ff27d5b7bf6aece71ee85d37852cc9bd4e7a9283 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 28 Nov 2023 16:16:32 +0530 Subject: [PATCH 027/158] SM-3495 --- sanitation/egov-persister/pqm-persister.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index c00b04b99..ca4b8f3b0 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -40,7 +40,7 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.documentUid - jsonPath: $.tests.*.documents.*.documentUri - jsonPath: $.tests.*.documents.*.documentType - - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.fileStoreId - jsonPath: $.tests.*.documents.*.isActive - jsonPath: $.tests.*.documents.*.additionalDetails type: JSON @@ -97,7 +97,7 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.documentUid - jsonPath: $.tests.*.documents.*.documentUri - jsonPath: $.tests.*.documents.*.documentType - - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.fileStoreId - jsonPath: $.tests.*.documents.*.additionalDetails type: JSON dbType: JSONB From 72b2903e731e4406f7d36752e42416abeb6fc8ae Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 29 Nov 2023 12:06:48 +0530 Subject: [PATCH 028/158] SM-3417- adding labasssignedto field --- sanitation/egov-persister/pqm-persister.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index ca4b8f3b0..6e4a5befd 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -126,12 +126,8 @@ serviceMaps: fromTopic: update-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE testId = ? - basePath: $.tests.* - jsonMaps: - - jsonPath: $.tests.*.testId - - - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE testId = ?; + + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ?, labAssignedTo = ? WHERE testId = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status @@ -140,12 +136,18 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.labAssignedTo - jsonPath: $.tests.*.testId - - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE testId = ? + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.testId + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, tenantId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.*.documents.* jsonMaps: - jsonPath: $.tests.*.documents.*.id - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.tenantId - jsonPath: $.tests.*.documents.*.documentUid - jsonPath: $.tests.*.documents.*.documentUri - jsonPath: $.tests.*.documents.*.documentType From 13af1f8120a55916b32c239fb45558657b8298a2 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 29 Nov 2023 12:33:54 +0530 Subject: [PATCH 029/158] SM-3417 adding placeholder --- sanitation/egov-persister/pqm-persister.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 6e4a5befd..48ed69ffe 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -142,7 +142,7 @@ serviceMaps: basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.testId - - query: INSERT INTO eg_pqm_test_result_documents (id, testId, tenantId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, tenantId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?); basePath: $.tests.*.documents.* jsonMaps: - jsonPath: $.tests.*.documents.*.id From 8e3c78b7abccf3155438b2f82d77a746171f125d Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 29 Nov 2023 12:50:29 +0530 Subject: [PATCH 030/158] SM-3417 --- sanitation/egov-persister/pqm-persister.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 48ed69ffe..3ff953068 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -142,12 +142,11 @@ serviceMaps: basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.testId - - query: INSERT INTO eg_pqm_test_result_documents (id, testId, tenantId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?); + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.*.documents.* jsonMaps: - jsonPath: $.tests.*.documents.*.id - jsonPath: $.tests.*.documents.*.testId - - jsonPath: $.tests.*.documents.*.tenantId - jsonPath: $.tests.*.documents.*.documentUid - jsonPath: $.tests.*.documents.*.documentUri - jsonPath: $.tests.*.documents.*.documentType From 9049d439ec9767e5fc9d72932caf7adb43ecd26e Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Thu, 30 Nov 2023 10:27:43 +0530 Subject: [PATCH 031/158] estimate indexer & persister chages --- .../egov-indexer/estimateservices-indexer.yml | 98 ++++++++++++++++++- works/egov-persister/estimate-service.yml | 14 ++- 2 files changed, 105 insertions(+), 7 deletions(-) diff --git a/works/egov-indexer/estimateservices-indexer.yml b/works/egov-indexer/estimateservices-indexer.yml index 49a07a2f1..eeac8af8c 100644 --- a/works/egov-indexer/estimateservices-indexer.yml +++ b/works/egov-indexer/estimateservices-indexer.yml @@ -12,14 +12,22 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime isBulk: false customJsonMapping: - indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"project":{},"currentProcessInstance":[],"history":{}}} + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"project":{},"currentProcessInstance":[],"history":{}}} fieldMapping: - inJsonPath: $.id outJsonPath: $.Data.id - inJsonPath: $.tenantId outJsonPath: $.Data.tenantId - inJsonPath: $.estimateNumber - outJsonPath: $.Data.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid - inJsonPath: $.projectId outJsonPath: $.Data.projectId - inJsonPath: $.proposalDate @@ -65,14 +73,24 @@ ServiceMaps: jsonPath: $.estimate timeStampField: $.auditDetails.createdTime customJsonMapping: - indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{}, "history":{}}} + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{}, "history":{}}} fieldMapping: - inJsonPath: $.id outJsonPath: $.Data.id - inJsonPath: $.tenantId outJsonPath: $.Data.tenantId - inJsonPath: $.estimateNumber - outJsonPath: $.Data.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid - inJsonPath: $.projectId outJsonPath: $.Data.projectId - inJsonPath: $.proposalDate @@ -115,7 +133,7 @@ ServiceMaps: jsonPath: $.estimates.* timeStampField: $.auditDetails.createdTime customJsonMapping: - indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{}, "history":{}}} + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{}, "history":{}}} fieldMapping: - inJsonPath: $.id outJsonPath: $.Data.id @@ -123,6 +141,14 @@ ServiceMaps: outJsonPath: $.Data.tenantId - inJsonPath: $.estimateNumber outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid - inJsonPath: $.projectId outJsonPath: $.Data.projectId - inJsonPath: $.proposalDate @@ -160,3 +186,65 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history + + - topic: migrate-estimate + configKey: INDEX + indexes: + - name: estimate-inbox-v3-migrate + type: general + id: $.id,$.tenantId + jsonPath: $.estimate + timeStampField: $.auditDetails.createdTime + isBulk: false + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"project":{},"currentProcessInstance":[],"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.projectId + outJsonPath: $.Data.projectId + - inJsonPath: $.proposalDate + outJsonPath: $.Data.proposalDate + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.referenceNumber + outJsonPath: $.Data.referenceNumber + - inJsonPath: $.description + outJsonPath: $.Data.description + - inJsonPath: $.executingDepartment + outJsonPath: $.Data.executingDepartment + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.estimateDetails + outJsonPath: $.Data.estimateDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.project + outJsonPath: $.Data.project + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.estimateNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.jalandhar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.jalandhar"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history \ No newline at end of file diff --git a/works/egov-persister/estimate-service.yml b/works/egov-persister/estimate-service.yml index 790bc0176..72c1c5df4 100644 --- a/works/egov-persister/estimate-service.yml +++ b/works/egov-persister/estimate-service.yml @@ -13,7 +13,7 @@ serviceMaps: transactionCodeJsonPath: $.estimateNumber auditAttributeBasePath: $.estimate queryMaps: - - query: INSERT INTO eg_wms_estimate(id,tenant_id,estimate_number,project_id,proposal_date,status,wf_status,name,reference_number,description,executing_department,additional_details,created_by,last_modified_by,created_time,last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO eg_wms_estimate(id,tenant_id,estimate_number,project_id,proposal_date,status,wf_status,name,reference_number,description,executing_department,additional_details,created_by,last_modified_by,created_time,last_modified_time,revision_number,version_number,old_uuid,business_service) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.estimate jsonMaps: @@ -51,7 +51,15 @@ serviceMaps: - jsonPath: $.estimate.auditDetails.lastModifiedTime - - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - jsonPath: $.estimate.revisionNumber + + - jsonPath: $.estimate.versionNumber + + - jsonPath: $.estimate.oldUuid + + - jsonPath: $.estimate.businessService + + - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction, old_uuid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.estimate.estimateDetails.* jsonMaps: @@ -93,6 +101,8 @@ serviceMaps: - jsonPath: $.estimate.estimateDetails.*.isDeduction + - jsonPath: $.estimate.estimateDetails.*.previousLineItemId + - query: INSERT INTO eg_wms_estimate_address(id,tenant_id,estimate_id,latitude,longitude,address_number,address_line_1,address_line_2,landmark,city,pin_code,detail) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.estimate.address From 9165d4a6f4e471b65839a98449c2bd5ac5bc413b Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 30 Nov 2023 10:50:24 +0530 Subject: [PATCH 032/158] SM-3198 --- sanitation/egov-persister/pqm-persister.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 3ff953068..cb097a3b2 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -239,13 +239,13 @@ serviceMaps: fromTopic: save-plant-user-mapping isTransaction: true queryMaps: - - query: INSERT INTO eq_plant_user_map(id, tenantId, plantCode, individualId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eq_plant_user_map(id, tenantId, plantCode, plantOperatorUuid, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.plantUsers.* jsonMaps: - jsonPath: $.plantUsers.*.id - jsonPath: $.plantUsers.*.tenantId - jsonPath: $.plantUsers.*.plantCode - - jsonPath: $.plantUsers.*.individualId + - jsonPath: $.plantUsers.*.plantOperatorUuid - jsonPath: $.plantUsers.*.additionalDetails type: JSON dbType: JSONB @@ -255,13 +255,13 @@ serviceMaps: - jsonPath: $.plantUsers.*.auditDetails.createdTime - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime - - query: INSERT INTO eq_plant_user_map_auditlog(id, tenantId, plantCode, individualId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eq_plant_user_map_auditlog(id, tenantId, plantCode, plantOperatorUuid, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.plantUsers.* jsonMaps: - jsonPath: $.plantUsers.*.id - jsonPath: $.plantUsers.*.tenantId - jsonPath: $.plantUsers.*.plantCode - - jsonPath: $.plantUsers.*.individualId + - jsonPath: $.plantUsers.*.plantOperatorUuid - jsonPath: $.plantUsers.*.additionalDetails type: JSON dbType: JSONB From 45b3a11305eebecef37e35403b78ac01ad7bcf87 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 30 Nov 2023 18:14:22 +0530 Subject: [PATCH 033/158] SM-3498 --- .../dashboard-analytics/ChartApiConfig.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index d4da6d6e9..c4caffeb3 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -26278,8 +26278,8 @@ { "module": "PQM", "indexName": "pqm-service", - "aggrQuery": "{\"aggs\":{\"TOTAL_TESTS\":{\"value_count\":{\"field\":\"_id\"}},\"PASSED_TESTS\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}}}}", - "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "aggrQuery": "{\"size\":0,\"aggs\":{\"PASSED_TESTS\":{\"filter\":{\"term\":{\"Data.tests.status.keyword\":\"PASS\"}}},\"SUBMITTED_TESTS\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}", + "requestQueryMap": "{\"plantCode\" : \"Data.tests.plantCode.keyword\",\"tenantId\" : \"Data.tests.tenantId\"}", "dateRefField": "Data.tests.@timestamp" } ], @@ -26290,7 +26290,7 @@ "drillChart": "none", "aggregationPaths": [ "PASSED_TESTS", - "TOTAL_TESTS" + "SUBMITTED_TESTS" ], "insight": { "chartResponseMap": "pqmPercentageOfTestResultsMeetingBenchmarks", @@ -26431,8 +26431,8 @@ { "module": "PQM", "indexName": "pqm-service", - "aggrQuery": "{\"size\":0,\"aggs\":{\"plant_code\":{\"terms\":{\"field\":\"Data.tests.plantCode.keyword\"},\"aggs\":{\"wfStatus_submitted_count\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}}}", - "requestQueryMap": "{\"tenantId\" : \"Data.tests.tenantId\"}", + "aggrQuery": "{\"size\":0,\"aggs\":{\"total_tests\":{\"cardinality\":{\"field\":\"Data.tests.testId.keyword\"},\"aggs\":{\"wfStatus_submitted_count\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}}}", + "requestQueryMap": "{\"plantCode\" : \"Data.tests.plantCode.keyword\",\"tenantId\" : \"Data.tests.tenantId\"}", "dateRefField": "Data.tests.@timestamp" } ], @@ -26443,10 +26443,10 @@ "drillChart": "none", "aggregationPaths": [ "wfStatus_submitted_count", - "plant_code" + "total_tests" ], "insight": { - "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", + "chartResponseMap": "pqmTestCompliance", "action": "differenceOfNumbers", "upwardIndicator": "positive", "downwardIndicator": "negative", From 95560db96581d94cea3e0115a2f75386180df473 Mon Sep 17 00:00:00 2001 From: Priyanka-eGov <74049060+Priyanka-eGov@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:54:12 +0530 Subject: [PATCH 034/158] Update ChartApiConfig.json for chart pqmTestCompliance --- egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index c4caffeb3..9a0583dc0 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -26431,7 +26431,7 @@ { "module": "PQM", "indexName": "pqm-service", - "aggrQuery": "{\"size\":0,\"aggs\":{\"total_tests\":{\"cardinality\":{\"field\":\"Data.tests.testId.keyword\"},\"aggs\":{\"wfStatus_submitted_count\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}}}", + "aggrQuery": "{\"size\":0,\"aggs\":{\"total_tests\":{\"cardinality\":{\"field\":\"Data.tests.testId.keyword\"}},\"wfStatus_submitted_count\":{\"filter\":{\"term\":{\"Data.tests.wfStatus.keyword\":\"SUBMITTED\"}}}}}", "requestQueryMap": "{\"plantCode\" : \"Data.tests.plantCode.keyword\",\"tenantId\" : \"Data.tests.tenantId\"}", "dateRefField": "Data.tests.@timestamp" } @@ -26640,4 +26640,4 @@ }, "_comment": " PQM Number of total alerts of lab result" } -} \ No newline at end of file +} From 8378e8091fbdf37d734f6c083273931c47d33ac9 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Mon, 4 Dec 2023 10:04:54 +0530 Subject: [PATCH 035/158] SM-3498-adding config changes for ALert box --- .../dashboard-analytics/ChartApiConfig.json | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index 9a0583dc0..841aa65aa 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -26489,6 +26489,50 @@ }, "_comment": " PQM Percentage of Quality test passed" }, + "pqmAlerts": { + "chartName": "PQM_ANOMALY_TYPE", + "queries": [ + { + "module": "PQM", + "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "dateRefField": "Data.pqmAnomalys.@timestamp", + "indexName": "pqm-anomaly-finder", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" + } + ], + "isMdmsEnabled": true, + "filterKeys": [ + { + "key": "tenantId" + } + ], + "isPostResponseHandler": true, + "postAggregationTheory": "repsonseToDifferenceOfDates", + "chartType": "xtable", + "valueType": "number", + "drillChart": "xBirthDownloadByUlb", + "documentType": "_doc", + "action": "", + "plotLabel": "DDRs", + "excludedColumns": [], + "removedFields": [], + "computedFields": [], + "isRoundOff": true, + "aggregationPaths": [ + "Anomaly_type_lab_results", + "TotalAlerts" + ], + "pathDataTypeMapping": [ + { + "Anomaly_type_lab_results": "number" + }, + { + "TotalAlerts": "number" + } + ], + "insight": {}, + "_comment": "" + } "pqmAlerts": { "chartName": "DSS_PQM_ALERTS", "queries": [ From 11bad7a88233694fbc19126cd4538b020e857f08 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Mon, 4 Dec 2023 10:44:42 +0530 Subject: [PATCH 036/158] SM-3498 --- .../dashboard-analytics/ChartApiConfig.json | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index 841aa65aa..4becbbbce 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -26532,37 +26532,6 @@ ], "insight": {}, "_comment": "" - } - "pqmAlerts": { - "chartName": "DSS_PQM_ALERTS", - "queries": [ - { - "module": "PQM", - "indexName": "pqm-anomaly-finder", - "aggrQuery": "{\"size\":0,\"aggs\":{\"anomaly_types\":{\"terms\":{\"field\":\"Data.pqmAnomalys.anomalyType.keyword\",\"size\":3}}}}", - "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", - "dateRefField": "Data.pqmAnomalys.@timestamp" - } - ], - "chartType": "metric", - "valueType": "number", - "action": "", - "isRoundOff": true, - "drillChart": "none", - "aggregationPaths": [ - "anomaly_types" - ], - "insight": { - "chartResponseMap": "pqmSubmittedTestsPercentangeOutOfTotalTests", - "action": "differenceOfNumbers", - "upwardIndicator": "positive", - "downwardIndicator": "negative", - "textMessage": "$indicator$value% than last $insightInterval", - "colorCode": "#228B22", - "insightInterval": "year", - "isRoundOff": true - }, - "_comment": " PQM Number of total alerts" }, "pqmAlertsTest": { "chartName": "PQM_ANOMALY_TYPE", From f2c9af3623395c92566a71fb5e6d029f488be838 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 5 Dec 2023 15:54:52 +0530 Subject: [PATCH 037/158] Reindex change --- sanitation/egov-indexer/egov-pqm-service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index 9dc9c14ce..a1d2a9311 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -97,7 +97,7 @@ ServiceMaps: - name: pqm-application type: pqmInboxApplication jsonPath: $.tests.* - id: $.id + id: $.tests.*.id,$.tests.*.tenantId timeStampField: $.auditDetails.createdTime isBulk: true customJsonMapping: From 7f5a76794312d19190d6d7168e0c8e49d6d6323f Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Tue, 5 Dec 2023 16:41:07 +0530 Subject: [PATCH 038/158] Update egov-pqm-service.yml --- sanitation/egov-indexer/egov-pqm-service.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index a1d2a9311..60775df64 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -97,7 +97,7 @@ ServiceMaps: - name: pqm-application type: pqmInboxApplication jsonPath: $.tests.* - id: $.tests.*.id,$.tests.*.tenantId + id: $..tests[*].id,$..tests[*].tenantId timeStampField: $.auditDetails.createdTime isBulk: true customJsonMapping: @@ -133,4 +133,4 @@ ServiceMaps: apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances[0] - outJsonPath: $.Data.currentProcessInstance \ No newline at end of file + outJsonPath: $.Data.currentProcessInstance From 72ec83a694622a072bdfffbbb7a4cfa01ecf6489 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 5 Dec 2023 17:08:15 +0530 Subject: [PATCH 039/158] SM-3535 --- egov-indexer/egov-pqm-service.yml | 136 ------------------- sanitation/egov-indexer/egov-pqm-service.yml | 3 +- sanitation/egov-persister/pqm-persister.yaml | 10 +- 3 files changed, 8 insertions(+), 141 deletions(-) delete mode 100644 egov-indexer/egov-pqm-service.yml diff --git a/egov-indexer/egov-pqm-service.yml b/egov-indexer/egov-pqm-service.yml deleted file mode 100644 index 9dc9c14ce..000000000 --- a/egov-indexer/egov-pqm-service.yml +++ /dev/null @@ -1,136 +0,0 @@ -ServiceMaps: - serviceName: pqm-service inbox - version: 1.0.0 - mappings: - - topic: save-test-event-application - configKey: INDEX - indexes: - - name: pqm-application - type: pqmInboxApplication - jsonPath: $.tests.* - id: $.id - timeStampField: $.auditDetails.createdTime - isBulk: true - customJsonMapping: - indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} - fieldMapping: - - inJsonPath: $.testId - outJsonPath: $.Data.testId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.wfStatus - outJsonPath: $.Data.wfStatus - - inJsonPath: $.plantCode - outJsonPath: $.Data.plantCode - - inJsonPath: $.processCode - outJsonPath: $.Data.processCode - - inJsonPath: $.stageCode - outJsonPath: $.Data.stageCode - - inJsonPath: $.materialCode - outJsonPath: $.Data.materialCode - - inJsonPath: $.testType - outJsonPath: $.Data.sourceType - - inJsonPath: $.scheduledDate - outJsonPath: $.Data.scheduledDate - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances[0] - outJsonPath: $.Data.currentProcessInstance - - - topic: update-test-event-application - configKey: INDEX - indexes: - - name: pqm-application - type: pqmInboxApplication - jsonPath: $.tests.* - id: $.id - timeStampField: $.auditDetails.createdTime - isBulk: true - customJsonMapping: - indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} - fieldMapping: - - inJsonPath: $.testId - outJsonPath: $.Data.testId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.wfStatus - outJsonPath: $.Data.wfStatus - - inJsonPath: $.plantCode - outJsonPath: $.Data.plantCode - - inJsonPath: $.processCode - outJsonPath: $.Data.processCode - - inJsonPath: $.stageCode - outJsonPath: $.Data.stageCode - - inJsonPath: $.materialCode - outJsonPath: $.Data.materialCode - - inJsonPath: $.testType - outJsonPath: $.Data.sourceType - - inJsonPath: $.scheduledDate - outJsonPath: $.Data.scheduledDate - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances[0] - outJsonPath: $.Data.currentProcessInstance - - - - topic: inbox-pqm-events-legacyindex - configKey: LEGACYINDEX - indexes: - - name: pqm-application - type: pqmInboxApplication - jsonPath: $.tests.* - id: $.id - timeStampField: $.auditDetails.createdTime - isBulk: true - customJsonMapping: - indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} - fieldMapping: - - inJsonPath: $.testId - outJsonPath: $.Data.testId - - inJsonPath: $.tenantId - outJsonPath: $.Data.tenantId - - inJsonPath: $.status - outJsonPath: $.Data.status - - inJsonPath: $.wfStatus - outJsonPath: $.Data.wfStatus - - inJsonPath: $.plantCode - outJsonPath: $.Data.plantCode - - inJsonPath: $.processCode - outJsonPath: $.Data.processCode - - inJsonPath: $.stageCode - outJsonPath: $.Data.stageCode - - inJsonPath: $.materialCode - outJsonPath: $.Data.materialCode - - inJsonPath: $.testType - outJsonPath: $.Data.sourceType - - inJsonPath: $.scheduledDate - outJsonPath: $.Data.scheduledDate - - inJsonPath: $.@timestamp - outJsonPath: $.Data.@timestamp - - inJsonPath: $.auditDetails - outJsonPath: $.Data.auditDetails - externalUriMapping: - - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search - queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} - uriResponseMapping: - - inJsonPath: $.ProcessInstances[0] - outJsonPath: $.Data.currentProcessInstance \ No newline at end of file diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index 60775df64..1f8bf52ba 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -97,8 +97,9 @@ ServiceMaps: - name: pqm-application type: pqmInboxApplication jsonPath: $.tests.* - id: $..tests[*].id,$..tests[*].tenantId + id: $.id,$.tenantId timeStampField: $.auditDetails.createdTime + jsonPath: $.tests.* isBulk: true customJsonMapping: indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index cb097a3b2..0a727caa2 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -239,13 +239,14 @@ serviceMaps: fromTopic: save-plant-user-mapping isTransaction: true queryMaps: - - query: INSERT INTO eq_plant_user_map(id, tenantId, plantCode, plantOperatorUuid, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eq_plant_user_map(id, tenantId, plantCode, plantUserUuid, plantUserType, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.plantUsers.* jsonMaps: - jsonPath: $.plantUsers.*.id - jsonPath: $.plantUsers.*.tenantId - jsonPath: $.plantUsers.*.plantCode - - jsonPath: $.plantUsers.*.plantOperatorUuid + - jsonPath: $.plantUsers.*.plantUserUuid + - jsonPath: $.plantUsers.*.plantUserType - jsonPath: $.plantUsers.*.additionalDetails type: JSON dbType: JSONB @@ -255,13 +256,14 @@ serviceMaps: - jsonPath: $.plantUsers.*.auditDetails.createdTime - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime - - query: INSERT INTO eq_plant_user_map_auditlog(id, tenantId, plantCode, plantOperatorUuid, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eq_plant_user_map_auditlog(id, tenantId, plantCode, plantUserUuid, plantUserType, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.plantUsers.* jsonMaps: - jsonPath: $.plantUsers.*.id - jsonPath: $.plantUsers.*.tenantId - jsonPath: $.plantUsers.*.plantCode - - jsonPath: $.plantUsers.*.plantOperatorUuid + - jsonPath: $.plantUsers.*.plantUserUuid + - jsonPath: $.plantUsers.*.plantUserType - jsonPath: $.plantUsers.*.additionalDetails type: JSON dbType: JSONB From 5afc07a0b643ac1b2d4311d6db37bc94e56e9a69 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 6 Dec 2023 05:52:00 +0530 Subject: [PATCH 040/158] Update egov-pqm-service.yml --- sanitation/egov-indexer/egov-pqm-service.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index 1f8bf52ba..dd7a67188 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -94,13 +94,12 @@ ServiceMaps: - topic: inbox-pqm-events-legacyindex configKey: LEGACYINDEX indexes: - - name: pqm-application - type: pqmInboxApplication - jsonPath: $.tests.* + - name: pqm-application-legacyindex + type: general id: $.id,$.tenantId - timeStampField: $.auditDetails.createdTime - jsonPath: $.tests.* isBulk: true + jsonPath: $.tests.* + timeStampField: $.auditDetails.createdTime customJsonMapping: indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: From d5218fc97618a6e49e28f4d1af7aff5d6b9b8854 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 6 Dec 2023 15:56:57 +0530 Subject: [PATCH 041/158] reindex change --- sanitation/egov-indexer/egov-pqm-service.yml | 28 ++++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index dd7a67188..74e06570f 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -6,14 +6,16 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-application - type: pqmInboxApplication + type: general + id: $.testId,$.tenantId + isBulk: true jsonPath: $.tests.* - id: $.id timeStampField: $.auditDetails.createdTime - isBulk: true customJsonMapping: - indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + indexMapping: { "Data": { "id":"","testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id - inJsonPath: $.testId outJsonPath: $.Data.testId - inJsonPath: $.tenantId @@ -50,14 +52,16 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-application - type: pqmInboxApplication + type: general + id: $.testId,$.tenantId + isBulk: true jsonPath: $.tests.* - id: $.id timeStampField: $.auditDetails.createdTime - isBulk: true customJsonMapping: - indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + indexMapping: { "Data": { "id":"","testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id - inJsonPath: $.testId outJsonPath: $.Data.testId - inJsonPath: $.tenantId @@ -96,13 +100,15 @@ ServiceMaps: indexes: - name: pqm-application-legacyindex type: general - id: $.id,$.tenantId + id: $.testId,$.tenantId isBulk: true jsonPath: $.tests.* timeStampField: $.auditDetails.createdTime customJsonMapping: - indexMapping: { "Data": { "testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} + indexMapping: { "Data": { "id":"","testId": "","tenantId": "","status": "", "wfStatus": "","plantCode": "","processCode": "","stageCode": "","materialCode": "","sourceType": "","scheduledDate": "","@timestamp": "timestamp","auditDetails": {},"currentProcessInstance": {}}} fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id - inJsonPath: $.testId outJsonPath: $.Data.testId - inJsonPath: $.tenantId @@ -133,4 +139,4 @@ ServiceMaps: apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances[0] - outJsonPath: $.Data.currentProcessInstance + - outJsonPath: $.Data.currentProcessInstance \ No newline at end of file From 0bf0d650682ada984e3d01382c986e78cbeecbd8 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:39:40 +0530 Subject: [PATCH 042/158] Update egov-pqm-service.yml --- sanitation/egov-indexer/egov-pqm-service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index 74e06570f..845cc1ee1 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -139,4 +139,4 @@ ServiceMaps: apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances[0] - - outJsonPath: $.Data.currentProcessInstance \ No newline at end of file + outJsonPath: $.Data.currentProcessInstance From 76c168a72229f19102b1a9462caa19e6fc71d757 Mon Sep 17 00:00:00 2001 From: shubhang-egov Date: Wed, 13 Dec 2023 11:37:46 +0530 Subject: [PATCH 043/158] Filestore fix for unified qa --- egov-persister/project-persister.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/egov-persister/project-persister.yml b/egov-persister/project-persister.yml index 7ab383834..593200a0d 100644 --- a/egov-persister/project-persister.yml +++ b/egov-persister/project-persister.yml @@ -264,7 +264,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -412,7 +412,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -432,7 +432,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid From 848a9d2d1b5a407bc42f22e3cbb59d5b65b7ee27 Mon Sep 17 00:00:00 2001 From: KeerthiBhaskara-eGov <103185483+KeerthiBhaskara-eGov@users.noreply.github.com> Date: Thu, 14 Dec 2023 12:13:50 +0530 Subject: [PATCH 044/158] Deviation pdf config changes (#2863) --- .../data-config/deviation-statement.json | 119 ++++++ .../format-config/deviation-statement.json | 367 ++++++++++++++++++ 2 files changed, 486 insertions(+) create mode 100644 pdf-service/data-config/deviation-statement.json create mode 100644 pdf-service/format-config/deviation-statement.json diff --git a/pdf-service/data-config/deviation-statement.json b/pdf-service/data-config/deviation-statement.json new file mode 100644 index 000000000..5f0488f77 --- /dev/null +++ b/pdf-service/data-config/deviation-statement.json @@ -0,0 +1,119 @@ +{ + "key": "deviation-statement", + "documentType":"ESTIMATE", + "DataConfigs": { + "moduleName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$.pdfData", + "entityIdPath":"$.id", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "topic": "common-pdf-generation-3", + "mappings": [ + { + "direct": [ + { + "variable": "estimateId", + "value": { + "path": "$.estimateNumber" + } + }, + { + "variable": "projectId", + "value": { + "path": "$.projectNumber" + } + }, + { + "variable": "project_name", + "value": { + "path": "$.projectName" + } + }, + { + "variable": "project_description", + "value": { + "path": "$.description" + } + }, + { + "variable": "revisionNumber", + "value": { + "path": "$.revisionNumber" + } + }, + { + "variable": "tableData", + "value": { + "path": "$.estimateDetails" + }, + "type":"function", + "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\n\nfunction rupeeFormat(amount) {\n flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n var x = {\n Sno: i + 1,\n uom: estimateDetails[i].uom,\n unitRate: estimateDetails[i].unitRate,\n estimateDescription: estimateDetails[i].name\n ,\n originalQ: estimateDetails[i].originalQuantity\n ,\n originalAmount: estimateDetails[i].originalAmount\n ,\n revisedQ: estimateDetails[i].quantity\n ,\n revisedAmount: estimateDetails[i].amount\n,\n deviation: estimateDetails[i].deviation\n };\n y.push(x);\n}\n\nreturn y;" + }, + { + "variable": "totalSum", + "value": { + "path": "$.estimateDetails" + }, + "type":"function", + "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\nlet total=0;\nfor (var i = 0; i < estimateDetails.length; i++) {\n total += estimateDetails[i].amount;\n}\ny.push({'sum':total});\nreturn y;\n" + } + + ] + }, + { + "externalAPI": [ + { + "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", + "apiRequest": null, + "responseMapping":[ + { + "variable":"address", + "value":"$.MdmsRes.tenant.tenants[0].address" + }, + { + "variable":"phoneNumber", + "value":"$.MdmsRes.tenant.tenants[0].contactNumber" + }, + { + "variable":"website", + "value":"$.MdmsRes.tenant.tenants[0].domainUrl" + }, + { + "variable":"email", + "value":"$.MdmsRes.tenant.tenants[0].emailId" + }, + { + "variable": "logoImage", + "value":"$.MdmsRes.tenant.tenants[0].logoId", + "type":"image" + }, + { + "variable": "logo-header", + "value":"$.MdmsRes.tenant.tenants[0].code", + "localisation":{ + "required":true, + "module":"rainmaker-common" + } + }, + { + "variable": "subdivision", + "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", + "localisation": { + "required": true, + "prefix": "COMMON_SUBDIVISION", + "module": "rainmaker-common" + } + } + ] + } + + ] + } + ] + } + ] + } + } \ No newline at end of file diff --git a/pdf-service/format-config/deviation-statement.json b/pdf-service/format-config/deviation-statement.json new file mode 100644 index 000000000..519ddbbe3 --- /dev/null +++ b/pdf-service/format-config/deviation-statement.json @@ -0,0 +1,367 @@ +{ + "key": "deviation-statement", + "config": { + "defaultStyle": { + "font": "Cambay" + }, + "content": [ + { + "style": "noc-head", + "table": { + "widths": [ + 60, + "*", + 125 + ], + "body": [ + [ + { + "image": "{{logoImage}}", + "width": 50, + "height": 61.25, + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "{{pdf_header}} {{subdivision}}", + "fontSize": 18, + "color": "#000000", + "bold": true + }, + { + "text": "{{address}}", + "fontSize": 10, + "color": "#000000" + }, + { + "text": "{{phoneNumber}} | {{email}}", + "fontSize": 10, + "color": "#000000" + } + ], + "alignment": "left", + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "Deviation Statement", + "fontSize": 12, + "color": "#636363", + "bold": true + }, + { + "text": "{{revisionNumber}}", + "fontSize": 12, + "color": "#636363", + "bold": true + } + ], + "alignment": "right", + "color": "#484848", + "margin": [ + 0, + 10, + 10, + 0 + ] + } + ] + ] + }, + "layout": "noBorders", + "fillColor": "#f4f4f4" + }, + { + "margin": [ + 0, + 35, + 0, + 0 + ], + "columns": [ + { + "bold": true, + "fontSize": 12, + "stack": [ + { + "text": "Estimate ID" + }, + { + "text": "Project ID" + }, + { + "text": "Project Name" + }, + { + "text": "Project Description" + }, + { + "text": " " + } + ] + }, + { + "bold": false, + "fontSize": 12, + "stack": [ + { + "text": ": {{estimateId}}" + }, + { + "text": ": {{projectId}}" + }, + { + "text": ": {{project_name}}" + }, + { + "text": ": {{project_description}}" + } + ] + } + ] + }, + {"text": "SOR/Non-SORs", "style": "header"}, + { + "margin": [ + -20, + 0, + 20, + 0 + ], + "table": { + "headerRows": 1, + "widths": [ + 20, + 150, + 30, + 50, + 40, + 50, + 40, + 50, + 50 + ], + "body": [[ + { + "text": "Sno", + "width": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Description", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "UOM", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Rate", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Original Quantity", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Original Amount", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Revised Quantity", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Revised Amount", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Deviation", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + } + + ], + "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":8},{\"text\":\"{{estimateDescription}}\",\"alignment\":\"centre\",\"fontSize\":8},{\"text\":\"{{uom}}\",\"alignment\":\"center\",\"fontSize\":8},{\"text\":\"{{unitRate}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{originalQ}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{originalAmount}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{revisedQ}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{revisedAmount}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{deviation}}\",\"alignment\":\"center\",\"fontSize\":8}]{{/tableData}}", + + [ + { + "text": "Total", + "bold": true, + "colSpan": 7, + "alignment": "right", + "fontSize": 10 + }, + {}, + {}, + {}, + {}, + {}, + {}, + { + "text": "{{#totalSum}}[{\"text\":\"{{sum}}\",\"alignment\":\"right\",\"bold\":\"true\",\"fontSize\":10}]{{/totalSum}}", + "colSpan": 2 + }, + {} + ] + ] + }, + "layout": { + "hLineColor": "#D6D5D4", + "vLineColor": "#D6D5D4" + } + } + ], + "styles": { + "header": { + "fontSize": 16, + "bold": true, + "margin": [ + -20, + 40, + 10, + 10 + ] + }, + "noc-head": { + "margin": [ + -40, + -40, + -40, + 1 + ] + }, + "noc-table": { + "fontSize": 12, + "color": "#000000", + "margin": [ + -25, + 20, + -22, + -8 + ], + "border":["false","false","false","false"] + }, + "receipt-table-value": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + -2, + 8, + 0, + 8 + ] + }, + "receipt-table": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 400, + "margin": [ + -30, + 8, + 0, + 8 + ] + }, + "receipt-approver": { + "fontSize": 12, + "bold": true, + "margin": [ + -27, + 50, + -10, + 0 + ], + "color": "#484848" + }, + "no-signature": { + "fontSize": 12, + "margin": [ + -27, + 35, + -10, + 0 + ], + "color": "#484848" + }, + "pt-disclaimer": { + "fontSize": 12, + "margin": [ + -27, + 30, + -10, + 0 + ], + "color": "#484848" + }, + "receipt-table-value2": { + "border":[ + false, + false, + false, + false + ], + "alignment":"right" + }, + "receipt-table2": { + "border":[ + false, + false, + false, + false + ] + }, + "pt-disclaimer-value": { + "fontSize": 12, + "margin": [ + 2, + 5, + 0, + 0 + ], + "color": "#484848" + } + } + } + } \ No newline at end of file From 8ee4bc78d2cb0e7073289d398dfe0ae37045cf0b Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 14 Dec 2023 15:02:02 +0530 Subject: [PATCH 045/158] fsmconfigchanges in qa --- sanitation/egov-indexer/egov-fsm.yaml | 44 +- sanitation/egov-indexer/egov-vehicle.yaml | 20 +- .../fsm-calculator-persister.yaml | 44 + sanitation/egov-persister/fsm-persister.yaml | 990 +++++++++--------- .../egov-persister/vehicle-persister.yaml | 12 +- .../egov-persister/vendor-persister.yaml | 47 + .../pdf-service/data-config/fsm-receipt.json | 661 ------------ 7 files changed, 646 insertions(+), 1172 deletions(-) diff --git a/sanitation/egov-indexer/egov-fsm.yaml b/sanitation/egov-indexer/egov-fsm.yaml index 2c6b1f0c6..36b08727d 100644 --- a/sanitation/egov-indexer/egov-fsm.yaml +++ b/sanitation/egov-indexer/egov-fsm.yaml @@ -16,22 +16,22 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data.fsm - externalUriMapping: + e apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","autxternalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0] outJsonPath: $.Data.ward - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.Payments outJsonPath: $.Data.payments @@ -39,7 +39,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -65,25 +65,25 @@ ServiceMaps: externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0] outJsonPath: $.Data.ward - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.Payments outJsonPath: $.Data.payments - - path: http://vendor.egov:8080/vendor/v1/_search + - path: http://vendor.sanitation:8080/vendor/v1/_search queryParam: ids=$.dsoId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.vendor[0].name outJsonPath: $.Data.vendor.name @@ -99,7 +99,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant @@ -125,25 +125,25 @@ ServiceMaps: externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0] outJsonPath: $.Data.ward - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.Payments outJsonPath: $.Data.payments - - path: http://vendor.egov:8080/vendor/v1/_search + - path: http://vendor.sanitation:8080/vendor/v1/_search queryParam: ids=$.dsoId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.vendor[0].name outJsonPath: $.Data.vendor.name @@ -186,25 +186,25 @@ ServiceMaps: externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.TenantBoundary[0].boundary[0] outJsonPath: $.Data.ward - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://collection-services:8080/collection-services/payments/FSM.TRIP_CHARGES/_search queryParam: consumerCodes=$.applicationNo,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.Payments outJsonPath: $.Data.payments - - path: http://vendor.egov:8080/vendor/v1/_search + - path: http://vendor.sanitation:8080/vendor/v1/_search queryParam: ids=$.dsoId,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pb.amritsar"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.vendor[0].name outJsonPath: $.Data.vendor.name @@ -220,7 +220,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant diff --git a/sanitation/egov-indexer/egov-vehicle.yaml b/sanitation/egov-indexer/egov-vehicle.yaml index d1f0f3820..3633563d8 100644 --- a/sanitation/egov-indexer/egov-vehicle.yaml +++ b/sanitation/egov-indexer/egov-vehicle.yaml @@ -39,7 +39,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{vehicleTrip":{},"tenantData":{},"history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -50,8 +50,8 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId + - path: http://fsm.sanitation:8080/fsm/v1/_search + queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -90,7 +90,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {{"Data":{vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -102,7 +102,7 @@ ServiceMaps: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId + queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -141,7 +141,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -153,7 +153,7 @@ ServiceMaps: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId + queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -192,7 +192,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -204,7 +204,7 @@ ServiceMaps: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId + queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -241,7 +241,7 @@ ServiceMaps: id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicle.* + jsonPath: $.vehicle customJsonMapping: indexMapping: {"Data":{"vehicle":{},"tenantData":{}}} fieldMapping: diff --git a/sanitation/egov-persister/fsm-calculator-persister.yaml b/sanitation/egov-persister/fsm-calculator-persister.yaml index c6e0e4c69..7de6c3feb 100644 --- a/sanitation/egov-persister/fsm-calculator-persister.yaml +++ b/sanitation/egov-persister/fsm-calculator-persister.yaml @@ -71,3 +71,47 @@ serviceMaps: - jsonPath: $.billingSlab.auditDetails.lastModifiedTime - jsonPath: $.billingSlab.id + + + - version: 1.0 + description: Persists FSM-CALCULATOR ZeroPricing details in eg_zero_pricing table + fromTopic: save-zeroPricing + isTransaction: true + queryMaps: + + - query: INSERT INTO public.eg_zero_pricing(propertyType,propertySubType,status,tenantId) VALUES (?,?,?,?); + basePath: zeroPricing + jsonMaps: + - jsonPath: $.zeroPricing.propertyType + + - jsonPath: $.zeroPricing.propertySubType + + - jsonPath: $.zeroPricing.status + + - jsonPath: $.zeroPricing.tenantId + + + - version: 1.0 + description: updates FSM-CALCULATOR ZeroPricing details in eg_zero_pricing table + fromTopic: update-zeroPricing + isTransaction: true + queryMaps: + + - query: INSERT INTO public.eg_zero_pricing_audit SELECT * FROM public.eg_zero_pricing WHERE propertyType=? and propertySubType=? ; + basePath: zeroPricing + jsonMaps: + + - jsonPath: $.zeroPricing.propertyType + + - jsonPath: $.zeroPricing.propertySubType + + - query: UPDATE public.eg_zero_pricing SET status=? where propertyType=? and propertySubType=? and tenantId=?; + basePath: zeroPricing + jsonMaps: + - jsonPath: $.zeroPricing.status + + - jsonPath: $.zeroPricing.propertyType + + - jsonPath: $.zeroPricing.propertySubType + + - jsonPath: $.zeroPricing.tenantId \ No newline at end of file diff --git a/sanitation/egov-persister/fsm-persister.yaml b/sanitation/egov-persister/fsm-persister.yaml index db8c940eb..8c9a0c4a2 100644 --- a/sanitation/egov-persister/fsm-persister.yaml +++ b/sanitation/egov-persister/fsm-persister.yaml @@ -1,485 +1,523 @@ ---- -serviceMaps: - mappings: - - - description: "Persists FSM Application details in eg_fsm_application table" - fromTopic: save-fsm-application - isTransaction: true - queryMaps: - - - basePath: fsm - jsonMaps: - - - jsonPath: $.fsm.id - - - jsonPath: $.fsm.applicationNo - - - jsonPath: $.fsm.tenantId - - - dbType: JSONB - jsonPath: $.fsm.additionalDetails - type: JSON - - - jsonPath: $.fsm.accountId - - - jsonPath: $.fsm.description - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.source - - - jsonPath: $.fsm.sanitationtype - - - jsonPath: $.fsm.propertyUsage - - - jsonPath: $.fsm.noOfTrips - - - jsonPath: $.fsm.status - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.vehicleCapacity - - - jsonPath: $.fsm.paymentPreference - - - jsonPath: $.fsm.advanceAmount - - - jsonPath: $.fsm.applicationType - - - jsonPath: $.fsm.oldApplicationNo - - - jsonPath: $.fsm.auditDetails.createdBy - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.createdTime - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?);" - - - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.id - - - jsonPath: $.fsm.address.tenantId - - - jsonPath: $.fsm.address.doorNo - - - jsonPath: $.fsm.address.plotNo - - - jsonPath: $.fsm.address.landmark - - - jsonPath: $.fsm.address.city - - - jsonPath: $.fsm.address.district - - - jsonPath: $.fsm.address.region - - - jsonPath: $.fsm.address.state - - - jsonPath: $.fsm.address.country - - - jsonPath: $.fsm.address.locality.code - - - jsonPath: $.fsm.address.pincode - - - dbType: JSONB - jsonPath: $.fsm.address.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.buildingName - - - jsonPath: $.fsm.address.street - - - jsonPath: $.fsm.address.slumName - - - jsonPath: $.fsm.id - - - jsonPath: $.fsm.address.auditDetails.createdBy - - - jsonPath: $.fsm.address.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.address.auditDetails.createdTime - - - jsonPath: $.fsm.address.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street,slumname, fsm_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);" - - - basePath: fsm.address.geoLocation - jsonMaps: - - - jsonPath: $.fsm.address.geoLocation.id - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.latitude - type: DOUBLE - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.longitude - type: DOUBLE - - - dbType: JSONB - jsonPath: $.fsm.address.geoLocation.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.id - query: "INSERT INTO eg_fsm_geolocation( id, latitude, longitude, additionaldetails, address_id) VALUES (?, ?, ?, ?, ?);" - - - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - - - jsonPath: $.fsm.pitDetail.tenantId - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.id - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_pit_detail( id, tenantid, height, length, width, diameter, distancefromroad, fsm_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);" - version: 1.0 - - - description: "Persists FSM Application details in eg_fsm_application table" - fromTopic: update-fsm-application - isTransaction: true - queryMaps: - - - basePath: fsm - jsonMaps: - - - jsonPath: $.fsm.id - query: "INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =?" - - - basePath: fsm - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.additionalDetails - type: JSON - - - jsonPath: $.fsm.description - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.source - - - jsonPath: $.fsm.sanitationtype - - - jsonPath: $.fsm.propertyUsage - - - jsonPath: $.fsm.noOfTrips - - - jsonPath: $.fsm.status - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.vehicleCapacity - - - jsonPath: $.fsm.paymentPreference - - - jsonPath: $.fsm.advanceAmount - - - jsonPath: $.fsm.auditDetails.createdBy - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.createdTime - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.possibleServiceDate - - - jsonPath: $.fsm.dsoId - - - jsonPath: $.fsm.id - query: "UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=?" - - - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.id - query: "INSERT INTO eg_fsm_address_auditlog SELECT * FROM eg_fsm_address WHERE id =?;" - - - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.doorNo - - - jsonPath: $.fsm.address.plotNo - - - jsonPath: $.fsm.address.landmark - - - jsonPath: $.fsm.address.city - - - jsonPath: $.fsm.address.district - - - jsonPath: $.fsm.address.region - - - jsonPath: $.fsm.address.state - - - jsonPath: $.fsm.address.slumName - - - jsonPath: $.fsm.address.country - - - jsonPath: $.fsm.address.locality.code - - - jsonPath: $.fsm.address.pincode - - - dbType: JSONB - jsonPath: $.fsm.address.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.buildingName - - - jsonPath: $.fsm.address.street - - - jsonPath: $.fsm.address.auditDetails.createdBy - - - jsonPath: $.fsm.address.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.address.auditDetails.createdTime - - - jsonPath: $.fsm.address.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.address.id - query: "UPDATE eg_fsm_address SET doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?,slumname=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - - - basePath: fsm.address.geoLocation - jsonMaps: - - - jsonPath: $.fsm.address.geoLocation.id - query: "INSERT INTO eg_fsm_geolocation_auditlog SELECT * FROM eg_fsm_geolocation WHERE id =?;" - - - basePath: fsm.address.geoLocation - jsonMaps: - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.latitude - type: DOUBLE - - - dbType: DOUBLE - jsonPath: $.fsm.address.geoLocation.longitude - type: DOUBLE - - - dbType: JSONB - jsonPath: $.fsm.address.geoLocation.additionalDetails - type: JSON - - - jsonPath: $.fsm.address.geoLocation.id - query: "UPDATE eg_fsm_geolocation SET latitude=?, longitude=?, additionaldetails=? where id=?" - - - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - query: "INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?;" - - - basePath: fsm.pitDetail - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.pitDetail.id - query: "UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - version: 1.0 - - - description: "Persists FSM Application details in eg_fsm_application table" - fromTopic: update-fsm-workflow-application - isTransaction: true - queryMaps: - - - basePath: fsm - jsonMaps: - - - jsonPath: $.fsm.id - query: "INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =?" - - - basePath: fsm - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.additionalDetails - type: JSON - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.possibleServiceDate - - - jsonPath: $.fsm.dsoId - - - jsonPath: $.fsm.id - query: "UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=?" - - - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - query: "INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?;" - - - basePath: fsm.pitDetail - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.pitDetail.id - query: "UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - version: 1.0 - - - description: "Persists FSTP-employee mapping in eg_fsm_plantmapping table" - fromTopic: save-plant-map-application - isTransaction: true - queryMaps: - - - basePath: plantMapping - jsonMaps: - - - jsonPath: $.plantMapping.id - - - jsonPath: $.plantMapping.tenantId - - - jsonPath: $.plantMapping.status - - - jsonPath: $.plantMapping.employeeUuid - - - jsonPath: $.plantMapping.plantCode - - - jsonPath: $.plantMapping.auditDetails.createdBy - - - jsonPath: $.plantMapping.auditDetails.lastModifiedBy - - - jsonPath: $.plantMapping.auditDetails.createdTime - - - jsonPath: $.plantMapping.auditDetails.lastModifiedTime - query: "INSERT INTO eg_fsm_plantmapping( id, tenantId, status, employeeUuid, plantCode, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);" - version: 1.0 - - - description: "Update FSTP-employee mapping in eg_fsm_plantmapping table" - fromTopic: update-plant-map-application - isTransaction: true - queryMaps: - - - basePath: plantMapping - jsonMaps: - - - jsonPath: $.plantMapping.status - - - jsonPath: $.plantMapping.employeeUuid - - - jsonPath: $.plantMapping.plantCode - - - jsonPath: $.plantMapping.auditDetails.createdBy - - - jsonPath: $.plantMapping.auditDetails.lastModifiedBy - - - jsonPath: $.plantMapping.auditDetails.createdTime - - - jsonPath: $.plantMapping.auditDetails.lastModifiedTime - - - jsonPath: $.plantMapping.id - query: "UPDATE eg_fsm_plantmapping SET status=?, employeeuuid=?, plantcode=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?" - version: 1.0 +serviceMaps: + serviceName: fsm + mappings: + - version: 1.0 + description: Persists FSM Application details in eg_fsm_application table + fromTopic: save-fsm-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, driver_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.id + + - jsonPath: $.fsm.applicationNo + + - jsonPath: $.fsm.tenantId + + - jsonPath: $.fsm.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.accountId + + - jsonPath: $.fsm.description + + - jsonPath: $.fsm.applicationStatus + + - jsonPath: $.fsm.source + + - jsonPath: $.fsm.sanitationtype + + - jsonPath: $.fsm.propertyUsage + + - jsonPath: $.fsm.noOfTrips + + - jsonPath: $.fsm.status + + - jsonPath: $.fsm.vehicleId + + - jsonPath: $.fsm.driverId + + - jsonPath: $.fsm.vehicleType + + - jsonPath: $.fsm.vehicleCapacity + + - jsonPath: $.fsm.paymentPreference + + - jsonPath: $.fsm.advanceAmount + + - jsonPath: $.fsm.applicationType + + - jsonPath: $.fsm.oldApplicationNo + + - jsonPath: $.fsm.auditDetails.createdBy + + - jsonPath: $.fsm.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.auditDetails.createdTime + + - jsonPath: $.fsm.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_fsm_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street,slumname, fsm_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: fsm.address + jsonMaps: + + - jsonPath: $.fsm.address.id + + - jsonPath: $.fsm.address.tenantId + + - jsonPath: $.fsm.address.doorNo + + - jsonPath: $.fsm.address.plotNo + + - jsonPath: $.fsm.address.landmark + + - jsonPath: $.fsm.address.city + + - jsonPath: $.fsm.address.district + + - jsonPath: $.fsm.address.region + + - jsonPath: $.fsm.address.state + + - jsonPath: $.fsm.address.country + + - jsonPath: $.fsm.address.locality.code + + - jsonPath: $.fsm.address.pincode + + - jsonPath: $.fsm.address.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.buildingName + + - jsonPath: $.fsm.address.street + + - jsonPath: $.fsm.address.slumName + + - jsonPath: $.fsm.id + + - jsonPath: $.fsm.address.auditDetails.createdBy + + - jsonPath: $.fsm.address.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.address.auditDetails.createdTime + + - jsonPath: $.fsm.address.auditDetails.lastModifiedTime + + + + - query: INSERT INTO eg_fsm_geolocation( id, latitude, longitude, additionaldetails, address_id) VALUES (?, ?, ?, ?, ?); + basePath: fsm.address.geoLocation + jsonMaps: + - jsonPath: $.fsm.address.geoLocation.id + + - jsonPath: $.fsm.address.geoLocation.latitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.longitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.id + + - query: INSERT INTO eg_fsm_pit_detail( id, tenantid, height, length, width, diameter, distancefromroad, fsm_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: fsm.pitDetail + jsonMaps: + + - jsonPath: $.fsm.pitDetail.id + + - jsonPath: $.fsm.pitDetail.tenantId + + - jsonPath: $.fsm.pitDetail.height + + - jsonPath: $.fsm.pitDetail.length + + - jsonPath: $.fsm.pitDetail.width + + - jsonPath: $.fsm.pitDetail.diameter + + - jsonPath: $.fsm.pitDetail.distanceFromRoad + + - jsonPath: $.fsm.id + + - dbType: JSONB + jsonPath: $.fsm.pitDetail.additionalDetails + type: JSON + + - jsonPath: $.fsm.pitDetail.auditDetails.createdBy + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.pitDetail.auditDetails.createdTime + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime + + + - version: 1.0 + description: Persists FSM Application details in eg_fsm_application table + fromTopic: update-fsm-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.id + + - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, driver_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.description + + - jsonPath: $.fsm.applicationStatus + + - jsonPath: $.fsm.source + + - jsonPath: $.fsm.sanitationtype + + - jsonPath: $.fsm.propertyUsage + + - jsonPath: $.fsm.noOfTrips + + - jsonPath: $.fsm.status + + - jsonPath: $.fsm.vehicleId + + - jsonPath: $.fsm.driverId + + - jsonPath: $.fsm.vehicleType + + - jsonPath: $.fsm.vehicleCapacity + + - jsonPath: $.fsm.paymentPreference + + - jsonPath: $.fsm.advanceAmount + + - jsonPath: $.fsm.auditDetails.createdBy + + - jsonPath: $.fsm.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.auditDetails.createdTime + + - jsonPath: $.fsm.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.possibleServiceDate + + - jsonPath: $.fsm.dsoId + + - jsonPath: $.fsm.id + + - query: INSERT INTO eg_fsm_address_auditlog SELECT * FROM eg_fsm_address WHERE id =?; + basePath: fsm.address + jsonMaps: + - jsonPath: $.fsm.address.id + + - query: UPDATE eg_fsm_address SET doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?,slumname=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: fsm.address + jsonMaps: + + - jsonPath: $.fsm.address.doorNo + + - jsonPath: $.fsm.address.plotNo + + - jsonPath: $.fsm.address.landmark + + - jsonPath: $.fsm.address.city + + - jsonPath: $.fsm.address.district + + - jsonPath: $.fsm.address.region + + - jsonPath: $.fsm.address.state + + - jsonPath: $.fsm.address.slumName + + - jsonPath: $.fsm.address.country + + - jsonPath: $.fsm.address.locality.code + + - jsonPath: $.fsm.address.pincode + + - jsonPath: $.fsm.address.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.buildingName + + - jsonPath: $.fsm.address.street + + - jsonPath: $.fsm.address.auditDetails.createdBy + + - jsonPath: $.fsm.address.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.address.auditDetails.createdTime + + - jsonPath: $.fsm.address.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.address.id + + - query: INSERT INTO eg_fsm_geolocation_auditlog SELECT * FROM eg_fsm_geolocation WHERE id =?; + basePath: fsm.address.geoLocation + jsonMaps: + - jsonPath: $.fsm.address.geoLocation.id + + - query: UPDATE eg_fsm_geolocation SET latitude=?, longitude=?, additionaldetails=? where id=? + basePath: fsm.address.geoLocation + jsonMaps: + - jsonPath: $.fsm.address.geoLocation.latitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.longitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.geoLocation.id + + - query: INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?; + basePath: fsm.pitDetail + jsonMaps: + - jsonPath: $.fsm.pitDetail.id + + - query: UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: fsm.pitDetail + jsonMaps: + + - dbType: JSONB + jsonPath: $.fsm.pitDetail.additionalDetails + type: JSON + + - jsonPath: $.fsm.pitDetail.height + + - jsonPath: $.fsm.pitDetail.length + + - jsonPath: $.fsm.pitDetail.width + + - jsonPath: $.fsm.pitDetail.diameter + + - jsonPath: $.fsm.pitDetail.distanceFromRoad + + - jsonPath: $.fsm.pitDetail.auditDetails.createdBy + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.pitDetail.auditDetails.createdTime + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.pitDetail.id + + - version: 1.0 + description: Persists FSM Application details in eg_fsm_application table + fromTopic: update-fsm-workflow-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.id + + + - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, driver_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.applicationStatus + + - jsonPath: $.fsm.vehicleId + + - jsonPath: $.fsm.driverId + + - jsonPath: $.fsm.vehicleType + + - jsonPath: $.fsm.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.possibleServiceDate + + - jsonPath: $.fsm.dsoId + + - jsonPath: $.fsm.id + + + - query: INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =? + basePath: fsm.pitDetail + jsonMaps: + + - jsonPath: $.fsm.pitDetail.id + + - query: UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: fsm.pitDetail + jsonMaps: + + - dbType: JSONB + jsonPath: $.fsm.pitDetail.additionalDetails + type: JSON + + - jsonPath: $.fsm.pitDetail.height + + - jsonPath: $.fsm.pitDetail.length + + - jsonPath: $.fsm.pitDetail.width + + - jsonPath: $.fsm.pitDetail.diameter + + - jsonPath: $.fsm.pitDetail.distanceFromRoad + + - jsonPath: $.fsm.pitDetail.auditDetails.createdBy + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.pitDetail.auditDetails.createdTime + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.pitDetail.id + + - version: 1.0 + description: "Persists FSTP-employee mapping in eg_fsm_plantmapping table" + fromTopic: save-plant-map-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_plantmapping( id, tenantId, status, employeeUuid, plantCode, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: plantMapping + jsonMaps: + - jsonPath: $.plantMapping.id + + - jsonPath: $.plantMapping.tenantId + + - jsonPath: $.plantMapping.status + + - jsonPath: $.plantMapping.employeeUuid + + - jsonPath: $.plantMapping.plantCode + + - jsonPath: $.plantMapping.auditDetails.createdBy + + - jsonPath: $.plantMapping.auditDetails.lastModifiedBy + + - jsonPath: $.plantMapping.auditDetails.createdTime + + - jsonPath: $.plantMapping.auditDetails.lastModifiedTime + + - version: 1.0 + description: "Update FSTP-employee mapping in eg_fsm_plantmapping table" + fromTopic: update-plant-map-application + isTransaction: true + queryMaps: + + - query: UPDATE eg_fsm_plantmapping SET status=?, employeeuuid=?, plantcode=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?; + basePath: plantMapping + jsonMaps: + + - jsonPath: $.plantMapping.status + + - jsonPath: $.plantMapping.employeeUuid + + - jsonPath: $.plantMapping.plantCode + + - jsonPath: $.plantMapping.auditDetails.createdBy + + - jsonPath: $.plantMapping.auditDetails.lastModifiedBy + + - jsonPath: $.plantMapping.auditDetails.createdTime + + - jsonPath: $.plantMapping.auditDetails.lastModifiedTime + + - jsonPath: $.plantMapping.id + - - - description: Vehicle Trip details in eg_vehicle_trip and in eg_vehicle_trip_detail table - fromTopic: update-vehicle-trip-Details - isTransaction: true - queryMaps: - - - basePath: $.vehicleTrip.*.tripDetails.* - jsonMaps: + - version: 1.0 + description: Vehicle Trip details in eg_vehicle_trip and in eg_vehicle_trip_detail table + fromTopic: update-vehicle-trip-Details + isTransaction: true + queryMaps: + + - query: UPDATE eg_vehicle_trip_detail SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; + basePath: $.vehicleTrip.*.tripDetails.* + jsonMaps: - - jsonPath: $.vehicleTrip.*.tripDetails.*.status + - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - jsonPath: $.vehicleTrip.*.tripDetails.*.id - query: UPDATE eg_vehicle_trip_detail SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? - - - basePath: $.vehicleTrip.* - jsonMaps: + - jsonPath: $.vehicleTrip.*.tripDetails.*.id + + - query: UPDATE eg_vehicle_trip SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? + basePath: $.vehicleTrip.* + jsonMaps: - - jsonPath: $.vehicleTrip.*.status + - jsonPath: $.vehicleTrip.*.status - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - - jsonPath: $.vehicleTrip.*.id - query: UPDATE eg_vehicle_trip SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? - version: 1.0 - serviceName: fsm - - + - jsonPath: $.vehicleTrip.*.id + + - version: 1.0 + description: Insert FSM Application worker details in eg_fsm_application_worker table + fromTopic: create-fsm-application-workers + isTransaction: true + queryMaps: + - query: INSERT INTO eg_fsm_application_worker( id, tenantId, application_id, individual_id, workerType, status, additionaldetails, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.workers.* + jsonMaps: + - jsonPath: $.workers.*.id + - jsonPath: $.workers.*.tenantId + - jsonPath: $.workers.*.applicationId + - jsonPath: $.workers.*.individualId + - jsonPath: $.workers.*.workerType + - jsonPath: $.workers.*.status + - jsonPath: $.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.workers.*.auditDetails.createdBy + - jsonPath: $.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.workers.*.auditDetails.createdTime + - jsonPath: $.workers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update FSM Application worker details in eg_fsm_application_worker table + fromTopic: update-fsm-application-workers + isTransaction: true + queryMaps: + - query: UPDATE eg_fsm_application_worker SET workerType=?, status=?, additionaldetails=?, createdBy=?, lastmodifiedBy=?, createdTime=?, lastmodifiedTime=? WHERE id=?; + basePath: $.workers.* + jsonMaps: + - jsonPath: $.workers.*.workerType + - jsonPath: $.workers.*.status + - jsonPath: $.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.workers.*.auditDetails.createdBy + - jsonPath: $.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.workers.*.auditDetails.createdTime + - jsonPath: $.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.workers.*.id \ No newline at end of file diff --git a/sanitation/egov-persister/vehicle-persister.yaml b/sanitation/egov-persister/vehicle-persister.yaml index 1755accf7..ba036a187 100755 --- a/sanitation/egov-persister/vehicle-persister.yaml +++ b/sanitation/egov-persister/vehicle-persister.yaml @@ -75,7 +75,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, end_type, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.vehicleTrip.* jsonMaps: - jsonPath: $.vehicleTrip.*.id @@ -99,6 +99,8 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.businessService - jsonPath: $.vehicleTrip.*.applicationStatus + + - jsonPath: $.vehicleTrip.*.endType - jsonPath: $.vehicleTrip.*.tripStartTime @@ -155,7 +157,7 @@ serviceMaps: fromTopic: update-vehicle-trip isTransaction: true queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: @@ -172,6 +174,8 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.applicationStatus + - jsonPath: $.vehicleTrip.*.endType + - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime @@ -222,7 +226,7 @@ serviceMaps: fromTopic: update-workflow-vehicle-trip isTransaction: true queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, end_type=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: @@ -238,6 +242,8 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.status - jsonPath: $.vehicleTrip.*.applicationStatus + + - jsonPath: $.vehicleTrip.*.endType - jsonPath: $.vehicleTrip.*.tripStartTime diff --git a/sanitation/egov-persister/vendor-persister.yaml b/sanitation/egov-persister/vendor-persister.yaml index 1a4cdceb4..0afa0338f 100644 --- a/sanitation/egov-persister/vendor-persister.yaml +++ b/sanitation/egov-persister/vendor-persister.yaml @@ -120,6 +120,22 @@ serviceMaps: - jsonPath: $.vendor.vehicles.*.id - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - version: 1.0 description: Update Vendor details fromTopic: update-vendor-application @@ -205,6 +221,21 @@ serviceMaps: - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - jsonPath: $.vendor.drivers.*.id + - query: UPDATE eg_vendor_sanitation_worker SET tenantid=?, vendor_id= ?, vendor_sw_status=?, additionaldetails=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE individual_id=? + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.workers.*.individualId + - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; basePath: vendor.drivers.* jsonMaps: @@ -304,6 +335,22 @@ serviceMaps: - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - jsonPath: $.vendor.drivers.*.id + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); basePath: vendor.drivers.* jsonMaps: diff --git a/sanitation/pdf-service/data-config/fsm-receipt.json b/sanitation/pdf-service/data-config/fsm-receipt.json index 7b6f79d50..e69de29bb 100644 --- a/sanitation/pdf-service/data-config/fsm-receipt.json +++ b/sanitation/pdf-service/data-config/fsm-receipt.json @@ -1,661 +0,0 @@ -{ - "key": "fsm-receipt", - "documentType": "FSM_RECEIPT", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.Payments.*", - "entityIdPath": "$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "payerName", - "value": { - "path": "$.payerName" - } - }, - { - "variable": "user-name", - "value": { - "path": "$.userInfo.name" - }, - "type": "selectFromRequestInfo" - }, - { - "variable": "payerContact", - "value": { - "path": "$.mobileNumber" - } - }, - { - "variable": "paymentStatus", - "value": { - "path": "$.paymentStatus" - } - }, - { - "variable": "receiptNo", - "value": { - "path": "$.paymentDetails[0].receiptNumber" - } - }, - { - "variable": "serviceType", - "value": { - "path": "$.paymentDetails[0].businessService" - }, - "localisation": { - "required": true, - "prefix": "MODULE", - "module": "rainmaker-common" - } - }, - { - "variable": "paidAmount", - "value": { - "path": "$.paymentDetails[0].totalAmountPaid" - } - }, - { - "variable": "fromPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].fromPeriod" - }, - "type": "date" - }, - { - "variable": "toPeriod", - "value": { - "path": "$.paymentDetails[0].bill.billDetails[0].toPeriod" - }, - "type": "date" - }, - { - "variable": "paymentMode", - "value": { - "path": "$.paymentMode" - }, - "localisation": { - "required": true, - "prefix": "COMMON_MASTERS_PAYMENTMODE", - "module": "rainmaker-common" - } - }, - { - "variable": "G8ReceiptNo", - "value": { - "path": "$.paymentDetails[0].manualReceiptNumber" - } - }, - { - "variable": "G8ReceiptDate", - "value": { - "path": "$.paymentDetails[0].manualReceiptDate" - }, - "type": "date" - }, - { - "variable": "paymentDate", - "value": { - "path": "$.transactionDate" - }, - "type": "date" - }, - { - "variable": "consumerID", - "value": { - "path": "$.paymentDetails[0].bill.consumerCode" - } - }, - { - "variable": "transactionID", - "value": { - "path": "$.transactionNumber" - } - }, - { - "variable": "dueAmount", - "value": { - "path": "$.paymentDetails[0].totalDue" - } - }, - { - "variable": "payment_receipt", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_RECEIPT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_RECEIPT_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "consumer_id", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_CONSUMER_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_date", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAYMENT_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_name", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAYER_NAME" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payer_contact", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYER_CONTACT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_status", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_PAYMENT_STATUS" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "service_type", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_SERVICE_TYPE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "billing_period", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BILLING_PERIOD" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAID_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "due_amount", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_DUE_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "pending_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_AMOUNT_DUE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "excess_amount_paid", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_EXCESS_AMOUNT_PAID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "payment_mode", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_PAYMENT_MODE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "transaction_id", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TRANSACTION_ID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "g8_receipt_no", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_NO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "g8_receipt_date", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_G8_RECEIPT_DATE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "generated_by", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_GENERATED_BY" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "commissioner/eo", - "value": { - "path": "PDF_STATIC_LABEL_FSM_RECEIPT_COMMISSIONER_EO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_signature", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_SIGNATURE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_1", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIRST_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_2", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_SECOND_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_3", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_THIRD_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_4", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_4" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "disclamer_5", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_DISCLAIMER_FIFTH_LINE" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "to", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TO" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "Municipal_Corporation", - "value": { - "path": "PDF_STATIC_LABEL_MDMS_MUNICIPAL_CORPORATION" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_bill_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_BILL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "no_of_trip", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_NO_OF_TRIP" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "amount_per_trip", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_AMOUNT_PER_TRIP" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "advance_paid_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_ADVANCE_AMOUNT_PAID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "total_amount", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_TOTAL_AMOUNT" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - }, - { - "variable": "balance_amount_paid", - "value": { - "path": "PDF_STATIC_LABEL_CONSOLIDATED_RECEIPT_BALANCE_AMOUNT_PAID" - }, - "type": "label", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - - ] - }, - { - "derived": [ - { - "variable": "pendingAmount", - "formula": "{{dueAmount}}>{{paidAmount}}?{{dueAmount}}-{{paidAmount}}:0" - }, - { - "variable": "excessAmountPaid", - "formula": "{{paidAmount}}>{{dueAmount}}?{{paidAmount}}-{{dueAmount}}:0" - }, - { - "variable": "totalAmount", - "formula": "{{noOfTrips}}*{{amountPerTrip}}" - }, - { - "variable": "balanceAmountPaid", - "formula": "{{dueAmount}}=={{paidAmount}}?{{paidAmount}}:0" - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "address", - "value": "$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable": "phoneNumber", - "value": "$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable": "website", - "value": "$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable": "email", - "value": "$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value": "$.MdmsRes.tenant.tenants[0].logoId", - "type": "image" - }, - { - "variable": "logo-header", - "value": "$.MdmsRes.tenant.tenants[0].code", - "localisation": { - "required": true, - "prefix": "TENANT_TENANTS", - "module": "rainmaker-common" - } - }, - { - "variable": "ulbgrade", - "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", - "type": "label", - "localisation": { - "required": true, - "prefix": "ULBGRADE", - "module": "rainmaker-common" - } - } - ] - }, - { - "path": "http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", - "apiRequest": null, - "responseMapping": [ - { - "variable": "variable11", - "value": "$.MdmsRes.tenant.footer[0].receiptFooterContent.*", - "type": "array", - "format": { - "type": "string", - "scema": [ - { - "variable": "disclaimerContent", - "value": "disclaimer", - "type": "string", - "localisation": { - "required": true, - "prefix": null, - "module": "rainmaker-common" - } - } - ] - } - } - ] - }, - { - "path": "http://fsm.sanitation:8080/fsm/v1/_search", - "queryParam": "applicationNos=$.paymentDetails[0].bill.consumerCode,tenantId=$.tenantId", - "apiRequest": null, - "responseMapping":[ - - { - "variable":"noOfTrips", - "value":"$.fsm[0].noOfTrips" - }, - { - "variable":"amountPerTrip", - "value":"$.fsm[0].additionalDetails.tripAmount" - }, - { - "variable":"advancePaidAmount", - "value":"$.fsm[0].advanceAmount" - } - - ] - } - ] - } - ] - } - ] - } -} From a54efccf4483e10975f01f8121f92f450e68d42e Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 14 Dec 2023 15:12:53 +0530 Subject: [PATCH 046/158] add config change for fsm --- .../fsm-calculator-persister.yaml | 45 +------------------ sanitation/egov-persister/fsm-persister.yaml | 14 ++---- 2 files changed, 5 insertions(+), 54 deletions(-) diff --git a/sanitation/egov-persister/fsm-calculator-persister.yaml b/sanitation/egov-persister/fsm-calculator-persister.yaml index 7de6c3feb..427343551 100644 --- a/sanitation/egov-persister/fsm-calculator-persister.yaml +++ b/sanitation/egov-persister/fsm-calculator-persister.yaml @@ -71,47 +71,4 @@ serviceMaps: - jsonPath: $.billingSlab.auditDetails.lastModifiedTime - jsonPath: $.billingSlab.id - - - - version: 1.0 - description: Persists FSM-CALCULATOR ZeroPricing details in eg_zero_pricing table - fromTopic: save-zeroPricing - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_zero_pricing(propertyType,propertySubType,status,tenantId) VALUES (?,?,?,?); - basePath: zeroPricing - jsonMaps: - - jsonPath: $.zeroPricing.propertyType - - - jsonPath: $.zeroPricing.propertySubType - - - jsonPath: $.zeroPricing.status - - - jsonPath: $.zeroPricing.tenantId - - - - version: 1.0 - description: updates FSM-CALCULATOR ZeroPricing details in eg_zero_pricing table - fromTopic: update-zeroPricing - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_zero_pricing_audit SELECT * FROM public.eg_zero_pricing WHERE propertyType=? and propertySubType=? ; - basePath: zeroPricing - jsonMaps: - - - jsonPath: $.zeroPricing.propertyType - - - jsonPath: $.zeroPricing.propertySubType - - - query: UPDATE public.eg_zero_pricing SET status=? where propertyType=? and propertySubType=? and tenantId=?; - basePath: zeroPricing - jsonMaps: - - jsonPath: $.zeroPricing.status - - - jsonPath: $.zeroPricing.propertyType - - - jsonPath: $.zeroPricing.propertySubType - - - jsonPath: $.zeroPricing.tenantId \ No newline at end of file + \ No newline at end of file diff --git a/sanitation/egov-persister/fsm-persister.yaml b/sanitation/egov-persister/fsm-persister.yaml index 8c9a0c4a2..166c1c281 100644 --- a/sanitation/egov-persister/fsm-persister.yaml +++ b/sanitation/egov-persister/fsm-persister.yaml @@ -7,7 +7,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, driver_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); + - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); basePath: fsm jsonMaps: - jsonPath: $.fsm.id @@ -38,8 +38,6 @@ serviceMaps: - jsonPath: $.fsm.vehicleId - - jsonPath: $.fsm.driverId - - jsonPath: $.fsm.vehicleType - jsonPath: $.fsm.vehicleCapacity @@ -174,7 +172,7 @@ serviceMaps: jsonMaps: - jsonPath: $.fsm.id - - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, driver_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? basePath: fsm jsonMaps: - jsonPath: $.fsm.additionalDetails @@ -196,8 +194,6 @@ serviceMaps: - jsonPath: $.fsm.status - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.driverId - jsonPath: $.fsm.vehicleType @@ -337,7 +333,7 @@ serviceMaps: - jsonPath: $.fsm.id - - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, driver_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? basePath: fsm jsonMaps: - jsonPath: $.fsm.additionalDetails @@ -346,9 +342,7 @@ serviceMaps: - jsonPath: $.fsm.applicationStatus - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.driverId + - jsonPath: $.fsm.vehicleId - jsonPath: $.fsm.vehicleType From d8cfbdd77af3c491431f92aba9e215ac1c19c7a8 Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Fri, 15 Dec 2023 12:09:36 +0530 Subject: [PATCH 047/158] updated missing config files for unified-qa --- egov-indexer/referral-management-indexer.yml | 101 +++++++++++ egov-persister/household-persister.yml | 8 +- egov-persister/project-persister.yml | 14 +- .../referral-management-persister.yml | 158 ++++++++++++++++++ 4 files changed, 272 insertions(+), 9 deletions(-) create mode 100644 egov-indexer/referral-management-indexer.yml create mode 100644 egov-persister/referral-management-persister.yml diff --git a/egov-indexer/referral-management-indexer.yml b/egov-indexer/referral-management-indexer.yml new file mode 100644 index 000000000..d1f1ec3f2 --- /dev/null +++ b/egov-indexer/referral-management-indexer.yml @@ -0,0 +1,101 @@ +ServiceMaps: + serviceName: referralmanagement + version: 1.0.0 + mappings: + - topic: transformer-producer-bulk-referral-management-index-v1-topic + configKey: INDEX + indexes: + - name: referral-management-index-v1 + type: referrals + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.createdTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $.lastModifiedBy + outJsonPath: $.Data.userId + - inJsonPath: $.createdTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.province + outJsonPath: $.Data.province + - inJsonPath: $.district + outJsonPath: $.Data.district + - inJsonPath: $.administrativeProvince + outJsonPath: $.Data.administrativeProvince + - inJsonPath: $.locality + outJsonPath: $.Data.locality + - inJsonPath: $.village + outJsonPath: $.Data.village + timeStampField: $.lastModifiedTime + + - topic: save-referral-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-referral-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-referral-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: save-side-effect-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-side-effect-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-side-effect-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-persister/household-persister.yml b/egov-persister/household-persister.yml index 3ecafbaf6..e489a6da8 100644 --- a/egov-persister/household-persister.yml +++ b/egov-persister/household-persister.yml @@ -127,11 +127,12 @@ serviceMaps: fromTopic: save-household-member-topic isTransaction: true queryMaps: - - query: INSERT INTO HOUSEHOLD_MEMBER(id, tenantId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId - jsonPath: $.*.individualId - jsonPath: $.*.individualClientReferenceId - jsonPath: $.*.householdId @@ -155,10 +156,11 @@ serviceMaps: fromTopic: update-household-member-topic isTransaction: true queryMaps: - - query: UPDATE HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; + - query: UPDATE HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.clientReferenceId - jsonPath: $.*.additionalFields type: JSON dbType: JSONB @@ -187,4 +189,4 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.*.id diff --git a/egov-persister/project-persister.yml b/egov-persister/project-persister.yml index 593200a0d..c71393a16 100644 --- a/egov-persister/project-persister.yml +++ b/egov-persister/project-persister.yml @@ -68,7 +68,7 @@ serviceMaps: fromTopic: save-project-beneficiary-topic isTransaction: true queryMaps: - - query: INSERT INTO project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -91,13 +91,14 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.clientAuditDetails.createdBy - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag - version: 1.0 description: Update Project Beneficiary fromTopic: update-project-beneficiary-topic isTransaction: true queryMaps: - - query: UPDATE project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id = ? AND isDeleted=false + - query: UPDATE project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -114,6 +115,7 @@ serviceMaps: - jsonPath: $.*.isDeleted - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag - jsonPath: $.*.id - version: 1.0 @@ -264,7 +266,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStoreId + - jsonPath: $.Projects.*.documents.*.fileStore - jsonPath: $.Projects.*.documents.*.documentUid @@ -412,7 +414,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStoreId + - jsonPath: $.Projects.*.documents.*.fileStore - jsonPath: $.Projects.*.documents.*.documentUid @@ -432,7 +434,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStoreId + - jsonPath: $.Projects.*.documents.*.fileStore - jsonPath: $.Projects.*.documents.*.documentUid @@ -583,4 +585,4 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.*.id diff --git a/egov-persister/referral-management-persister.yml b/egov-persister/referral-management-persister.yml new file mode 100644 index 000000000..8b193bdcb --- /dev/null +++ b/egov-persister/referral-management-persister.yml @@ -0,0 +1,158 @@ +serviceMaps: + serviceName: referralmanagement + mappings: + - version: 1.0 + description: Saves a side effect + fromTopic: save-side-effect-topic + isTransaction: true + queryMaps: + - query: INSERT INTO SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a side effect + fromTopic: update-side-effect-topic + isTransaction: true + queryMaps: + - query: UPDATE SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a side effect + fromTopic: delete-side-effect-topic + isTransaction: true + queryMaps: + - query: UPDATE SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a referral + fromTopic: save-referral-topic + isTransaction: true + queryMaps: + - query: INSERT INTO REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a referral + fromTopic: update-referral-topic + isTransaction: true + queryMaps: + - query: UPDATE REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a referral + fromTopic: delete-referral-topic + isTransaction: true + queryMaps: + - query: UPDATE REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id From 7602aee60c887b58fac6841ea0559345d00acfcc Mon Sep 17 00:00:00 2001 From: SivajiGanesh Nangireddy Date: Fri, 15 Dec 2023 12:14:32 +0530 Subject: [PATCH 048/158] update persister configs of fsm to qa --- egov-persister/fsm-persister.yaml | 52 ++++++++++++-- egov-persister/pqm-persister.yaml | 99 +++++++++++++++++++++++---- egov-persister/vehicle-persister.yaml | 18 +++-- egov-persister/vendor-persister.yaml | 53 +++++++++++++- 4 files changed, 191 insertions(+), 31 deletions(-) diff --git a/egov-persister/fsm-persister.yaml b/egov-persister/fsm-persister.yaml index 88f2a2332..eec2cc076 100644 --- a/egov-persister/fsm-persister.yaml +++ b/egov-persister/fsm-persister.yaml @@ -7,7 +7,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id ,driver_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); + - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, driver_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); basePath: fsm jsonMaps: - jsonPath: $.fsm.id @@ -37,7 +37,7 @@ serviceMaps: - jsonPath: $.fsm.status - jsonPath: $.fsm.vehicleId - + - jsonPath: $.fsm.driverId - jsonPath: $.fsm.vehicleType @@ -162,7 +162,7 @@ serviceMaps: - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - + - version: 1.0 description: Persists FSM Application details in eg_fsm_application table fromTopic: update-fsm-application @@ -349,7 +349,7 @@ serviceMaps: - jsonPath: $.fsm.vehicleId - jsonPath: $.fsm.driverId - + - jsonPath: $.fsm.vehicleType - jsonPath: $.fsm.auditDetails.lastModifiedBy @@ -480,6 +480,44 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - jsonPath: $.vehicleTrip.*.id - - - + + - version: 1.0 + description: Insert FSM Application worker details in eg_fsm_application_worker table + fromTopic: create-fsm-application-workers + isTransaction: true + queryMaps: + - query: INSERT INTO eg_fsm_application_worker( id, tenantId, application_id, individual_id, workerType, status, additionaldetails, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.workers.* + jsonMaps: + - jsonPath: $.workers.*.id + - jsonPath: $.workers.*.tenantId + - jsonPath: $.workers.*.applicationId + - jsonPath: $.workers.*.individualId + - jsonPath: $.workers.*.workerType + - jsonPath: $.workers.*.status + - jsonPath: $.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.workers.*.auditDetails.createdBy + - jsonPath: $.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.workers.*.auditDetails.createdTime + - jsonPath: $.workers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update FSM Application worker details in eg_fsm_application_worker table + fromTopic: update-fsm-application-workers + isTransaction: true + queryMaps: + - query: UPDATE eg_fsm_application_worker SET workerType=?, status=?, additionaldetails=?, createdBy=?, lastmodifiedBy=?, createdTime=?, lastmodifiedTime=? WHERE id=?; + basePath: $.workers.* + jsonMaps: + - jsonPath: $.workers.*.workerType + - jsonPath: $.workers.*.status + - jsonPath: $.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.workers.*.auditDetails.createdBy + - jsonPath: $.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.workers.*.auditDetails.createdTime + - jsonPath: $.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.workers.*.id diff --git a/egov-persister/pqm-persister.yaml b/egov-persister/pqm-persister.yaml index 0c4aa9561..8cb4ca524 100644 --- a/egov-persister/pqm-persister.yaml +++ b/egov-persister/pqm-persister.yaml @@ -6,11 +6,13 @@ serviceMaps: fromTopic: save-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests(id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests(id,testId, tenantId, testCode, plantCode, processCode, stageCode, materialCode, deviceCode, sourceType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.testCode - jsonPath: $.tests.*.plantCode - jsonPath: $.tests.*.processCode - jsonPath: $.tests.*.stageCode @@ -38,7 +40,7 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.documentUid - jsonPath: $.tests.*.documents.*.documentUri - jsonPath: $.tests.*.documents.*.documentType - - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.fileStoreId - jsonPath: $.tests.*.documents.*.isActive - jsonPath: $.tests.*.documents.*.additionalDetails type: JSON @@ -62,11 +64,13 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_tests_auditlog (id, tenantId, plantCode, processCode, stageCode, materialCode, deviceCode, testType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests_auditlog (id, testId, tenantId, testCode, plantCode, processCode, stageCode, materialCode, deviceCode, sourceType, status, wfStatus, scheduledDate, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - jsonPath: $.tests.*.tenantId + - jsonPath: $.tests.*.testCode - jsonPath: $.tests.*.plantCode - jsonPath: $.tests.*.processCode - jsonPath: $.tests.*.stageCode @@ -93,7 +97,7 @@ serviceMaps: - jsonPath: $.tests.*.documents.*.documentUid - jsonPath: $.tests.*.documents.*.documentUri - jsonPath: $.tests.*.documents.*.documentType - - jsonPath: $.tests.*.documents.*.filestoreId + - jsonPath: $.tests.*.documents.*.fileStoreId - jsonPath: $.tests.*.documents.*.additionalDetails type: JSON dbType: JSONB @@ -122,12 +126,8 @@ serviceMaps: fromTopic: update-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? - basePath: $.tests.* - jsonMaps: - - jsonPath: $.tests.*.id - - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?, wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ?, labAssignedTo = ? WHERE testId = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status @@ -136,9 +136,16 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.labAssignedTo + - jsonPath: $.tests.*.testId - - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE testId = ? + basePath: $.tests.* + jsonMaps: + - jsonPath: $.tests.*.testId + + + - query: INSERT INTO eg_pqm_test_result_documents (id, testId, documentUid, documentUri, documentType, filestoreId, isActive, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?); basePath: $.tests.*.documents.* jsonMaps: - jsonPath: $.tests.*.documents.*.id @@ -197,12 +204,12 @@ serviceMaps: fromTopic: update-workflow-test-application isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE id = ? + - query: INSERT INTO eg_pqm_tests_auditlog SELECT * FROM eg_pqm_tests WHERE testId = ? basePath: $.tests.* jsonMaps: - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE eg_pqm_tests SET status = ?,wfStatus = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE testId = ?; basePath: $.tests.* jsonMaps: - jsonPath: $.tests.*.status @@ -211,7 +218,7 @@ serviceMaps: - jsonPath: $.tests.*.auditDetails.lastModifiedBy - jsonPath: $.tests.*.auditDetails.createdTime - jsonPath: $.tests.*.auditDetails.lastModifiedTime - - jsonPath: $.tests.*.id + - jsonPath: $.tests.*.testId - query: INSERT INTO eg_pqm_test_criteria_results_auditlog SELECT * FROM eg_pqm_test_criteria_results WHERE id = ? basePath: $.tests.*.testCriteria.* @@ -229,3 +236,65 @@ serviceMaps: - jsonPath: $.tests.*.testCriteria.*.auditDetails.createdTime - jsonPath: $.tests.*.testCriteria.*.auditDetails.lastModifiedTime - jsonPath: $.tests.*.testCriteria.*.id + + - version: 1.0 + description: Save plant and user mapping in eq_plant_user_map table + fromTopic: save-plant-user-mapping + isTransaction: true + queryMaps: + - query: INSERT INTO eq_plant_user_map(id, tenantId, plantCode, plantUserUuid, plantUserType, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.id + - jsonPath: $.plantUsers.*.tenantId + - jsonPath: $.plantUsers.*.plantCode + - jsonPath: $.plantUsers.*.plantUserUuid + - jsonPath: $.plantUsers.*.plantUserType + - jsonPath: $.plantUsers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.plantUsers.*.isActive + - jsonPath: $.plantUsers.*.auditDetails.createdBy + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy + - jsonPath: $.plantUsers.*.auditDetails.createdTime + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eq_plant_user_map_auditlog(id, tenantId, plantCode, plantUserUuid, plantUserType, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.id + - jsonPath: $.plantUsers.*.tenantId + - jsonPath: $.plantUsers.*.plantCode + - jsonPath: $.plantUsers.*.plantUserUuid + - jsonPath: $.plantUsers.*.plantUserType + - jsonPath: $.plantUsers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.plantUsers.*.isActive + - jsonPath: $.plantUsers.*.auditDetails.createdBy + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy + - jsonPath: $.plantUsers.*.auditDetails.createdTime + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update plant and user mapping in eq_plant_user_map table + fromTopic: update-plant-user-mapping + isTransaction: true + queryMaps: + - query: INSERT INTO eq_plant_user_map_auditlog SELECT * FROM eq_plant_user_map WHERE id = ? + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.id + + - query: UPDATE eq_plant_user_map SET isActive = ?, additionalDetails = ?::jsonb, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.plantUsers.* + jsonMaps: + - jsonPath: $.plantUsers.*.isActive + - jsonPath: $.plantUsers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.plantUsers.*.auditDetails.createdBy + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy + - jsonPath: $.plantUsers.*.auditDetails.createdTime + - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime + - jsonPath: $.plantUsers.*.id diff --git a/egov-persister/vehicle-persister.yaml b/egov-persister/vehicle-persister.yaml index 1755accf7..a0b7a50cc 100755 --- a/egov-persister/vehicle-persister.yaml +++ b/egov-persister/vehicle-persister.yaml @@ -75,7 +75,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, end_type, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.vehicleTrip.* jsonMaps: - jsonPath: $.vehicleTrip.*.id @@ -99,7 +99,9 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.businessService - jsonPath: $.vehicleTrip.*.applicationStatus - + + - jsonPath: $.vehicleTrip.*.endType + - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime @@ -155,7 +157,7 @@ serviceMaps: fromTopic: update-vehicle-trip isTransaction: true queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: @@ -171,7 +173,9 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.status - jsonPath: $.vehicleTrip.*.applicationStatus - + + - jsonPath: $.vehicleTrip.*.endType + - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime @@ -222,7 +226,7 @@ serviceMaps: fromTopic: update-workflow-vehicle-trip isTransaction: true queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, end_type=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: @@ -238,7 +242,9 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.status - jsonPath: $.vehicleTrip.*.applicationStatus - + + - jsonPath: $.vehicleTrip.*.endType + - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime diff --git a/egov-persister/vendor-persister.yaml b/egov-persister/vendor-persister.yaml index 1a4cdceb4..fbf39365b 100644 --- a/egov-persister/vendor-persister.yaml +++ b/egov-persister/vendor-persister.yaml @@ -119,7 +119,23 @@ serviceMaps: - jsonPath: $.vendor.id - jsonPath: $.vendor.vehicles.*.id - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - + + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - version: 1.0 description: Update Vendor details fromTopic: update-vendor-application @@ -204,7 +220,22 @@ serviceMaps: - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - jsonPath: $.vendor.drivers.*.id - + + - query: UPDATE eg_vendor_sanitation_worker SET tenantid=?, vendor_id= ?, vendor_sw_status=?, additionaldetails=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE individual_id=? + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.workers.*.individualId + - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; basePath: vendor.drivers.* jsonMaps: @@ -303,7 +334,23 @@ serviceMaps: - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - jsonPath: $.vendor.drivers.*.id - + + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); basePath: vendor.drivers.* jsonMaps: From 42431db4248fdc387e746799d2da728a1f1cb034 Mon Sep 17 00:00:00 2001 From: SivajiGanesh Nangireddy Date: Fri, 15 Dec 2023 12:41:48 +0530 Subject: [PATCH 049/158] update persister and indexer configs of fsm to qa --- sanitation/egov-indexer/egov-fsm.yaml | 8 +- sanitation/egov-indexer/egov-vehicle.yaml | 24 +- .../fsm-calculator-persister.yaml | 187 +-- sanitation/egov-persister/fsm-persister.yaml | 1008 ++++++++--------- .../egov-persister/vehicle-persister.yaml | 224 ++-- .../egov-persister/vendor-persister.yaml | 836 +++++++------- 6 files changed, 1165 insertions(+), 1122 deletions(-) diff --git a/sanitation/egov-indexer/egov-fsm.yaml b/sanitation/egov-indexer/egov-fsm.yaml index 36b08727d..5871fcd31 100644 --- a/sanitation/egov-indexer/egov-fsm.yaml +++ b/sanitation/egov-indexer/egov-fsm.yaml @@ -16,7 +16,7 @@ ServiceMaps: fieldMapping: - inJsonPath: $ outJsonPath: $.Data.fsm - e apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","autxternalUriMapping: + externalUriMapping: - path: http://egov-location.egov:8080/egov-location/location/v11/boundarys/_search queryParam: hierarchyTypeCode=REVENUE,boundaryType=locality,codes=$.address.locality.code,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} @@ -25,7 +25,7 @@ ServiceMaps: outJsonPath: $.Data.ward - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId - apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history @@ -81,7 +81,7 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.Payments outJsonPath: $.Data.payments - - path: http://vendor.sanitation:8080/vendor/v1/_search + - path: http://vendor.sanitation:8080/vendor/v1/_search queryParam: ids=$.dsoId,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"Employee","code":"FSM_EDITOR_EMP","tenantId":"pg.citya"}]}}} uriResponseMapping: @@ -159,7 +159,7 @@ ServiceMaps: - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search moduleName: tenant masterName: tenants - tenantId: pb + tenantId: pg filter: "[?(@.code == $tenant)]" filterMapping: - variable: $tenant diff --git a/sanitation/egov-indexer/egov-vehicle.yaml b/sanitation/egov-indexer/egov-vehicle.yaml index 3633563d8..898626395 100644 --- a/sanitation/egov-indexer/egov-vehicle.yaml +++ b/sanitation/egov-indexer/egov-vehicle.yaml @@ -39,7 +39,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{vehicleTrip":{},"tenantData":{},"history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -51,7 +51,7 @@ ServiceMaps: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - path: http://fsm.sanitation:8080/fsm/v1/_search - queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId + queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -90,7 +90,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {{"Data":{vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -101,8 +101,8 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId + - path: http://fsm.sanitation:8080/fsm/v1/_search + queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -141,7 +141,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -152,8 +152,8 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId + - path: http://fsm.sanitation:8080/fsm/v1/_search + queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -192,7 +192,7 @@ ServiceMaps: timeStampField: $.auditDetails.createdTime jsonPath: $.vehicleTrip.* customJsonMapping: - indexMapping: {"Data":{vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} + indexMapping: {"Data":{"vehicleTrip":{},"tenantData":{}, "history":{},"fsm":{},"fstpPlantInfo":{}}} fieldMapping: - inJsonPath: $ outJsonPath: $.Data.vehicleTrip @@ -203,8 +203,8 @@ ServiceMaps: uriResponseMapping: - inJsonPath: $.ProcessInstances outJsonPath: $.Data.history - - path: http://fsm.egov:8080/fsm/v1/_search - queryParam: applicationNos=$.tripDetails[0].referenceNo,tenantId=$.tenantId + - path: http://fsm.sanitation:8080/fsm/v1/_search + queryParam: applicationNos=$.Data.vehicleTrip.tripDetails[0].referenceNo,tenantId=$.tenantId apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"},{"name":"FSTP OPERATOR","code":"FSM_EMP_FSTPO","tenantId":"pg.citya"}]}}} uriResponseMapping: - inJsonPath: $.fsm @@ -241,7 +241,7 @@ ServiceMaps: id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime - jsonPath: $.vehicle + jsonPath: $.vehicle.* customJsonMapping: indexMapping: {"Data":{"vehicle":{},"tenantData":{}}} fieldMapping: diff --git a/sanitation/egov-persister/fsm-calculator-persister.yaml b/sanitation/egov-persister/fsm-calculator-persister.yaml index 427343551..c1560c9c4 100644 --- a/sanitation/egov-persister/fsm-calculator-persister.yaml +++ b/sanitation/egov-persister/fsm-calculator-persister.yaml @@ -1,74 +1,117 @@ serviceMaps: - serviceName: fsm-calculator - mappings: - - version: 1.0 - description: Persists FSM-CALCULATOR Application details in eg_billing_slab table - fromTopic: save-fsm-billing-slab - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_billing_slab(id,tenantid,capacityfrom,capacityto,propertytype,slum,price,status,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); - basePath: billingSlab - jsonMaps: - - jsonPath: $.billingSlab.id - - - jsonPath: $.billingSlab.tenantId - - - jsonPath: $.billingSlab.capacityFrom - - - jsonPath: $.billingSlab.capacityTo - - - jsonPath: $.billingSlab.propertyType - - - jsonPath: $.billingSlab.slum - - - jsonPath: $.billingSlab.price - - - jsonPath: $.billingSlab.status - - - jsonPath: $.billingSlab.auditDetails.createdBy - - - jsonPath: $.billingSlab.auditDetails.lastModifiedBy - - - jsonPath: $.billingSlab.auditDetails.createdTime - - - jsonPath: $.billingSlab.auditDetails.lastModifiedTime - - - version: 1.0 - description: updates FSM-CALCULATOR Application details in eg_billing_slab table - fromTopic: update-fsm-billing-slab - isTransaction: true - queryMaps: - - - query: INSERT INTO public.eg_billing_slab_auditlog SELECT * FROM public.eg_billing_slab WHERE id =? - basePath: billingSlab - jsonMaps: + serviceName: fsm-calculator + mappings: + - version: 1.0 + description: Persists FSM-CALCULATOR Application details in eg_billing_slab table + fromTopic: save-fsm-billing-slab + isTransaction: true + queryMaps: + + - query: INSERT INTO public.eg_billing_slab(id,tenantid,capacityfrom,capacityto,propertytype,slum,price,status,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + basePath: billingSlab + jsonMaps: + - jsonPath: $.billingSlab.id + + - jsonPath: $.billingSlab.tenantId + + - jsonPath: $.billingSlab.capacityFrom + + - jsonPath: $.billingSlab.capacityTo + + - jsonPath: $.billingSlab.propertyType + + - jsonPath: $.billingSlab.slum + + - jsonPath: $.billingSlab.price + + - jsonPath: $.billingSlab.status + + - jsonPath: $.billingSlab.auditDetails.createdBy + + - jsonPath: $.billingSlab.auditDetails.lastModifiedBy + + - jsonPath: $.billingSlab.auditDetails.createdTime + + - jsonPath: $.billingSlab.auditDetails.lastModifiedTime + + - version: 1.0 + description: updates FSM-CALCULATOR Application details in eg_billing_slab table + fromTopic: update-fsm-billing-slab + isTransaction: true + queryMaps: + + - query: INSERT INTO public.eg_billing_slab_auditlog SELECT * FROM public.eg_billing_slab WHERE id =? + basePath: billingSlab + jsonMaps: - jsonPath: $.billingSlab.id - - - query: UPDATE public.eg_billing_slab SET tenantid=?, capacityfrom=?, capacityto=?, propertytype=?, slum=?, price=?, status=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? - basePath: billingSlab - jsonMaps: - - jsonPath: $.billingSlab.tenantId - - - jsonPath: $.billingSlab.capacityFrom - - - jsonPath: $.billingSlab.capacityTo - - - jsonPath: $.billingSlab.propertyType - - - jsonPath: $.billingSlab.slum - - - jsonPath: $.billingSlab.price - - - jsonPath: $.billingSlab.status - - - jsonPath: $.billingSlab.auditDetails.createdBy - - - jsonPath: $.billingSlab.auditDetails.lastModifiedBy - - - jsonPath: $.billingSlab.auditDetails.createdTime - - - jsonPath: $.billingSlab.auditDetails.lastModifiedTime - - - jsonPath: $.billingSlab.id - \ No newline at end of file + + - query: UPDATE public.eg_billing_slab SET tenantid=?, capacityfrom=?, capacityto=?, propertytype=?, slum=?, price=?, status=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: billingSlab + jsonMaps: + - jsonPath: $.billingSlab.tenantId + + - jsonPath: $.billingSlab.capacityFrom + + - jsonPath: $.billingSlab.capacityTo + + - jsonPath: $.billingSlab.propertyType + + - jsonPath: $.billingSlab.slum + + - jsonPath: $.billingSlab.price + + - jsonPath: $.billingSlab.status + + - jsonPath: $.billingSlab.auditDetails.createdBy + + - jsonPath: $.billingSlab.auditDetails.lastModifiedBy + + - jsonPath: $.billingSlab.auditDetails.createdTime + + - jsonPath: $.billingSlab.auditDetails.lastModifiedTime + + - jsonPath: $.billingSlab.id + + + - version: 1.0 + description: Persists FSM-CALCULATOR ZeroPricing details in eg_zero_pricing table + fromTopic: save-zeroPricing + isTransaction: true + queryMaps: + + - query: INSERT INTO public.eg_zero_pricing(propertyType,propertySubType,status,tenantId) VALUES (?,?,?,?); + basePath: zeroPricing + jsonMaps: + - jsonPath: $.zeroPricing.propertyType + + - jsonPath: $.zeroPricing.propertySubType + + - jsonPath: $.zeroPricing.status + + - jsonPath: $.zeroPricing.tenantId + + + - version: 1.0 + description: updates FSM-CALCULATOR ZeroPricing details in eg_zero_pricing table + fromTopic: update-zeroPricing + isTransaction: true + queryMaps: + + - query: INSERT INTO public.eg_zero_pricing_audit SELECT * FROM public.eg_zero_pricing WHERE propertyType=? and propertySubType=? ; + basePath: zeroPricing + jsonMaps: + + - jsonPath: $.zeroPricing.propertyType + + - jsonPath: $.zeroPricing.propertySubType + + - query: UPDATE public.eg_zero_pricing SET status=? where propertyType=? and propertySubType=? and tenantId=?; + basePath: zeroPricing + jsonMaps: + - jsonPath: $.zeroPricing.status + + - jsonPath: $.zeroPricing.propertyType + + - jsonPath: $.zeroPricing.propertySubType + + - jsonPath: $.zeroPricing.tenantId diff --git a/sanitation/egov-persister/fsm-persister.yaml b/sanitation/egov-persister/fsm-persister.yaml index 166c1c281..d73e8a4a3 100644 --- a/sanitation/egov-persister/fsm-persister.yaml +++ b/sanitation/egov-persister/fsm-persister.yaml @@ -1,517 +1,517 @@ serviceMaps: - serviceName: fsm - mappings: - - version: 1.0 - description: Persists FSM Application details in eg_fsm_application table - fromTopic: save-fsm-application - isTransaction: true - queryMaps: + serviceName: fsm + mappings: + - version: 1.0 + description: Persists FSM Application details in eg_fsm_application table + fromTopic: save-fsm-application + isTransaction: true + queryMaps: - - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); - basePath: fsm - jsonMaps: - - jsonPath: $.fsm.id + - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.id - - jsonPath: $.fsm.applicationNo - - - jsonPath: $.fsm.tenantId + - jsonPath: $.fsm.applicationNo - - jsonPath: $.fsm.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.accountId + - jsonPath: $.fsm.tenantId - - jsonPath: $.fsm.description - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.source - - - jsonPath: $.fsm.sanitationtype - - - jsonPath: $.fsm.propertyUsage - - - jsonPath: $.fsm.noOfTrips - - - jsonPath: $.fsm.status - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.vehicleCapacity - - - jsonPath: $.fsm.paymentPreference - - - jsonPath: $.fsm.advanceAmount - - - jsonPath: $.fsm.applicationType - - - jsonPath: $.fsm.oldApplicationNo + - jsonPath: $.fsm.additionalDetails + type: JSON + dbType: JSONB - - jsonPath: $.fsm.auditDetails.createdBy + - jsonPath: $.fsm.accountId - - jsonPath: $.fsm.auditDetails.lastModifiedBy + - jsonPath: $.fsm.description - - jsonPath: $.fsm.auditDetails.createdTime + - jsonPath: $.fsm.applicationStatus - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_fsm_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street,slumname, fsm_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: fsm.address - jsonMaps: + - jsonPath: $.fsm.source - - jsonPath: $.fsm.address.id + - jsonPath: $.fsm.sanitationtype - - jsonPath: $.fsm.address.tenantId + - jsonPath: $.fsm.propertyUsage - - jsonPath: $.fsm.address.doorNo + - jsonPath: $.fsm.noOfTrips - - jsonPath: $.fsm.address.plotNo - - - jsonPath: $.fsm.address.landmark - - - jsonPath: $.fsm.address.city - - - jsonPath: $.fsm.address.district - - - jsonPath: $.fsm.address.region - - - jsonPath: $.fsm.address.state - - - jsonPath: $.fsm.address.country - - - jsonPath: $.fsm.address.locality.code - - - jsonPath: $.fsm.address.pincode - - - jsonPath: $.fsm.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.address.buildingName - - - jsonPath: $.fsm.address.street - - - jsonPath: $.fsm.address.slumName - - - jsonPath: $.fsm.id - - - jsonPath: $.fsm.address.auditDetails.createdBy - - - jsonPath: $.fsm.address.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.address.auditDetails.createdTime - - - jsonPath: $.fsm.address.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_fsm_geolocation( id, latitude, longitude, additionaldetails, address_id) VALUES (?, ?, ?, ?, ?); - basePath: fsm.address.geoLocation - jsonMaps: - - jsonPath: $.fsm.address.geoLocation.id - - - jsonPath: $.fsm.address.geoLocation.latitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.fsm.address.geoLocation.longitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.fsm.address.geoLocation.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.address.id - - - query: INSERT INTO eg_fsm_pit_detail( id, tenantid, height, length, width, diameter, distancefromroad, fsm_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - - - jsonPath: $.fsm.pitDetail.tenantId - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.id - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - - version: 1.0 - description: Persists FSM Application details in eg_fsm_application table - fromTopic: update-fsm-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =? - basePath: fsm - jsonMaps: - - jsonPath: $.fsm.id - - - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? - basePath: fsm - jsonMaps: - - jsonPath: $.fsm.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.description - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.source - - - jsonPath: $.fsm.sanitationtype - - - jsonPath: $.fsm.propertyUsage - - - jsonPath: $.fsm.noOfTrips - - - jsonPath: $.fsm.status - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.vehicleCapacity - - - jsonPath: $.fsm.paymentPreference - - - jsonPath: $.fsm.advanceAmount - - - jsonPath: $.fsm.auditDetails.createdBy - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.createdTime - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.possibleServiceDate - - - jsonPath: $.fsm.dsoId - - - jsonPath: $.fsm.id - - - query: INSERT INTO eg_fsm_address_auditlog SELECT * FROM eg_fsm_address WHERE id =?; - basePath: fsm.address - jsonMaps: - - jsonPath: $.fsm.address.id - - - query: UPDATE eg_fsm_address SET doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?,slumname=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? - basePath: fsm.address - jsonMaps: - - - jsonPath: $.fsm.address.doorNo - - - jsonPath: $.fsm.address.plotNo - - - jsonPath: $.fsm.address.landmark - - - jsonPath: $.fsm.address.city - - - jsonPath: $.fsm.address.district - - - jsonPath: $.fsm.address.region - - - jsonPath: $.fsm.address.state - - - jsonPath: $.fsm.address.slumName - - - jsonPath: $.fsm.address.country - - - jsonPath: $.fsm.address.locality.code - - - jsonPath: $.fsm.address.pincode - - - jsonPath: $.fsm.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.address.buildingName - - - jsonPath: $.fsm.address.street - - - jsonPath: $.fsm.address.auditDetails.createdBy - - - jsonPath: $.fsm.address.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.address.auditDetails.createdTime - - - jsonPath: $.fsm.address.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.address.id - - - query: INSERT INTO eg_fsm_geolocation_auditlog SELECT * FROM eg_fsm_geolocation WHERE id =?; - basePath: fsm.address.geoLocation - jsonMaps: - - jsonPath: $.fsm.address.geoLocation.id - - - query: UPDATE eg_fsm_geolocation SET latitude=?, longitude=?, additionaldetails=? where id=? - basePath: fsm.address.geoLocation - jsonMaps: - - jsonPath: $.fsm.address.geoLocation.latitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.fsm.address.geoLocation.longitude - type: DOUBLE - dbType: DOUBLE - - - jsonPath: $.fsm.address.geoLocation.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.address.geoLocation.id - - - query: INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?; - basePath: fsm.pitDetail - jsonMaps: - - jsonPath: $.fsm.pitDetail.id - - - query: UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? - basePath: fsm.pitDetail - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.pitDetail.id - - - version: 1.0 - description: Persists FSM Application details in eg_fsm_application table - fromTopic: update-fsm-workflow-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =? - basePath: fsm - jsonMaps: - - jsonPath: $.fsm.id - - - - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? - basePath: fsm - jsonMaps: - - jsonPath: $.fsm.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.fsm.applicationStatus - - - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.vehicleType - - - jsonPath: $.fsm.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.possibleServiceDate - - - jsonPath: $.fsm.dsoId - - - jsonPath: $.fsm.id - - - - query: INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =? - basePath: fsm.pitDetail - jsonMaps: - - - jsonPath: $.fsm.pitDetail.id - - - query: UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? - basePath: fsm.pitDetail - jsonMaps: - - - dbType: JSONB - jsonPath: $.fsm.pitDetail.additionalDetails - type: JSON - - - jsonPath: $.fsm.pitDetail.height - - - jsonPath: $.fsm.pitDetail.length - - - jsonPath: $.fsm.pitDetail.width - - - jsonPath: $.fsm.pitDetail.diameter - - - jsonPath: $.fsm.pitDetail.distanceFromRoad - - - jsonPath: $.fsm.pitDetail.auditDetails.createdBy - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy - - - jsonPath: $.fsm.pitDetail.auditDetails.createdTime - - - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime - - - jsonPath: $.fsm.pitDetail.id - - - version: 1.0 - description: "Persists FSTP-employee mapping in eg_fsm_plantmapping table" - fromTopic: save-plant-map-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_fsm_plantmapping( id, tenantId, status, employeeUuid, plantCode, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: plantMapping - jsonMaps: - - jsonPath: $.plantMapping.id - - - jsonPath: $.plantMapping.tenantId - - - jsonPath: $.plantMapping.status - - - jsonPath: $.plantMapping.employeeUuid - - - jsonPath: $.plantMapping.plantCode - - - jsonPath: $.plantMapping.auditDetails.createdBy - - - jsonPath: $.plantMapping.auditDetails.lastModifiedBy - - - jsonPath: $.plantMapping.auditDetails.createdTime - - - jsonPath: $.plantMapping.auditDetails.lastModifiedTime - - - version: 1.0 - description: "Update FSTP-employee mapping in eg_fsm_plantmapping table" - fromTopic: update-plant-map-application - isTransaction: true - queryMaps: - - - query: UPDATE eg_fsm_plantmapping SET status=?, employeeuuid=?, plantcode=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?; - basePath: plantMapping - jsonMaps: - - - jsonPath: $.plantMapping.status - - - jsonPath: $.plantMapping.employeeUuid - - - jsonPath: $.plantMapping.plantCode - - - jsonPath: $.plantMapping.auditDetails.createdBy - - - jsonPath: $.plantMapping.auditDetails.lastModifiedBy - - - jsonPath: $.plantMapping.auditDetails.createdTime - - - jsonPath: $.plantMapping.auditDetails.lastModifiedTime - - - jsonPath: $.plantMapping.id - - - - version: 1.0 - description: Vehicle Trip details in eg_vehicle_trip and in eg_vehicle_trip_detail table - fromTopic: update-vehicle-trip-Details - isTransaction: true - queryMaps: - - - query: UPDATE eg_vehicle_trip_detail SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; - basePath: $.vehicleTrip.*.tripDetails.* - jsonMaps: - - - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.id - - - query: UPDATE eg_vehicle_trip SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? - basePath: $.vehicleTrip.* - jsonMaps: - - - jsonPath: $.vehicleTrip.*.status - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - - - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.id - - - version: 1.0 - description: Insert FSM Application worker details in eg_fsm_application_worker table - fromTopic: create-fsm-application-workers - isTransaction: true - queryMaps: - - query: INSERT INTO eg_fsm_application_worker( id, tenantId, application_id, individual_id, workerType, status, additionaldetails, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.workers.* - jsonMaps: - - jsonPath: $.workers.*.id - - jsonPath: $.workers.*.tenantId - - jsonPath: $.workers.*.applicationId - - jsonPath: $.workers.*.individualId - - jsonPath: $.workers.*.workerType - - jsonPath: $.workers.*.status - - jsonPath: $.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.workers.*.auditDetails.createdBy - - jsonPath: $.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.workers.*.auditDetails.createdTime - - jsonPath: $.workers.*.auditDetails.lastModifiedTime - - - version: 1.0 - description: Update FSM Application worker details in eg_fsm_application_worker table - fromTopic: update-fsm-application-workers - isTransaction: true - queryMaps: - - query: UPDATE eg_fsm_application_worker SET workerType=?, status=?, additionaldetails=?, createdBy=?, lastmodifiedBy=?, createdTime=?, lastmodifiedTime=? WHERE id=?; - basePath: $.workers.* - jsonMaps: - - jsonPath: $.workers.*.workerType - - jsonPath: $.workers.*.status - - jsonPath: $.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.workers.*.auditDetails.createdBy - - jsonPath: $.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.workers.*.auditDetails.createdTime - - jsonPath: $.workers.*.auditDetails.lastModifiedTime - - jsonPath: $.workers.*.id \ No newline at end of file + - jsonPath: $.fsm.status + + - jsonPath: $.fsm.vehicleId + + - jsonPath: $.fsm.vehicleType + + - jsonPath: $.fsm.vehicleCapacity + + - jsonPath: $.fsm.paymentPreference + + - jsonPath: $.fsm.advanceAmount + + - jsonPath: $.fsm.applicationType + + - jsonPath: $.fsm.oldApplicationNo + + - jsonPath: $.fsm.auditDetails.createdBy + + - jsonPath: $.fsm.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.auditDetails.createdTime + + - jsonPath: $.fsm.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_fsm_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street,slumname, fsm_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: fsm.address + jsonMaps: + + - jsonPath: $.fsm.address.id + + - jsonPath: $.fsm.address.tenantId + + - jsonPath: $.fsm.address.doorNo + + - jsonPath: $.fsm.address.plotNo + + - jsonPath: $.fsm.address.landmark + + - jsonPath: $.fsm.address.city + + - jsonPath: $.fsm.address.district + + - jsonPath: $.fsm.address.region + + - jsonPath: $.fsm.address.state + + - jsonPath: $.fsm.address.country + + - jsonPath: $.fsm.address.locality.code + + - jsonPath: $.fsm.address.pincode + + - jsonPath: $.fsm.address.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.buildingName + + - jsonPath: $.fsm.address.street + + - jsonPath: $.fsm.address.slumName + + - jsonPath: $.fsm.id + + - jsonPath: $.fsm.address.auditDetails.createdBy + + - jsonPath: $.fsm.address.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.address.auditDetails.createdTime + + - jsonPath: $.fsm.address.auditDetails.lastModifiedTime + + + + - query: INSERT INTO eg_fsm_geolocation( id, latitude, longitude, additionaldetails, address_id) VALUES (?, ?, ?, ?, ?); + basePath: fsm.address.geoLocation + jsonMaps: + - jsonPath: $.fsm.address.geoLocation.id + + - jsonPath: $.fsm.address.geoLocation.latitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.longitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.id + + - query: INSERT INTO eg_fsm_pit_detail( id, tenantid, height, length, width, diameter, distancefromroad, fsm_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: fsm.pitDetail + jsonMaps: + + - jsonPath: $.fsm.pitDetail.id + + - jsonPath: $.fsm.pitDetail.tenantId + + - jsonPath: $.fsm.pitDetail.height + + - jsonPath: $.fsm.pitDetail.length + + - jsonPath: $.fsm.pitDetail.width + + - jsonPath: $.fsm.pitDetail.diameter + + - jsonPath: $.fsm.pitDetail.distanceFromRoad + + - jsonPath: $.fsm.id + + - dbType: JSONB + jsonPath: $.fsm.pitDetail.additionalDetails + type: JSON + + - jsonPath: $.fsm.pitDetail.auditDetails.createdBy + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.pitDetail.auditDetails.createdTime + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime + + + - version: 1.0 + description: Persists FSM Application details in eg_fsm_application table + fromTopic: update-fsm-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.id + + - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.description + + - jsonPath: $.fsm.applicationStatus + + - jsonPath: $.fsm.source + + - jsonPath: $.fsm.sanitationtype + + - jsonPath: $.fsm.propertyUsage + + - jsonPath: $.fsm.noOfTrips + + - jsonPath: $.fsm.status + + - jsonPath: $.fsm.vehicleId + + - jsonPath: $.fsm.vehicleType + + - jsonPath: $.fsm.vehicleCapacity + + - jsonPath: $.fsm.paymentPreference + + - jsonPath: $.fsm.advanceAmount + + - jsonPath: $.fsm.auditDetails.createdBy + + - jsonPath: $.fsm.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.auditDetails.createdTime + + - jsonPath: $.fsm.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.possibleServiceDate + + - jsonPath: $.fsm.dsoId + + - jsonPath: $.fsm.id + + - query: INSERT INTO eg_fsm_address_auditlog SELECT * FROM eg_fsm_address WHERE id =?; + basePath: fsm.address + jsonMaps: + - jsonPath: $.fsm.address.id + + - query: UPDATE eg_fsm_address SET doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?,slumname=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: fsm.address + jsonMaps: + + - jsonPath: $.fsm.address.doorNo + + - jsonPath: $.fsm.address.plotNo + + - jsonPath: $.fsm.address.landmark + + - jsonPath: $.fsm.address.city + + - jsonPath: $.fsm.address.district + + - jsonPath: $.fsm.address.region + + - jsonPath: $.fsm.address.state + + - jsonPath: $.fsm.address.slumName + + - jsonPath: $.fsm.address.country + + - jsonPath: $.fsm.address.locality.code + + - jsonPath: $.fsm.address.pincode + + - jsonPath: $.fsm.address.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.buildingName + + - jsonPath: $.fsm.address.street + + - jsonPath: $.fsm.address.auditDetails.createdBy + + - jsonPath: $.fsm.address.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.address.auditDetails.createdTime + + - jsonPath: $.fsm.address.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.address.id + + - query: INSERT INTO eg_fsm_geolocation_auditlog SELECT * FROM eg_fsm_geolocation WHERE id =?; + basePath: fsm.address.geoLocation + jsonMaps: + - jsonPath: $.fsm.address.geoLocation.id + + - query: UPDATE eg_fsm_geolocation SET latitude=?, longitude=?, additionaldetails=? where id=? + basePath: fsm.address.geoLocation + jsonMaps: + - jsonPath: $.fsm.address.geoLocation.latitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.longitude + type: DOUBLE + dbType: DOUBLE + + - jsonPath: $.fsm.address.geoLocation.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.address.geoLocation.id + + - query: INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =?; + basePath: fsm.pitDetail + jsonMaps: + - jsonPath: $.fsm.pitDetail.id + + - query: UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: fsm.pitDetail + jsonMaps: + + - dbType: JSONB + jsonPath: $.fsm.pitDetail.additionalDetails + type: JSON + + - jsonPath: $.fsm.pitDetail.height + + - jsonPath: $.fsm.pitDetail.length + + - jsonPath: $.fsm.pitDetail.width + + - jsonPath: $.fsm.pitDetail.diameter + + - jsonPath: $.fsm.pitDetail.distanceFromRoad + + - jsonPath: $.fsm.pitDetail.auditDetails.createdBy + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.pitDetail.auditDetails.createdTime + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.pitDetail.id + + - version: 1.0 + description: Persists FSM Application details in eg_fsm_application table + fromTopic: update-fsm-workflow-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_application_auditlog SELECT * FROM eg_fsm_application WHERE id =? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.id + + + - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + basePath: fsm + jsonMaps: + - jsonPath: $.fsm.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.fsm.applicationStatus + + - jsonPath: $.fsm.vehicleId + + - jsonPath: $.fsm.vehicleType + + - jsonPath: $.fsm.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.possibleServiceDate + + - jsonPath: $.fsm.dsoId + + - jsonPath: $.fsm.id + + + - query: INSERT INTO eg_fsm_pit_detail_auditlog SELECT * FROM eg_fsm_pit_detail WHERE id =? + basePath: fsm.pitDetail + jsonMaps: + + - jsonPath: $.fsm.pitDetail.id + + - query: UPDATE eg_fsm_pit_detail SET additionaldetails=?,height=?, length=?, width=?, diameter=?, distancefromroad=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=? + basePath: fsm.pitDetail + jsonMaps: + + - dbType: JSONB + jsonPath: $.fsm.pitDetail.additionalDetails + type: JSON + + - jsonPath: $.fsm.pitDetail.height + + - jsonPath: $.fsm.pitDetail.length + + - jsonPath: $.fsm.pitDetail.width + + - jsonPath: $.fsm.pitDetail.diameter + + - jsonPath: $.fsm.pitDetail.distanceFromRoad + + - jsonPath: $.fsm.pitDetail.auditDetails.createdBy + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedBy + + - jsonPath: $.fsm.pitDetail.auditDetails.createdTime + + - jsonPath: $.fsm.pitDetail.auditDetails.lastModifiedTime + + - jsonPath: $.fsm.pitDetail.id + + - version: 1.0 + description: "Persists FSTP-employee mapping in eg_fsm_plantmapping table" + fromTopic: save-plant-map-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_fsm_plantmapping( id, tenantId, status, employeeUuid, plantCode, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: plantMapping + jsonMaps: + - jsonPath: $.plantMapping.id + + - jsonPath: $.plantMapping.tenantId + + - jsonPath: $.plantMapping.status + + - jsonPath: $.plantMapping.employeeUuid + + - jsonPath: $.plantMapping.plantCode + + - jsonPath: $.plantMapping.auditDetails.createdBy + + - jsonPath: $.plantMapping.auditDetails.lastModifiedBy + + - jsonPath: $.plantMapping.auditDetails.createdTime + + - jsonPath: $.plantMapping.auditDetails.lastModifiedTime + + - version: 1.0 + description: "Update FSTP-employee mapping in eg_fsm_plantmapping table" + fromTopic: update-plant-map-application + isTransaction: true + queryMaps: + + - query: UPDATE eg_fsm_plantmapping SET status=?, employeeuuid=?, plantcode=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? where id=?; + basePath: plantMapping + jsonMaps: + + - jsonPath: $.plantMapping.status + + - jsonPath: $.plantMapping.employeeUuid + + - jsonPath: $.plantMapping.plantCode + + - jsonPath: $.plantMapping.auditDetails.createdBy + + - jsonPath: $.plantMapping.auditDetails.lastModifiedBy + + - jsonPath: $.plantMapping.auditDetails.createdTime + + - jsonPath: $.plantMapping.auditDetails.lastModifiedTime + + - jsonPath: $.plantMapping.id + + + - version: 1.0 + description: Vehicle Trip details in eg_vehicle_trip and in eg_vehicle_trip_detail table + fromTopic: update-vehicle-trip-Details + isTransaction: true + queryMaps: + + - query: UPDATE eg_vehicle_trip_detail SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=?; + basePath: $.vehicleTrip.*.tripDetails.* + jsonMaps: + + - jsonPath: $.vehicleTrip.*.tripDetails.*.status + + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.id + + - query: UPDATE eg_vehicle_trip SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? + basePath: $.vehicleTrip.* + jsonMaps: + + - jsonPath: $.vehicleTrip.*.status + + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy + + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime + + - jsonPath: $.vehicleTrip.*.id + + - version: 1.0 + description: Insert FSM Application worker details in eg_fsm_application_worker table + fromTopic: create-fsm-application-workers + isTransaction: true + queryMaps: + - query: INSERT INTO eg_fsm_application_worker( id, tenantId, application_id, individual_id, workerType, status, additionaldetails, createdBy, lastmodifiedBy, createdTime, lastmodifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.workers.* + jsonMaps: + - jsonPath: $.workers.*.id + - jsonPath: $.workers.*.tenantId + - jsonPath: $.workers.*.applicationId + - jsonPath: $.workers.*.individualId + - jsonPath: $.workers.*.workerType + - jsonPath: $.workers.*.status + - jsonPath: $.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.workers.*.auditDetails.createdBy + - jsonPath: $.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.workers.*.auditDetails.createdTime + - jsonPath: $.workers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update FSM Application worker details in eg_fsm_application_worker table + fromTopic: update-fsm-application-workers + isTransaction: true + queryMaps: + - query: UPDATE eg_fsm_application_worker SET workerType=?, status=?, additionaldetails=?, createdBy=?, lastmodifiedBy=?, createdTime=?, lastmodifiedTime=? WHERE id=?; + basePath: $.workers.* + jsonMaps: + - jsonPath: $.workers.*.workerType + - jsonPath: $.workers.*.status + - jsonPath: $.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.workers.*.auditDetails.createdBy + - jsonPath: $.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.workers.*.auditDetails.createdTime + - jsonPath: $.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.workers.*.id \ No newline at end of file diff --git a/sanitation/egov-persister/vehicle-persister.yaml b/sanitation/egov-persister/vehicle-persister.yaml index ba036a187..c870a0194 100755 --- a/sanitation/egov-persister/vehicle-persister.yaml +++ b/sanitation/egov-persister/vehicle-persister.yaml @@ -31,18 +31,18 @@ serviceMaps: - jsonPath: $.vehicle.auditDetails.lastModifiedBy - jsonPath: $.vehicle.auditDetails.createdTime - jsonPath: $.vehicle.auditDetails.lastModifiedTime - + - version: 1.0 description: Persists Vehicle Application details in eg_vehicle table fromTopic: update-vehicle-application isTransaction: true queryMaps: - + - query : INSERT INTO eg_vehicle_auditlog SELECT * FROM eg_vehicle WHERE id=? basePath: vehicle jsonMaps: - jsonPath: $.vehicle.id - + - query : UPDATE eg_vehicle SET tenantId=?, registrationNumber=?, model=?, type=?, tankCapicity=?, suctionType=?, pollutionCertiValidTill=?, InsuranceCertValidTill=?, fitnessValidTill=?, roadTaxPaidTill=?, gpsEnabled=?, source=?, status=?, additionalDetails=?, owner_id =?, createdBy=?, lastModifiedBy=?, createdTime=?, lastModifiedTime=? WHERE id=? basePath: vehicle jsonMaps: @@ -79,76 +79,76 @@ serviceMaps: basePath: $.vehicleTrip.* jsonMaps: - jsonPath: $.vehicleTrip.*.id - + - jsonPath: $.vehicleTrip.*.tenantId - + - jsonPath: $.vehicleTrip.*.tripOwnerId - + - jsonPath: $.vehicleTrip.*.driverId - + - jsonPath: $.vehicleTrip.*.vehicleId - + - jsonPath: $.vehicleTrip.*.applicationNo - + - jsonPath: $.vehicleTrip.*.additionalDetails type: JSON dbType: JSONB - + - jsonPath: $.vehicleTrip.*.status - + - jsonPath: $.vehicleTrip.*.businessService - + - jsonPath: $.vehicleTrip.*.applicationStatus - - jsonPath: $.vehicleTrip.*.endType - + - jsonPath: $.vehicleTrip.*.endType + - jsonPath: $.vehicleTrip.*.tripStartTime - + - jsonPath: $.vehicleTrip.*.tripEndTime - + - jsonPath: $.vehicleTrip.*.volumeCarried - + - jsonPath: $.vehicleTrip.*.auditDetails.createdBy - + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - + - jsonPath: $.vehicleTrip.*.auditDetails.createdTime - + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_vehicle_trip_detail( id, tenantid, trip_id, referenceno, referencestatus, additionaldetails, status, itemstarttime, itemendtime, volume, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + + - query: INSERT INTO eg_vehicle_trip_detail( id, tenantid, trip_id, referenceno, referencestatus, additionaldetails, status, itemstarttime, itemendtime, volume, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.vehicleTrip.*.tripDetails.* jsonMaps: - + - jsonPath: $.vehicleTrip.*.tripDetails.*.id - + - jsonPath: $.vehicleTrip.*.tripDetails.*.tenantId - - - jsonPath: $.vehicleTrip.*.tripDetails.*.trip_id - + + - jsonPath: $.vehicleTrip.*.tripDetails.*.trip_id + - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceNo - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus - - - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails + + - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus + + - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails type: JSON - dbType: JSONB - + dbType: JSONB + - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.volume - + + - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.volume + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdBy - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdTime - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime @@ -160,67 +160,67 @@ serviceMaps: - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: - - + + - jsonPath: $.vehicleTrip.*.driverId - + - jsonPath: $.vehicleTrip.*.applicationNo - + - jsonPath: $.vehicleTrip.*.additionalDetails type: JSON dbType: JSONB - + - jsonPath: $.vehicleTrip.*.status - + - jsonPath: $.vehicleTrip.*.applicationStatus - + - jsonPath: $.vehicleTrip.*.endType - jsonPath: $.vehicleTrip.*.tripStartTime - + - jsonPath: $.vehicleTrip.*.tripEndTime - + - jsonPath: $.vehicleTrip.*.volumeCarried - + - jsonPath: $.vehicleTrip.*.auditDetails.createdBy - + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - + - jsonPath: $.vehicleTrip.*.auditDetails.createdTime - + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - + - jsonPath: $.vehicleTrip.*.id - + - query: UPDATE eg_vehicle_trip_detail SET referencestatus=?, additionaldetails=?, status=?, itemstarttime=?, itemendtime=?, volume=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.*.tripDetails.* jsonMaps: - - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus - - - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails + + + - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus + + - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails type: JSON - dbType: JSONB - + dbType: JSONB + - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.volume - + + - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.volume + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdBy - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdTime - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - + - jsonPath: $.vehicleTrip.*.tripDetails.*.id - + - version: 1.0 description: Vehicle Trip details in eg_vehicle_trip table fromTopic: update-workflow-vehicle-trip @@ -229,63 +229,63 @@ serviceMaps: - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, end_type=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: - - + + - jsonPath: $.vehicleTrip.*.driverId - + - jsonPath: $.vehicleTrip.*.applicationNo - + - jsonPath: $.vehicleTrip.*.additionalDetails type: JSON dbType: JSONB - + - jsonPath: $.vehicleTrip.*.status - + - jsonPath: $.vehicleTrip.*.applicationStatus - jsonPath: $.vehicleTrip.*.endType - + - jsonPath: $.vehicleTrip.*.tripStartTime - + - jsonPath: $.vehicleTrip.*.tripEndTime - + - jsonPath: $.vehicleTrip.*.volumeCarried - + - jsonPath: $.vehicleTrip.*.auditDetails.createdBy - + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedBy - + - jsonPath: $.vehicleTrip.*.auditDetails.createdTime - + - jsonPath: $.vehicleTrip.*.auditDetails.lastModifiedTime - + - jsonPath: $.vehicleTrip.*.id - + - query: UPDATE eg_vehicle_trip_detail SET referencestatus=?, additionaldetails=?, status=?, itemstarttime=?, itemendtime=?, volume=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.*.tripDetails.* jsonMaps: - - - - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus - - - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails + + + - jsonPath: $.vehicleTrip.*.tripDetails.*.referenceStatus + + - jsonPath: $.vehicleTrip.*.tripDetails.*.additionalDetails type: JSON - dbType: JSONB - + dbType: JSONB + - jsonPath: $.vehicleTrip.*.tripDetails.*.status - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.volume - + + - jsonPath: $.vehicleTrip.*.tripDetails.*.itemStartTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.itemEndTime + + - jsonPath: $.vehicleTrip.*.tripDetails.*.volume + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdBy - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedBy - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.createdTime - + - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - - jsonPath: $.vehicleTrip.*.tripDetails.*.id + + - jsonPath: $.vehicleTrip.*.tripDetails.*.id \ No newline at end of file diff --git a/sanitation/egov-persister/vendor-persister.yaml b/sanitation/egov-persister/vendor-persister.yaml index 0afa0338f..29572ae9c 100644 --- a/sanitation/egov-persister/vendor-persister.yaml +++ b/sanitation/egov-persister/vendor-persister.yaml @@ -1,421 +1,421 @@ serviceMaps: - serviceName: vendor-registory - mappings: - - version: 1.0 - description: Vendor Registion Application details in eg_vendor table - fromTopic: save-vendor-application - isTransaction: true - queryMaps: + serviceName: vendor-registory + mappings: + - version: 1.0 + description: Vendor Registion Application details in eg_vendor table + fromTopic: save-vendor-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_vendor( id, name, tenantid, additionaldetails, owner_id, description, source, status,agencyType,paymentPreference,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ); + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.id + + - jsonPath: $.vendor.name + + - jsonPath: $.vendor.tenantId + + - jsonPath: $.vendor.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.vendor.owner.uuid + + - jsonPath: $.vendor.description + + - jsonPath: $.vendor.source + + - jsonPath: $.vendor.status + + - jsonPath: $.vendor.agencyType + + - jsonPath: $.vendor.paymentPreference + + - jsonPath: $.vendor.auditDetails.createdBy + + - jsonPath: $.vendor.auditDetails.lastModifiedBy + + - jsonPath: $.vendor.auditDetails.createdTime + + - jsonPath: $.vendor.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_vendor_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street, vendor_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.id + + - jsonPath: $.vendor.address.tenantId + + - jsonPath: $.vendor.address.doorNo + + - jsonPath: $.vendor.address.plotNo + + - jsonPath: $.vendor.address.landmark + + - jsonPath: $.vendor.address.city + + - jsonPath: $.vendor.address.district + + - jsonPath: $.vendor.address.region + + - jsonPath: $.vendor.address.state + + - jsonPath: $.vendor.address.country + + - jsonPath: $.vendor.address.locality.code + + - jsonPath: $.vendor.address.pincode + + - jsonPath: $.vendor.address.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.vendor.address.buildingName + + - jsonPath: $.vendor.address.street + + - jsonPath: $.vendor.id + + - jsonPath: $.vendor.address.auditDetails.createdBy + + - jsonPath: $.vendor.address.auditDetails.lastModifiedBy + + - jsonPath: $.vendor.address.auditDetails.createdTime + + - jsonPath: $.vendor.address.auditDetails.lastModifiedTime + + + + - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.id + - jsonPath: $.vendor.drivers.*.name + - jsonPath: $.vendor.drivers.*.tenantId + - jsonPath: $.vendor.drivers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.drivers.*.owner.uuid + - jsonPath: $.vendor.drivers.*.description + - jsonPath: $.vendor.drivers.*.status + - jsonPath: $.vendor.drivers.*.licenseNumber + - jsonPath: $.vendor.drivers.*.auditDetails.createdBy + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.drivers.*.auditDetails.createdTime + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_vendor_driver( vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.drivers.*.id + - jsonPath: $.vendor.drivers.*.vendorDriverStatus + + - query: INSERT INTO eg_vendor_vehicle( vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); + basePath: vendor.vehicles.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.vehicles.*.id + - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update Vendor details + fromTopic: update-vendor-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.id + + - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.name + - jsonPath: $.vendor.tenantId + - jsonPath: $.vendor.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.owner.uuid + - jsonPath: $.vendor.description + - jsonPath: $.vendor.source + - jsonPath: $.vendor.status + - jsonPath: $.vendor.agencyType + - jsonPath: $.vendor.paymentPreference + - jsonPath: $.vendor.auditDetails.createdBy + - jsonPath: $.vendor.auditDetails.lastModifiedBy + - jsonPath: $.vendor.auditDetails.createdTime + - jsonPath: $.vendor.auditDetails.lastModifiedTime + - jsonPath: $.vendor.id + + - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.id + + - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.tenantId + - jsonPath: $.vendor.address.doorNo + - jsonPath: $.vendor.address.plotNo + - jsonPath: $.vendor.address.landmark + - jsonPath: $.vendor.address.city + - jsonPath: $.vendor.address.district + - jsonPath: $.vendor.address.region + - jsonPath: $.vendor.address.state + - jsonPath: $.vendor.address.country + - jsonPath: $.vendor.address.locality.code + - jsonPath: $.vendor.address.pincode + - jsonPath: $.vendor.address.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.address.buildingName + - jsonPath: $.vendor.address.street + - jsonPath: $.vendor.id + - jsonPath: $.vendor.address.auditDetails.createdBy + - jsonPath: $.vendor.address.auditDetails.lastModifiedBy + - jsonPath: $.vendor.address.auditDetails.createdTime + - jsonPath: $.vendor.address.auditDetails.lastModifiedTime + - jsonPath: $.vendor.address.id + + - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.name + - jsonPath: $.vendor.drivers.*.tenantId + - jsonPath: $.vendor.drivers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.drivers.*.owner.uuid + - jsonPath: $.vendor.drivers.*.description + - jsonPath: $.vendor.drivers.*.status + - jsonPath: $.vendor.drivers.*.licenseNumber + - jsonPath: $.vendor.drivers.*.auditDetails.createdBy + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.drivers.*.auditDetails.createdTime + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_vendor_sanitation_worker SET tenantid=?, vendor_id= ?, vendor_sw_status=?, additionaldetails=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE individual_id=? + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.workers.*.individualId + + - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.drivers.*.vendorDriverStatus + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_vendor_vehicle SET vendor_id= ?,vendorVehicleStatus= ? WHERE VECHILE_ID= ? ; + basePath: vendor.vehicles.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + - jsonPath: $.vendor.vehicles.*.id + + - version: 1.0 + description: Update Vendor details + fromTopic: save-vendordrivervehicle-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.id + + - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.name + - jsonPath: $.vendor.tenantId + - jsonPath: $.vendor.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.owner.uuid + - jsonPath: $.vendor.description + - jsonPath: $.vendor.source + - jsonPath: $.vendor.status + - jsonPath: $.vendor.agencyType + - jsonPath: $.vendor.paymentPreference + - jsonPath: $.vendor.auditDetails.createdBy + - jsonPath: $.vendor.auditDetails.lastModifiedBy + - jsonPath: $.vendor.auditDetails.createdTime + - jsonPath: $.vendor.auditDetails.lastModifiedTime + - jsonPath: $.vendor.id + + - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.id + + - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.tenantId + - jsonPath: $.vendor.address.doorNo + - jsonPath: $.vendor.address.plotNo + - jsonPath: $.vendor.address.landmark + - jsonPath: $.vendor.address.city + - jsonPath: $.vendor.address.district + - jsonPath: $.vendor.address.region + - jsonPath: $.vendor.address.state + - jsonPath: $.vendor.address.country + - jsonPath: $.vendor.address.locality.code + - jsonPath: $.vendor.address.pincode + - jsonPath: $.vendor.address.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.address.buildingName + - jsonPath: $.vendor.address.street + - jsonPath: $.vendor.id + - jsonPath: $.vendor.address.auditDetails.createdBy + - jsonPath: $.vendor.address.auditDetails.lastModifiedBy + - jsonPath: $.vendor.address.auditDetails.createdTime + - jsonPath: $.vendor.address.auditDetails.lastModifiedTime + - jsonPath: $.vendor.address.id + + - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.name + - jsonPath: $.vendor.drivers.*.tenantId + - jsonPath: $.vendor.drivers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.drivers.*.owner.uuid + - jsonPath: $.vendor.drivers.*.description + - jsonPath: $.vendor.drivers.*.status + - jsonPath: $.vendor.drivers.*.licenseNumber + - jsonPath: $.vendor.drivers.*.auditDetails.createdBy + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.drivers.*.auditDetails.createdTime + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.drivers.*.id - - query: INSERT INTO eg_vendor( id, name, tenantid, additionaldetails, owner_id, description, source, status,agencyType,paymentPreference,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ); - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.name - - - jsonPath: $.vendor.tenantId - - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.owner.uuid - - - jsonPath: $.vendor.description - - - jsonPath: $.vendor.source - - - jsonPath: $.vendor.status - - - jsonPath: $.vendor.agencyType - - - jsonPath: $.vendor.paymentPreference - - - jsonPath: $.vendor.auditDetails.createdBy - - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.auditDetails.createdTime - - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_vendor_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street, vendor_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - jsonPath: $.vendor.address.tenantId - - - jsonPath: $.vendor.address.doorNo - - - jsonPath: $.vendor.address.plotNo - - - jsonPath: $.vendor.address.landmark - - - jsonPath: $.vendor.address.city - - - jsonPath: $.vendor.address.district - - - jsonPath: $.vendor.address.region - - - jsonPath: $.vendor.address.state - - - jsonPath: $.vendor.address.country - - - jsonPath: $.vendor.address.locality.code - - - jsonPath: $.vendor.address.pincode - - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.address.buildingName - - - jsonPath: $.vendor.address.street - - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.address.auditDetails.createdBy - - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.address.auditDetails.createdTime - - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_vendor_driver( vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - - query: INSERT INTO eg_vendor_vehicle( vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.workers.* - jsonMaps: - - jsonPath: $.vendor.workers.*.id - - jsonPath: $.vendor.workers.*.tenantId - - jsonPath: $.vendor.id - - jsonPath: $.vendor.workers.*.individualId - - jsonPath: $.vendor.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.workers.*.vendorWorkerStatus - - jsonPath: $.vendor.workers.*.auditDetails.createdBy - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.workers.*.auditDetails.createdTime - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime - - - version: 1.0 - description: Update Vendor details - fromTopic: update-vendor-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.name - - jsonPath: $.vendor.tenantId - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.owner.uuid - - jsonPath: $.vendor.description - - jsonPath: $.vendor.source - - jsonPath: $.vendor.status - - jsonPath: $.vendor.agencyType - - jsonPath: $.vendor.paymentPreference - - jsonPath: $.vendor.auditDetails.createdBy - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - jsonPath: $.vendor.auditDetails.createdTime - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - jsonPath: $.vendor.id - - - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.tenantId - - jsonPath: $.vendor.address.doorNo - - jsonPath: $.vendor.address.plotNo - - jsonPath: $.vendor.address.landmark - - jsonPath: $.vendor.address.city - - jsonPath: $.vendor.address.district - - jsonPath: $.vendor.address.region - - jsonPath: $.vendor.address.state - - jsonPath: $.vendor.address.country - - jsonPath: $.vendor.address.locality.code - - jsonPath: $.vendor.address.pincode - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.address.buildingName - - jsonPath: $.vendor.address.street - - jsonPath: $.vendor.id - - jsonPath: $.vendor.address.auditDetails.createdBy - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - jsonPath: $.vendor.address.auditDetails.createdTime - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - jsonPath: $.vendor.address.id - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_vendor_sanitation_worker SET tenantid=?, vendor_id= ?, vendor_sw_status=?, additionaldetails=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE individual_id=? - basePath: vendor.workers.* - jsonMaps: - - jsonPath: $.vendor.workers.*.tenantId - - jsonPath: $.vendor.id - - jsonPath: $.vendor.workers.*.vendorWorkerStatus - - jsonPath: $.vendor.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.workers.*.auditDetails.createdBy - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.workers.*.auditDetails.createdTime - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.workers.*.individualId - - - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_vendor_vehicle SET vendor_id= ?,vendorVehicleStatus= ? WHERE VECHILE_ID= ? ; - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - jsonPath: $.vendor.vehicles.*.id - - - version: 1.0 - description: Update Vendor details - fromTopic: save-vendordrivervehicle-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.name - - jsonPath: $.vendor.tenantId - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.owner.uuid - - jsonPath: $.vendor.description - - jsonPath: $.vendor.source - - jsonPath: $.vendor.status - - jsonPath: $.vendor.agencyType - - jsonPath: $.vendor.paymentPreference - - jsonPath: $.vendor.auditDetails.createdBy - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - jsonPath: $.vendor.auditDetails.createdTime - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - jsonPath: $.vendor.id - - - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.tenantId - - jsonPath: $.vendor.address.doorNo - - jsonPath: $.vendor.address.plotNo - - jsonPath: $.vendor.address.landmark - - jsonPath: $.vendor.address.city - - jsonPath: $.vendor.address.district - - jsonPath: $.vendor.address.region - - jsonPath: $.vendor.address.state - - jsonPath: $.vendor.address.country - - jsonPath: $.vendor.address.locality.code - - jsonPath: $.vendor.address.pincode - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.address.buildingName - - jsonPath: $.vendor.address.street - - jsonPath: $.vendor.id - - jsonPath: $.vendor.address.auditDetails.createdBy - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - jsonPath: $.vendor.address.auditDetails.createdTime - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - jsonPath: $.vendor.address.id - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.drivers.*.id - - - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.workers.* - jsonMaps: - - jsonPath: $.vendor.workers.*.id - - jsonPath: $.vendor.workers.*.tenantId - - jsonPath: $.vendor.id - - jsonPath: $.vendor.workers.*.individualId - - jsonPath: $.vendor.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.workers.*.vendorWorkerStatus - - jsonPath: $.vendor.workers.*.auditDetails.createdBy - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.workers.*.auditDetails.createdTime - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - - query: INSERT INTO eg_vendor_vehicle(vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - - version: 1.0 - description: Driver Registration Application details in eg_driver table - fromTopic: save-driver-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: driver - jsonMaps: - - jsonPath: $.driver.id - - jsonPath: $.driver.name - - jsonPath: $.driver.tenantId - - jsonPath: $.driver.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.driver.owner.uuid - - jsonPath: $.driver.description - - jsonPath: $.driver.status - - jsonPath: $.driver.licenseNumber - - jsonPath: $.driver.auditDetails.createdBy - - jsonPath: $.driver.auditDetails.lastModifiedBy - - jsonPath: $.driver.auditDetails.createdTime - - jsonPath: $.driver.auditDetails.lastModifiedTime - - - - - version: 1.0 - description: Update Driver details - fromTopic: update-driver-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: driver - jsonMaps: - - jsonPath: $.driver.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: driver - jsonMaps: - - jsonPath: $.driver.name - - jsonPath: $.driver.tenantId - - jsonPath: $.driver.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.driver.owner.uuid - - jsonPath: $.driver.description - - jsonPath: $.driver.status - - jsonPath: $.driver.licenseNumber - - jsonPath: $.driver.auditDetails.createdBy - - jsonPath: $.driver.auditDetails.lastModifiedBy - - jsonPath: $.driver.auditDetails.createdTime - - jsonPath: $.driver.auditDetails.lastModifiedTime - - jsonPath: $.driver.id + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.drivers.*.id + - jsonPath: $.vendor.drivers.*.vendorDriverStatus + + - query: INSERT INTO eg_vendor_vehicle(vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); + basePath: vendor.vehicles.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.vehicles.*.id + - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + + - version: 1.0 + description: Driver Registration Application details in eg_driver table + fromTopic: save-driver-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: driver + jsonMaps: + - jsonPath: $.driver.id + - jsonPath: $.driver.name + - jsonPath: $.driver.tenantId + - jsonPath: $.driver.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.driver.owner.uuid + - jsonPath: $.driver.description + - jsonPath: $.driver.status + - jsonPath: $.driver.licenseNumber + - jsonPath: $.driver.auditDetails.createdBy + - jsonPath: $.driver.auditDetails.lastModifiedBy + - jsonPath: $.driver.auditDetails.createdTime + - jsonPath: $.driver.auditDetails.lastModifiedTime + + + + - version: 1.0 + description: Update Driver details + fromTopic: update-driver-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? + basePath: driver + jsonMaps: + - jsonPath: $.driver.id + + - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: driver + jsonMaps: + - jsonPath: $.driver.name + - jsonPath: $.driver.tenantId + - jsonPath: $.driver.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.driver.owner.uuid + - jsonPath: $.driver.description + - jsonPath: $.driver.status + - jsonPath: $.driver.licenseNumber + - jsonPath: $.driver.auditDetails.createdBy + - jsonPath: $.driver.auditDetails.lastModifiedBy + - jsonPath: $.driver.auditDetails.createdTime + - jsonPath: $.driver.auditDetails.lastModifiedTime + - jsonPath: $.driver.id \ No newline at end of file From 6d47a6d8c96673873c0dbcca7131fe07d9353ffa Mon Sep 17 00:00:00 2001 From: SivajiGanesh Nangireddy Date: Fri, 15 Dec 2023 12:46:07 +0530 Subject: [PATCH 050/158] update persister and indexer configs of fsm to qa --- egov-persister/fsm-persister.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/egov-persister/fsm-persister.yaml b/egov-persister/fsm-persister.yaml index eec2cc076..ad117f92a 100644 --- a/egov-persister/fsm-persister.yaml +++ b/egov-persister/fsm-persister.yaml @@ -7,7 +7,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, driver_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); + - query: INSERT INTO eg_fsm_application( id, applicationno, tenantid, additionaldetails, accountid, description, applicationstatus, source, sanitationtype, propertyusage, nooftrips, status, vehicle_id, vehicletype, vehicleCapacity, paymentPreference,advanceAmount, applicationType, oldApplicationNo, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ,?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?); basePath: fsm jsonMaps: - jsonPath: $.fsm.id @@ -38,8 +38,6 @@ serviceMaps: - jsonPath: $.fsm.vehicleId - - jsonPath: $.fsm.driverId - - jsonPath: $.fsm.vehicleType - jsonPath: $.fsm.vehicleCapacity @@ -174,7 +172,7 @@ serviceMaps: jsonMaps: - jsonPath: $.fsm.id - - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, driver_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + - query: UPDATE eg_fsm_application SET additionaldetails=?, description=?, applicationstatus=?, source=?, sanitationtype=?, propertyusage=?, nooftrips=?, status=?, vehicle_id=?, vehicletype=?,vehicleCapacity=?, paymentPreference=?,advanceAmount=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? basePath: fsm jsonMaps: - jsonPath: $.fsm.additionalDetails @@ -196,8 +194,6 @@ serviceMaps: - jsonPath: $.fsm.status - jsonPath: $.fsm.vehicleId - - - jsonPath: $.fsm.driverId - jsonPath: $.fsm.vehicleType @@ -337,7 +333,7 @@ serviceMaps: - jsonPath: $.fsm.id - - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, driver_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? + - query: UPDATE eg_fsm_application SET additionaldetails=?, applicationstatus=?, vehicle_id =?, vehicletype=?, lastmodifiedby=?, lastmodifiedtime=?, possible_srv_date=?, dso_id=? where id=? basePath: fsm jsonMaps: - jsonPath: $.fsm.additionalDetails @@ -348,8 +344,6 @@ serviceMaps: - jsonPath: $.fsm.vehicleId - - jsonPath: $.fsm.driverId - - jsonPath: $.fsm.vehicleType - jsonPath: $.fsm.auditDetails.lastModifiedBy From d3a362588ddd5e5f2dac9ddef495b077c7952f34 Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Fri, 15 Dec 2023 15:01:33 +0530 Subject: [PATCH 051/158] file store id not null constraint fix --- egov-persister/project-persister.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/egov-persister/project-persister.yml b/egov-persister/project-persister.yml index c71393a16..665656875 100644 --- a/egov-persister/project-persister.yml +++ b/egov-persister/project-persister.yml @@ -266,7 +266,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -414,7 +414,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid @@ -434,7 +434,7 @@ serviceMaps: - jsonPath: $.Projects.*.documents.*.documentType - - jsonPath: $.Projects.*.documents.*.fileStore + - jsonPath: $.Projects.*.documents.*.fileStoreId - jsonPath: $.Projects.*.documents.*.documentUid From 8629289d0abf48912ffeb0bf3a8a62723438b4d5 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov Date: Mon, 18 Dec 2023 11:05:54 +0530 Subject: [PATCH 052/158] Added inbox indexer config of fsm --- {egov-indexer => sanitation/egov-indexer}/fsm-inbox-indexer.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {egov-indexer => sanitation/egov-indexer}/fsm-inbox-indexer.yml (100%) diff --git a/egov-indexer/fsm-inbox-indexer.yml b/sanitation/egov-indexer/fsm-inbox-indexer.yml similarity index 100% rename from egov-indexer/fsm-inbox-indexer.yml rename to sanitation/egov-indexer/fsm-inbox-indexer.yml From 0d5c99cf0874800f46d1ec63a5c82c4076963d47 Mon Sep 17 00:00:00 2001 From: KeerthiBhaskara-eGov <103185483+KeerthiBhaskara-eGov@users.noreply.github.com> Date: Wed, 20 Dec 2023 20:19:21 +0530 Subject: [PATCH 053/158] Added the config changes of DE & RE (#2896) --- .../data-config/detailed-estimate.json | 124 +++++++ .../format-config/detailed-estimate.json | 339 ++++++++++++++++++ 2 files changed, 463 insertions(+) create mode 100644 pdf-service/data-config/detailed-estimate.json create mode 100644 pdf-service/format-config/detailed-estimate.json diff --git a/pdf-service/data-config/detailed-estimate.json b/pdf-service/data-config/detailed-estimate.json new file mode 100644 index 000000000..8e594fe1f --- /dev/null +++ b/pdf-service/data-config/detailed-estimate.json @@ -0,0 +1,124 @@ +{ + "key": "detailed-estimate", + "documentType":"ESTIMATE", + "DataConfigs": { + "moduleName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$.pdfData", + "entityIdPath":"$.id", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "topic": "common-pdf-generation-3", + "mappings": [ + { + "direct": [ + { + "variable": "estimateId", + "value": { + "path": "$.estimateNumber" + } + }, + { + "variable": "projectId", + "value": { + "path": "$.projectNumber" + } + }, + { + "variable": "projectName", + "value": { + "path": "$.projectName" + } + }, + { + "variable": "projectLocation", + "value": { + "path": "$.projectLocation" + } + }, + { + "variable": "projectDescription", + "value": { + "path": "$.description" + } + }, + { + "variable": "tableData", + "value": { + "path": "$.estimateDetails" + }, + "type":"function", + "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\n \nfunction rupeeFormat(amount) {\n var flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n if(estimateDetails[i].category!='OVERHEAD'){\n var x = {\n Sno: i + 1,\n uom: estimateDetails[i].uom,\n unitRate: estimateDetails[i].unitRate,\n estimateDescription: estimateDetails[i].name,\n estimatedQuantity: estimateDetails[i].quantity,\n estimatedAmount: estimateDetails[i].amount\n };\n y.push(x);\n }\n}\nreturn y;\n" + }, + { + "variable": "charges", + "value": { + "path": "$.estimateDetails" + }, + "type":"function", + "format": "var a = [],\n estimateDetails = arguments[0];\n \nfunction rupeeFormat(amount) {\n var flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n if (estimateDetails[i].category == 'OVERHEAD') {\n var b = {\n chargeDescription: estimateDetails[i].description,\n percent: estimateDetails[i].additionalDetails.row.percentage,\n charge: estimateDetails[i].amount\n };\n a.push(b);\n }\n}\n\nreturn a;" + }, + { + "variable": "totalSum", + "value": { + "path": "$.totalEstimatedAmount" + } + } + ] + }, + { + "externalAPI": [ + { + "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", + "apiRequest": null, + "responseMapping":[ + { + "variable":"address", + "value":"$.MdmsRes.tenant.tenants[0].address" + }, + { + "variable":"phoneNumber", + "value":"$.MdmsRes.tenant.tenants[0].contactNumber" + }, + { + "variable":"website", + "value":"$.MdmsRes.tenant.tenants[0].domainUrl" + }, + { + "variable":"email", + "value":"$.MdmsRes.tenant.tenants[0].emailId" + }, + { + "variable": "logoImage", + "value":"$.MdmsRes.tenant.tenants[0].logoId", + "type":"image" + }, + { + "variable": "logo-header", + "value":"$.MdmsRes.tenant.tenants[0].code", + "localisation":{ + "required":true, + "module":"rainmaker-common" + } + }, + { + "variable": "subdivision", + "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", + "localisation": { + "required": true, + "prefix": "COMMON_SUBDIVISION", + "module": "rainmaker-common" + } + } + ] + } + + ] + } + ] + } + ] + } + } \ No newline at end of file diff --git a/pdf-service/format-config/detailed-estimate.json b/pdf-service/format-config/detailed-estimate.json new file mode 100644 index 000000000..99237abc5 --- /dev/null +++ b/pdf-service/format-config/detailed-estimate.json @@ -0,0 +1,339 @@ +{ + "key": "detailed-estimate", + "config": { + "defaultStyle": { + "font": "Cambay" + }, + "content": [ + { + "style": "noc-head", + "table": { + "widths": [ + 60, + "*", + 125 + ], + "body": [ + [ + { + "image": "{{logoImage}}", + "width": 50, + "height": 61.25, + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "{{pdf_header}} {{subdivision}}", + "fontSize": 18, + "color": "#000000", + "bold": true + }, + { + "text": "{{address}}", + "fontSize": 10, + "color": "#000000" + }, + { + "text": "{{phoneNumber}} | {{email}}", + "fontSize": 10, + "color": "#000000" + } + ], + "alignment": "left", + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "Detailed Estimate", + "fontSize": 12, + "color": "#636363", + "bold": true + }, + { + "text": "{{estimateId}}", + "fontSize": 12, + "color": "#636363", + "bold": true + } + ], + "alignment": "right", + "color": "#484848", + "margin": [ + 0, + 10, + 10, + 0 + ] + } + ] + ] + }, + "layout": "noBorders", + "fillColor": "#f4f4f4" + }, + { + "margin": [ + 0, + 35, + 0, + 0 + ], + "columns": [ + { + "bold": true, + "fontSize": 12, + "stack": [ + { + "text": "Project ID" + }, + { + "text": "Project Name" + }, + { + "text": "Project Location" + }, + { + "text": "Project Description" + } + ] + }, + { + "bold": false, + "fontSize": 12, + "stack": [ + { + "text": ": {{projectId}}" + }, + { + "text": ": {{projectName}}" + }, + { + "text": ": {{projectLocation}}" + }, + { + "text": ": {{projectDescription}}" + } + ] + } + ] + }, + {"text": "Estimate Details", "style": "header"}, + { + "margin": [ + -20, + 0, + 20, + 0 + ], + "table": { + "headerRows": 1, + "widths": [ + 30, + 200, + 40, + 70, + 60, + 70 + ], + "body": [[ + { + "text": "Sno", + "width": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Description", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "UOM", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Rate", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Estimated Quantity", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Estimated Amount", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + } + ], + "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{estimateDescription}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{uom}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{unitRate}}\",\"alignment\":\"right\",\"fontSize\":9},{\"text\":\"{{estimatedQuantity}}\",\"alignment\":\"right\",\"fontSize\":9},{\"text\":\"{{estimatedAmount}}\",\"alignment\":\"right\",\"fontSize\":9}]{{/tableData}}", + "{{#charges}}[{\"text\":\"{{chargeDescription}} ({{percent}})\",\"colSpan\":\"5\",\"alignment\":\"right\",\"fontSize\":\"10\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"{{charge}}\",\"alignment\":\"right\",\"bold\":\"true\",\"fontSize\":10}]{{/charges}}", + + [ + { + "text": "Total Estimate Amount", + "bold": true, + "colSpan": 5, + "alignment": "right", + "fontSize": 10 + }, + {}, + {}, + {}, + {}, + { + "text": "{{totalSum}}", + "alignment": "right", + "bold": true, + "colSpan": 1 + } + ] + ] + }, + "layout": { + "hLineColor": "#D6D5D4", + "vLineColor": "#D6D5D4" + } + } + ], + "styles": { + "header": { + "fontSize": 16, + "bold": true, + "margin": [ + -20, + 40, + 10, + 10 + ] + }, + "noc-head": { + "margin": [ + -40, + -40, + -40, + 1 + ] + }, + "noc-table": { + "fontSize": 12, + "color": "#000000", + "margin": [ + -25, + 20, + -22, + -8 + ], + "border":["false","false","false","false"] + }, + "receipt-table-value": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + -2, + 8, + 0, + 8 + ] + }, + "receipt-table": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 400, + "margin": [ + -30, + 8, + 0, + 8 + ] + }, + "receipt-approver": { + "fontSize": 12, + "bold": true, + "margin": [ + -27, + 50, + -10, + 0 + ], + "color": "#484848" + }, + "no-signature": { + "fontSize": 12, + "margin": [ + -27, + 35, + -10, + 0 + ], + "color": "#484848" + }, + "pt-disclaimer": { + "fontSize": 12, + "margin": [ + -27, + 30, + -10, + 0 + ], + "color": "#484848" + }, + "receipt-table-value2": { + "border":[ + false, + false, + false, + false + ], + "alignment":"right" + }, + "receipt-table2": { + "border":[ + false, + false, + false, + false + ] + }, + "pt-disclaimer-value": { + "fontSize": 12, + "margin": [ + 2, + 5, + 0, + 0 + ], + "color": "#484848" + } + } + } + } \ No newline at end of file From e89704ebbad067c44ab50430f8ee88253fd16e92 Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Tue, 26 Dec 2023 10:51:47 +0530 Subject: [PATCH 054/158] upsert query fix estimate detail --- works/egov-persister/estimate-service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/works/egov-persister/estimate-service.yml b/works/egov-persister/estimate-service.yml index 72c1c5df4..04081e6c5 100644 --- a/works/egov-persister/estimate-service.yml +++ b/works/egov-persister/estimate-service.yml @@ -187,7 +187,7 @@ serviceMaps: - jsonPath: $.estimate.id - - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET sor_id=?, category=?, name=?, description=?,unit_rate=?, no_of_unit=?,uom=?, uom_value=?, additional_details=?,is_active = ?,length = ?,width = ?,height = ?,quantity = ?,is_deduction = ?; + - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction,old_uuid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET sor_id=?, category=?, name=?, description=?,unit_rate=?, no_of_unit=?,uom=?, uom_value=?, additional_details=?,is_active = ?,length = ?,width = ?,height = ?,quantity = ?,is_deduction = ?,old_uuid = ?; basePath: $.estimate.estimateDetails.* jsonMaps: From d5a28c0bc1a9be5f285e9231c557e17eec47f4a9 Mon Sep 17 00:00:00 2001 From: Keerthi Bhaskara Date: Tue, 26 Dec 2023 11:23:50 +0530 Subject: [PATCH 055/158] fixed upsert for document --- .../egov-persister/measurement-persister.yml | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/works/egov-persister/measurement-persister.yml b/works/egov-persister/measurement-persister.yml index 3ec685eef..41976149c 100644 --- a/works/egov-persister/measurement-persister.yml +++ b/works/egov-persister/measurement-persister.yml @@ -177,10 +177,11 @@ serviceMaps: - jsonPath: $.measurements.*.measures.*.id - - query: UPDATE eg_mb_measurement_documents SET filestore = ?, documenttype = ?, documentuuid = ?, additionaldetails = ?,lastmodifiedtime = ?,lastmodifiedby = ? WHERE id=?; + - query: INSERT INTO eg_mb_measurement_documents (id, filestore, documenttype, documentuuid, referenceid, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE eg_mb_measurement_documents SET filestore = ?, documenttype = ?, documentuuid = ?, additionaldetails = ?,lastmodifiedtime = ?,lastmodifiedby = ?; basePath: measurements.*.documents.* jsonMaps: + - jsonPath: $.measurements.*.documents.*.id - jsonPath: $.measurements.*.documents.*.fileStore @@ -188,15 +189,33 @@ serviceMaps: - jsonPath: $.measurements.*.documents.*.documentUid + - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].id + - jsonPath: $.measurements.*.documents.*.additionalDetails type: JSON dbType: JSONB - - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime + - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.createdBy - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedBy - - jsonPath: $.measurements.*.documents.*.id + - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.createdTime + + - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.measurements.*.documents.*.fileStore + + - jsonPath: $.measurements.*.documents.*.documentType + + - jsonPath: $.measurements.*.documents.*.documentUid + + - jsonPath: $.measurements.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.measurements[*][?({id} in @.documents[*].id)].auditDetails.lastModifiedBy From ab290d96af20cbe5c92cb44452f32676ab792429 Mon Sep 17 00:00:00 2001 From: Lokendra Tyagi Date: Tue, 26 Dec 2023 12:21:50 +0530 Subject: [PATCH 056/158] added data config and format config for mb pdf in UNIFIED-QA --- pdf-service/data-config/measurement-book.json | 159 +++++++ .../format-config/measurement-book.json | 434 ++++++++++++++++++ 2 files changed, 593 insertions(+) create mode 100644 pdf-service/data-config/measurement-book.json create mode 100644 pdf-service/format-config/measurement-book.json diff --git a/pdf-service/data-config/measurement-book.json b/pdf-service/data-config/measurement-book.json new file mode 100644 index 000000000..f5d07d49f --- /dev/null +++ b/pdf-service/data-config/measurement-book.json @@ -0,0 +1,159 @@ +{ + "key": "measurement-book", + "documentType": "WORK-ORDER", + "DataConfigs": { + "moduleName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$", + "entityIdPath": "$.id", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "topic": "common-pdf-generation-3", + "mappings": [ + { + "direct": [ + { + "variable": "measurementNumber", + "value": { + "path": "$.measurement.measurementNumber" + } + }, + { + "variable": "project_id", + "value": { + "path": "$.estimate.additionalDetails.projectNumber" + } + }, + { + "variable": "work_order_number", + "value": { + "path": "$.contract.contractNumber" + } + }, + { + "variable": "muster_roll_id", + "value": { + "path": "$.measurement.additionalDetails.musterRollNumber" + } + }, + { + "variable": "project_name", + "value": { + "path": "$.estimate.additionalDetails.projectName" + } + }, + { + "variable": "project_location", + "value": { + "path": "$.estimate.additionalDetails.locality" + } + }, + { + "variable": "project_description", + "value": { + "path": "$.estimate.description" + } + }, + { + "variable": "measurement_period", + "value": { + "path": "$.measurement.measurementPeriod" + } + }, + { + "variable": "tableData", + "value": { + "path": "$.tableData" + }, + "type":"function", + "format": "var y = [];\nvar a = [];\nvar tableData = arguments[0];\nfunction rupeeFormat(amount) {\n flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n count += 1;\n }\n if (flag == 0) {\n val += '.00';\n }\n return val;\n}\nfor(var i = 0;i Date: Tue, 26 Dec 2023 14:27:00 +0530 Subject: [PATCH 057/158] Added prev line item id --- works/egov-persister/estimate-service.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/works/egov-persister/estimate-service.yml b/works/egov-persister/estimate-service.yml index 04081e6c5..aaeab4a5e 100644 --- a/works/egov-persister/estimate-service.yml +++ b/works/egov-persister/estimate-service.yml @@ -229,6 +229,8 @@ serviceMaps: - jsonPath: $.estimate.estimateDetails.*.isDeduction + - jsonPath: $.estimate.estimateDetails.*.previousLineItemId + - jsonPath: $.estimate.estimateDetails.*.sorId - jsonPath: $.estimate.estimateDetails.*.category From e5a65eb86bd5c04c5948003b9fd2d7d6149c2959 Mon Sep 17 00:00:00 2001 From: shubhang-eGov <70943369+shubhang-eGov@users.noreply.github.com> Date: Tue, 26 Dec 2023 15:21:51 +0530 Subject: [PATCH 058/158] Update estimate-service.yml (#2904) --- works/egov-persister/estimate-service.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/works/egov-persister/estimate-service.yml b/works/egov-persister/estimate-service.yml index aaeab4a5e..03ff499cb 100644 --- a/works/egov-persister/estimate-service.yml +++ b/works/egov-persister/estimate-service.yml @@ -263,6 +263,8 @@ serviceMaps: - jsonPath: $.estimate.estimateDetails.*.isDeduction + - jsonPath: $.estimate.estimateDetails.*.previousLineItemId + - query: UPDATE eg_wms_estimate_address set latitude=?, longitude=?, address_number=?,address_line_1=?, address_line_2=?,landmark=?,city=?, pin_code=?, detail=? where id=?; basePath: $.estimate.address From 757662eafa381c26d88999f2cbef9a012ad777e5 Mon Sep 17 00:00:00 2001 From: Lokendra-egov <137176739+Lokendra-egov@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:46:23 +0530 Subject: [PATCH 059/158] Update detailed-estimate.json --- .../format-config/detailed-estimate.json | 626 +++++++++--------- 1 file changed, 313 insertions(+), 313 deletions(-) diff --git a/pdf-service/format-config/detailed-estimate.json b/pdf-service/format-config/detailed-estimate.json index 99237abc5..3a029b32f 100644 --- a/pdf-service/format-config/detailed-estimate.json +++ b/pdf-service/format-config/detailed-estimate.json @@ -1,339 +1,339 @@ { - "key": "detailed-estimate", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 125 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 10, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{pdf_header}} {{subdivision}}", - "fontSize": 18, - "color": "#000000", - "bold": true - }, - { - "text": "{{address}}", - "fontSize": 10, - "color": "#000000" - }, - { - "text": "{{phoneNumber}} | {{email}}", - "fontSize": 10, - "color": "#000000" - } - ], - "alignment": "left", - "margin": [ - 10, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "Detailed Estimate", - "fontSize": 12, - "color": "#636363", - "bold": true - }, - { - "text": "{{estimateId}}", - "fontSize": 12, - "color": "#636363", - "bold": true - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - 0, - 10, - 10, - 0 - ] - } - ] - ] - }, - "layout": "noBorders", - "fillColor": "#f4f4f4" - }, - { - "margin": [ - 0, - 35, - 0, - 0 + "key": "detailed-estimate", + "config": { + "defaultStyle": { + "font": "Cambay" + }, + "content": [ + { + "style": "noc-head", + "table": { + "widths": [ + 60, + "*", + 125 ], - "columns": [ - { - "bold": true, - "fontSize": 12, - "stack": [ - { - "text": "Project ID" - }, - { - "text": "Project Name" - }, - { - "text": "Project Location" - }, - { - "text": "Project Description" - } - ] - }, - { - "bold": false, - "fontSize": 12, - "stack": [ - { - "text": ": {{projectId}}" - }, - { - "text": ": {{projectName}}" - }, - { - "text": ": {{projectLocation}}" - }, - { - "text": ": {{projectDescription}}" - } - ] - } + "body": [ + [ + { + "image": "{{logoImage}}", + "width": 50, + "height": 61.25, + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "{{pdf_header}} {{subdivision}}", + "fontSize": 18, + "color": "#000000", + "bold": true + }, + { + "text": "{{address}}", + "fontSize": 10, + "color": "#000000" + }, + { + "text": "{{phoneNumber}} | {{email}}", + "fontSize": 10, + "color": "#000000" + } + ], + "alignment": "left", + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "Detailed Estimate", + "fontSize": 12, + "color": "#636363", + "bold": true + }, + { + "text": "{{estimateId}}", + "fontSize": 12, + "color": "#636363", + "bold": true + } + ], + "alignment": "right", + "color": "#484848", + "margin": [ + 0, + 10, + 10, + 0 + ] + } + ] ] }, - {"text": "Estimate Details", "style": "header"}, - { - "margin": [ - -20, - 0, - 20, - 0 - ], - "table": { - "headerRows": 1, - "widths": [ - 30, - 200, - 40, - 70, - 60, - 70 - ], - "body": [[ + "layout": "noBorders", + "fillColor": "#f4f4f4" + }, + { + "margin": [ + 0, + 35, + 0, + 0 + ], + "columns": [ + { + "bold": true, + "fontSize": 12, + "stack": [ { - "text": "Sno", - "width": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": "Project ID" }, { - "text": "Description", - "alignment": "center", - "height": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": "Project Name" }, { - "text": "UOM", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": "Project Location" }, { - "text": "Rate", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": "Project Description" + } + ] + }, + { + "bold": false, + "fontSize": 12, + "stack": [ + { + "text": ": {{projectId}}" }, { - "text": "Estimated Quantity", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": ": {{projectName}}" }, { - "text": "Estimated Amount", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": ": {{projectLocation}}" + }, + { + "text": ": {{projectDescription}}" } - ], - "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{estimateDescription}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{uom}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{unitRate}}\",\"alignment\":\"right\",\"fontSize\":9},{\"text\":\"{{estimatedQuantity}}\",\"alignment\":\"right\",\"fontSize\":9},{\"text\":\"{{estimatedAmount}}\",\"alignment\":\"right\",\"fontSize\":9}]{{/tableData}}", - "{{#charges}}[{\"text\":\"{{chargeDescription}} ({{percent}})\",\"colSpan\":\"5\",\"alignment\":\"right\",\"fontSize\":\"10\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"{{charge}}\",\"alignment\":\"right\",\"bold\":\"true\",\"fontSize\":10}]{{/charges}}", - - [ - { - "text": "Total Estimate Amount", - "bold": true, - "colSpan": 5, - "alignment": "right", - "fontSize": 10 - }, - {}, - {}, - {}, - {}, - { - "text": "{{totalSum}}", - "alignment": "right", - "bold": true, - "colSpan": 1 - } - ] ] - }, - "layout": { - "hLineColor": "#D6D5D4", - "vLineColor": "#D6D5D4" } - } - ], - "styles": { - "header": { - "fontSize": 16, - "bold": true, - "margin": [ - -20, - 40, - 10, - 10 - ] - }, - "noc-head": { - "margin": [ - -40, - -40, - -40, - 1 - ] - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, - 20, - -22, - -8 - ], - "border":["false","false","false","false"] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -2, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, + ] + }, + {"text": "Estimate Details", "style": "header"}, + { + "margin": [ + -20, + 0, + 20, + 0 + ], + "table": { + "headerRows": 1, + "widths": [ 30, - -10, - 0 + 200, + 40, + 70, + 60, + 70 ], - "color": "#484848" - }, - "receipt-table-value2": { - "border":[ - false, - false, - false, - false + "body": [[ + { + "text": "Sno", + "width": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Description", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "UOM", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Rate", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Estimated Quantity", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Estimated Amount", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + } ], - "alignment":"right" - }, - "receipt-table2": { - "border":[ - false, - false, - false, - false + "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{estimateDescription}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{uom}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{unitRate}}\",\"alignment\":\"right\",\"fontSize\":9},{\"text\":\"{{estimatedQuantity}}\",\"alignment\":\"right\",\"fontSize\":9},{\"text\":\"{{estimatedAmount}}\",\"alignment\":\"right\",\"fontSize\":9}]{{/tableData}}", + "{{#charges}}[{\"text\":\"{{chargeDescription}} ({{percent}})\",\"colSpan\":\"5\",\"alignment\":\"right\",\"fontSize\":\"10\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"\"},{\"text\":\"{{charge}}\",\"alignment\":\"right\",\"bold\":\"true\",\"fontSize\":10}]{{/charges}}", + + [ + { + "text": "Total Estimate Amount", + "bold": true, + "colSpan": 5, + "alignment": "right", + "fontSize": 10 + }, + {}, + {}, + {}, + {}, + { + "text": "{{totalSum}}", + "alignment": "right", + "bold": true, + "colSpan": 1 + } + ] ] }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" + "layout": { + "hLineColor": "#D6D5D4", + "vLineColor": "#D6D5D4" } } + ], + "styles": { + "header": { + "fontSize": 16, + "bold": true, + "margin": [ + -20, + 40, + 10, + 10 + ] + }, + "noc-head": { + "margin": [ + -40, + -40, + -40, + 1 + ] + }, + "noc-table": { + "fontSize": 12, + "color": "#000000", + "margin": [ + -25, + 20, + -22, + -8 + ], + "border":["false","false","false","false"] + }, + "receipt-table-value": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + -2, + 8, + 0, + 8 + ] + }, + "receipt-table": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 400, + "margin": [ + -30, + 8, + 0, + 8 + ] + }, + "receipt-approver": { + "fontSize": 12, + "bold": true, + "margin": [ + -27, + 50, + -10, + 0 + ], + "color": "#484848" + }, + "no-signature": { + "fontSize": 12, + "margin": [ + -27, + 35, + -10, + 0 + ], + "color": "#484848" + }, + "pt-disclaimer": { + "fontSize": 12, + "margin": [ + -27, + 30, + -10, + 0 + ], + "color": "#484848" + }, + "receipt-table-value2": { + "border":[ + false, + false, + false, + false + ], + "alignment":"right" + }, + "receipt-table2": { + "border":[ + false, + false, + false, + false + ] + }, + "pt-disclaimer-value": { + "fontSize": 12, + "margin": [ + 2, + 5, + 0, + 0 + ], + "color": "#484848" + } } - } \ No newline at end of file + } +} From 89803f7053ee948c2b161957c858f7b5f071b5aa Mon Sep 17 00:00:00 2001 From: Lokendra-egov <137176739+Lokendra-egov@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:47:43 +0530 Subject: [PATCH 060/158] Update detailed-estimate.json --- .../data-config/detailed-estimate.json | 236 +++++++++--------- 1 file changed, 118 insertions(+), 118 deletions(-) diff --git a/pdf-service/data-config/detailed-estimate.json b/pdf-service/data-config/detailed-estimate.json index 8e594fe1f..7167eac05 100644 --- a/pdf-service/data-config/detailed-estimate.json +++ b/pdf-service/data-config/detailed-estimate.json @@ -1,124 +1,124 @@ { - "key": "detailed-estimate", - "documentType":"ESTIMATE", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.pdfData", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "estimateId", - "value": { - "path": "$.estimateNumber" - } - }, - { - "variable": "projectId", - "value": { - "path": "$.projectNumber" - } - }, - { - "variable": "projectName", - "value": { - "path": "$.projectName" - } - }, - { - "variable": "projectLocation", - "value": { - "path": "$.projectLocation" - } + "key": "detailed-estimate", + "documentType":"ESTIMATE", + "DataConfigs": { + "moduleName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$.pdfData", + "entityIdPath":"$.id", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "topic": "common-pdf-generation-3", + "mappings": [ + { + "direct": [ + { + "variable": "estimateId", + "value": { + "path": "$.estimateNumber" + } + }, + { + "variable": "projectId", + "value": { + "path": "$.projectNumber" + } + }, + { + "variable": "projectName", + "value": { + "path": "$.projectName" + } + }, + { + "variable": "projectLocation", + "value": { + "path": "$.projectLocation" + } + }, + { + "variable": "projectDescription", + "value": { + "path": "$.description" + } + }, + { + "variable": "tableData", + "value": { + "path": "$.estimateDetails" }, - { - "variable": "projectDescription", - "value": { - "path": "$.description" - } + "type":"function", + "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\n \nfunction rupeeFormat(amount) {\n var flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n if(estimateDetails[i].category!='OVERHEAD'){\n var x = {\n Sno: i + 1,\n uom: estimateDetails[i].uom,\n unitRate: estimateDetails[i].unitRate,\n estimateDescription: estimateDetails[i].name,\n estimatedQuantity: estimateDetails[i].quantity,\n estimatedAmount: estimateDetails[i].amount\n };\n y.push(x);\n }\n}\nreturn y;\n" + }, + { + "variable": "charges", + "value": { + "path": "$.estimateDetails" }, - { - "variable": "tableData", - "value": { - "path": "$.estimateDetails" + "type":"function", + "format": "var a = [],\n estimateDetails = arguments[0];\n \nfunction rupeeFormat(amount) {\n var flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n if (estimateDetails[i].category == 'OVERHEAD') {\n var b = {\n chargeDescription: estimateDetails[i].description,\n percent: estimateDetails[i].additionalDetails.row.percentage,\n charge: estimateDetails[i].amount\n };\n a.push(b);\n }\n}\n\nreturn a;" + }, + { + "variable": "totalSum", + "value": { + "path": "$.totalEstimatedAmount" + } + } + ] + }, + { + "externalAPI": [ + { + "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", + "apiRequest": null, + "responseMapping":[ + { + "variable":"address", + "value":"$.MdmsRes.tenant.tenants[0].address" }, - "type":"function", - "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\n \nfunction rupeeFormat(amount) {\n var flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n if(estimateDetails[i].category!='OVERHEAD'){\n var x = {\n Sno: i + 1,\n uom: estimateDetails[i].uom,\n unitRate: estimateDetails[i].unitRate,\n estimateDescription: estimateDetails[i].name,\n estimatedQuantity: estimateDetails[i].quantity,\n estimatedAmount: estimateDetails[i].amount\n };\n y.push(x);\n }\n}\nreturn y;\n" - }, - { - "variable": "charges", - "value": { - "path": "$.estimateDetails" + { + "variable":"phoneNumber", + "value":"$.MdmsRes.tenant.tenants[0].contactNumber" }, - "type":"function", - "format": "var a = [],\n estimateDetails = arguments[0];\n \nfunction rupeeFormat(amount) {\n var flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n if (estimateDetails[i].category == 'OVERHEAD') {\n var b = {\n chargeDescription: estimateDetails[i].description,\n percent: estimateDetails[i].additionalDetails.row.percentage,\n charge: estimateDetails[i].amount\n };\n a.push(b);\n }\n}\n\nreturn a;" - }, - { - "variable": "totalSum", - "value": { - "path": "$.totalEstimatedAmount" - } - } - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "module":"rainmaker-common" - } - }, - { - "variable": "subdivision", - "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", - "localisation": { - "required": true, - "prefix": "COMMON_SUBDIVISION", - "module": "rainmaker-common" - } + { + "variable":"website", + "value":"$.MdmsRes.tenant.tenants[0].domainUrl" + }, + { + "variable":"email", + "value":"$.MdmsRes.tenant.tenants[0].emailId" + }, + { + "variable": "logoImage", + "value":"$.MdmsRes.tenant.tenants[0].logoId", + "type":"image" + }, + { + "variable": "logo-header", + "value":"$.MdmsRes.tenant.tenants[0].code", + "localisation":{ + "required":true, + "module":"rainmaker-common" } - ] - } - - ] - } - ] - } - ] - } - } \ No newline at end of file + }, + { + "variable": "subdivision", + "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", + "localisation": { + "required": true, + "prefix": "COMMON_SUBDIVISION", + "module": "rainmaker-common" + } + } + ] + } + + ] + } + ] + } + ] + } +} From 3d9e8cea35ff75df3bd0f379c91c87fd959dc059 Mon Sep 17 00:00:00 2001 From: Lokendra-egov <137176739+Lokendra-egov@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:49:38 +0530 Subject: [PATCH 061/158] Update deviation-statement.json --- .../data-config/deviation-statement.json | 226 +++++++++--------- 1 file changed, 113 insertions(+), 113 deletions(-) diff --git a/pdf-service/data-config/deviation-statement.json b/pdf-service/data-config/deviation-statement.json index 5f0488f77..9491d872f 100644 --- a/pdf-service/data-config/deviation-statement.json +++ b/pdf-service/data-config/deviation-statement.json @@ -1,119 +1,119 @@ { - "key": "deviation-statement", - "documentType":"ESTIMATE", - "DataConfigs": { - "moduleName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.pdfData", - "entityIdPath":"$.id", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "topic": "common-pdf-generation-3", - "mappings": [ - { - "direct": [ - { - "variable": "estimateId", - "value": { - "path": "$.estimateNumber" - } - }, - { - "variable": "projectId", - "value": { - "path": "$.projectNumber" - } - }, - { - "variable": "project_name", - "value": { - "path": "$.projectName" - } - }, - { - "variable": "project_description", - "value": { - "path": "$.description" - } + "key": "deviation-statement", + "documentType":"ESTIMATE", + "DataConfigs": { + "moduleName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$.pdfData", + "entityIdPath":"$.id", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "topic": "common-pdf-generation-3", + "mappings": [ + { + "direct": [ + { + "variable": "estimateId", + "value": { + "path": "$.estimateNumber" + } + }, + { + "variable": "projectId", + "value": { + "path": "$.projectNumber" + } + }, + { + "variable": "project_name", + "value": { + "path": "$.projectName" + } + }, + { + "variable": "project_description", + "value": { + "path": "$.description" + } + }, + { + "variable": "revisionNumber", + "value": { + "path": "$.revisionNumber" + } + }, + { + "variable": "tableData", + "value": { + "path": "$.estimateDetails" }, - { - "variable": "revisionNumber", - "value": { - "path": "$.revisionNumber" - } + "type":"function", + "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\n\nfunction rupeeFormat(amount) {\n flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n var x = {\n Sno: i + 1,\n uom: estimateDetails[i].uom,\n unitRate: estimateDetails[i].unitRate,\n estimateDescription: estimateDetails[i].name\n ,\n originalQ: estimateDetails[i].originalQuantity\n ,\n originalAmount: estimateDetails[i].originalAmount\n ,\n revisedQ: estimateDetails[i].quantity\n ,\n revisedAmount: estimateDetails[i].amount\n,\n deviation: estimateDetails[i].deviation\n };\n y.push(x);\n}\n\nreturn y;" + }, + { + "variable": "totalSum", + "value": { + "path": "$.estimateDetails" }, - { - "variable": "tableData", - "value": { - "path": "$.estimateDetails" + "type":"function", + "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\nlet total=0;\nfor (var i = 0; i < estimateDetails.length; i++) {\n total += estimateDetails[i].amount;\n}\ny.push({'sum':total});\nreturn y;\n" + } + + ] + }, + { + "externalAPI": [ + { + "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", + "apiRequest": null, + "responseMapping":[ + { + "variable":"address", + "value":"$.MdmsRes.tenant.tenants[0].address" }, - "type":"function", - "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\n\nfunction rupeeFormat(amount) {\n flag = 0;\n var count = 0;\n var amount = amount.toString();\n var len = amount.length;\n var val = '';\n\n for (var i = len - 1; i >= 0; i--) {\n val = amount[i] + val;\n\n if (amount[i] == '.') {\n flag = 1;\n count = -1;\n val = amount.substring(i, len);\n }\n\n if (count % 2 == 0 && i != 0 && count != 0) {\n val = ',' + val;\n }\n\n count += 1;\n }\n\n if (flag == 0) {\n val += '.00';\n }\n\n return val;\n}\n\nfor (var i = 0; i < estimateDetails.length; i++) {\n var x = {\n Sno: i + 1,\n uom: estimateDetails[i].uom,\n unitRate: estimateDetails[i].unitRate,\n estimateDescription: estimateDetails[i].name\n ,\n originalQ: estimateDetails[i].originalQuantity\n ,\n originalAmount: estimateDetails[i].originalAmount\n ,\n revisedQ: estimateDetails[i].quantity\n ,\n revisedAmount: estimateDetails[i].amount\n,\n deviation: estimateDetails[i].deviation\n };\n y.push(x);\n}\n\nreturn y;" - }, - { - "variable": "totalSum", - "value": { - "path": "$.estimateDetails" + { + "variable":"phoneNumber", + "value":"$.MdmsRes.tenant.tenants[0].contactNumber" }, - "type":"function", - "format": "var y = [],\n a = [],\n estimateDetails = arguments[0];\nlet total=0;\nfor (var i = 0; i < estimateDetails.length; i++) {\n total += estimateDetails[i].amount;\n}\ny.push({'sum':total});\nreturn y;\n" - } - - ] - }, - { - "externalAPI": [ - { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "module":"rainmaker-common" - } - }, - { - "variable": "subdivision", - "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", - "localisation": { - "required": true, - "prefix": "COMMON_SUBDIVISION", - "module": "rainmaker-common" - } + { + "variable":"website", + "value":"$.MdmsRes.tenant.tenants[0].domainUrl" + }, + { + "variable":"email", + "value":"$.MdmsRes.tenant.tenants[0].emailId" + }, + { + "variable": "logoImage", + "value":"$.MdmsRes.tenant.tenants[0].logoId", + "type":"image" + }, + { + "variable": "logo-header", + "value":"$.MdmsRes.tenant.tenants[0].code", + "localisation":{ + "required":true, + "module":"rainmaker-common" } - ] - } - - ] - } - ] - } - ] - } - } \ No newline at end of file + }, + { + "variable": "subdivision", + "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", + "localisation": { + "required": true, + "prefix": "COMMON_SUBDIVISION", + "module": "rainmaker-common" + } + } + ] + } + + ] + } + ] + } + ] + } +} From 9937385eabd59b4f4d9c8094fe298c9ed0b83423 Mon Sep 17 00:00:00 2001 From: Lokendra-egov <137176739+Lokendra-egov@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:51:01 +0530 Subject: [PATCH 062/158] Update deviation-statement.json --- .../format-config/deviation-statement.json | 670 +++++++++--------- 1 file changed, 335 insertions(+), 335 deletions(-) diff --git a/pdf-service/format-config/deviation-statement.json b/pdf-service/format-config/deviation-statement.json index 519ddbbe3..f5f2cc8a1 100644 --- a/pdf-service/format-config/deviation-statement.json +++ b/pdf-service/format-config/deviation-statement.json @@ -1,367 +1,367 @@ { - "key": "deviation-statement", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 125 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 10, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "{{pdf_header}} {{subdivision}}", - "fontSize": 18, - "color": "#000000", - "bold": true - }, - { - "text": "{{address}}", - "fontSize": 10, - "color": "#000000" - }, - { - "text": "{{phoneNumber}} | {{email}}", - "fontSize": 10, - "color": "#000000" - } - ], - "alignment": "left", - "margin": [ - 10, - 10, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "Deviation Statement", - "fontSize": 12, - "color": "#636363", - "bold": true - }, - { - "text": "{{revisionNumber}}", - "fontSize": 12, - "color": "#636363", - "bold": true - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - 0, - 10, - 10, - 0 - ] - } - ] - ] - }, - "layout": "noBorders", - "fillColor": "#f4f4f4" - }, - { - "margin": [ - 0, - 35, - 0, - 0 + "key": "deviation-statement", + "config": { + "defaultStyle": { + "font": "Cambay" + }, + "content": [ + { + "style": "noc-head", + "table": { + "widths": [ + 60, + "*", + 125 ], - "columns": [ - { - "bold": true, - "fontSize": 12, - "stack": [ - { - "text": "Estimate ID" - }, - { - "text": "Project ID" - }, - { - "text": "Project Name" - }, - { - "text": "Project Description" - }, - { - "text": " " - } - ] - }, - { - "bold": false, - "fontSize": 12, - "stack": [ - { - "text": ": {{estimateId}}" - }, - { - "text": ": {{projectId}}" - }, - { - "text": ": {{project_name}}" - }, - { - "text": ": {{project_description}}" - } - ] - } + "body": [ + [ + { + "image": "{{logoImage}}", + "width": 50, + "height": 61.25, + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "{{pdf_header}} {{subdivision}}", + "fontSize": 18, + "color": "#000000", + "bold": true + }, + { + "text": "{{address}}", + "fontSize": 10, + "color": "#000000" + }, + { + "text": "{{phoneNumber}} | {{email}}", + "fontSize": 10, + "color": "#000000" + } + ], + "alignment": "left", + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "Deviation Statement", + "fontSize": 12, + "color": "#636363", + "bold": true + }, + { + "text": "{{revisionNumber}}", + "fontSize": 12, + "color": "#636363", + "bold": true + } + ], + "alignment": "right", + "color": "#484848", + "margin": [ + 0, + 10, + 10, + 0 + ] + } + ] ] }, - {"text": "SOR/Non-SORs", "style": "header"}, - { - "margin": [ - -20, - 0, - 20, - 0 - ], - "table": { - "headerRows": 1, - "widths": [ - 20, - 150, - 30, - 50, - 40, - 50, - 40, - 50, - 50 - ], - "body": [[ + "layout": "noBorders", + "fillColor": "#f4f4f4" + }, + { + "margin": [ + 0, + 35, + 0, + 0 + ], + "columns": [ + { + "bold": true, + "fontSize": 12, + "stack": [ { - "text": "Sno", - "width": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": "Estimate ID" }, { - "text": "Description", - "alignment": "center", - "height": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": "Project ID" }, { - "text": "UOM", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": "Project Name" }, { - "text": "Rate", - "alignment": "right", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": "Project Description" }, { - "text": "Original Quantity", - "alignment": "right", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 - }, + "text": " " + } + ] + }, + { + "bold": false, + "fontSize": 12, + "stack": [ { - "text": "Original Amount", - "alignment": "right", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": ": {{estimateId}}" }, { - "text": "Revised Quantity", - "alignment": "right", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": ": {{projectId}}" }, { - "text": "Revised Amount", - "alignment": "right", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": ": {{project_name}}" }, { - "text": "Deviation", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 8 + "text": ": {{project_description}}" } - - ], - "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":8},{\"text\":\"{{estimateDescription}}\",\"alignment\":\"centre\",\"fontSize\":8},{\"text\":\"{{uom}}\",\"alignment\":\"center\",\"fontSize\":8},{\"text\":\"{{unitRate}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{originalQ}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{originalAmount}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{revisedQ}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{revisedAmount}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{deviation}}\",\"alignment\":\"center\",\"fontSize\":8}]{{/tableData}}", - - [ - { - "text": "Total", - "bold": true, - "colSpan": 7, - "alignment": "right", - "fontSize": 10 - }, - {}, - {}, - {}, - {}, - {}, - {}, - { - "text": "{{#totalSum}}[{\"text\":\"{{sum}}\",\"alignment\":\"right\",\"bold\":\"true\",\"fontSize\":10}]{{/totalSum}}", - "colSpan": 2 - }, - {} - ] ] - }, - "layout": { - "hLineColor": "#D6D5D4", - "vLineColor": "#D6D5D4" } - } - ], - "styles": { - "header": { - "fontSize": 16, - "bold": true, - "margin": [ - -20, - 40, - 10, - 10 - ] - }, - "noc-head": { - "margin": [ - -40, - -40, - -40, - 1 - ] - }, - "noc-table": { - "fontSize": 12, - "color": "#000000", - "margin": [ - -25, + ] + }, + {"text": "SOR/Non-SORs", "style": "header"}, + { + "margin": [ + -20, + 0, + 20, + 0 + ], + "table": { + "headerRows": 1, + "widths": [ 20, - -22, - -8 - ], - "border":["false","false","false","false"] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - -2, - 8, - 0, - 8 - ] - }, - "receipt-table": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 8, - 0, - 8 - ] - }, - "receipt-approver": { - "fontSize": 12, - "bold": true, - "margin": [ - -27, - 50, - -10, - 0 - ], - "color": "#484848" - }, - "no-signature": { - "fontSize": 12, - "margin": [ - -27, - 35, - -10, - 0 - ], - "color": "#484848" - }, - "pt-disclaimer": { - "fontSize": 12, - "margin": [ - -27, + 150, 30, - -10, - 0 + 50, + 40, + 50, + 40, + 50, + 50 ], - "color": "#484848" - }, - "receipt-table-value2": { - "border":[ - false, - false, - false, - false + "body": [[ + { + "text": "Sno", + "width": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Description", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "UOM", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Rate", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Original Quantity", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Original Amount", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Revised Quantity", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Revised Amount", + "alignment": "right", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + }, + { + "text": "Deviation", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 8 + } + ], - "alignment":"right" - }, - "receipt-table2": { - "border":[ - false, - false, - false, - false + "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":8},{\"text\":\"{{estimateDescription}}\",\"alignment\":\"centre\",\"fontSize\":8},{\"text\":\"{{uom}}\",\"alignment\":\"center\",\"fontSize\":8},{\"text\":\"{{unitRate}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{originalQ}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{originalAmount}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{revisedQ}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{revisedAmount}}\",\"alignment\":\"right\",\"fontSize\":8},{\"text\":\"{{deviation}}\",\"alignment\":\"center\",\"fontSize\":8}]{{/tableData}}", + + [ + { + "text": "Total", + "bold": true, + "colSpan": 7, + "alignment": "right", + "fontSize": 10 + }, + {}, + {}, + {}, + {}, + {}, + {}, + { + "text": "{{#totalSum}}[{\"text\":\"{{sum}}\",\"alignment\":\"right\",\"bold\":\"true\",\"fontSize\":10}]{{/totalSum}}", + "colSpan": 2 + }, + {} + ] ] }, - "pt-disclaimer-value": { - "fontSize": 12, - "margin": [ - 2, - 5, - 0, - 0 - ], - "color": "#484848" + "layout": { + "hLineColor": "#D6D5D4", + "vLineColor": "#D6D5D4" } } + ], + "styles": { + "header": { + "fontSize": 16, + "bold": true, + "margin": [ + -20, + 40, + 10, + 10 + ] + }, + "noc-head": { + "margin": [ + -40, + -40, + -40, + 1 + ] + }, + "noc-table": { + "fontSize": 12, + "color": "#000000", + "margin": [ + -25, + 20, + -22, + -8 + ], + "border":["false","false","false","false"] + }, + "receipt-table-value": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + -2, + 8, + 0, + 8 + ] + }, + "receipt-table": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 400, + "margin": [ + -30, + 8, + 0, + 8 + ] + }, + "receipt-approver": { + "fontSize": 12, + "bold": true, + "margin": [ + -27, + 50, + -10, + 0 + ], + "color": "#484848" + }, + "no-signature": { + "fontSize": 12, + "margin": [ + -27, + 35, + -10, + 0 + ], + "color": "#484848" + }, + "pt-disclaimer": { + "fontSize": 12, + "margin": [ + -27, + 30, + -10, + 0 + ], + "color": "#484848" + }, + "receipt-table-value2": { + "border":[ + false, + false, + false, + false + ], + "alignment":"right" + }, + "receipt-table2": { + "border":[ + false, + false, + false, + false + ] + }, + "pt-disclaimer-value": { + "fontSize": 12, + "margin": [ + 2, + 5, + 0, + 0 + ], + "color": "#484848" + } } - } \ No newline at end of file + } +} From 3e057cc360306ff4bb2488dd475c58ba0f826906 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 27 Dec 2023 11:34:15 +0530 Subject: [PATCH 063/158] dashboard change --- .../dashboard-analytics/ChartApiConfig.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json b/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json index 2c487b5fd..c5756d6fb 100644 --- a/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json +++ b/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json @@ -26520,22 +26520,21 @@ }, "_comment": " PQM Number of total alerts" }, - "pqmAlertsTest": { + "pqmAlerts": { "chartName": "PQM_ANOMALY_TYPE", "queries": [ { "module": "PQM", - "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "requestQueryMap": "{\"plantCode\" : \"Data.pqmAnomalys.plantCode.keyword\",\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", "dateRefField": "Data.pqmAnomalys.@timestamp", "indexName": "pqm-anomaly-finder", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"Anomaly_type_test_result_not_submitted\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"TEST_RESULT_NOT_SUBMITTED\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" } ], "isMdmsEnabled": true, "filterKeys": [ { - "key": "tenantId", - "column": "DDRs" + "key": "tenantId" } ], "isPostResponseHandler": true, @@ -26551,10 +26550,14 @@ "computedFields": [], "isRoundOff": true, "aggregationPaths": [ + "Anomaly_type_test_result_not_submitted", "Anomaly_type_lab_results", "TotalAlerts" ], "pathDataTypeMapping": [ + { + "Anomaly_type_test_result_not_submitted": "number" + }, { "Anomaly_type_lab_results": "number" }, From b4c503b242a9eb0b97572c2ace13e3d9c76ded3a Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 27 Dec 2023 12:01:44 +0530 Subject: [PATCH 064/158] SM-3616 --- .../dashboard-analytics/ChartApiConfig.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index 4becbbbce..1ee595e1c 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -26494,10 +26494,10 @@ "queries": [ { "module": "PQM", - "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", + "requestQueryMap": "{\"plantCode\" : \"Data.pqmAnomalys.plantCode.keyword\",\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", "dateRefField": "Data.pqmAnomalys.@timestamp", "indexName": "pqm-anomaly-finder", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"Anomaly_type_test_result_not_submitted\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"TEST_RESULT_NOT_SUBMITTED\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}" } ], "isMdmsEnabled": true, @@ -26519,10 +26519,14 @@ "computedFields": [], "isRoundOff": true, "aggregationPaths": [ + "Anomaly_type_test_result_not_submitted", "Anomaly_type_lab_results", "TotalAlerts" ], "pathDataTypeMapping": [ + { + "Anomaly_type_test_result_not_submitted": "number" + }, { "Anomaly_type_lab_results": "number" }, From a6742e63686283fbaa780e4e8bf8a666d2b73df1 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 27 Dec 2023 17:55:22 +0530 Subject: [PATCH 065/158] Update individual-persister.yml --- works/egov-persister/individual-persister.yml | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/works/egov-persister/individual-persister.yml b/works/egov-persister/individual-persister.yml index 4cd07ebe6..838f6068a 100644 --- a/works/egov-persister/individual-persister.yml +++ b/works/egov-persister/individual-persister.yml @@ -26,11 +26,12 @@ serviceMaps: - jsonPath: $.*.address.*.street - jsonPath: $.*.address.*.locality.code - jsonPath: $.*.address.*.ward.code - - query: INSERT INTO individual(id, userId, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.userId + - jsonPath: $.*.userUuid - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - jsonPath: $.*.name.givenName @@ -58,6 +59,13 @@ serviceMaps: - jsonPath: $.*.individualId - jsonPath: $.*.relationship - jsonPath: $.*.isSystemUser + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB - query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address.* jsonMaps: @@ -102,10 +110,11 @@ serviceMaps: fromTopic: update-individual-topic isTransaction: true queryMaps: - - query: UPDATE individual SET userId=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + - query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.userId + - jsonPath: $.*.userUuid - jsonPath: $.*.tenantId - jsonPath: $.*.name.givenName - jsonPath: $.*.name.familyName @@ -121,12 +130,19 @@ serviceMaps: - jsonPath: $.*.husbandName - jsonPath: $.*.relationship - jsonPath: $.*.photo + - jsonPath: $.*.isSystemUserActive - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB - jsonPath: $.*.id - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; basePath: $.*.address.* @@ -217,13 +233,14 @@ serviceMaps: fromTopic: delete-individual-topic isTransaction: true queryMaps: - - query: UPDATE individual SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id=?; + - query: UPDATE individual SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted + - jsonPath: $.*.isSystemUserActive - jsonPath: $.*.id - query: UPDATE individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; basePath: $.*.address.* From e059c41a790c643e11ce38ad18f79cffc27c370c Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 27 Dec 2023 18:06:04 +0530 Subject: [PATCH 066/158] Update vendor-persister.yaml --- .../egov-persister/vendor-persister.yaml | 838 +++++++++--------- 1 file changed, 419 insertions(+), 419 deletions(-) diff --git a/sanitation/egov-persister/vendor-persister.yaml b/sanitation/egov-persister/vendor-persister.yaml index 29572ae9c..8e0ea66f9 100644 --- a/sanitation/egov-persister/vendor-persister.yaml +++ b/sanitation/egov-persister/vendor-persister.yaml @@ -1,421 +1,421 @@ serviceMaps: - serviceName: vendor-registory - mappings: - - version: 1.0 - description: Vendor Registion Application details in eg_vendor table - fromTopic: save-vendor-application - isTransaction: true - queryMaps: + serviceName: vendor-registory + mappings: + - version: 1.0 + description: Vendor Registion Application details in eg_vendor table + fromTopic: save-vendor-application + isTransaction: true + queryMaps: - - query: INSERT INTO eg_vendor( id, name, tenantid, additionaldetails, owner_id, description, source, status,agencyType,paymentPreference,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ); - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.name - - - jsonPath: $.vendor.tenantId - - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.owner.uuid - - - jsonPath: $.vendor.description - - - jsonPath: $.vendor.source - - - jsonPath: $.vendor.status - - - jsonPath: $.vendor.agencyType - - - jsonPath: $.vendor.paymentPreference - - - jsonPath: $.vendor.auditDetails.createdBy - - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.auditDetails.createdTime - - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - - - query: INSERT INTO eg_vendor_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street, vendor_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - jsonPath: $.vendor.address.tenantId - - - jsonPath: $.vendor.address.doorNo - - - jsonPath: $.vendor.address.plotNo - - - jsonPath: $.vendor.address.landmark - - - jsonPath: $.vendor.address.city - - - jsonPath: $.vendor.address.district - - - jsonPath: $.vendor.address.region - - - jsonPath: $.vendor.address.state - - - jsonPath: $.vendor.address.country - - - jsonPath: $.vendor.address.locality.code - - - jsonPath: $.vendor.address.pincode - - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.vendor.address.buildingName - - - jsonPath: $.vendor.address.street - - - jsonPath: $.vendor.id - - - jsonPath: $.vendor.address.auditDetails.createdBy - - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - - jsonPath: $.vendor.address.auditDetails.createdTime - - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - - - - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_vendor_driver( vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - - query: INSERT INTO eg_vendor_vehicle( vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.workers.* - jsonMaps: - - jsonPath: $.vendor.workers.*.id - - jsonPath: $.vendor.workers.*.tenantId - - jsonPath: $.vendor.id - - jsonPath: $.vendor.workers.*.individualId - - jsonPath: $.vendor.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.workers.*.vendorWorkerStatus - - jsonPath: $.vendor.workers.*.auditDetails.createdBy - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.workers.*.auditDetails.createdTime - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime - - - version: 1.0 - description: Update Vendor details - fromTopic: update-vendor-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.name - - jsonPath: $.vendor.tenantId - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.owner.uuid - - jsonPath: $.vendor.description - - jsonPath: $.vendor.source - - jsonPath: $.vendor.status - - jsonPath: $.vendor.agencyType - - jsonPath: $.vendor.paymentPreference - - jsonPath: $.vendor.auditDetails.createdBy - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - jsonPath: $.vendor.auditDetails.createdTime - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - jsonPath: $.vendor.id - - - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.tenantId - - jsonPath: $.vendor.address.doorNo - - jsonPath: $.vendor.address.plotNo - - jsonPath: $.vendor.address.landmark - - jsonPath: $.vendor.address.city - - jsonPath: $.vendor.address.district - - jsonPath: $.vendor.address.region - - jsonPath: $.vendor.address.state - - jsonPath: $.vendor.address.country - - jsonPath: $.vendor.address.locality.code - - jsonPath: $.vendor.address.pincode - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.address.buildingName - - jsonPath: $.vendor.address.street - - jsonPath: $.vendor.id - - jsonPath: $.vendor.address.auditDetails.createdBy - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - jsonPath: $.vendor.address.auditDetails.createdTime - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - jsonPath: $.vendor.address.id - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_vendor_sanitation_worker SET tenantid=?, vendor_id= ?, vendor_sw_status=?, additionaldetails=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE individual_id=? - basePath: vendor.workers.* - jsonMaps: - - jsonPath: $.vendor.workers.*.tenantId - - jsonPath: $.vendor.id - - jsonPath: $.vendor.workers.*.vendorWorkerStatus - - jsonPath: $.vendor.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.workers.*.auditDetails.createdBy - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.workers.*.auditDetails.createdTime - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.workers.*.individualId - - - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_vendor_vehicle SET vendor_id= ?,vendorVehicleStatus= ? WHERE VECHILE_ID= ? ; - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - jsonPath: $.vendor.vehicles.*.id - - - version: 1.0 - description: Update Vendor details - fromTopic: save-vendordrivervehicle-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.id - - - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor - jsonMaps: - - jsonPath: $.vendor.name - - jsonPath: $.vendor.tenantId - - jsonPath: $.vendor.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.owner.uuid - - jsonPath: $.vendor.description - - jsonPath: $.vendor.source - - jsonPath: $.vendor.status - - jsonPath: $.vendor.agencyType - - jsonPath: $.vendor.paymentPreference - - jsonPath: $.vendor.auditDetails.createdBy - - jsonPath: $.vendor.auditDetails.lastModifiedBy - - jsonPath: $.vendor.auditDetails.createdTime - - jsonPath: $.vendor.auditDetails.lastModifiedTime - - jsonPath: $.vendor.id - - - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.id - - - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.address - jsonMaps: - - jsonPath: $.vendor.address.tenantId - - jsonPath: $.vendor.address.doorNo - - jsonPath: $.vendor.address.plotNo - - jsonPath: $.vendor.address.landmark - - jsonPath: $.vendor.address.city - - jsonPath: $.vendor.address.district - - jsonPath: $.vendor.address.region - - jsonPath: $.vendor.address.state - - jsonPath: $.vendor.address.country - - jsonPath: $.vendor.address.locality.code - - jsonPath: $.vendor.address.pincode - - jsonPath: $.vendor.address.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.address.buildingName - - jsonPath: $.vendor.address.street - - jsonPath: $.vendor.id - - jsonPath: $.vendor.address.auditDetails.createdBy - - jsonPath: $.vendor.address.auditDetails.lastModifiedBy - - jsonPath: $.vendor.address.auditDetails.createdTime - - jsonPath: $.vendor.address.auditDetails.lastModifiedTime - - jsonPath: $.vendor.address.id - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.drivers.*.name - - jsonPath: $.vendor.drivers.*.tenantId - - jsonPath: $.vendor.drivers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.drivers.*.owner.uuid - - jsonPath: $.vendor.drivers.*.description - - jsonPath: $.vendor.drivers.*.status - - jsonPath: $.vendor.drivers.*.licenseNumber - - jsonPath: $.vendor.drivers.*.auditDetails.createdBy - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.drivers.*.auditDetails.createdTime - - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime - - jsonPath: $.vendor.drivers.*.id - - - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: vendor.workers.* - jsonMaps: - - jsonPath: $.vendor.workers.*.id - - jsonPath: $.vendor.workers.*.tenantId - - jsonPath: $.vendor.id - - jsonPath: $.vendor.workers.*.individualId - - jsonPath: $.vendor.workers.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.vendor.workers.*.vendorWorkerStatus - - jsonPath: $.vendor.workers.*.auditDetails.createdBy - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy - - jsonPath: $.vendor.workers.*.auditDetails.createdTime - - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime - - - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); - basePath: vendor.drivers.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.drivers.*.id - - jsonPath: $.vendor.drivers.*.vendorDriverStatus - - - query: INSERT INTO eg_vendor_vehicle(vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); - basePath: vendor.vehicles.* - jsonMaps: - - jsonPath: $.vendor.id - - jsonPath: $.vendor.vehicles.*.id - - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus - - - version: 1.0 - description: Driver Registration Application details in eg_driver table - fromTopic: save-driver-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: driver - jsonMaps: - - jsonPath: $.driver.id - - jsonPath: $.driver.name - - jsonPath: $.driver.tenantId - - jsonPath: $.driver.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.driver.owner.uuid - - jsonPath: $.driver.description - - jsonPath: $.driver.status - - jsonPath: $.driver.licenseNumber - - jsonPath: $.driver.auditDetails.createdBy - - jsonPath: $.driver.auditDetails.lastModifiedBy - - jsonPath: $.driver.auditDetails.createdTime - - jsonPath: $.driver.auditDetails.lastModifiedTime - - - - - version: 1.0 - description: Update Driver details - fromTopic: update-driver-application - isTransaction: true - queryMaps: - - - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? - basePath: driver - jsonMaps: - - jsonPath: $.driver.id - - - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? - basePath: driver - jsonMaps: - - jsonPath: $.driver.name - - jsonPath: $.driver.tenantId - - jsonPath: $.driver.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.driver.owner.uuid - - jsonPath: $.driver.description - - jsonPath: $.driver.status - - jsonPath: $.driver.licenseNumber - - jsonPath: $.driver.auditDetails.createdBy - - jsonPath: $.driver.auditDetails.lastModifiedBy - - jsonPath: $.driver.auditDetails.createdTime - - jsonPath: $.driver.auditDetails.lastModifiedTime - - jsonPath: $.driver.id \ No newline at end of file + - query: INSERT INTO eg_vendor( id, name, tenantid, additionaldetails, owner_id, description, source, status,agencyType,paymentPreference,createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ); + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.id + + - jsonPath: $.vendor.name + + - jsonPath: $.vendor.tenantId + + - jsonPath: $.vendor.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.vendor.owner.uuid + + - jsonPath: $.vendor.description + + - jsonPath: $.vendor.source + + - jsonPath: $.vendor.status + + - jsonPath: $.vendor.agencyType + + - jsonPath: $.vendor.paymentPreference + + - jsonPath: $.vendor.auditDetails.createdBy + + - jsonPath: $.vendor.auditDetails.lastModifiedBy + + - jsonPath: $.vendor.auditDetails.createdTime + + - jsonPath: $.vendor.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_vendor_address(id, tenantid, doorno, plotno, landmark, city, district, region, state, country, locality, pincode, additionalDetails, buildingname, street, vendor_id, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.id + + - jsonPath: $.vendor.address.tenantId + + - jsonPath: $.vendor.address.doorNo + + - jsonPath: $.vendor.address.plotNo + + - jsonPath: $.vendor.address.landmark + + - jsonPath: $.vendor.address.city + + - jsonPath: $.vendor.address.district + + - jsonPath: $.vendor.address.region + + - jsonPath: $.vendor.address.state + + - jsonPath: $.vendor.address.country + + - jsonPath: $.vendor.address.locality.code + + - jsonPath: $.vendor.address.pincode + + - jsonPath: $.vendor.address.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.vendor.address.buildingName + + - jsonPath: $.vendor.address.street + + - jsonPath: $.vendor.id + + - jsonPath: $.vendor.address.auditDetails.createdBy + + - jsonPath: $.vendor.address.auditDetails.lastModifiedBy + + - jsonPath: $.vendor.address.auditDetails.createdTime + + - jsonPath: $.vendor.address.auditDetails.lastModifiedTime + + + + - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.id + - jsonPath: $.vendor.drivers.*.name + - jsonPath: $.vendor.drivers.*.tenantId + - jsonPath: $.vendor.drivers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.drivers.*.owner.uuid + - jsonPath: $.vendor.drivers.*.description + - jsonPath: $.vendor.drivers.*.status + - jsonPath: $.vendor.drivers.*.licenseNumber + - jsonPath: $.vendor.drivers.*.auditDetails.createdBy + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.drivers.*.auditDetails.createdTime + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_vendor_driver( vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.drivers.*.id + - jsonPath: $.vendor.drivers.*.vendorDriverStatus + + - query: INSERT INTO eg_vendor_vehicle( vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); + basePath: vendor.vehicles.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.vehicles.*.id + - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Update Vendor details + fromTopic: update-vendor-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.id + + - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.name + - jsonPath: $.vendor.tenantId + - jsonPath: $.vendor.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.owner.uuid + - jsonPath: $.vendor.description + - jsonPath: $.vendor.source + - jsonPath: $.vendor.status + - jsonPath: $.vendor.agencyType + - jsonPath: $.vendor.paymentPreference + - jsonPath: $.vendor.auditDetails.createdBy + - jsonPath: $.vendor.auditDetails.lastModifiedBy + - jsonPath: $.vendor.auditDetails.createdTime + - jsonPath: $.vendor.auditDetails.lastModifiedTime + - jsonPath: $.vendor.id + + - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.id + + - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.tenantId + - jsonPath: $.vendor.address.doorNo + - jsonPath: $.vendor.address.plotNo + - jsonPath: $.vendor.address.landmark + - jsonPath: $.vendor.address.city + - jsonPath: $.vendor.address.district + - jsonPath: $.vendor.address.region + - jsonPath: $.vendor.address.state + - jsonPath: $.vendor.address.country + - jsonPath: $.vendor.address.locality.code + - jsonPath: $.vendor.address.pincode + - jsonPath: $.vendor.address.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.address.buildingName + - jsonPath: $.vendor.address.street + - jsonPath: $.vendor.id + - jsonPath: $.vendor.address.auditDetails.createdBy + - jsonPath: $.vendor.address.auditDetails.lastModifiedBy + - jsonPath: $.vendor.address.auditDetails.createdTime + - jsonPath: $.vendor.address.auditDetails.lastModifiedTime + - jsonPath: $.vendor.address.id + + - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.name + - jsonPath: $.vendor.drivers.*.tenantId + - jsonPath: $.vendor.drivers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.drivers.*.owner.uuid + - jsonPath: $.vendor.drivers.*.description + - jsonPath: $.vendor.drivers.*.status + - jsonPath: $.vendor.drivers.*.licenseNumber + - jsonPath: $.vendor.drivers.*.auditDetails.createdBy + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.drivers.*.auditDetails.createdTime + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_vendor_sanitation_worker SET tenantid=?, vendor_id= ?, vendor_sw_status=?, additionaldetails=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE individual_id=? + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.workers.*.individualId + + - query: UPDATE EG_VENDOR_DRIVER SET vendor_id= ?, vendorDriverStatus= ? WHERE DRIVER_ID= ? ; + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.drivers.*.vendorDriverStatus + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_vendor_vehicle SET vendor_id= ?,vendorVehicleStatus= ? WHERE VECHILE_ID= ? ; + basePath: vendor.vehicles.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + - jsonPath: $.vendor.vehicles.*.id + + - version: 1.0 + description: Update Vendor details + fromTopic: save-vendordrivervehicle-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_vendor_auditlog SELECT * FROM eg_vendor WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.id + + - query: UPDATE eg_vendor SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, source=?, status=?, agencyType=?, paymentPreference=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor + jsonMaps: + - jsonPath: $.vendor.name + - jsonPath: $.vendor.tenantId + - jsonPath: $.vendor.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.owner.uuid + - jsonPath: $.vendor.description + - jsonPath: $.vendor.source + - jsonPath: $.vendor.status + - jsonPath: $.vendor.agencyType + - jsonPath: $.vendor.paymentPreference + - jsonPath: $.vendor.auditDetails.createdBy + - jsonPath: $.vendor.auditDetails.lastModifiedBy + - jsonPath: $.vendor.auditDetails.createdTime + - jsonPath: $.vendor.auditDetails.lastModifiedTime + - jsonPath: $.vendor.id + + - query: INSERT INTO eg_vendor_address_auditlog SELECT * FROM eg_vendor_address WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.id + + - query: UPDATE eg_vendor_address SET tenantid=?, doorno=?, plotno=?, landmark=?, city=?, district=?, region=?, state=?, country=?, locality=?, pincode=?, additionalDetails=?, buildingname=?, street=?, vendor_id=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.address + jsonMaps: + - jsonPath: $.vendor.address.tenantId + - jsonPath: $.vendor.address.doorNo + - jsonPath: $.vendor.address.plotNo + - jsonPath: $.vendor.address.landmark + - jsonPath: $.vendor.address.city + - jsonPath: $.vendor.address.district + - jsonPath: $.vendor.address.region + - jsonPath: $.vendor.address.state + - jsonPath: $.vendor.address.country + - jsonPath: $.vendor.address.locality.code + - jsonPath: $.vendor.address.pincode + - jsonPath: $.vendor.address.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.address.buildingName + - jsonPath: $.vendor.address.street + - jsonPath: $.vendor.id + - jsonPath: $.vendor.address.auditDetails.createdBy + - jsonPath: $.vendor.address.auditDetails.lastModifiedBy + - jsonPath: $.vendor.address.auditDetails.createdTime + - jsonPath: $.vendor.address.auditDetails.lastModifiedTime + - jsonPath: $.vendor.address.id + + - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.id + + - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.drivers.*.name + - jsonPath: $.vendor.drivers.*.tenantId + - jsonPath: $.vendor.drivers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.drivers.*.owner.uuid + - jsonPath: $.vendor.drivers.*.description + - jsonPath: $.vendor.drivers.*.status + - jsonPath: $.vendor.drivers.*.licenseNumber + - jsonPath: $.vendor.drivers.*.auditDetails.createdBy + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.drivers.*.auditDetails.createdTime + - jsonPath: $.vendor.drivers.*.auditDetails.lastModifiedTime + - jsonPath: $.vendor.drivers.*.id + + - query: INSERT INTO eg_vendor_sanitation_worker( id, tenantid, vendor_id, individual_id, additionaldetails, vendor_sw_status, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: vendor.workers.* + jsonMaps: + - jsonPath: $.vendor.workers.*.id + - jsonPath: $.vendor.workers.*.tenantId + - jsonPath: $.vendor.id + - jsonPath: $.vendor.workers.*.individualId + - jsonPath: $.vendor.workers.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.vendor.workers.*.vendorWorkerStatus + - jsonPath: $.vendor.workers.*.auditDetails.createdBy + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedBy + - jsonPath: $.vendor.workers.*.auditDetails.createdTime + - jsonPath: $.vendor.workers.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_vendor_driver(vendor_id, driver_id, vendordriverstatus) VALUES ( ?, ?, ?); + basePath: vendor.drivers.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.drivers.*.id + - jsonPath: $.vendor.drivers.*.vendorDriverStatus + + - query: INSERT INTO eg_vendor_vehicle(vendor_id,vechile_id, vendorVehicleStatus) VALUES ( ?, ?, ?); + basePath: vendor.vehicles.* + jsonMaps: + - jsonPath: $.vendor.id + - jsonPath: $.vendor.vehicles.*.id + - jsonPath: $.vendor.vehicles.*.vendorVehicleStatus + + - version: 1.0 + description: Driver Registration Application details in eg_driver table + fromTopic: save-driver-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_driver( id, name, tenantid, additionaldetails, owner_id, description, status,licenseNumber, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: driver + jsonMaps: + - jsonPath: $.driver.id + - jsonPath: $.driver.name + - jsonPath: $.driver.tenantId + - jsonPath: $.driver.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.driver.owner.uuid + - jsonPath: $.driver.description + - jsonPath: $.driver.status + - jsonPath: $.driver.licenseNumber + - jsonPath: $.driver.auditDetails.createdBy + - jsonPath: $.driver.auditDetails.lastModifiedBy + - jsonPath: $.driver.auditDetails.createdTime + - jsonPath: $.driver.auditDetails.lastModifiedTime + + + + - version: 1.0 + description: Update Driver details + fromTopic: update-driver-application + isTransaction: true + queryMaps: + + - query: INSERT INTO eg_driver_auditlog SELECT * FROM eg_driver WHERE id=? + basePath: driver + jsonMaps: + - jsonPath: $.driver.id + + - query: UPDATE eg_driver SET name=?, tenantid=?, additionaldetails=?, owner_id=?, description=?, status=?, licenseNumber=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + basePath: driver + jsonMaps: + - jsonPath: $.driver.name + - jsonPath: $.driver.tenantId + - jsonPath: $.driver.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.driver.owner.uuid + - jsonPath: $.driver.description + - jsonPath: $.driver.status + - jsonPath: $.driver.licenseNumber + - jsonPath: $.driver.auditDetails.createdBy + - jsonPath: $.driver.auditDetails.lastModifiedBy + - jsonPath: $.driver.auditDetails.createdTime + - jsonPath: $.driver.auditDetails.lastModifiedTime + - jsonPath: $.driver.id From 330590561804473a90d18552189ff9bf43d04d3a Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Thu, 4 Jan 2024 18:28:19 +0530 Subject: [PATCH 067/158] Update fsm-inbox-indexer.yml --- sanitation/egov-indexer/fsm-inbox-indexer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanitation/egov-indexer/fsm-inbox-indexer.yml b/sanitation/egov-indexer/fsm-inbox-indexer.yml index 9c2d0e8c1..6ba204937 100644 --- a/sanitation/egov-indexer/fsm-inbox-indexer.yml +++ b/sanitation/egov-indexer/fsm-inbox-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: fsm-application - type: fsmInboxApplication + type: _doc id: $.id, $.tenantId jsonPath: $.fsmRequest.fsm timeStampField: $.auditDetails.createdTime @@ -42,7 +42,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: fsm-application - type: fsmInboxApplication + type: _doc id: $.id, $.tenantId jsonPath: $.fsm.* timeStampField: $.auditDetails.createdTime From 98a9cc1c6969a43abb9b390d1fa998a7ebdaa230 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 4 Jan 2024 20:12:23 +0530 Subject: [PATCH 068/158] added _doc in type field --- sanitation/egov-indexer/egov-fsm.yaml | 8 ++++---- sanitation/egov-indexer/egov-pqm-service.yml | 6 +++--- sanitation/egov-indexer/egov-vehicle.yaml | 12 ++++++------ sanitation/egov-indexer/egov-vendor.yaml | 4 ++-- sanitation/egov-indexer/payment-indexer.yml | 6 +++--- .../egov-indexer/pqm-anomaly-finder-indexer.yml | 4 ++-- sanitation/egov-indexer/pqm-service-indexer.yml | 4 ++-- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/sanitation/egov-indexer/egov-fsm.yaml b/sanitation/egov-indexer/egov-fsm.yaml index 5871fcd31..b0f7e33ff 100644 --- a/sanitation/egov-indexer/egov-fsm.yaml +++ b/sanitation/egov-indexer/egov-fsm.yaml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: fsm - type: fsmapplication + type: _doc id: $.id, $.tenantId isBulk: false timeStampField: $.auditDetails.createdTime @@ -52,7 +52,7 @@ ServiceMaps: configKey: INDEX indexes: - name: fsm - type: fsmapplication + type: _doc id: $.id, $.tenantId isBulk: false timeStampField: $.auditDetails.createdTime @@ -112,7 +112,7 @@ ServiceMaps: configKey: INDEX indexes: - name: fsm - type: fsmapplication + type: _doc id: $.id, $.tenantId isBulk: false timeStampField: $.auditDetails.createdTime @@ -173,7 +173,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: fsm - type: fsmapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime diff --git a/sanitation/egov-indexer/egov-pqm-service.yml b/sanitation/egov-indexer/egov-pqm-service.yml index 845cc1ee1..07de829df 100644 --- a/sanitation/egov-indexer/egov-pqm-service.yml +++ b/sanitation/egov-indexer/egov-pqm-service.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-application - type: general + type: _doc id: $.testId,$.tenantId isBulk: true jsonPath: $.tests.* @@ -52,7 +52,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-application - type: general + type: _doc id: $.testId,$.tenantId isBulk: true jsonPath: $.tests.* @@ -99,7 +99,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: pqm-application-legacyindex - type: general + type: _doc id: $.testId,$.tenantId isBulk: true jsonPath: $.tests.* diff --git a/sanitation/egov-indexer/egov-vehicle.yaml b/sanitation/egov-indexer/egov-vehicle.yaml index 898626395..bb7370eed 100644 --- a/sanitation/egov-indexer/egov-vehicle.yaml +++ b/sanitation/egov-indexer/egov-vehicle.yaml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: vehicle - type: vehicleapplication + type: _doc id: $.id, $.tenantId isBulk: false timeStampField: $.auditDetails.createdTime @@ -33,7 +33,7 @@ ServiceMaps: configKey: INDEX indexes: - name: vehicletrip - type: vehicletripapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime @@ -84,7 +84,7 @@ ServiceMaps: configKey: INDEX indexes: - name: vehicletrip - type: vehicletripapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime @@ -135,7 +135,7 @@ ServiceMaps: configKey: INDEX indexes: - name: vehicletrip - type: vehicletripapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime @@ -186,7 +186,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: vehicletrip - type: vehicletripapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime @@ -237,7 +237,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: vehicle - type: vehicleapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime diff --git a/sanitation/egov-indexer/egov-vendor.yaml b/sanitation/egov-indexer/egov-vendor.yaml index 000c3affa..b76fd28ff 100644 --- a/sanitation/egov-indexer/egov-vendor.yaml +++ b/sanitation/egov-indexer/egov-vendor.yaml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: vendor - type: vendorapplication + type: _doc id: $.id, $.tenantId isBulk: false timeStampField: $.auditDetails.createdTime @@ -33,7 +33,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: vendor - type: vendorapplication + type: _doc id: $.id, $.tenantId isBulk: true timeStampField: $.auditDetails.createdTime diff --git a/sanitation/egov-indexer/payment-indexer.yml b/sanitation/egov-indexer/payment-indexer.yml index 682c633f0..60f7dca5a 100644 --- a/sanitation/egov-indexer/payment-indexer.yml +++ b/sanitation/egov-indexer/payment-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: paymentsindex-v1 - type: payments + type: _doc id: $.id isBulk: false timeStampField: $.auditDetails.createdTime @@ -58,7 +58,7 @@ ServiceMaps: configKey: INDEX indexes: - name: paymentsindex-v1 - type: payments + type: _doc id: $.id isBulk: false timeStampField: $.auditDetails.createdTime @@ -110,7 +110,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: paymentsindex-v1 - type: payments + type: _doc id: $.id isBulk: true timeStampField: $.auditDetails.createdTime diff --git a/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml b/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml index cfead9b53..4e240aba9 100644 --- a/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml +++ b/sanitation/egov-indexer/pqm-anomaly-finder-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-anomaly-finder - type: general + type: _doc jsonPath: $.pqmAnomalys.* id: $.id isBulk: true @@ -21,7 +21,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: pqm-anomaly-finder - type: general + type: _doc jsonPath: $.pqmAnomalys.* id: $.id isBulk: true diff --git a/sanitation/egov-indexer/pqm-service-indexer.yml b/sanitation/egov-indexer/pqm-service-indexer.yml index 6a78061ea..142ba3fa6 100644 --- a/sanitation/egov-indexer/pqm-service-indexer.yml +++ b/sanitation/egov-indexer/pqm-service-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true @@ -40,7 +40,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: false From 677861ece3a79707a07b0053b9a0b6a9f77294f7 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:23:05 +0530 Subject: [PATCH 069/158] Update referral-management-persister.yml updated hf referral --- .../referral-management-persister.yml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/egov-persister/referral-management-persister.yml b/egov-persister/referral-management-persister.yml index 8b193bdcb..db03dd307 100644 --- a/egov-persister/referral-management-persister.yml +++ b/egov-persister/referral-management-persister.yml @@ -156,3 +156,78 @@ serviceMaps: - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - jsonPath: $.*.id + + - version: 1.0 + description: Saves a hfreferral + fromTopic: save-hfreferral-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, facilityid, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.facilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a hfreferral + fromTopic: update-hfreferral-topic + isTransaction: true + queryMaps: + - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, facilityid = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.facilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a hfreferral + fromTopic: delete-hfreferral-topic + isTransaction: true + queryMaps: + - query: UPDATE health.hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id From a123a52c66e5b479e238fec2fe296209e9435588 Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Thu, 4 Jan 2024 16:15:35 +0530 Subject: [PATCH 070/158] updated facility, household, individual, product, project, project-task, referral-management, service-request, stock persister for health schema --- egov-persister/facility-persister.yml | 10 ++--- egov-persister/household-persister.yml | 16 ++++---- egov-persister/individual-persister.yml | 30 +++++++------- egov-persister/product-persister.yml | 8 ++-- egov-persister/project-persister.yml | 40 +++++++++---------- egov-persister/project-task-persister.yml | 22 +++++----- .../referral-management-persister.yml | 12 +++--- egov-persister/service-request-persister.yml | 8 ++-- egov-persister/stock-persister.yml | 12 +++--- 9 files changed, 79 insertions(+), 79 deletions(-) diff --git a/egov-persister/facility-persister.yml b/egov-persister/facility-persister.yml index 4259bbd2a..093e8d731 100644 --- a/egov-persister/facility-persister.yml +++ b/egov-persister/facility-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-facility-topic isTransaction: true queryMaps: - - query: INSERT INTO FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -27,7 +27,7 @@ serviceMaps: - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - - query: INSERT INTO ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address jsonMaps: - jsonPath: $.*.address.id @@ -52,7 +52,7 @@ serviceMaps: fromTopic: update-facility-topic isTransaction: true queryMaps: - - query: UPDATE FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -70,7 +70,7 @@ serviceMaps: - jsonPath: $.*.rowVersion - jsonPath: $.*.id - - query: INSERT INTO ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; + - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; basePath: $.*.address jsonMaps: - jsonPath: $.*.address.id @@ -110,7 +110,7 @@ serviceMaps: fromTopic: delete-facility-topic isTransaction: true queryMaps: - - query: UPDATE FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy diff --git a/egov-persister/household-persister.yml b/egov-persister/household-persister.yml index e489a6da8..87d92ab3b 100644 --- a/egov-persister/household-persister.yml +++ b/egov-persister/household-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-household-topic isTransaction: true queryMaps: - - query: INSERT INTO HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -27,7 +27,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.clientAuditDetails.createdBy - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address jsonMaps: - jsonPath: $.*.address.id @@ -52,7 +52,7 @@ serviceMaps: fromTopic: update-household-topic isTransaction: true queryMaps: - - query: UPDATE HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; + - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -69,7 +69,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; basePath: $.*.address jsonMaps: - jsonPath: $.*.address.id @@ -108,7 +108,7 @@ serviceMaps: fromTopic: delete-household-topic isTransaction: true queryMaps: - - query: UPDATE HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -127,7 +127,7 @@ serviceMaps: fromTopic: save-household-member-topic isTransaction: true queryMaps: - - query: INSERT INTO HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -156,7 +156,7 @@ serviceMaps: fromTopic: update-household-member-topic isTransaction: true queryMaps: - - query: UPDATE HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; + - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.isHeadOfHousehold @@ -177,7 +177,7 @@ serviceMaps: fromTopic: delete-household-member-topic isTransaction: true queryMaps: - - query: UPDATE HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy diff --git a/egov-persister/individual-persister.yml b/egov-persister/individual-persister.yml index bd4f8a2cd..483a8416a 100644 --- a/egov-persister/individual-persister.yml +++ b/egov-persister/individual-persister.yml @@ -13,7 +13,7 @@ serviceMaps: transactionCodeJsonPath: $.clientReferenceId auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address.* jsonMaps: - jsonPath: $.*.address.*.id @@ -33,7 +33,7 @@ serviceMaps: - jsonPath: $.*.address.*.street - jsonPath: $.*.address.*.locality.code - jsonPath: $.*.address.*.ward.code - - query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -78,7 +78,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.createdBy - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address.* jsonMaps: - jsonPath: $.*.address.*.individualId @@ -89,7 +89,7 @@ serviceMaps: - jsonPath: $.*.address.*.auditDetails.createdTime - jsonPath: $.*.address.*.auditDetails.lastModifiedTime - jsonPath: $.*.address.*.isDeleted - - query: INSERT INTO individual_identifier(id, clientReferenceId, identifierType, identifierId, individualId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.individual_identifier(id, clientReferenceId, identifierType, identifierId, individualId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.identifiers.* jsonMaps: - jsonPath: $.*.identifiers.*.id @@ -102,7 +102,7 @@ serviceMaps: - jsonPath: $.*.identifiers.*.auditDetails.createdTime - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - jsonPath: $.*.identifiers.*.isDeleted - - query: INSERT INTO individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.skills.* jsonMaps: - jsonPath: $.*.skills.*.id @@ -122,7 +122,7 @@ serviceMaps: fromTopic: update-individual-topic isTransaction: true queryMaps: - - query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + - query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.userId @@ -158,7 +158,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; + - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; basePath: $.*.address.* jsonMaps: - jsonPath: $.*.address.*.id @@ -192,7 +192,7 @@ serviceMaps: - jsonPath: $.*.address.*.street - jsonPath: $.*.address.*.locality.code - jsonPath: $.*.address.*.ward.code - - query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (individualId, addressId, type, isDeleted) WHERE isDeleted=false DO UPDATE SET lastModifiedBy = ?, lastModifiedTime = ?; + - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (individualId, addressId, type, isDeleted) WHERE isDeleted=false DO UPDATE SET lastModifiedBy = ?, lastModifiedTime = ?; basePath: $.*.address.* jsonMaps: - jsonPath: $.*.address.*.individualId @@ -205,7 +205,7 @@ serviceMaps: - jsonPath: $.*.address.*.isDeleted - jsonPath: $.*.address.*.auditDetails.lastModifiedBy - jsonPath: $.*.address.*.auditDetails.lastModifiedTime - - query: INSERT INTO individual_identifier(id, clientReferenceId, individualId, identifierType, identifierId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET identifierId = ?, identifierType = ?, lastModifiedBy = ?, lastModifiedTime = ?; + - query: INSERT INTO health.individual_identifier(id, clientReferenceId, individualId, identifierType, identifierId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET identifierId = ?, identifierType = ?, lastModifiedBy = ?, lastModifiedTime = ?; basePath: $.*.identifiers.* jsonMaps: - jsonPath: $.*.identifiers.*.id @@ -222,7 +222,7 @@ serviceMaps: - jsonPath: $.*.identifiers.*.identifierType - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - - query: INSERT INTO individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET type = ?, level = ?, experience = ?, lastModifiedBy = ?, lastModifiedTime = ?; + - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET type = ?, level = ?, experience = ?, lastModifiedBy = ?, lastModifiedTime = ?; basePath: $.*.skills.* jsonMaps: - jsonPath: $.*.skills.*.id @@ -247,7 +247,7 @@ serviceMaps: fromTopic: delete-individual-topic isTransaction: true queryMaps: - - query: UPDATE individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; + - query: UPDATE health.individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -258,7 +258,7 @@ serviceMaps: - jsonPath: $.*.isDeleted - jsonPath: $.*.isSystemUserActive - jsonPath: $.*.id - - query: UPDATE individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; + - query: UPDATE health.individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; basePath: $.*.address.* jsonMaps: - jsonPath: $.*.address.*.auditDetails.lastModifiedBy @@ -266,14 +266,14 @@ serviceMaps: - jsonPath: $.*.address.*.isDeleted - jsonPath: $.*.address.*.individualId - jsonPath: $.*.address.*.id - - query: UPDATE individual_identifier SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; + - query: UPDATE health.individual_identifier SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; basePath: $.*.identifiers.* jsonMaps: - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - jsonPath: $.*.identifiers.*.isDeleted - jsonPath: $.*.identifiers.*.id - - query: UPDATE individual_skill SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; + - query: UPDATE health.individual_skill SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; basePath: $.*.skills.* jsonMaps: - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy @@ -286,7 +286,7 @@ serviceMaps: fromTopic: update-user-id-topic isTransaction: true queryMaps: - - query: UPDATE individual SET userId=?, userUuid=? WHERE id=?; + - query: UPDATE health.individual SET userId=?, userUuid=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.userId diff --git a/egov-persister/product-persister.yml b/egov-persister/product-persister.yml index fd5669229..a2de92c72 100644 --- a/egov-persister/product-persister.yml +++ b/egov-persister/product-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-product-topic isTransaction: true queryMaps: - - query: INSERT INTO product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -29,7 +29,7 @@ serviceMaps: fromTopic: update-product-topic isTransaction: true queryMaps: - - query: UPDATE product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? + - query: UPDATE health.product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -50,7 +50,7 @@ serviceMaps: fromTopic: save-product-variant-topic isTransaction: true queryMaps: - - query: INSERT INTO product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -73,7 +73,7 @@ serviceMaps: fromTopic: update-product-variant-topic isTransaction: true queryMaps: - - query: UPDATE product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; + - query: UPDATE health.product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId diff --git a/egov-persister/project-persister.yml b/egov-persister/project-persister.yml index 665656875..e561f8dae 100644 --- a/egov-persister/project-persister.yml +++ b/egov-persister/project-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-project-staff-topic isTransaction: true queryMaps: - - query: INSERT INTO project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -30,7 +30,7 @@ serviceMaps: fromTopic: update-project-staff-topic isTransaction: true queryMaps: - - query: UPDATE project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + - query: UPDATE health.project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -51,7 +51,7 @@ serviceMaps: fromTopic: delete-project-staff-topic isTransaction: true queryMaps: - - query: UPDATE project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE health.project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -68,7 +68,7 @@ serviceMaps: fromTopic: save-project-beneficiary-topic isTransaction: true queryMaps: - - query: INSERT INTO project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -98,7 +98,7 @@ serviceMaps: fromTopic: update-project-beneficiary-topic isTransaction: true queryMaps: - - query: UPDATE project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false + - query: UPDATE health.project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -123,7 +123,7 @@ serviceMaps: fromTopic: delete-project-beneficiary-topic isTransaction: true queryMaps: - - query: UPDATE project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE health.project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -143,7 +143,7 @@ serviceMaps: fromTopic: save-project isTransaction: true queryMaps: - - query: INSERT INTO project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.* jsonMaps: - jsonPath: $.Projects.*.id @@ -195,7 +195,7 @@ serviceMaps: - jsonPath: $.Projects.*.auditDetails.lastModifiedTime - - query: INSERT INTO project_address(id,tenantId,projectId,doorNo,latitude,longitude,locationAccuracy,type,addressLine1,addressLine2,landmark,city,pinCode,buildingName,street,boundaryType,boundary) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_address(id,tenantId,projectId,doorNo,latitude,longitude,locationAccuracy,type,addressLine1,addressLine2,landmark,city,pinCode,buildingName,street,boundaryType,boundary) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.*.address jsonMaps: - jsonPath: $.Projects.*.address.id @@ -233,7 +233,7 @@ serviceMaps: - jsonPath: $.Projects.*.address.boundary - - query: INSERT INTO project_target(id,projectId,beneficiaryType,totalNo,targetNo,isDeleted,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_target(id,projectId,beneficiaryType,totalNo,targetNo,isDeleted,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.*.targets.* jsonMaps: - jsonPath: $.Projects.*.targets.*.id @@ -257,7 +257,7 @@ serviceMaps: - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedTime - - query: INSERT INTO project_document(id,projectId,documentType,filestoreId,documentUid,additionalDetails,status,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_document(id,projectId,documentType,filestoreId,documentUid,additionalDetails,status,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.*.documents.* jsonMaps: - jsonPath: $.Projects.*.documents.*.id @@ -291,7 +291,7 @@ serviceMaps: fromTopic: update-project isTransaction: true queryMaps: - - query: UPDATE project SET name = ?, projectType = ?, projectTypeId = ?, projectSubType = ?, department = ?, description = ?, referenceId = ?, startDate = ?, endDate = ?, isTaskEnabled = ?, natureOfWork = ?, additionalDetails = ?, isDeleted = ?, rowVersion = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE health.project SET name = ?, projectType = ?, projectTypeId = ?, projectSubType = ?, department = ?, description = ?, referenceId = ?, startDate = ?, endDate = ?, isTaskEnabled = ?, natureOfWork = ?, additionalDetails = ?, isDeleted = ?, rowVersion = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.Projects.* jsonMaps: @@ -332,7 +332,7 @@ serviceMaps: - jsonPath: $.Projects.*.id - - query: UPDATE project_address SET doorNo = ?, latitude=?, longitude=?, locationAccuracy=?, type=?, addressLine1=?, addressLine2=?, landmark=?, city=?, pinCode=?, buildingName=?, street=?, boundaryType=?, boundary=? WHERE id=?; + - query: UPDATE health.project_address SET doorNo = ?, latitude=?, longitude=?, locationAccuracy=?, type=?, addressLine1=?, addressLine2=?, landmark=?, city=?, pinCode=?, buildingName=?, street=?, boundaryType=?, boundary=? WHERE id=?; basePath: $.Projects.*.address jsonMaps: @@ -367,7 +367,7 @@ serviceMaps: - jsonPath: $.Projects.*.address.id - - query: INSERT INTO project_target(id,projectId,beneficiaryType,totalNo,targetNo,isDeleted,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET beneficiaryType = ?, totalNo =?, targetNo=?, isDeleted=?, lastModifiedBy=?, lastModifiedTime=?; + - query: INSERT INTO health.project_target(id,projectId,beneficiaryType,totalNo,targetNo,isDeleted,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET beneficiaryType = ?, totalNo =?, targetNo=?, isDeleted=?, lastModifiedBy=?, lastModifiedTime=?; basePath: $.Projects.*.targets.* jsonMaps: @@ -404,7 +404,7 @@ serviceMaps: - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedTime - - query: INSERT INTO project_document(id,projectId,documentType,filestoreId,documentUid,additionalDetails,status,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET documentType=?, filestoreId=?, documentUid=?, additionalDetails=?, status=?, lastModifiedBy=?, lastModifiedTime=?; + - query: INSERT INTO health.project_document(id,projectId,documentType,filestoreId,documentUid,additionalDetails,status,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET documentType=?, filestoreId=?, documentUid=?, additionalDetails=?, status=?, lastModifiedBy=?, lastModifiedTime=?; basePath: $.Projects.*.documents.* jsonMaps: @@ -454,7 +454,7 @@ serviceMaps: fromTopic: save-project-resource-topic isTransaction: true queryMaps: - - query: INSERT INTO project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -477,7 +477,7 @@ serviceMaps: fromTopic: update-project-resource-topic isTransaction: true queryMaps: - - query: UPDATE project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + - query: UPDATE health.project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -498,7 +498,7 @@ serviceMaps: fromTopic: delete-project-resource-topic isTransaction: true queryMaps: - - query: UPDATE project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? + - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -516,7 +516,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -549,7 +549,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: UPDATE project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + - query: UPDATE health.project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.projectId @@ -575,7 +575,7 @@ serviceMaps: fromTopic: delete-project-facility-topic isTransaction: true queryMaps: - - query: UPDATE project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE health.project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy diff --git a/egov-persister/project-task-persister.yml b/egov-persister/project-task-persister.yml index d12d39d7a..b0a7f168c 100644 --- a/egov-persister/project-task-persister.yml +++ b/egov-persister/project-task-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-project-task-topic isTransaction: true queryMaps: - - query: INSERT INTO PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -35,7 +35,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.createdBy - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address jsonMaps: - jsonPath: $.*.address.id @@ -55,7 +55,7 @@ serviceMaps: - jsonPath: $.*.address.street - jsonPath: $.*.address.locality.code - - query: INSERT INTO TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.resources.*.id @@ -77,7 +77,7 @@ serviceMaps: fromTopic: update-project-task-topic isTransaction: true queryMaps: - - query: UPDATE PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; + - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -101,7 +101,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - - query: UPDATE ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; + - query: UPDATE health.ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; basePath: $.*.address jsonMaps: - jsonPath: $.*.address.tenantId @@ -120,7 +120,7 @@ serviceMaps: - jsonPath: $.*.address.locality.code - jsonPath: $.*.address.id - - query: INSERT INTO TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; + - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.resources.*.id @@ -150,7 +150,7 @@ serviceMaps: fromTopic: delete-project-task-topic isTransaction: true queryMaps: - - query: UPDATE PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -163,7 +163,7 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.*.id - - query: UPDATE TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -176,7 +176,7 @@ serviceMaps: fromTopic: save-adverse-event-topic isTransaction: true queryMaps: - - query: INSERT INTO ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -202,7 +202,7 @@ serviceMaps: fromTopic: update-adverse-event-topic isTransaction: true queryMaps: - - query: UPDATE ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -224,7 +224,7 @@ serviceMaps: fromTopic: delete-adverse-event-topic isTransaction: true queryMaps: - - query: UPDATE ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy diff --git a/egov-persister/referral-management-persister.yml b/egov-persister/referral-management-persister.yml index db03dd307..f658bfd25 100644 --- a/egov-persister/referral-management-persister.yml +++ b/egov-persister/referral-management-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-side-effect-topic isTransaction: true queryMaps: - - query: INSERT INTO SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -38,7 +38,7 @@ serviceMaps: fromTopic: update-side-effect-topic isTransaction: true queryMaps: - - query: UPDATE SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -65,7 +65,7 @@ serviceMaps: fromTopic: delete-side-effect-topic isTransaction: true queryMaps: - - query: UPDATE SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -81,7 +81,7 @@ serviceMaps: fromTopic: save-referral-topic isTransaction: true queryMaps: - - query: INSERT INTO REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -116,7 +116,7 @@ serviceMaps: fromTopic: update-referral-topic isTransaction: true queryMaps: - - query: UPDATE REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -146,7 +146,7 @@ serviceMaps: fromTopic: delete-referral-topic isTransaction: true queryMaps: - - query: UPDATE REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy diff --git a/egov-persister/service-request-persister.yml b/egov-persister/service-request-persister.yml index f3a6c07e3..be84ecc1b 100644 --- a/egov-persister/service-request-persister.yml +++ b/egov-persister/service-request-persister.yml @@ -7,7 +7,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.ServiceDefinition jsonMaps: - jsonPath: $.ServiceDefinition.id @@ -33,7 +33,7 @@ serviceMaps: - jsonPath: $.ServiceDefinition.clientId - - query: INSERT INTO eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.ServiceDefinition.attributes.* jsonMaps: - jsonPath: $.ServiceDefinition.attributes.*.id @@ -81,7 +81,7 @@ serviceMaps: queryMaps: - - query: INSERT INTO eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Service jsonMaps: - jsonPath: $.Service.id @@ -109,7 +109,7 @@ serviceMaps: - jsonPath: $.Service.clientId - - query: INSERT INTO eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Service.attributes.* jsonMaps: - jsonPath: $.Service.attributes.*.id diff --git a/egov-persister/stock-persister.yml b/egov-persister/stock-persister.yml index 05e6fc98d..301d1e473 100644 --- a/egov-persister/stock-persister.yml +++ b/egov-persister/stock-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-stock-topic isTransaction: true queryMaps: - - query: INSERT INTO STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -42,7 +42,7 @@ serviceMaps: fromTopic: update-stock-topic isTransaction: true queryMaps: - - query: UPDATE STOCK SET tenantId=?, dateOfEntry = ?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -72,7 +72,7 @@ serviceMaps: fromTopic: delete-stock-topic isTransaction: true queryMaps: - - query: UPDATE STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE health.STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -92,7 +92,7 @@ serviceMaps: fromTopic: save-stock-reconciliation-topic isTransaction: true queryMaps: - - query: INSERT INTO STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -125,7 +125,7 @@ serviceMaps: fromTopic: update-stock-reconciliation-topic isTransaction: true queryMaps: - - query: UPDATE STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + - query: UPDATE health.STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -152,7 +152,7 @@ serviceMaps: fromTopic: delete-stock-reconciliation-topic isTransaction: true queryMaps: - - query: UPDATE STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + - query: UPDATE health.STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy From 04dc9e6f8fd70de48a8f9ede7902de46a059ef90 Mon Sep 17 00:00:00 2001 From: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:40:41 +0530 Subject: [PATCH 071/158] Update referral-management-persister.yml --- egov-persister/referral-management-persister.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egov-persister/referral-management-persister.yml b/egov-persister/referral-management-persister.yml index f658bfd25..868e9934b 100644 --- a/egov-persister/referral-management-persister.yml +++ b/egov-persister/referral-management-persister.yml @@ -157,7 +157,7 @@ serviceMaps: - jsonPath: $.*.isDeleted - jsonPath: $.*.id - - version: 1.0 + - version: 1.0 description: Saves a hfreferral fromTopic: save-hfreferral-topic isTransaction: true From 8836d16bb9c0c4778174d38bb04b32e3553c7c6c Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Fri, 5 Jan 2024 12:12:30 +0530 Subject: [PATCH 072/158] Update vehicle-persister.yaml --- sanitation/egov-persister/vehicle-persister.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/sanitation/egov-persister/vehicle-persister.yaml b/sanitation/egov-persister/vehicle-persister.yaml index c870a0194..214178f61 100755 --- a/sanitation/egov-persister/vehicle-persister.yaml +++ b/sanitation/egov-persister/vehicle-persister.yaml @@ -75,7 +75,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, end_type, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.vehicleTrip.* jsonMaps: - jsonPath: $.vehicleTrip.*.id @@ -100,8 +100,6 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.applicationStatus - - jsonPath: $.vehicleTrip.*.endType - - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime @@ -157,7 +155,7 @@ serviceMaps: fromTopic: update-vehicle-trip isTransaction: true queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: @@ -174,8 +172,6 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.applicationStatus - - jsonPath: $.vehicleTrip.*.endType - - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime @@ -226,7 +222,7 @@ serviceMaps: fromTopic: update-workflow-vehicle-trip isTransaction: true queryMaps: - - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, end_type=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? + - query: UPDATE eg_vehicle_trip SET driver_id=?, applicationno=?, additionaldetails=?, status=?, applicationstatus=?, tripstarttime=?, tripendtime=?, volumecarried=?, createdby=?, lastmodifiedby=?, createdtime=?, lastmodifiedtime=? WHERE id=? basePath: $.vehicleTrip.* jsonMaps: @@ -243,8 +239,6 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.applicationStatus - - jsonPath: $.vehicleTrip.*.endType - - jsonPath: $.vehicleTrip.*.tripStartTime - jsonPath: $.vehicleTrip.*.tripEndTime @@ -288,4 +282,4 @@ serviceMaps: - jsonPath: $.vehicleTrip.*.tripDetails.*.auditDetails.lastModifiedTime - - jsonPath: $.vehicleTrip.*.tripDetails.*.id \ No newline at end of file + - jsonPath: $.vehicleTrip.*.tripDetails.*.id From ec59650ca6c65b37a53cd514b4648319d086d173 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Fri, 5 Jan 2024 12:28:37 +0530 Subject: [PATCH 073/158] Update vehicle-persister.yaml --- sanitation/egov-persister/vehicle-persister.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-persister/vehicle-persister.yaml b/sanitation/egov-persister/vehicle-persister.yaml index 214178f61..299feac9b 100755 --- a/sanitation/egov-persister/vehicle-persister.yaml +++ b/sanitation/egov-persister/vehicle-persister.yaml @@ -75,7 +75,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_vehicle_trip(id, tenantid, owner_id, driver_id, vehicle_id, applicationno, additionaldetails, status, businessservice, applicationstatus, tripstarttime, tripendtime, volumecarried, createdby, lastmodifiedby, createdtime, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.vehicleTrip.* jsonMaps: - jsonPath: $.vehicleTrip.*.id From 1bd58fcec01ac4063b9d50a43a862a08d6b8db67 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:32:44 +0530 Subject: [PATCH 074/158] Update referral-management-persister.yml changed to projectFacilityId --- egov-persister/referral-management-persister.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/egov-persister/referral-management-persister.yml b/egov-persister/referral-management-persister.yml index 868e9934b..b8b6d9fcd 100644 --- a/egov-persister/referral-management-persister.yml +++ b/egov-persister/referral-management-persister.yml @@ -162,14 +162,14 @@ serviceMaps: fromTopic: save-hfreferral-topic isTransaction: true queryMaps: - - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, facilityid, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - jsonPath: $.*.projectId - - jsonPath: $.*.facilityId + - jsonPath: $.*.projectFacilityId - jsonPath: $.*.symptom - jsonPath: $.*.symptomSurveyId - jsonPath: $.*.beneficiaryId @@ -194,13 +194,13 @@ serviceMaps: fromTopic: update-hfreferral-topic isTransaction: true queryMaps: - - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, facilityid = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; + - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - jsonPath: $.*.projectId - - jsonPath: $.*.facilityId + - jsonPath: $.*.projectFacilityId - jsonPath: $.*.symptom - jsonPath: $.*.symptomSurveyId - jsonPath: $.*.beneficiaryId From fa9790e607608337f3b435a2399ff37163c07528 Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Fri, 5 Jan 2024 15:34:57 +0530 Subject: [PATCH 075/158] health/egov-persister added --- egov-persister/service-request-persister.yml | 8 +- .../service-request-persister.yml | 135 ++++++++++++++++++ 2 files changed, 139 insertions(+), 4 deletions(-) create mode 100644 health/egov-persister/service-request-persister.yml diff --git a/egov-persister/service-request-persister.yml b/egov-persister/service-request-persister.yml index be84ecc1b..f3a6c07e3 100644 --- a/egov-persister/service-request-persister.yml +++ b/egov-persister/service-request-persister.yml @@ -7,7 +7,7 @@ serviceMaps: isTransaction: true queryMaps: - - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.ServiceDefinition jsonMaps: - jsonPath: $.ServiceDefinition.id @@ -33,7 +33,7 @@ serviceMaps: - jsonPath: $.ServiceDefinition.clientId - - query: INSERT INTO health.eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.ServiceDefinition.attributes.* jsonMaps: - jsonPath: $.ServiceDefinition.attributes.*.id @@ -81,7 +81,7 @@ serviceMaps: queryMaps: - - query: INSERT INTO health.eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Service jsonMaps: - jsonPath: $.Service.id @@ -109,7 +109,7 @@ serviceMaps: - jsonPath: $.Service.clientId - - query: INSERT INTO health.eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Service.attributes.* jsonMaps: - jsonPath: $.Service.attributes.*.id diff --git a/health/egov-persister/service-request-persister.yml b/health/egov-persister/service-request-persister.yml new file mode 100644 index 000000000..1073b0252 --- /dev/null +++ b/health/egov-persister/service-request-persister.yml @@ -0,0 +1,135 @@ +serviceMaps: + serviceName: service-request + mappings: + - version: 1.0 + description: Persists service definition details in service definition table + fromTopic: save-health-service-definition + isTransaction: true + queryMaps: + + - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.ServiceDefinition + jsonMaps: + - jsonPath: $.ServiceDefinition.id + + - jsonPath: $.ServiceDefinition.tenantId + + - jsonPath: $.ServiceDefinition.code + + - jsonPath: $.ServiceDefinition.isActive + + - jsonPath: $.ServiceDefinition.auditDetails.createdBy + + - jsonPath: $.ServiceDefinition.auditDetails.lastModifiedBy + + - jsonPath: $.ServiceDefinition.auditDetails.createdTime + + - jsonPath: $.ServiceDefinition.auditDetails.lastModifiedTime + + - jsonPath: $.ServiceDefinition.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.ServiceDefinition.clientId + + + - query: INSERT INTO health.eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.ServiceDefinition.attributes.* + jsonMaps: + - jsonPath: $.ServiceDefinition.attributes.*.id + + - jsonPath: $.ServiceDefinition.attributes.*.referenceId + + - jsonPath: $.ServiceDefinition.attributes.*.tenantId + + - jsonPath: $.ServiceDefinition.attributes.*.code + + - jsonPath: $.ServiceDefinition.attributes.*.dataType + + - jsonPath: $.ServiceDefinition.attributes.*.values + type: ARRAY + dbType: STRING + + - jsonPath: $.ServiceDefinition.attributes.*.isActive + + - jsonPath: $.ServiceDefinition.attributes.*.required + + - jsonPath: $.ServiceDefinition.attributes.*.regex + + - jsonPath: $.ServiceDefinition.attributes.*.order + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.createdBy + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedBy + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.createdTime + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedTime + + - jsonPath: $.ServiceDefinition.attributes.*.additionalDetails + type: JSON + dbType: JSONB + + + + + + - version: 1.0 + description: Persists service details in service table + fromTopic: save-health-service + isTransaction: true + queryMaps: + + + - query: INSERT INTO health.eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Service + jsonMaps: + - jsonPath: $.Service.id + + - jsonPath: $.Service.tenantId + + - jsonPath: $.Service.serviceDefId + + - jsonPath: $.Service.referenceId + + - jsonPath: $.Service.auditDetails.createdBy + + - jsonPath: $.Service.auditDetails.lastModifiedBy + + - jsonPath: $.Service.auditDetails.createdTime + + - jsonPath: $.Service.auditDetails.lastModifiedTime + + - jsonPath: $.Service.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Service.accountId + + - jsonPath: $.Service.clientId + + + - query: INSERT INTO health.eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Service.attributes.* + jsonMaps: + - jsonPath: $.Service.attributes.*.id + + - jsonPath: $.Service.attributes.*.referenceId + + - jsonPath: $.Service.attributes.*.attributeCode + + - jsonPath: $.Service.attributes.*.value + type: JSON + dbType: JSONB + + - jsonPath: $.Service.attributes.*.auditDetails.createdBy + + - jsonPath: $.Service.attributes.*.auditDetails.lastModifiedBy + + - jsonPath: $.Service.attributes.*.auditDetails.createdTime + + - jsonPath: $.Service.attributes.*.auditDetails.lastModifiedTime + + - jsonPath: $.Service.attributes.*.additionalDetails + type: JSON + dbType: JSONB \ No newline at end of file From 83af01d886853d06f8fb5aca723c2e8bb9526de8 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Mon, 8 Jan 2024 15:28:23 +0530 Subject: [PATCH 076/158] persister change --- sanitation/egov-persister/pqm-anomaly-finder-persister.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml b/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml index 9921258e6..0fd3a0bf1 100644 --- a/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml +++ b/sanitation/egov-persister/pqm-anomaly-finder-persister.yaml @@ -6,12 +6,13 @@ serviceMaps: fromTopic: save-pqm-test-anomaly-details isTransaction: true queryMaps: - - query: INSERT INTO eg_pqm_anomaly_details(id, tenantId, testId, anomalyType, description, referenceId, resolutionStatus, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_anomaly_details(id, tenantId, testId, plantCode, anomalyType, description, referenceId, resolutionStatus, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.pqmAnomalys.* jsonMaps: - jsonPath: $.pqmAnomalys.*.id - jsonPath: $.pqmAnomalys.*.tenantId - jsonPath: $.pqmAnomalys.*.testId + - jsonPath: $.pqmAnomalys.*.plantCode - jsonPath: $.pqmAnomalys.*.anomalyType - jsonPath: $.pqmAnomalys.*.description - jsonPath: $.pqmAnomalys.*.referenceId @@ -25,12 +26,13 @@ serviceMaps: - jsonPath: $.pqmAnomalys.*.auditDetails.createdTime - jsonPath: $.pqmAnomalys.*.auditDetails.lastModifiedTime - - query: INSERT INTO eg_pqm_anomaly_details_auditlog(id, tenantId, testId, anomalyType, description, referenceId, resolutionStatus, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO eg_pqm_anomaly_details_auditlog(id, tenantId, testId, plantCode, anomalyType, description, referenceId, resolutionStatus, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.pqmAnomalys.* jsonMaps: - jsonPath: $.pqmAnomalys.*.id - jsonPath: $.pqmAnomalys.*.tenantId - jsonPath: $.pqmAnomalys.*.testId + - jsonPath: $.pqmAnomalys.*.plantCode - jsonPath: $.pqmAnomalys.*.anomalyType - jsonPath: $.pqmAnomalys.*.description - jsonPath: $.pqmAnomalys.*.referenceId From 8decb2c147cd1d8580342c07e3642171340a2503 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Mon, 8 Jan 2024 15:44:24 +0530 Subject: [PATCH 077/158] dash change --- egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index 1ee595e1c..f8c61cc9b 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -26501,11 +26501,6 @@ } ], "isMdmsEnabled": true, - "filterKeys": [ - { - "key": "tenantId" - } - ], "isPostResponseHandler": true, "postAggregationTheory": "repsonseToDifferenceOfDates", "chartType": "xtable", From 1ae19e670be3cae70ec3a34c99cd11b3281fa2de Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:17:51 +0530 Subject: [PATCH 078/158] Create facility.yml --- health/egov-persister/facility.yml | 123 +++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 health/egov-persister/facility.yml diff --git a/health/egov-persister/facility.yml b/health/egov-persister/facility.yml new file mode 100644 index 000000000..20af5805c --- /dev/null +++ b/health/egov-persister/facility.yml @@ -0,0 +1,123 @@ +serviceMaps: + serviceName: facility + mappings: + - version: 1.0 + description: Saves a facility + fromTopic: save-facility-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.isPermanent + - jsonPath: $.*.name + - jsonPath: $.*.usage + - jsonPath: $.*.storageCapacity + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Updates a facility + fromTopic: update-facility-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.isPermanent + - jsonPath: $.*.name + - jsonPath: $.*.usage + - jsonPath: $.*.storageCapacity + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id + + - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Deletes a facility + fromTopic: delete-facility-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id From 54f9f40bf16cbca92a9682e7d773ff3da660f182 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:18:31 +0530 Subject: [PATCH 079/158] Rename facility.yml to facility-persister.yml --- health/egov-persister/{facility.yml => facility-persister.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename health/egov-persister/{facility.yml => facility-persister.yml} (100%) diff --git a/health/egov-persister/facility.yml b/health/egov-persister/facility-persister.yml similarity index 100% rename from health/egov-persister/facility.yml rename to health/egov-persister/facility-persister.yml From 165c71ea9828b915f573d1a877b038976ad99b41 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:18:56 +0530 Subject: [PATCH 080/158] Create egov-persisterhousehold-persister.yml --- health/egov-persisterhousehold-persister.yml | 192 +++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 health/egov-persisterhousehold-persister.yml diff --git a/health/egov-persisterhousehold-persister.yml b/health/egov-persisterhousehold-persister.yml new file mode 100644 index 000000000..09e017006 --- /dev/null +++ b/health/egov-persisterhousehold-persister.yml @@ -0,0 +1,192 @@ +serviceMaps: + serviceName: household + mappings: + - version: 1.0 + description: Persists household. + fromTopic: save-household-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.memberCount + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Updates household. + fromTopic: update-household-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.memberCount + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Deletes household. + fromTopic: delete-household-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + + - version: 1.0 + description: Persists household member. + fromTopic: save-household-health-member-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.individualId + - jsonPath: $.*.individualClientReferenceId + - jsonPath: $.*.householdId + - jsonPath: $.*.householdClientReferenceId + - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - version: 1.0 + description: Update household member. + fromTopic: update-household-health-member-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.individualId + - jsonPath: $.*.householdId + - version: 1.0 + description: Deletes household Member. + fromTopic: delete-household-health-member-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id From 4467adfe4410a6aded3877ce60d16104c79abd52 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:21:14 +0530 Subject: [PATCH 081/158] Delete health/egov-persister/facility-persister.yml --- health/egov-persister/facility-persister.yml | 123 ------------------- 1 file changed, 123 deletions(-) delete mode 100644 health/egov-persister/facility-persister.yml diff --git a/health/egov-persister/facility-persister.yml b/health/egov-persister/facility-persister.yml deleted file mode 100644 index 20af5805c..000000000 --- a/health/egov-persister/facility-persister.yml +++ /dev/null @@ -1,123 +0,0 @@ -serviceMaps: - serviceName: facility - mappings: - - version: 1.0 - description: Saves a facility - fromTopic: save-facility-health-topic - isTransaction: true - queryMaps: - - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* - jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.isPermanent - - jsonPath: $.*.name - - jsonPath: $.*.usage - - jsonPath: $.*.storageCapacity - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address - jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - - version: 1.0 - description: Updates a facility - fromTopic: update-facility-health-topic - isTransaction: true - queryMaps: - - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; - basePath: $.* - jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.isPermanent - - jsonPath: $.*.name - - jsonPath: $.*.usage - - jsonPath: $.*.storageCapacity - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.id - - - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; - basePath: $.*.address - jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - - version: 1.0 - description: Deletes a facility - fromTopic: delete-facility-health-topic - isTransaction: true - queryMaps: - - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* - jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.id From d1e74891b45b3c4a3ed69bc201bf44b2a5cd395c Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:21:47 +0530 Subject: [PATCH 082/158] Delete health/egov-persister/service-request-persister.yml --- .../service-request-persister.yml | 135 ------------------ 1 file changed, 135 deletions(-) delete mode 100644 health/egov-persister/service-request-persister.yml diff --git a/health/egov-persister/service-request-persister.yml b/health/egov-persister/service-request-persister.yml deleted file mode 100644 index 1073b0252..000000000 --- a/health/egov-persister/service-request-persister.yml +++ /dev/null @@ -1,135 +0,0 @@ -serviceMaps: - serviceName: service-request - mappings: - - version: 1.0 - description: Persists service definition details in service definition table - fromTopic: save-health-service-definition - isTransaction: true - queryMaps: - - - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.ServiceDefinition - jsonMaps: - - jsonPath: $.ServiceDefinition.id - - - jsonPath: $.ServiceDefinition.tenantId - - - jsonPath: $.ServiceDefinition.code - - - jsonPath: $.ServiceDefinition.isActive - - - jsonPath: $.ServiceDefinition.auditDetails.createdBy - - - jsonPath: $.ServiceDefinition.auditDetails.lastModifiedBy - - - jsonPath: $.ServiceDefinition.auditDetails.createdTime - - - jsonPath: $.ServiceDefinition.auditDetails.lastModifiedTime - - - jsonPath: $.ServiceDefinition.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.ServiceDefinition.clientId - - - - query: INSERT INTO health.eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.ServiceDefinition.attributes.* - jsonMaps: - - jsonPath: $.ServiceDefinition.attributes.*.id - - - jsonPath: $.ServiceDefinition.attributes.*.referenceId - - - jsonPath: $.ServiceDefinition.attributes.*.tenantId - - - jsonPath: $.ServiceDefinition.attributes.*.code - - - jsonPath: $.ServiceDefinition.attributes.*.dataType - - - jsonPath: $.ServiceDefinition.attributes.*.values - type: ARRAY - dbType: STRING - - - jsonPath: $.ServiceDefinition.attributes.*.isActive - - - jsonPath: $.ServiceDefinition.attributes.*.required - - - jsonPath: $.ServiceDefinition.attributes.*.regex - - - jsonPath: $.ServiceDefinition.attributes.*.order - - - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.createdBy - - - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedBy - - - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.createdTime - - - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedTime - - - jsonPath: $.ServiceDefinition.attributes.*.additionalDetails - type: JSON - dbType: JSONB - - - - - - - version: 1.0 - description: Persists service details in service table - fromTopic: save-health-service - isTransaction: true - queryMaps: - - - - query: INSERT INTO health.eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Service - jsonMaps: - - jsonPath: $.Service.id - - - jsonPath: $.Service.tenantId - - - jsonPath: $.Service.serviceDefId - - - jsonPath: $.Service.referenceId - - - jsonPath: $.Service.auditDetails.createdBy - - - jsonPath: $.Service.auditDetails.lastModifiedBy - - - jsonPath: $.Service.auditDetails.createdTime - - - jsonPath: $.Service.auditDetails.lastModifiedTime - - - jsonPath: $.Service.additionalDetails - type: JSON - dbType: JSONB - - - jsonPath: $.Service.accountId - - - jsonPath: $.Service.clientId - - - - query: INSERT INTO health.eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Service.attributes.* - jsonMaps: - - jsonPath: $.Service.attributes.*.id - - - jsonPath: $.Service.attributes.*.referenceId - - - jsonPath: $.Service.attributes.*.attributeCode - - - jsonPath: $.Service.attributes.*.value - type: JSON - dbType: JSONB - - - jsonPath: $.Service.attributes.*.auditDetails.createdBy - - - jsonPath: $.Service.attributes.*.auditDetails.lastModifiedBy - - - jsonPath: $.Service.attributes.*.auditDetails.createdTime - - - jsonPath: $.Service.attributes.*.auditDetails.lastModifiedTime - - - jsonPath: $.Service.attributes.*.additionalDetails - type: JSON - dbType: JSONB \ No newline at end of file From a93ad492aa84be0ba84196d714d26fa9021eb557 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:22:00 +0530 Subject: [PATCH 083/158] Delete health/egov-persisterhousehold-persister.yml --- health/egov-persisterhousehold-persister.yml | 192 ------------------- 1 file changed, 192 deletions(-) delete mode 100644 health/egov-persisterhousehold-persister.yml diff --git a/health/egov-persisterhousehold-persister.yml b/health/egov-persisterhousehold-persister.yml deleted file mode 100644 index 09e017006..000000000 --- a/health/egov-persisterhousehold-persister.yml +++ /dev/null @@ -1,192 +0,0 @@ -serviceMaps: - serviceName: household - mappings: - - version: 1.0 - description: Persists household. - fromTopic: save-household-health-topic - isTransaction: true - queryMaps: - - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* - jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.memberCount - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address - jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - - version: 1.0 - description: Updates household. - fromTopic: update-household-health-topic - isTransaction: true - queryMaps: - - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; - basePath: $.* - jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.memberCount - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.id - - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; - basePath: $.*.address - jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - - version: 1.0 - description: Deletes household. - fromTopic: delete-household-health-topic - isTransaction: true - queryMaps: - - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.* - jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.id - - - version: 1.0 - description: Persists household member. - fromTopic: save-household-health-member-topic - isTransaction: true - queryMaps: - - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* - jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.individualId - - jsonPath: $.*.individualClientReferenceId - - jsonPath: $.*.householdId - - jsonPath: $.*.householdClientReferenceId - - jsonPath: $.*.isHeadOfHousehold - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - version: 1.0 - description: Update household member. - fromTopic: update-household-health-member-topic - isTransaction: true - queryMaps: - - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; - basePath: $.* - jsonMaps: - - jsonPath: $.*.isHeadOfHousehold - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.individualId - - jsonPath: $.*.householdId - - version: 1.0 - description: Deletes household Member. - fromTopic: delete-household-health-member-topic - isTransaction: true - queryMaps: - - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.* - jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - - jsonPath: $.*.id From 003b383faba3b23c42b6fec36f8de38e8082fef4 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov Date: Tue, 9 Jan 2024 11:39:45 +0530 Subject: [PATCH 084/158] added health folder for UNIFIED-QA --- health/egov-persister/facility-persister.yml | 123 ++++ health/egov-persister/household-persister.yml | 192 ++++++ .../egov-persister/individual-persister.yml | 294 +++++++++ health/egov-persister/product-persister.yml | 90 +++ health/egov-persister/project-persister.yml | 588 ++++++++++++++++++ .../egov-persister/project-task-persister.yml | 235 +++++++ .../referral-management-persister.yml | 233 +++++++ .../service-request-persister.yml | 135 ++++ health/egov-persister/stock-persister.yml | 167 +++++ 9 files changed, 2057 insertions(+) create mode 100644 health/egov-persister/facility-persister.yml create mode 100644 health/egov-persister/household-persister.yml create mode 100644 health/egov-persister/individual-persister.yml create mode 100644 health/egov-persister/product-persister.yml create mode 100644 health/egov-persister/project-persister.yml create mode 100644 health/egov-persister/project-task-persister.yml create mode 100644 health/egov-persister/referral-management-persister.yml create mode 100644 health/egov-persister/service-request-persister.yml create mode 100644 health/egov-persister/stock-persister.yml diff --git a/health/egov-persister/facility-persister.yml b/health/egov-persister/facility-persister.yml new file mode 100644 index 000000000..e9cf69695 --- /dev/null +++ b/health/egov-persister/facility-persister.yml @@ -0,0 +1,123 @@ +serviceMaps: + serviceName: facility + mappings: + - version: 1.0 + description: Saves a facility + fromTopic: save-facility-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.isPermanent + - jsonPath: $.*.name + - jsonPath: $.*.usage + - jsonPath: $.*.storageCapacity + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Updates a facility + fromTopic: update-facility-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.isPermanent + - jsonPath: $.*.name + - jsonPath: $.*.usage + - jsonPath: $.*.storageCapacity + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id + + - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Deletes a facility + fromTopic: delete-facility-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/household-persister.yml b/health/egov-persister/household-persister.yml new file mode 100644 index 000000000..09e017006 --- /dev/null +++ b/health/egov-persister/household-persister.yml @@ -0,0 +1,192 @@ +serviceMaps: + serviceName: household + mappings: + - version: 1.0 + description: Persists household. + fromTopic: save-household-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.memberCount + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Updates household. + fromTopic: update-household-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.memberCount + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - version: 1.0 + description: Deletes household. + fromTopic: delete-household-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + + - version: 1.0 + description: Persists household member. + fromTopic: save-household-health-member-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.individualId + - jsonPath: $.*.individualClientReferenceId + - jsonPath: $.*.householdId + - jsonPath: $.*.householdClientReferenceId + - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - version: 1.0 + description: Update household member. + fromTopic: update-household-health-member-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.individualId + - jsonPath: $.*.householdId + - version: 1.0 + description: Deletes household Member. + fromTopic: delete-household-health-member-topic + isTransaction: true + queryMaps: + - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id diff --git a/health/egov-persister/individual-persister.yml b/health/egov-persister/individual-persister.yml new file mode 100644 index 000000000..d0b7fbfcc --- /dev/null +++ b/health/egov-persister/individual-persister.yml @@ -0,0 +1,294 @@ +serviceMaps: + serviceName: individual + mappings: + - version: 1.0 + description: Persists Individual + fromTopic: save-individual-health-topic + isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* + queryMaps: + - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.clientReferenceId + - jsonPath: $.*.address.*.tenantId + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - query: INSERT INTO health.individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.name.givenName + - jsonPath: $.*.name.familyName + - jsonPath: $.*.name.otherNames + - jsonPath: $.*.dateOfBirth + type: DATE + - jsonPath: $.*.gender + - jsonPath: $.*.bloodGroup + - jsonPath: $.*.mobileNumber + - jsonPath: $.*.altContactNumber + - jsonPath: $.*.email + - jsonPath: $.*.fatherName + - jsonPath: $.*.husbandName + - jsonPath: $.*.photo + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.individualId + - jsonPath: $.*.relationship + - jsonPath: $.*.isSystemUser + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + + - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.auditDetails.createdBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.createdTime + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - query: INSERT INTO health.individual_identifier(id, clientReferenceId, identifierType, identifierId, individualId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.identifiers.* + jsonMaps: + - jsonPath: $.*.identifiers.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.individualId + - jsonPath: $.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.skills.* + jsonMaps: + - jsonPath: $.*.skills.*.id + - jsonPath: $.*.skills.*.clientReferenceId + - jsonPath: $.*.skills.*.individualId + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.createdBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.createdTime + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + + - version: 1.0 + description: Updates Individual + fromTopic: update-individual-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.tenantId + - jsonPath: $.*.name.givenName + - jsonPath: $.*.name.familyName + - jsonPath: $.*.name.otherNames + - jsonPath: $.*.dateOfBirth + type: DATE + - jsonPath: $.*.gender + - jsonPath: $.*.bloodGroup + - jsonPath: $.*.mobileNumber + - jsonPath: $.*.altContactNumber + - jsonPath: $.*.email + - jsonPath: $.*.fatherName + - jsonPath: $.*.husbandName + - jsonPath: $.*.relationship + - jsonPath: $.*.photo + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id + - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.clientReferenceId + - jsonPath: $.*.address.*.tenantId + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (individualId, addressId, type, isDeleted) WHERE isDeleted=false DO UPDATE SET lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.auditDetails.createdBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.createdTime + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - query: INSERT INTO health.individual_identifier(id, clientReferenceId, individualId, identifierType, identifierId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET identifierId = ?, identifierType = ?, lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.identifiers.* + jsonMaps: + - jsonPath: $.*.identifiers.*.id + - jsonPath: $.*.identifiers.*.clientReferenceId + - jsonPath: $.*.identifiers.*.individualId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET type = ?, level = ?, experience = ?, lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.skills.* + jsonMaps: + - jsonPath: $.*.skills.*.id + - jsonPath: $.*.skills.*.clientReferenceId + - jsonPath: $.*.skills.*.individualId + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.createdBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.createdTime + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Deletes Individual and related Entities + fromTopic: delete-individual-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.id + - query: UPDATE health.individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - query: UPDATE health.individual_identifier SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; + basePath: $.*.identifiers.* + jsonMaps: + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.id + - query: UPDATE health.individual_skill SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; + basePath: $.*.skills.* + jsonMaps: + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.id + + - version: 1.0 + description: Updates userId and userUuid received from user-service into an individual + fromTopic: update-user-id-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.individual SET userId=?, userUuid=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.id diff --git a/health/egov-persister/product-persister.yml b/health/egov-persister/product-persister.yml new file mode 100644 index 000000000..8b199e5d4 --- /dev/null +++ b/health/egov-persister/product-persister.yml @@ -0,0 +1,90 @@ +serviceMaps: + serviceName: product + mappings: + - version: 1.0 + description: Persists Product + fromTopic: save-product-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.type + - jsonPath: $.*.name + - jsonPath: $.*.manufacturer + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates Product + fromTopic: update-product-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.type + - jsonPath: $.*.name + - jsonPath: $.*.manufacturer + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a product variant + fromTopic: save-product-variant-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.productId + - jsonPath: $.*.sku + - jsonPath: $.*.variation + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a product variant + fromTopic: update-product-variant-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.productId + - jsonPath: $.*.sku + - jsonPath: $.*.variation + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml new file mode 100644 index 000000000..10e3c0260 --- /dev/null +++ b/health/egov-persister/project-persister.yml @@ -0,0 +1,588 @@ +serviceMaps: + serviceName: project + mappings: + - version: 1.0 + description: Saves a project staff + fromTopic: save-project-staff-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.userId + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Update Project Staff + fromTopic: update-project-staff-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + basePath: $.* + jsonMaps: + - jsonPath: $.*.projectId + - jsonPath: $.*.userId + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes Project Staff + fromTopic: delete-project-staff-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a project beneficiary + fromTopic: save-project-beneficiary-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.beneficiaryClientReferenceId + - jsonPath: $.*.dateOfRegistration + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag + + - version: 1.0 + description: Update Project Beneficiary + fromTopic: update-project-beneficiary-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false + basePath: $.* + jsonMaps: + - jsonPath: $.*.projectId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.beneficiaryClientReferenceId + - jsonPath: $.*.dateOfRegistration + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes Project Beneficiaries + fromTopic: delete-project-beneficiary-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + + - version: 1.0 + name: Projects + description: Persists project details in project table + fromTopic: save-project + isTransaction: true + queryMaps: + - query: INSERT INTO health.project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.Projects.* + jsonMaps: + - jsonPath: $.Projects.*.id + + - jsonPath: $.Projects.*.tenantId + + - jsonPath: $.Projects.*.projectNumber + + - jsonPath: $.Projects.*.name + + - jsonPath: $.Projects.*.projectType + + - jsonPath: $.Projects.*.projectTypeId + + - jsonPath: $.Projects.*.projectSubType + + - jsonPath: $.Projects.*.department + + - jsonPath: $.Projects.*.description + + - jsonPath: $.Projects.*.referenceID + + - jsonPath: $.Projects.*.startDate + + - jsonPath: $.Projects.*.endDate + + - jsonPath: $.Projects.*.isTaskEnabled + + - jsonPath: $.Projects.*.parent + + - jsonPath: $.Projects.*.projectHierarchy + + - jsonPath: $.Projects.*.natureOfWork + + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Projects.*.isDeleted + + - jsonPath: $.Projects.*.rowVersion + + - jsonPath: $.Projects.*.auditDetails.createdBy + + - jsonPath: $.Projects.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.auditDetails.createdTime + + - jsonPath: $.Projects.*.auditDetails.lastModifiedTime + + + - query: INSERT INTO health.project_address(id,tenantId,projectId,doorNo,latitude,longitude,locationAccuracy,type,addressLine1,addressLine2,landmark,city,pinCode,buildingName,street,boundaryType,boundary) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.Projects.*.address + jsonMaps: + - jsonPath: $.Projects.*.address.id + + - jsonPath: $.Projects.*.address.tenantId + + - jsonPath: $.Projects.*.id + + - jsonPath: $.Projects.*.address.doorNo + + - jsonPath: $.Projects.*.address.latitude + + - jsonPath: $.Projects.*.address.longitude + + - jsonPath: $.Projects.*.address.locationAccuracy + + - jsonPath: $.Projects.*.address.type + + - jsonPath: $.Projects.*.address.addressLine1 + + - jsonPath: $.Projects.*.address.addressLine2 + + - jsonPath: $.Projects.*.address.landmark + + - jsonPath: $.Projects.*.address.city + + - jsonPath: $.Projects.*.address.pincode + + - jsonPath: $.Projects.*.address.buildingName + + - jsonPath: $.Projects.*.address.street + + - jsonPath: $.Projects.*.address.boundaryType + + - jsonPath: $.Projects.*.address.boundary + + + - query: INSERT INTO health.project_target(id,projectId,beneficiaryType,totalNo,targetNo,isDeleted,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?); + basePath: $.Projects.*.targets.* + jsonMaps: + - jsonPath: $.Projects.*.targets.*.id + + - jsonPath: $.Projects[*][?({id} in @.targets[*].id)].id + + - jsonPath: $.Projects.*.targets.*.beneficiaryType + + - jsonPath: $.Projects.*.targets.*.totalNo + + - jsonPath: $.Projects.*.targets.*.targetNo + + - jsonPath: $.Projects.*.targets.*.isDeleted + + - jsonPath: $.Projects.*.targets.*.auditDetails.createdBy + + - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.targets.*.auditDetails.createdTime + + - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedTime + + + - query: INSERT INTO health.project_document(id,projectId,documentType,filestoreId,documentUid,additionalDetails,status,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.Projects.*.documents.* + jsonMaps: + - jsonPath: $.Projects.*.documents.*.id + + - jsonPath: $.Projects[*][?({id} in @.documents[*].id)].id + + - jsonPath: $.Projects.*.documents.*.documentType + + - jsonPath: $.Projects.*.documents.*.fileStoreId + + - jsonPath: $.Projects.*.documents.*.documentUid + + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Projects.*.documents.*.status + + - jsonPath: $.Projects.*.documents.*.auditDetails.createdBy + + - jsonPath: $.Projects.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.documents.*.auditDetails.createdTime + + - jsonPath: $.Projects.*.documents.*.auditDetails.lastModifiedTime + + + - version: 1.0 + name: Projects + description: Updates project details in project table + fromTopic: update-project + isTransaction: true + queryMaps: + - query: UPDATE health.project SET name = ?, projectType = ?, projectTypeId = ?, projectSubType = ?, department = ?, description = ?, referenceId = ?, startDate = ?, endDate = ?, isTaskEnabled = ?, natureOfWork = ?, additionalDetails = ?, isDeleted = ?, rowVersion = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.Projects.* + jsonMaps: + + - jsonPath: $.Projects.*.name + + - jsonPath: $.Projects.*.projectType + + - jsonPath: $.Projects.*.projectTypeId + + - jsonPath: $.Projects.*.projectSubType + + - jsonPath: $.Projects.*.department + + - jsonPath: $.Projects.*.description + + - jsonPath: $.Projects.*.referenceID + + - jsonPath: $.Projects.*.startDate + + - jsonPath: $.Projects.*.endDate + + - jsonPath: $.Projects.*.isTaskEnabled + + - jsonPath: $.Projects.*.natureOfWork + + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Projects.*.isDeleted + + - jsonPath: $.Projects.*.rowVersion + + - jsonPath: $.Projects.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.auditDetails.lastModifiedTime + + - jsonPath: $.Projects.*.id + + + - query: UPDATE health.project_address SET doorNo = ?, latitude=?, longitude=?, locationAccuracy=?, type=?, addressLine1=?, addressLine2=?, landmark=?, city=?, pinCode=?, buildingName=?, street=?, boundaryType=?, boundary=? WHERE id=?; + basePath: $.Projects.*.address + jsonMaps: + + - jsonPath: $.Projects.*.address.doorNo + + - jsonPath: $.Projects.*.address.latitude + + - jsonPath: $.Projects.*.address.longitude + + - jsonPath: $.Projects.*.address.locationAccuracy + + - jsonPath: $.Projects.*.address.type + + - jsonPath: $.Projects.*.address.addressLine1 + + - jsonPath: $.Projects.*.address.addressLine2 + + - jsonPath: $.Projects.*.address.landmark + + - jsonPath: $.Projects.*.address.city + + - jsonPath: $.Projects.*.address.pincode + + - jsonPath: $.Projects.*.address.buildingName + + - jsonPath: $.Projects.*.address.street + + - jsonPath: $.Projects.*.address.boundaryType + + - jsonPath: $.Projects.*.address.boundary + + - jsonPath: $.Projects.*.address.id + + + - query: INSERT INTO health.project_target(id,projectId,beneficiaryType,totalNo,targetNo,isDeleted,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET beneficiaryType = ?, totalNo =?, targetNo=?, isDeleted=?, lastModifiedBy=?, lastModifiedTime=?; + basePath: $.Projects.*.targets.* + jsonMaps: + + - jsonPath: $.Projects.*.targets.*.id + + - jsonPath: $.Projects[*][?({id} in @.targets[*].id)].id + + - jsonPath: $.Projects.*.targets.*.beneficiaryType + + - jsonPath: $.Projects.*.targets.*.totalNo + + - jsonPath: $.Projects.*.targets.*.targetNo + + - jsonPath: $.Projects.*.targets.*.isDeleted + + - jsonPath: $.Projects.*.targets.*.auditDetails.createdBy + + - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.targets.*.auditDetails.createdTime + + - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedTime + + - jsonPath: $.Projects.*.targets.*.beneficiaryType + + - jsonPath: $.Projects.*.targets.*.totalNo + + - jsonPath: $.Projects.*.targets.*.targetNo + + - jsonPath: $.Projects.*.targets.*.isDeleted + + - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.targets.*.auditDetails.lastModifiedTime + + + - query: INSERT INTO health.project_document(id,projectId,documentType,filestoreId,documentUid,additionalDetails,status,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET documentType=?, filestoreId=?, documentUid=?, additionalDetails=?, status=?, lastModifiedBy=?, lastModifiedTime=?; + basePath: $.Projects.*.documents.* + jsonMaps: + + - jsonPath: $.Projects.*.documents.*.id + + - jsonPath: $.Projects[*][?({id} in @.documents[*].id)].id + + - jsonPath: $.Projects.*.documents.*.documentType + + - jsonPath: $.Projects.*.documents.*.fileStoreId + + - jsonPath: $.Projects.*.documents.*.documentUid + + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Projects.*.documents.*.status + + - jsonPath: $.Projects.*.documents.*.auditDetails.createdBy + + - jsonPath: $.Projects.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.documents.*.auditDetails.createdTime + + - jsonPath: $.Projects.*.documents.*.auditDetails.lastModifiedTime + + - jsonPath: $.Projects.*.documents.*.documentType + + - jsonPath: $.Projects.*.documents.*.fileStoreId + + - jsonPath: $.Projects.*.documents.*.documentUid + + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Projects.*.documents.*.status + + - jsonPath: $.Projects.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.documents.*.auditDetails.lastModifiedTime + + + - version: 1.0 + description: Saves a project resourcce + fromTopic: save-project-resource-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.resource.productVariantId + - jsonPath: $.*.resource.isBaseUnitVariant + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.resource.type + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Update a project resourcce + fromTopic: update-project-resource-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.resource.productVariantId + - jsonPath: $.*.resource.isBaseUnitVariant + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.resource.type + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Delete a project resourcce + fromTopic: delete-project-resource-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a project facility + fromTopic: save-project-facility-health-topic + isTransaction: true + queryMaps: + + - query: INSERT INTO health.project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + + - jsonPath: $.*.tenantId + + - jsonPath: $.*.projectId + + - jsonPath: $.*.facilityId + + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + + - jsonPath: $.*.auditDetails.createdBy + + - jsonPath: $.*.auditDetails.lastModifiedBy + + - jsonPath: $.*.auditDetails.createdTime + + - jsonPath: $.*.auditDetails.lastModifiedTime + + - jsonPath: $.*.rowVersion + + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Update Project Facility + fromTopic: update-project-facility-health-topic + isTransaction: true + queryMaps: + + - query: UPDATE health.project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? + basePath: $.* + jsonMaps: + - jsonPath: $.*.projectId + + - jsonPath: $.*.facilityId + + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + + - jsonPath: $.*.auditDetails.lastModifiedBy + + - jsonPath: $.*.auditDetails.lastModifiedTime + + - jsonPath: $.*.rowVersion + + - jsonPath: $.*.isDeleted + + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes Project Facility + fromTopic: delete-project-facility-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id diff --git a/health/egov-persister/project-task-persister.yml b/health/egov-persister/project-task-persister.yml new file mode 100644 index 000000000..afd0f8788 --- /dev/null +++ b/health/egov-persister/project-task-persister.yml @@ -0,0 +1,235 @@ +serviceMaps: + serviceName: project + mappings: + - version: 1.0 + description: Saves a project task + fromTopic: save-project-task-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.plannedStartDate + - jsonPath: $.*.plannedEndDate + - jsonPath: $.*.actualStartDate + - jsonPath: $.*.actualEndDate + - jsonPath: $.*.address.id + - jsonPath: $.*.status + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + + - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + + - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.resources.* + jsonMaps: + - jsonPath: $.*.resources.*.id + - jsonPath: $.*.resources.*.clientReferenceId + - jsonPath: $.*.resources.*.tenantId + - jsonPath: $.*.resources.*.productVariantId + - jsonPath: $.*.resources.*.taskId + - jsonPath: $.*.resources.*.quantity + - jsonPath: $.*.resources.*.isDelivered + - jsonPath: $.*.resources.*.deliveryComment + - jsonPath: $.*.resources.*.auditDetails.createdBy + - jsonPath: $.*.resources.*.auditDetails.createdTime + - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.isDeleted + + - version: 1.0 + description: Updates a project task + fromTopic: update-project-task-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.address.id + - jsonPath: $.*.plannedStartDate + - jsonPath: $.*.plannedEndDate + - jsonPath: $.*.actualStartDate + - jsonPath: $.*.actualEndDate + - jsonPath: $.*.status + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id + + - query: UPDATE health.ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; + basePath: $.*.address + jsonMaps: + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.id + + - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.resources.* + jsonMaps: + - jsonPath: $.*.resources.*.id + - jsonPath: $.*.resources.*.clientReferenceId + - jsonPath: $.*.resources.*.tenantId + - jsonPath: $.*.resources.*.productVariantId + - jsonPath: $.*.resources.*.taskId + - jsonPath: $.*.resources.*.quantity + - jsonPath: $.*.resources.*.isDelivered + - jsonPath: $.*.resources.*.deliveryComment + - jsonPath: $.*.resources.*.auditDetails.createdBy + - jsonPath: $.*.resources.*.auditDetails.createdTime + - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.tenantId + - jsonPath: $.*.resources.*.taskId + - jsonPath: $.*.resources.*.productVariantId + - jsonPath: $.*.resources.*.quantity + - jsonPath: $.*.resources.*.isDelivered + - jsonPath: $.*.resources.*.deliveryComment + - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Deletes a project task + fromTopic: delete-project-task-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; + basePath: $.*.resources.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a adverse event + fromTopic: save-adverse-event-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.reAttempts + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a adverse event + fromTopic: update-adverse-event-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.reAttempts + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a adverse event + fromTopic: delete-adverse-event-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id diff --git a/health/egov-persister/referral-management-persister.yml b/health/egov-persister/referral-management-persister.yml new file mode 100644 index 000000000..3f2fc0955 --- /dev/null +++ b/health/egov-persister/referral-management-persister.yml @@ -0,0 +1,233 @@ +serviceMaps: + serviceName: referralmanagement + mappings: + - version: 1.0 + description: Saves a side effect + fromTopic: save-side-effect-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a side effect + fromTopic: update-side-effect-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a side effect + fromTopic: delete-side-effect-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a referral + fromTopic: save-referral-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a referral + fromTopic: update-referral-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons + type: JSON + dbType: JSONB + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a referral + fromTopic: delete-referral-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id + + - version: 1.0 + description: Saves a hfreferral + fromTopic: save-hfreferral-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, facilityid, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.facilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + + - version: 1.0 + description: Updates a hfreferral + fromTopic: update-hfreferral-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, facilityid = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.facilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a hfreferral + fromTopic: delete-hfreferral-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id diff --git a/health/egov-persister/service-request-persister.yml b/health/egov-persister/service-request-persister.yml new file mode 100644 index 000000000..5d012d24b --- /dev/null +++ b/health/egov-persister/service-request-persister.yml @@ -0,0 +1,135 @@ +serviceMaps: + serviceName: service-request + mappings: + - version: 1.0 + description: Persists service definition details in service definition table + fromTopic: save-service-definition-health + isTransaction: true + queryMaps: + + - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.ServiceDefinition + jsonMaps: + - jsonPath: $.ServiceDefinition.id + + - jsonPath: $.ServiceDefinition.tenantId + + - jsonPath: $.ServiceDefinition.code + + - jsonPath: $.ServiceDefinition.isActive + + - jsonPath: $.ServiceDefinition.auditDetails.createdBy + + - jsonPath: $.ServiceDefinition.auditDetails.lastModifiedBy + + - jsonPath: $.ServiceDefinition.auditDetails.createdTime + + - jsonPath: $.ServiceDefinition.auditDetails.lastModifiedTime + + - jsonPath: $.ServiceDefinition.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.ServiceDefinition.clientId + + + - query: INSERT INTO health.eg_service_attribute_definition(id, referenceid, tenantid, code, datatype, "values", isactive, required, regex, "order", createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.ServiceDefinition.attributes.* + jsonMaps: + - jsonPath: $.ServiceDefinition.attributes.*.id + + - jsonPath: $.ServiceDefinition.attributes.*.referenceId + + - jsonPath: $.ServiceDefinition.attributes.*.tenantId + + - jsonPath: $.ServiceDefinition.attributes.*.code + + - jsonPath: $.ServiceDefinition.attributes.*.dataType + + - jsonPath: $.ServiceDefinition.attributes.*.values + type: ARRAY + dbType: STRING + + - jsonPath: $.ServiceDefinition.attributes.*.isActive + + - jsonPath: $.ServiceDefinition.attributes.*.required + + - jsonPath: $.ServiceDefinition.attributes.*.regex + + - jsonPath: $.ServiceDefinition.attributes.*.order + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.createdBy + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedBy + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.createdTime + + - jsonPath: $.ServiceDefinition.attributes.*.auditDetails.lastModifiedTime + + - jsonPath: $.ServiceDefinition.attributes.*.additionalDetails + type: JSON + dbType: JSONB + + + + + + - version: 1.0 + description: Persists service details in service table + fromTopic: save-service-health + isTransaction: true + queryMaps: + + + - query: INSERT INTO health.eg_service(id, tenantid, servicedefid, referenceid, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, accountid, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Service + jsonMaps: + - jsonPath: $.Service.id + + - jsonPath: $.Service.tenantId + + - jsonPath: $.Service.serviceDefId + + - jsonPath: $.Service.referenceId + + - jsonPath: $.Service.auditDetails.createdBy + + - jsonPath: $.Service.auditDetails.lastModifiedBy + + - jsonPath: $.Service.auditDetails.createdTime + + - jsonPath: $.Service.auditDetails.lastModifiedTime + + - jsonPath: $.Service.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Service.accountId + + - jsonPath: $.Service.clientId + + + - query: INSERT INTO health.eg_service_attribute_value(id, referenceid, attributecode, value, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Service.attributes.* + jsonMaps: + - jsonPath: $.Service.attributes.*.id + + - jsonPath: $.Service.attributes.*.referenceId + + - jsonPath: $.Service.attributes.*.attributeCode + + - jsonPath: $.Service.attributes.*.value + type: JSON + dbType: JSONB + + - jsonPath: $.Service.attributes.*.auditDetails.createdBy + + - jsonPath: $.Service.attributes.*.auditDetails.lastModifiedBy + + - jsonPath: $.Service.attributes.*.auditDetails.createdTime + + - jsonPath: $.Service.attributes.*.auditDetails.lastModifiedTime + + - jsonPath: $.Service.attributes.*.additionalDetails + type: JSON + dbType: JSONB \ No newline at end of file diff --git a/health/egov-persister/stock-persister.yml b/health/egov-persister/stock-persister.yml new file mode 100644 index 000000000..c7bf46c09 --- /dev/null +++ b/health/egov-persister/stock-persister.yml @@ -0,0 +1,167 @@ +serviceMaps: + serviceName: stock + mappings: + - version: 1.0 + description: Saves a stock + fromTopic: save-stock-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.facilityId + - jsonPath: $.*.productVariantId + - jsonPath: $.*.wayBillNumber + - jsonPath: $.*.quantity + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.transactionType + - jsonPath: $.*.transactionReason + - jsonPath: $.*.transactingPartyId + - jsonPath: $.*.transactingPartyType + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.dateOfEntry + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + + - version: 1.0 + description: Updates a stock + fromTopic: update-stock-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.dateOfEntry + - jsonPath: $.*.facilityId + - jsonPath: $.*.productVariantId + - jsonPath: $.*.wayBillNumber + - jsonPath: $.*.quantity + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.transactionType + - jsonPath: $.*.transactionReason + - jsonPath: $.*.transactingPartyId + - jsonPath: $.*.transactingPartyType + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a stock + fromTopic: delete-stock-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id + + + - version: 1.0 + description: Saves a stock reconciliation + fromTopic: save-stock-reconciliation-health-topic + isTransaction: true + queryMaps: + - query: INSERT INTO health.STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.facilityId + - jsonPath: $.*.dateOfReconciliation + - jsonPath: $.*.calculatedCount + - jsonPath: $.*.physicalCount + - jsonPath: $.*.commentsOnReconciliation + - jsonPath: $.*.productVariantId + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + + - version: 1.0 + description: Updates a stock reconciliation + fromTopic: update-stock-reconciliation-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.tenantId + - jsonPath: $.*.facilityId + - jsonPath: $.*.productVariantId + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.dateOfReconciliation + - jsonPath: $.*.calculatedCount + - jsonPath: $.*.physicalCount + - jsonPath: $.*.commentsOnReconciliation + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id + + - version: 1.0 + description: Deletes a stock reconciliation + fromTopic: delete-stock-reconciliation-health-topic + isTransaction: true + queryMaps: + - query: UPDATE health.STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.id \ No newline at end of file From d0a9da6bf0957891298db682583e8ba81a8d7a71 Mon Sep 17 00:00:00 2001 From: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:38:29 +0530 Subject: [PATCH 085/158] Update referral-management-persister.yml changed facility to projectfacility --- health/egov-persister/referral-management-persister.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/health/egov-persister/referral-management-persister.yml b/health/egov-persister/referral-management-persister.yml index 3f2fc0955..15b448980 100644 --- a/health/egov-persister/referral-management-persister.yml +++ b/health/egov-persister/referral-management-persister.yml @@ -162,14 +162,14 @@ serviceMaps: fromTopic: save-hfreferral-health-topic isTransaction: true queryMaps: - - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, facilityid, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - jsonPath: $.*.projectId - - jsonPath: $.*.facilityId + - jsonPath: $.*.projectFacilityId - jsonPath: $.*.symptom - jsonPath: $.*.symptomSurveyId - jsonPath: $.*.beneficiaryId @@ -194,13 +194,13 @@ serviceMaps: fromTopic: update-hfreferral-health-topic isTransaction: true queryMaps: - - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, facilityid = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; + - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - jsonPath: $.*.projectId - - jsonPath: $.*.facilityId + - jsonPath: $.*.projectFacilityId - jsonPath: $.*.symptom - jsonPath: $.*.symptomSurveyId - jsonPath: $.*.beneficiaryId From e875e359304642ef92f2fe23cb08d74b0c1d9fb7 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:39:45 +0530 Subject: [PATCH 086/158] Update pqm-service-indexer.yml --- .../egov-indexer/pqm-service-indexer.yml | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/sanitation/egov-indexer/pqm-service-indexer.yml b/sanitation/egov-indexer/pqm-service-indexer.yml index 142ba3fa6..2e7e13130 100644 --- a/sanitation/egov-indexer/pqm-service-indexer.yml +++ b/sanitation/egov-indexer/pqm-service-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: _doc + type: general jsonPath: $.tests.* id: $.id isBulk: true @@ -40,10 +40,10 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: _doc + type: general jsonPath: $.tests.* id: $.id - isBulk: false + isBulk: true timeStampField: $.auditDetails.createdTime customJsonMapping: indexMapping: {"Data":{"tests":{}}} @@ -68,4 +68,37 @@ ServiceMaps: valueJsonpath: $.tenantId uriResponseMapping: - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData \ No newline at end of file + outJsonPath: $.Data.tenantData + + - topic: pqm-service-legacyindex + configKey: LEGACYINDEX + indexes: + - name: pqm-service-index + type: general + jsonPath: $.tests.* + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: {"Data":{"tests":{}}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data.tests + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pg.citya","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pg.citya" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search + moduleName: tenant + masterName: tenants + tenantId: pg + filter: "[?(@.code == $tenant)]" + filterMapping: + - variable: $tenant + valueJsonpath: $.tenantId + uriResponseMapping: + - inJsonPath: $.MdmsRes.tenant.tenants + outJsonPath: $.Data.tenantData From e055206f47fa29999cc4532335ac91437223e5f4 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:41:22 +0530 Subject: [PATCH 087/158] Update pqm-service-indexer.yml --- sanitation/egov-indexer/pqm-service-indexer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanitation/egov-indexer/pqm-service-indexer.yml b/sanitation/egov-indexer/pqm-service-indexer.yml index 2e7e13130..26b73a600 100644 --- a/sanitation/egov-indexer/pqm-service-indexer.yml +++ b/sanitation/egov-indexer/pqm-service-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true @@ -40,7 +40,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true @@ -74,7 +74,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: pqm-service-index - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true From eba655b9fd1c70c23c917e643792c6e5e3b1e6ff Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Wed, 17 Jan 2024 12:34:23 +0530 Subject: [PATCH 088/158] adding configs for download pdf feature in TQM --- pdf-service/data-config/pqm-adhoctest.json | 169 ++++++++ pdf-service/format-config/pqm-adhoctest.json | 433 +++++++++++++++++++ 2 files changed, 602 insertions(+) create mode 100644 pdf-service/data-config/pqm-adhoctest.json create mode 100644 pdf-service/format-config/pqm-adhoctest.json diff --git a/pdf-service/data-config/pqm-adhoctest.json b/pdf-service/data-config/pqm-adhoctest.json new file mode 100644 index 000000000..a426d605b --- /dev/null +++ b/pdf-service/data-config/pqm-adhoctest.json @@ -0,0 +1,169 @@ +{ + "key": "pqm-adhoctest", + "DataConfigs": { + "serviceName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$.tests.*", + "entityIdPath":"$.testId", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "mappings": [ + { + "direct": [ + { + "variable": "testId", + "value": { + "path": "$.testId" + } + }, + { + "variable": "plantCode", + "value": { + "path": "$.plantCode" + }, + "localisation":{ + "required":true, + "prefix": "PQM_PLANT", + "module": "rainmaker-tqm" + } + }, + { + "variable": "processCode", + "value": { + "path": "$.processCode" + }, + "localisation":{ + "required":true, + "prefix": "PQM_PROCESS", + "module": "rainmaker-tqm" + } + }, + { + "variable": "stageCode", + "value": { + "path": "$.stageCode" + }, + "localisation":{ + "required":true, + "prefix": "PQM_STAGE", + "module": "rainmaker-tqm" + } + }, + { + "variable": "materialCode", + "value": { + "path": "$.materialCode" + }, + "localisation":{ + "required":true, + "prefix": "PQM_MATERIAL", + "module": "rainmaker-tqm" + } + }, + { + "variable": "testType", + "value": { + "path": "$.testType" + }, + "localisation":{ + "required":true, + "prefix": "PQM_SOURCETYPE", + "module": "rainmaker-tqm" + } + }, + { + "variable": "scheduleDate", + "value": { + "path": "$.scheduledDate" + }, + "type": "date" + }, + { + "variable": "submittedDate", + "value": { + "path": "$.auditDetails.lastModifiedTime" + }, + "type": "date" + }, + { + "variable": "status", + "value": { + "path": "$.status" + } + }, + { + "variable": "labName", + "value": { + "path": "$.labAssignedTo" + } + }, + { + "variable": "statusColor", + "value": { + "path": "$.status" + }, + "type":"function", + "format": "var colorstatus = arguments[0];\nif (colorstatus.toUpperCase() === 'FAIL') {\n return 'red';\n} else {\n return 'green';\n}"}, + { + "variable": "tableData", + "value": { + "path": "$.testCriteria" + }, + "type":"function", + "format": "var y = [];\nvar a = [];\nvar testCriteria = arguments[0];\n\nfor (var i = 0; i < testCriteria.length; i++) {\n var x = {\n Sno: i + 1,\n qualityParameterDescription: testCriteria[i].criteriaName,\n benchmarkResult: testCriteria[i].resultValue,\n uom: testCriteria[i].uom,\n benchmarkResultColor: testCriteria[i].resultStatus=='FAIL' ? 'red':'green'\n };\n\n y.push(x);\n}\n\nreturn y;" } + ] + }, + { + "externalAPI": [ { + "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", + "apiRequest": null, + "responseMapping":[ + { + "variable":"address", + "value":"$.MdmsRes.tenant.tenants[0].address" + }, + { + "variable":"phoneNumber", + "value":"$.MdmsRes.tenant.tenants[0].contactNumber" + }, + { + "variable":"website", + "value":"$.MdmsRes.tenant.tenants[0].domainUrl" + }, + { + "variable":"email", + "value":"$.MdmsRes.tenant.tenants[0].emailId" + }, + { + "variable": "logoImage", + "value":"$.MdmsRes.tenant.tenants[0].logoId", + "type":"image" + }, + { + "variable": "logo-header", + "value":"$.MdmsRes.tenant.tenants[0].code", + "localisation":{ + "required":true, + "module":"rainmaker-common" + } + }, + { + "variable": "subdivision", + "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", + "localisation": { + "required": true, + "prefix": "COMMON_SUBDIVISION", + "module": "rainmaker-common" + } + } + ] + } + ] + } + ] + } + ] + } + } \ No newline at end of file diff --git a/pdf-service/format-config/pqm-adhoctest.json b/pdf-service/format-config/pqm-adhoctest.json new file mode 100644 index 000000000..ae63fae55 --- /dev/null +++ b/pdf-service/format-config/pqm-adhoctest.json @@ -0,0 +1,433 @@ +{ + "key": "pqm-adhoctest", + "config": { + "defaultStyle": { + "font": "Cambay" + }, + "content": [ + { + "style": "noc-head", + "table": { + "widths": [ + 60, + "*", + 125 + ], + "body": [ + [ + { + "image": "{{logoImage}}", + "width": 50, + "height": 61.25, + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "text": "{{pdf_header}} {{plantCode}}", + "fontSize": 18, + "color": "#000000", + "bold": true, + "alignment": "left", + "margin": [ + 10, + 30, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "Test Result", + "fontSize": 16, + "color": "#5F5F5F", + "bold": true + }, + { + "text": "{{submittedDate}}", + "fontSize": 12, + "color": "#5F5F5F", + "bold": true + } + ], + "alignment": "right", + "color": "#484848", + "margin": [ + 0, + 10, + 10, + 0 + ] + } + ] + ] + }, + "layout": "noBorders", + "fillColor": "#f4f4f4" + }, + {"text": "Test Details", "style": "header"}, + { + "margin": [ + 0, + 0, + 0, + 0 + ], + "columns": [ + { + "widths": ["35"], + "bold": true, + "fontSize": 12, + "alignment": "left", + "stack": [ + { + "text": "Test ID" + }, + { + "text": "Plant Name" + }, + { + "text": "Treatment process" + }, + { + "text": "Stage" + }, + { + "text": "Output Type" + }, + { + "text": "Test Type" + }, + { + "text": "Test scheduled on" + }, + { + "text": "Status" + }, + { + "text": "Lab name" + } + ] + }, + { + "widths": [ + "auto", + "auto", + "auto", + "auto" + ], + "bold": false, + "fontSize": 12, + "alignment": "left", + "stack": [ + { + "text": " {{testId}}" + }, + { + "text": " {{plantCode}}" + }, + { + "text": " {{processCode}}" + }, + { + "text": " {{stageCode}}" + }, + { + "text": " {{materialCode}}" + }, + { + "text": " {{testType}}" + }, + { + "text": " {{scheduleDate}}" + }, + { + "text": " {{status}}" + }, + { + "text": " {{labName}}" + } + ] + } + ], + "columnGap": 0 + + }, + { + "margin": [ + 0, + 35, + 0, + 0 + ], + "canvas": [ + { + "type": "line", + "x1": -25, "y1": -5, + "x2": 540, "y2": -5, + "lineWidth": 0.1 + } + ] + }, + {"text": "Test Result", "style": "header"}, + { + "margin": [ + 0, + 0, + 0, + 0 + ], + "table": { + "headerRows": 1, + "widths": [ + "auto", + "*", + "*", + "*" + ], + "body": [[ + { + "text": "S.No", + "width": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Quality Parameter", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "UOM", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Results", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + } + ], + "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{qualityParameterDescription}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{uom}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{benchmarkResult}}\",\"alignment\":\"right\",\"fontSize\":9,\"color\":\"{{benchmarkResultColor}}\"}]{{/tableData}}", + [ + { + "text": "Result summary", + "bold": true, + "colSpan": 3, + "alignment": "left", + "fontSize": 10 + }, + {}, + {}, + { + "text": "{{status}}", + "alignment": "left", + "bold": true, + "fontSize": 10, + "colSpan": 1, + "color": "{{statusColor}}" + } + ] + ] + }, + "layout": { + "hLineColor": "#D6D5D4", + "vLineColor": "#D6D5D4" + } + }, + { + "margin": [ + 0, + 255, + 0, + 0 + ], + "canvas": [ + { + "type": "line", + "x1": -25, "y1": -5, + "x2": 540, "y2": -5, + "lineWidth": 0.1 + } + ] + }, + { + "text": "This is a computer-generated document. No signature is required.", + "style": "footer-header" + } + ], + "styles": { + "header": { + "fontSize": 16, + "bold": true, + "margin": [ + -20, + 40, + 10, + 10 + ] + }, + "noc-head": { + "margin": [ + -25, + -30, + 0, + 1 + ] + }, + "receipt-logo-header": { + "color": "#484848", + "fontSize": 14, + "bold": true, + "letterSpacing": 0.74, + "margin": [ + 0, + 0, + 0, + 5 + ] + }, + "noc-table": { + "fontSize": 12, + "color": "#484848", + "margin": [ + -25, + 45, + -8, + -8 + ] + }, + "noc-table2": { + "fontSize": 12, + "color": "#484848", + "margin": [ + -25, + 18, + -25, + -8 + ] + }, + "receipt-table-value": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + 5, + 5, + 0, + 0 + ] + }, + "receipt-table-value-total": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "alignment": "right", + "margin": [ + 0, + 5, + 30, + 0 + ] + }, + "receipt-table-value-down": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 400, + "alignment": "left", + "margin": [ + 3, + 5, + 0, + 5 + ] + }, + "receipt-table-value2": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + 3, + 0, + 0, + 0 + ] + }, + "receipt-table-value-cont": { + "color": "#000000", + "bold": false, + "fontSize": 11, + "fontWeight": 400, + "margin": [ + 3, + 0, + 0, + 0 + ] + }, + "receipt-table": { + "color": "#484848", + "bold": true, + "fontSize": 12, + "fontWeight": 400, + "margin": [ + -30, + 5, + 0, + 0 + ] + }, + "receipt-table2": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + 3, + 0, + 0, + 0 + ] + }, + "footer": { + "margin": [ + 0, + 15, + 0, + -40 + ], + "bold": true, + "color": "#000000", + "alignment": "center" + }, + "footer-header": { + "margin": [ + 0, + 15, + 0, + -40 + ], + "color": "#000000", + "alignment": "center" + } + } + + } + } \ No newline at end of file From 6cdf998d43db9d52544ccccfe31d8307e5af1224 Mon Sep 17 00:00:00 2001 From: tumulverma-eGov <124138245+tumulverma-eGov@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:18:43 +0530 Subject: [PATCH 089/158] Create attendance-service-persister.yml created attendance service persister.yaml --- .../attendance-service-persister.yml | 398 ++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 health/egov-persister/attendance-service-persister.yml diff --git a/health/egov-persister/attendance-service-persister.yml b/health/egov-persister/attendance-service-persister.yml new file mode 100644 index 000000000..4e7526aa1 --- /dev/null +++ b/health/egov-persister/attendance-service-persister.yml @@ -0,0 +1,398 @@ +serviceMaps: + serviceName: attendance-service + mappings: + - version: 1.0 + name: attendance + description: Persists attendance details in eg_wms_attendance_register table + fromTopic: save-attendance-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerNumber + auditAttributeBasePath: $.attendanceRegister.* + queryMaps: + - query: INSERT INTO health.eg_wms_attendance_register(id,tenantid,registernumber,name,startdate,enddate,status,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime,referenceid,servicecode) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendanceRegister.* + jsonMaps: + - jsonPath: $.attendanceRegister.*.id + + - jsonPath: $.attendanceRegister.*.tenantId + + - jsonPath: $.attendanceRegister.*.registerNumber + + - jsonPath: $.attendanceRegister.*.name + + - jsonPath: $.attendanceRegister.*.startDate + + - jsonPath: $.attendanceRegister.*.endDate + + - jsonPath: $.attendanceRegister.*.status + + - jsonPath: $.attendanceRegister.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendanceRegister.*.auditDetails.createdBy + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendanceRegister.*.auditDetails.createdTime + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedTime + + - jsonPath: $.attendanceRegister.*.referenceId + + - jsonPath: $.attendanceRegister.*.serviceCode + + - query: INSERT INTO health.eg_wms_attendance_staff(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendanceRegister.*.staff.* + jsonMaps: + - jsonPath: $.staff.*.id + + - jsonPath: $.staff.*.tenantId + + - jsonPath: $.staff.*.userId + + - jsonPath: $.staff.*.registerId + + - jsonPath: $.staff.*.enrollmentDate + + - jsonPath: $.staff.*.denrollmentDate + + - jsonPath: $.staff.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.staff.*.auditDetails.createdBy + + - jsonPath: $.staff.*.auditDetails.lastModifiedBy + + - jsonPath: $.staff.*.auditDetails.createdTime + + - jsonPath: $.staff.*.auditDetails.lastModifiedTime + + - version: 1.0 + name: attendee + description: Persists attendee details in eg_wms_attendance_attendee table + fromTopic: save-attendee-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendees.* + queryMaps: + - query: INSERT INTO health.eg_wms_attendance_attendee(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendees.* + jsonMaps: + + - jsonPath: $.attendees.*.id + + - jsonPath: $.attendees.*.tenantId + + - jsonPath: $.attendees.*.individualId + + - jsonPath: $.attendees.*.registerId + + - jsonPath: $.attendees.*.enrollmentDate + + - jsonPath: $.attendees.*.denrollmentDate + + - jsonPath: $.attendees.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendees.*.auditDetails.createdBy + + - jsonPath: $.attendees.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendees.*.auditDetails.createdTime + + - jsonPath: $.attendees.*.auditDetails.lastModifiedTime + + - version: 1.0 + name: staff registration + description: Persists staff registration details in eg_wms_attendance_staff table + fromTopic: save-staff-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.staff.* + queryMaps: + - query: INSERT INTO health.eg_wms_attendance_staff(id,tenantid,individual_id,register_id,enrollment_date,deenrollment_date,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.staff.* + jsonMaps: + - jsonPath: $.staff.*.id + + - jsonPath: $.staff.*.tenantId + + - jsonPath: $.staff.*.userId + + - jsonPath: $.staff.*.registerId + + - jsonPath: $.staff.*.enrollmentDate + + - jsonPath: $.staff.*.denrollmentDate + + - jsonPath: $.staff.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.staff.*.auditDetails.createdBy + + - jsonPath: $.staff.*.auditDetails.lastModifiedBy + + - jsonPath: $.staff.*.auditDetails.createdTime + + - jsonPath: $.staff.*.auditDetails.lastModifiedTime + + - version: 1.0 + name: Attendance Log + description: Persists attendance logs and corresponding documents + fromTopic: save-attendance-log-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendance.* + queryMaps: + - query: INSERT INTO health.eg_wms_attendance_log(id,clientreferenceid,tenantid,individual_id,register_id,status,time,event_type,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime, clientcreatedby, clientlastmodifiedby, clientcreatedtime, clientlastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendance.* + jsonMaps: + - jsonPath: $.attendance.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.attendance.*.tenantId + + - jsonPath: $.attendance.*.individualId + + - jsonPath: $.attendance.*.registerId + + - jsonPath: $.attendance.*.status + + - jsonPath: $.attendance.*.time + + - jsonPath: $.attendance.*.type + + - jsonPath: $.attendance.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance.*.auditDetails.createdBy + + - jsonPath: $.attendance.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendance.*.auditDetails.createdTime + + - jsonPath: $.attendance.*.auditDetails.lastModifiedTime + - jsonPath: $.attendance.*.clientAuditDetails.createdBy + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.attendance.*.clientAuditDetails.createdTime + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedTime + + - query: INSERT INTO health.eg_wms_attendance_document(id,filestore_id,document_type,attendance_log_id,additionaldetails,createdby,lastmodifiedby,createdtime,lastmodifiedtime,tenantid,status) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.attendance.*.documentIds.* + jsonMaps: + - jsonPath: $.attendance.*.documentIds.*.id + + - jsonPath: $.attendance.*.documentIds.*.fileStore + + - jsonPath: $.attendance.*.documentIds.*.documentType + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].id + + - jsonPath: $.attendance.*.documentIds.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].tenantId + + - jsonPath: $.attendance.*.documentIds.*.status + + + - version: 1.0 + name: Attendance Log + description: Update attendance logs and corresponding documents + fromTopic: update-attendance-log-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendance.* + queryMaps: + - query: UPDATE health.eg_wms_attendance_log set status = ?, time = ? ,event_type =? ,additionaldetails = ? ,lastmodifiedby = ? ,lastmodifiedtime = ?, clientlastmodifiedby = ?, clientlastmodifiedtime = ? where id = ? ; + basePath: $.attendance.* + jsonMaps: + + - jsonPath: $.attendance.*.status + + - jsonPath: $.attendance.*.time + + - jsonPath: $.attendance.*.type + + - jsonPath: $.attendance.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendance.*.auditDetails.lastModifiedTime + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.attendance.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.attendance.*.id + + + - query: INSERT INTO health.eg_wms_attendance_document(id, filestore_id, document_type, attendance_log_id, additionaldetails, createdby, lastmodifiedby, createdtime, lastmodifiedtime, tenantid, status) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET filestore_id = ?, document_type = ? , additionaldetails = ? ,lastmodifiedby = ? ,lastmodifiedtime = ?, status = ?; + basePath: $.attendance.*.documentIds.* + jsonMaps: + - jsonPath: $.attendance.*.documentIds.*.id + + - jsonPath: $.attendance.*.documentIds.*.fileStore + + - jsonPath: $.attendance.*.documentIds.*.documentType + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].id + + - jsonPath: $.attendance.*.documentIds.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.createdTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].tenantId + + - jsonPath: $.attendance.*.documentIds.*.status + + - jsonPath: $.attendance.*.documentIds.*.fileStore + + - jsonPath: $.attendance.*.documentIds.*.documentType + + - jsonPath: $.attendance.*.documentIds.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.attendance[*][?({id} in @.documentIds[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.attendance.*.documentIds.*.status + + + - version: 1.0 + description: update Attendance + fromTopic: update-attendance-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerNumber + auditAttributeBasePath: $.attendanceRegister.* + queryMaps: + - query: UPDATE health.eg_wms_attendance_register set name=?, startdate=?, enddate=?, status=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?; + basePath: $.attendanceRegister.* + jsonMaps: + - jsonPath: $.attendanceRegister.*.name + + - jsonPath: $.attendanceRegister.*.startDate + + - jsonPath: $.attendanceRegister.*.endDate + + - jsonPath: $.attendanceRegister.*.status + + - jsonPath: $.attendanceRegister.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendanceRegister.*.auditDetails.lastModifiedTime + + - jsonPath: $.attendanceRegister.*.id + + - version: 1.0 + description: update Attendee + fromTopic: update-attendee-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.attendees.* + queryMaps: + - query: UPDATE health.eg_wms_attendance_attendee set individual_id=?, register_id=?, enrollment_date=?, deenrollment_date=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?; + basePath: $.attendees.* + jsonMaps: + - jsonPath: $.attendees.*.individualId + + - jsonPath: $.attendees.*.registerId + + - jsonPath: $.attendees.*.enrollmentDate + + - jsonPath: $.attendees.*.denrollmentDate + + - jsonPath: $.attendees.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.attendees.*.auditDetails.lastModifiedBy + + - jsonPath: $.attendees.*.auditDetails.lastModifiedTime + + - jsonPath: $.attendees.*.id + + - version: 1.0 + description: update staff + fromTopic: update-staff-health + isTransaction: true + isAuditEnabled: true + module: ATND + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.registerId + auditAttributeBasePath: $.staff.* + queryMaps: + - query: UPDATE health.eg_wms_attendance_staff set individual_id=?, register_id=?, enrollment_date=?, deenrollment_date=?,additionaldetails=?,lastmodifiedby=?, lastmodifiedtime=? where id=?; + basePath: $.staff.* + jsonMaps: + - jsonPath: $.staff.*.userId + + - jsonPath: $.staff.*.registerId + + - jsonPath: $.staff.*.enrollmentDate + + - jsonPath: $.staff.*.denrollmentDate + + - jsonPath: $.staff.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.staff.*.auditDetails.lastModifiedBy + + - jsonPath: $.staff.*.auditDetails.lastModifiedTime + + - jsonPath: $.staff.*.id From ac1f9affd9c6cd2b23710f1710830e11276d6635 Mon Sep 17 00:00:00 2001 From: aaradhya-egov <137176709+aaradhya-egov@users.noreply.github.com> Date: Mon, 22 Jan 2024 11:20:31 +0530 Subject: [PATCH 090/158] indexer-testing (#2961) Co-authored-by: aaradhya-egov --- egov-indexer/sample-indexer.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 egov-indexer/sample-indexer.yml diff --git a/egov-indexer/sample-indexer.yml b/egov-indexer/sample-indexer.yml new file mode 100644 index 000000000..b3c7f6a3d --- /dev/null +++ b/egov-indexer/sample-indexer.yml @@ -0,0 +1,20 @@ +ServiceMaps: + serviceName: sample + version: 1.0.0 + mappings: + - topic: sample-data-poc + configKey: INDEX + indexes: + - name: sample-data-poc + type: _doc + id: $.id + isBulk: false + jsonPath: $.x + timeStampField: $.time + customJsonMapping: + indexMapping: {"Data":{"a":"","b":""}} + fieldMapping: + - inJsonPath: $.a + outJsonPath: $.Data.a + - inJsonPath: $.b + outJsonPath: $.Data.b \ No newline at end of file From 00fbb5172abc9d25a4d65137a8f1babeb72bcae5 Mon Sep 17 00:00:00 2001 From: aaradhya-egov Date: Mon, 22 Jan 2024 13:44:49 +0530 Subject: [PATCH 091/158] Revert "indexer-testing (#2961)" This reverts commit ac1f9affd9c6cd2b23710f1710830e11276d6635. --- egov-indexer/sample-indexer.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 egov-indexer/sample-indexer.yml diff --git a/egov-indexer/sample-indexer.yml b/egov-indexer/sample-indexer.yml deleted file mode 100644 index b3c7f6a3d..000000000 --- a/egov-indexer/sample-indexer.yml +++ /dev/null @@ -1,20 +0,0 @@ -ServiceMaps: - serviceName: sample - version: 1.0.0 - mappings: - - topic: sample-data-poc - configKey: INDEX - indexes: - - name: sample-data-poc - type: _doc - id: $.id - isBulk: false - jsonPath: $.x - timeStampField: $.time - customJsonMapping: - indexMapping: {"Data":{"a":"","b":""}} - fieldMapping: - - inJsonPath: $.a - outJsonPath: $.Data.a - - inJsonPath: $.b - outJsonPath: $.Data.b \ No newline at end of file From c1fc4a596a1f8d55d89be10ee45345fbdb13f676 Mon Sep 17 00:00:00 2001 From: aaradhya-egov <137176709+aaradhya-egov@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:55:52 +0530 Subject: [PATCH 092/158] indexer-testing-poc (#2962) Co-authored-by: aaradhya-egov --- egov-indexer/sample.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 egov-indexer/sample.yml diff --git a/egov-indexer/sample.yml b/egov-indexer/sample.yml new file mode 100644 index 000000000..b3c7f6a3d --- /dev/null +++ b/egov-indexer/sample.yml @@ -0,0 +1,20 @@ +ServiceMaps: + serviceName: sample + version: 1.0.0 + mappings: + - topic: sample-data-poc + configKey: INDEX + indexes: + - name: sample-data-poc + type: _doc + id: $.id + isBulk: false + jsonPath: $.x + timeStampField: $.time + customJsonMapping: + indexMapping: {"Data":{"a":"","b":""}} + fieldMapping: + - inJsonPath: $.a + outJsonPath: $.Data.a + - inJsonPath: $.b + outJsonPath: $.Data.b \ No newline at end of file From 9131bc3c03e9f19978890abd64f6042875b3fa1a Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:54:04 +0530 Subject: [PATCH 093/158] Updated health persister files (#2964) Co-authored-by: LataNaik --- health/egov-persister/facility-persister.yml | 21 ++++ health/egov-persister/household-persister.yml | 44 +++++++- .../egov-persister/individual-persister.yml | 23 +++- health/egov-persister/product-persister.yml | 28 +++++ health/egov-persister/project-persister.yml | 102 +++++++++++++++++- .../egov-persister/project-task-persister.yml | 44 +++++++- .../referral-management-persister.yml | 65 ++++++++++- .../service-request-persister.yml | 14 +++ health/egov-persister/stock-persister.yml | 42 ++++++++ 9 files changed, 377 insertions(+), 6 deletions(-) diff --git a/health/egov-persister/facility-persister.yml b/health/egov-persister/facility-persister.yml index e9cf69695..1e5f4af6f 100644 --- a/health/egov-persister/facility-persister.yml +++ b/health/egov-persister/facility-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a facility fromTopic: save-facility-health-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -51,6 +58,13 @@ serviceMaps: description: Updates a facility fromTopic: update-facility-health-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; basePath: $.* @@ -109,6 +123,13 @@ serviceMaps: description: Deletes a facility fromTopic: delete-facility-health-topic isTransaction: true + isAuditEnabled: true + module: FACILITY + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* diff --git a/health/egov-persister/household-persister.yml b/health/egov-persister/household-persister.yml index 09e017006..1b265656a 100644 --- a/health/egov-persister/household-persister.yml +++ b/health/egov-persister/household-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists household. fromTopic: save-household-health-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -51,6 +58,13 @@ serviceMaps: description: Updates household. fromTopic: update-household-health-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* @@ -107,6 +121,13 @@ serviceMaps: description: Deletes household. fromTopic: delete-household-health-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* @@ -126,6 +147,13 @@ serviceMaps: description: Persists household member. fromTopic: save-household-health-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -155,6 +183,13 @@ serviceMaps: description: Update household member. fromTopic: update-household-health-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; basePath: $.* @@ -176,6 +211,13 @@ serviceMaps: description: Deletes household Member. fromTopic: delete-household-health-member-topic isTransaction: true + isAuditEnabled: true + module: HOUSEHOLD + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* @@ -189,4 +231,4 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/individual-persister.yml b/health/egov-persister/individual-persister.yml index d0b7fbfcc..6a06349d3 100644 --- a/health/egov-persister/individual-persister.yml +++ b/health/egov-persister/individual-persister.yml @@ -121,6 +121,13 @@ serviceMaps: description: Updates Individual fromTopic: update-individual-health-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* @@ -246,6 +253,13 @@ serviceMaps: description: Deletes Individual and related Entities fromTopic: delete-individual-health-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; basePath: $.* @@ -285,10 +299,17 @@ serviceMaps: description: Updates userId and userUuid received from user-service into an individual fromTopic: update-user-id-health-topic isTransaction: true + isAuditEnabled: true + module: INDIVIDUAL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=? WHERE id=?; basePath: $.* jsonMaps: - jsonPath: $.*.userId - jsonPath: $.*.userUuid - - jsonPath: $.*.id + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/product-persister.yml b/health/egov-persister/product-persister.yml index 8b199e5d4..be5179a7f 100644 --- a/health/egov-persister/product-persister.yml +++ b/health/egov-persister/product-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists Product fromTopic: save-product-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.* @@ -28,6 +35,13 @@ serviceMaps: description: Updates Product fromTopic: update-product-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? basePath: $.* @@ -49,6 +63,13 @@ serviceMaps: description: Saves a product variant fromTopic: save-product-variant-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -72,6 +93,13 @@ serviceMaps: description: Updates a product variant fromTopic: update-product-variant-health-topic isTransaction: true + isAuditEnabled: true + module: PRODUCT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; basePath: $.* diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index 10e3c0260..e9c64aba4 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a project staff fromTopic: save-project-staff-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -29,6 +36,13 @@ serviceMaps: description: Update Project Staff fromTopic: update-project-staff-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* @@ -50,6 +64,13 @@ serviceMaps: description: Deletes Project Staff fromTopic: delete-project-staff-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -67,6 +88,13 @@ serviceMaps: description: Saves a project beneficiary fromTopic: save-project-beneficiary-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -97,6 +125,13 @@ serviceMaps: description: Update Project Beneficiary fromTopic: update-project-beneficiary-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false basePath: $.* @@ -122,6 +157,13 @@ serviceMaps: description: Deletes Project Beneficiaries fromTopic: delete-project-beneficiary-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -142,6 +184,13 @@ serviceMaps: description: Persists project details in project table fromTopic: save-project isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.* @@ -290,6 +339,13 @@ serviceMaps: description: Updates project details in project table fromTopic: update-project isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project SET name = ?, projectType = ?, projectTypeId = ?, projectSubType = ?, department = ?, description = ?, referenceId = ?, startDate = ?, endDate = ?, isTaskEnabled = ?, natureOfWork = ?, additionalDetails = ?, isDeleted = ?, rowVersion = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; basePath: $.Projects.* @@ -450,9 +506,16 @@ serviceMaps: - version: 1.0 - description: Saves a project resourcce + description: Saves a project resource fromTopic: save-project-resource-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -476,6 +539,13 @@ serviceMaps: description: Update a project resourcce fromTopic: update-project-resource-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* @@ -497,6 +567,13 @@ serviceMaps: description: Delete a project resourcce fromTopic: delete-project-resource-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? basePath: $.* @@ -514,6 +591,13 @@ serviceMaps: description: Saves a project facility fromTopic: save-project-facility-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); @@ -547,6 +631,13 @@ serviceMaps: description: Update Project Facility fromTopic: update-project-facility-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? @@ -574,6 +665,13 @@ serviceMaps: description: Deletes Project Facility fromTopic: delete-project-facility-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -585,4 +683,4 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/project-task-persister.yml b/health/egov-persister/project-task-persister.yml index afd0f8788..96b14bf35 100644 --- a/health/egov-persister/project-task-persister.yml +++ b/health/egov-persister/project-task-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a project task fromTopic: save-project-task-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -76,6 +83,13 @@ serviceMaps: description: Updates a project task fromTopic: update-project-task-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* @@ -149,6 +163,13 @@ serviceMaps: description: Deletes a project task fromTopic: delete-project-task-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; basePath: $.* @@ -175,6 +196,13 @@ serviceMaps: description: Saves a adverse event fromTopic: save-adverse-event-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -201,6 +229,13 @@ serviceMaps: description: Updates a adverse event fromTopic: update-adverse-event-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -223,6 +258,13 @@ serviceMaps: description: Deletes a adverse event fromTopic: delete-adverse-event-health-topic isTransaction: true + isAuditEnabled: true + module: PROJECT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -232,4 +274,4 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/referral-management-persister.yml b/health/egov-persister/referral-management-persister.yml index 15b448980..7fb9e6d56 100644 --- a/health/egov-persister/referral-management-persister.yml +++ b/health/egov-persister/referral-management-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a side effect fromTopic: save-side-effect-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -37,6 +44,13 @@ serviceMaps: description: Updates a side effect fromTopic: update-side-effect-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -64,6 +78,13 @@ serviceMaps: description: Deletes a side effect fromTopic: delete-side-effect-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -80,6 +101,13 @@ serviceMaps: description: Saves a referral fromTopic: save-referral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -115,6 +143,13 @@ serviceMaps: description: Updates a referral fromTopic: update-referral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -145,6 +180,13 @@ serviceMaps: description: Deletes a referral fromTopic: delete-referral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -161,6 +203,13 @@ serviceMaps: description: Saves a hfreferral fromTopic: save-hfreferral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -193,6 +242,13 @@ serviceMaps: description: Updates a hfreferral fromTopic: update-hfreferral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; basePath: $.* @@ -220,6 +276,13 @@ serviceMaps: description: Deletes a hfreferral fromTopic: delete-hfreferral-health-topic isTransaction: true + isAuditEnabled: true + module: REFERRALMANAGEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* @@ -230,4 +293,4 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/service-request-persister.yml b/health/egov-persister/service-request-persister.yml index 5d012d24b..746bc2dde 100644 --- a/health/egov-persister/service-request-persister.yml +++ b/health/egov-persister/service-request-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Persists service definition details in service definition table fromTopic: save-service-definition-health isTransaction: true + isAuditEnabled: true + module: SERVICE-REQUEST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.eg_service_definition(id, tenantid, code, isactive, createdby, lastmodifiedby, createdtime, lastmodifiedtime, additionaldetails, clientid) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); @@ -78,6 +85,13 @@ serviceMaps: description: Persists service details in service table fromTopic: save-service-health isTransaction: true + isAuditEnabled: true + module: SERVICE-REQUEST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: diff --git a/health/egov-persister/stock-persister.yml b/health/egov-persister/stock-persister.yml index c7bf46c09..1336f6ab0 100644 --- a/health/egov-persister/stock-persister.yml +++ b/health/egov-persister/stock-persister.yml @@ -5,6 +5,13 @@ serviceMaps: description: Saves a stock fromTopic: save-stock-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -41,6 +48,13 @@ serviceMaps: description: Updates a stock fromTopic: update-stock-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* @@ -71,6 +85,13 @@ serviceMaps: description: Deletes a stock fromTopic: delete-stock-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* @@ -91,6 +112,13 @@ serviceMaps: description: Saves a stock reconciliation fromTopic: save-stock-reconciliation-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* @@ -124,6 +152,13 @@ serviceMaps: description: Updates a stock reconciliation fromTopic: update-stock-reconciliation-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* @@ -151,6 +186,13 @@ serviceMaps: description: Deletes a stock reconciliation fromTopic: delete-stock-reconciliation-health-topic isTransaction: true + isAuditEnabled: true + module: STOCK + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; basePath: $.* From 68927116a216a1bd496c07e06088f04af20cc4e7 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 23 Jan 2024 17:20:04 +0530 Subject: [PATCH 094/158] adding configs for download pdf --- pdf-service/data-config/pqm-adhoctest.json | 288 +++---- pdf-service/format-config/pqm-adhoctest.json | 816 +++++++++---------- 2 files changed, 552 insertions(+), 552 deletions(-) diff --git a/pdf-service/data-config/pqm-adhoctest.json b/pdf-service/data-config/pqm-adhoctest.json index a426d605b..bc2506726 100644 --- a/pdf-service/data-config/pqm-adhoctest.json +++ b/pdf-service/data-config/pqm-adhoctest.json @@ -1,169 +1,169 @@ { - "key": "pqm-adhoctest", - "DataConfigs": { - "serviceName": "rainmaker-common", - "version": "1.0.0", - "baseKeyPath": "$.tests.*", - "entityIdPath":"$.testId", - "isCommonTableBorderRequired": true, - "mappings": [ - { - "mappings": [ - { - "direct": [ - { - "variable": "testId", - "value": { - "path": "$.testId" - } + "key": "pqm-adhoctest", + "DataConfigs": { + "serviceName": "rainmaker-common", + "version": "1.0.0", + "baseKeyPath": "$.tests.*", + "entityIdPath":"$.testId", + "isCommonTableBorderRequired": true, + "mappings": [ + { + "mappings": [ + { + "direct": [ + { + "variable": "testId", + "value": { + "path": "$.testId" + } + }, + { + "variable": "plantCode", + "value": { + "path": "$.plantCode" }, - { - "variable": "plantCode", - "value": { - "path": "$.plantCode" - }, - "localisation":{ - "required":true, - "prefix": "PQM_PLANT", - "module": "rainmaker-tqm" - } + "localisation":{ + "required":true, + "prefix": "PQM_PLANT", + "module": "rainmaker-tqm" + } + }, + { + "variable": "processCode", + "value": { + "path": "$.processCode" }, - { - "variable": "processCode", - "value": { - "path": "$.processCode" - }, - "localisation":{ + "localisation":{ + "required":true, + "prefix": "PQM_PROCESS", + "module": "rainmaker-tqm" + } + }, + { + "variable": "stageCode", + "value": { + "path": "$.stageCode" + }, + "localisation":{ "required":true, - "prefix": "PQM_PROCESS", + "prefix": "PQM_STAGE", "module": "rainmaker-tqm" } + }, + { + "variable": "materialCode", + "value": { + "path": "$.materialCode" }, - { - "variable": "stageCode", - "value": { - "path": "$.stageCode" - }, - "localisation":{ - "required":true, - "prefix": "PQM_STAGE", - "module": "rainmaker-tqm" - } + "localisation":{ + "required":true, + "prefix": "PQM_MATERIAL", + "module": "rainmaker-tqm" + } + }, + { + "variable": "testType", + "value": { + "path": "$.testType" }, + "localisation":{ + "required":true, + "prefix": "PQM_SOURCETYPE", + "module": "rainmaker-tqm" + } + }, + { + "variable": "scheduleDate", + "value": { + "path": "$.scheduledDate" + }, + "type": "date" + }, + { + "variable": "submittedDate", + "value": { + "path": "$.auditDetails.lastModifiedTime" + }, + "type": "date" + }, + { + "variable": "status", + "value": { + "path": "$.status" + } + }, + { + "variable": "labName", + "value": { + "path": "$.labAssignedTo" + } + }, + { + "variable": "statusColor", + "value": { + "path": "$.status" + }, + "type":"function", + "format": "var colorstatus = arguments[0];\nif (colorstatus.toUpperCase() === 'FAIL') {\n return 'red';\n} else {\n return 'green';\n}"}, + { + "variable": "tableData", + "value": { + "path": "$.testCriteria" + }, + "type":"function", + "format": "var y = [];\nvar a = [];\nvar testCriteria = arguments[0];\n\nfor (var i = 0; i < testCriteria.length; i++) {\n var x = {\n Sno: i + 1,\n qualityParameterDescription: testCriteria[i].criteriaName,\n benchmarkResult: testCriteria[i].resultValue,\n uom: testCriteria[i].uom,\n benchmarkResultColor: testCriteria[i].resultStatus=='FAIL' ? 'red':'green'\n };\n\n y.push(x);\n}\n\nreturn y;" } + ] + }, + { + "externalAPI": [ { + "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", + "apiRequest": null, + "responseMapping":[ { - "variable": "materialCode", - "value": { - "path": "$.materialCode" - }, - "localisation":{ - "required":true, - "prefix": "PQM_MATERIAL", - "module": "rainmaker-tqm" - } + "variable":"address", + "value":"$.MdmsRes.tenant.tenants[0].address" }, { - "variable": "testType", - "value": { - "path": "$.testType" - }, - "localisation":{ - "required":true, - "prefix": "PQM_SOURCETYPE", - "module": "rainmaker-tqm" - } + "variable":"phoneNumber", + "value":"$.MdmsRes.tenant.tenants[0].contactNumber" }, { - "variable": "scheduleDate", - "value": { - "path": "$.scheduledDate" - }, - "type": "date" + "variable":"website", + "value":"$.MdmsRes.tenant.tenants[0].domainUrl" }, { - "variable": "submittedDate", - "value": { - "path": "$.auditDetails.lastModifiedTime" - }, - "type": "date" + "variable":"email", + "value":"$.MdmsRes.tenant.tenants[0].emailId" }, { - "variable": "status", - "value": { - "path": "$.status" - } + "variable": "logoImage", + "value":"$.MdmsRes.tenant.tenants[0].logoId", + "type":"image" }, { - "variable": "labName", - "value": { - "path": "$.labAssignedTo" + "variable": "logo-header", + "value":"$.MdmsRes.tenant.tenants[0].code", + "localisation":{ + "required":true, + "module":"rainmaker-common" } }, { - "variable": "statusColor", - "value": { - "path": "$.status" - }, - "type":"function", - "format": "var colorstatus = arguments[0];\nif (colorstatus.toUpperCase() === 'FAIL') {\n return 'red';\n} else {\n return 'green';\n}"}, - { - "variable": "tableData", - "value": { - "path": "$.testCriteria" - }, - "type":"function", - "format": "var y = [];\nvar a = [];\nvar testCriteria = arguments[0];\n\nfor (var i = 0; i < testCriteria.length; i++) {\n var x = {\n Sno: i + 1,\n qualityParameterDescription: testCriteria[i].criteriaName,\n benchmarkResult: testCriteria[i].resultValue,\n uom: testCriteria[i].uom,\n benchmarkResultColor: testCriteria[i].resultStatus=='FAIL' ? 'red':'green'\n };\n\n y.push(x);\n}\n\nreturn y;" } - ] - }, - { - "externalAPI": [ { - "path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", - "apiRequest": null, - "responseMapping":[ - { - "variable":"address", - "value":"$.MdmsRes.tenant.tenants[0].address" - }, - { - "variable":"phoneNumber", - "value":"$.MdmsRes.tenant.tenants[0].contactNumber" - }, - { - "variable":"website", - "value":"$.MdmsRes.tenant.tenants[0].domainUrl" - }, - { - "variable":"email", - "value":"$.MdmsRes.tenant.tenants[0].emailId" - }, - { - "variable": "logoImage", - "value":"$.MdmsRes.tenant.tenants[0].logoId", - "type":"image" - }, - { - "variable": "logo-header", - "value":"$.MdmsRes.tenant.tenants[0].code", - "localisation":{ - "required":true, - "module":"rainmaker-common" - } - }, - { - "variable": "subdivision", - "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", - "localisation": { - "required": true, - "prefix": "COMMON_SUBDIVISION", - "module": "rainmaker-common" - } + "variable": "subdivision", + "value": "$.MdmsRes.tenant.tenants[0].city.ulbGrade", + "localisation": { + "required": true, + "prefix": "COMMON_SUBDIVISION", + "module": "rainmaker-common" } - ] - } + } ] } - ] - } - ] - } - } \ No newline at end of file + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/pdf-service/format-config/pqm-adhoctest.json b/pdf-service/format-config/pqm-adhoctest.json index ae63fae55..137ef0191 100644 --- a/pdf-service/format-config/pqm-adhoctest.json +++ b/pdf-service/format-config/pqm-adhoctest.json @@ -1,433 +1,433 @@ { - "key": "pqm-adhoctest", - "config": { - "defaultStyle": { - "font": "Cambay" - }, - "content": [ - { - "style": "noc-head", - "table": { - "widths": [ - 60, - "*", - 125 - ], - "body": [ - [ - { - "image": "{{logoImage}}", - "width": 50, - "height": 61.25, - "margin": [ - 10, - 10, - 0, - 0 - ] - }, - { - "text": "{{pdf_header}} {{plantCode}}", - "fontSize": 18, - "color": "#000000", - "bold": true, - "alignment": "left", - "margin": [ - 10, - 30, - 0, - 0 - ] - }, - { - "stack": [ - { - "text": "Test Result", - "fontSize": 16, - "color": "#5F5F5F", - "bold": true - }, - { - "text": "{{submittedDate}}", - "fontSize": 12, - "color": "#5F5F5F", - "bold": true - } - ], - "alignment": "right", - "color": "#484848", - "margin": [ - 0, - 10, - 10, - 0 - ] - } - ] - ] - }, - "layout": "noBorders", - "fillColor": "#f4f4f4" - }, - {"text": "Test Details", "style": "header"}, - { - "margin": [ - 0, - 0, - 0, - 0 + "key": "pqm-adhoctest", + "config": { + "defaultStyle": { + "font": "Cambay" + }, + "content": [ + { + "style": "noc-head", + "table": { + "widths": [ + 60, + "*", + 125 ], - "columns": [ - { - "widths": ["35"], - "bold": true, - "fontSize": 12, - "alignment": "left", - "stack": [ - { - "text": "Test ID" - }, - { - "text": "Plant Name" - }, - { - "text": "Treatment process" - }, - { - "text": "Stage" - }, - { - "text": "Output Type" - }, - { - "text": "Test Type" - }, - { - "text": "Test scheduled on" - }, - { - "text": "Status" - }, - { - "text": "Lab name" - } - ] - }, - { - "widths": [ - "auto", - "auto", - "auto", - "auto" - ], - "bold": false, - "fontSize": 12, - "alignment": "left", - "stack": [ - { - "text": " {{testId}}" - }, - { - "text": " {{plantCode}}" - }, - { - "text": " {{processCode}}" - }, - { - "text": " {{stageCode}}" - }, - { - "text": " {{materialCode}}" - }, - { - "text": " {{testType}}" - }, - { - "text": " {{scheduleDate}}" - }, - { - "text": " {{status}}" - }, - { - "text": " {{labName}}" - } - ] - } - ], - "columnGap": 0 - - }, - { - "margin": [ - 0, - 35, - 0, - 0 - ], - "canvas": [ - { - "type": "line", - "x1": -25, "y1": -5, - "x2": 540, "y2": -5, - "lineWidth": 0.1 - } + "body": [ + [ + { + "image": "{{logoImage}}", + "width": 50, + "height": 61.25, + "margin": [ + 10, + 10, + 0, + 0 + ] + }, + { + "text": "{{pdf_header}} {{plantCode}}", + "fontSize": 18, + "color": "#000000", + "bold": true, + "alignment": "left", + "margin": [ + 10, + 30, + 0, + 0 + ] + }, + { + "stack": [ + { + "text": "Test Result", + "fontSize": 16, + "color": "#5F5F5F", + "bold": true + }, + { + "text": "{{submittedDate}}", + "fontSize": 12, + "color": "#5F5F5F", + "bold": true + } + ], + "alignment": "right", + "color": "#484848", + "margin": [ + 0, + 10, + 10, + 0 + ] + } + ] ] }, - {"text": "Test Result", "style": "header"}, - { - "margin": [ - 0, - 0, - 0, - 0 - ], - "table": { - "headerRows": 1, + "layout": "noBorders", + "fillColor": "#f4f4f4" + }, + {"text": "Test Details", "style": "header"}, + { + "margin": [ + 0, + 0, + 0, + 0 + ], + "columns": [ + { + "widths": ["35"], + "bold": true, + "fontSize": 12, + "alignment": "left", + "stack": [ + { + "text": "Test ID" + }, + { + "text": "Plant Name" + }, + { + "text": "Treatment process" + }, + { + "text": "Stage" + }, + { + "text": "Output Type" + }, + { + "text": "Test Type" + }, + { + "text": "Test scheduled on" + }, + { + "text": "Status" + }, + { + "text": "Lab name" + } + ] + }, + { "widths": [ "auto", - "*", - "*", - "*" + "auto", + "auto", + "auto" ], - "body": [[ + "bold": false, + "fontSize": 12, + "alignment": "left", + "stack": [ { - "text": "S.No", - "width": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": " {{testId}}" }, { - "text": "Quality Parameter", - "alignment": "center", - "height": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": " {{plantCode}}" }, { - "text": "UOM", - "alignment": "center", - "height": "auto", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": " {{processCode}}" }, { - "text": "Results", - "alignment": "center", - "bold": true, - "fillColor": "#efefef", - "fontSize": 9 + "text": " {{stageCode}}" + }, + { + "text": " {{materialCode}}" + }, + { + "text": " {{testType}}" + }, + { + "text": " {{scheduleDate}}" + }, + { + "text": " {{status}}" + }, + { + "text": " {{labName}}" } - ], - "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{qualityParameterDescription}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{uom}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{benchmarkResult}}\",\"alignment\":\"right\",\"fontSize\":9,\"color\":\"{{benchmarkResultColor}}\"}]{{/tableData}}", - [ - { - "text": "Result summary", - "bold": true, - "colSpan": 3, - "alignment": "left", - "fontSize": 10 - }, - {}, - {}, - { - "text": "{{status}}", - "alignment": "left", - "bold": true, - "fontSize": 10, - "colSpan": 1, - "color": "{{statusColor}}" - } - ] ] - }, - "layout": { - "hLineColor": "#D6D5D4", - "vLineColor": "#D6D5D4" } - }, - { - "margin": [ - 0, - 255, - 0, - 0 + ], + "columnGap": 0 + + }, + { + "margin": [ + 0, + 35, + 0, + 0 + ], + "canvas": [ + { + "type": "line", + "x1": -25, "y1": -5, + "x2": 540, "y2": -5, + "lineWidth": 0.1 + } + ] + }, + {"text": "Test Result", "style": "header"}, + { + "margin": [ + 0, + 0, + 0, + 0 + ], + "table": { + "headerRows": 1, + "widths": [ + "auto", + "*", + "*", + "*" ], - "canvas": [ + "body": [[ + { + "text": "S.No", + "width": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, { - "type": "line", - "x1": -25, "y1": -5, - "x2": 540, "y2": -5, - "lineWidth": 0.1 + "text": "Quality Parameter", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "UOM", + "alignment": "center", + "height": "auto", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 + }, + { + "text": "Results", + "alignment": "center", + "bold": true, + "fillColor": "#efefef", + "fontSize": 9 } - ] - }, - { - "text": "This is a computer-generated document. No signature is required.", - "style": "footer-header" - } - ], - "styles": { - "header": { - "fontSize": 16, - "bold": true, - "margin": [ - -20, - 40, - 10, - 10 - ] - }, - "noc-head": { - "margin": [ - -25, - -30, - 0, - 1 - ] - }, - "receipt-logo-header": { - "color": "#484848", - "fontSize": 14, - "bold": true, - "letterSpacing": 0.74, - "margin": [ - 0, - 0, - 0, - 5 - ] - }, - "noc-table": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 45, - -8, - -8 - ] - }, - "noc-table2": { - "fontSize": 12, - "color": "#484848", - "margin": [ - -25, - 18, - -25, - -8 - ] - }, - "receipt-table-value": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 5, - 5, - 0, - 0 - ] - }, - "receipt-table-value-total": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "alignment": "right", - "margin": [ - 0, - 5, - 30, - 0 - ] - }, - "receipt-table-value-down": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 400, - "alignment": "left", - "margin": [ - 3, - 5, - 0, - 5 - ] - }, - "receipt-table-value2": { - "color": "#000000", - "bold": false, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table-value-cont": { - "color": "#000000", - "bold": false, - "fontSize": 11, - "fontWeight": 400, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "receipt-table": { - "color": "#484848", - "bold": true, - "fontSize": 12, - "fontWeight": 400, - "margin": [ - -30, - 5, - 0, - 0 - ] - }, - "receipt-table2": { - "color": "#000000", - "bold": true, - "fontSize": 12, - "fontWeight": 500, - "margin": [ - 3, - 0, - 0, - 0 - ] - }, - "footer": { - "margin": [ - 0, - 15, - 0, - -40 ], - "bold": true, - "color": "#000000", - "alignment": "center" + "{{#tableData}}[{\"text\":\"{{Sno}}\",\"alignment\":\"center\",\"fontSize\":9},{\"text\":\"{{qualityParameterDescription}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{uom}}\",\"alignment\":\"centre\",\"fontSize\":9},{\"text\":\"{{benchmarkResult}}\",\"alignment\":\"right\",\"fontSize\":9,\"color\":\"{{benchmarkResultColor}}\"}]{{/tableData}}", + [ + { + "text": "Result summary", + "bold": true, + "colSpan": 3, + "alignment": "left", + "fontSize": 10 + }, + {}, + {}, + { + "text": "{{status}}", + "alignment": "left", + "bold": true, + "fontSize": 10, + "colSpan": 1, + "color": "{{statusColor}}" + } + ] + ] }, - "footer-header": { - "margin": [ - 0, - 15, - 0, - -40 - ], - "color": "#000000", - "alignment": "center" + "layout": { + "hLineColor": "#D6D5D4", + "vLineColor": "#D6D5D4" } + }, + { + "margin": [ + 0, + 255, + 0, + 0 + ], + "canvas": [ + { + "type": "line", + "x1": -25, "y1": -5, + "x2": 540, "y2": -5, + "lineWidth": 0.1 + } + ] + }, + { + "text": "This is a computer-generated document. No signature is required.", + "style": "footer-header" + } + ], + "styles": { + "header": { + "fontSize": 16, + "bold": true, + "margin": [ + -20, + 40, + 10, + 10 + ] + }, + "noc-head": { + "margin": [ + -25, + -30, + 0, + 1 + ] + }, + "receipt-logo-header": { + "color": "#484848", + "fontSize": 14, + "bold": true, + "letterSpacing": 0.74, + "margin": [ + 0, + 0, + 0, + 5 + ] + }, + "noc-table": { + "fontSize": 12, + "color": "#484848", + "margin": [ + -25, + 45, + -8, + -8 + ] + }, + "noc-table2": { + "fontSize": 12, + "color": "#484848", + "margin": [ + -25, + 18, + -25, + -8 + ] + }, + "receipt-table-value": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + 5, + 5, + 0, + 0 + ] + }, + "receipt-table-value-total": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "alignment": "right", + "margin": [ + 0, + 5, + 30, + 0 + ] + }, + "receipt-table-value-down": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 400, + "alignment": "left", + "margin": [ + 3, + 5, + 0, + 5 + ] + }, + "receipt-table-value2": { + "color": "#000000", + "bold": false, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + 3, + 0, + 0, + 0 + ] + }, + "receipt-table-value-cont": { + "color": "#000000", + "bold": false, + "fontSize": 11, + "fontWeight": 400, + "margin": [ + 3, + 0, + 0, + 0 + ] + }, + "receipt-table": { + "color": "#484848", + "bold": true, + "fontSize": 12, + "fontWeight": 400, + "margin": [ + -30, + 5, + 0, + 0 + ] + }, + "receipt-table2": { + "color": "#000000", + "bold": true, + "fontSize": 12, + "fontWeight": 500, + "margin": [ + 3, + 0, + 0, + 0 + ] + }, + "footer": { + "margin": [ + 0, + 15, + 0, + -40 + ], + "bold": true, + "color": "#000000", + "alignment": "center" + }, + "footer-header": { + "margin": [ + 0, + 15, + 0, + -40 + ], + "color": "#000000", + "alignment": "center" } - } - } \ No newline at end of file + + } +} \ No newline at end of file From 229b8110495333ce431131745d372ee61f96969c Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 25 Jan 2024 11:03:24 +0530 Subject: [PATCH 095/158] changed pb tenant to pg in tenantid --- pdf-service/data-config/fsm-receipt.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf-service/data-config/fsm-receipt.json b/pdf-service/data-config/fsm-receipt.json index 84c6c5c86..4bd422556 100644 --- a/pdf-service/data-config/fsm-receipt.json +++ b/pdf-service/data-config/fsm-receipt.json @@ -560,7 +560,7 @@ "externalAPI": [ { "path": "http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}')%5D", + "queryParam": "moduleName=tenant&masterName=tenants&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}')%5D", "apiRequest": null, "responseMapping": [ { @@ -607,7 +607,7 @@ }, { "path": "http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_get", - "queryParam": "moduleName=tenant&masterName=footer&tenantId=pb&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", + "queryParam": "moduleName=tenant&masterName=footer&tenantId=pg&filter=%5B?(@.code=='{$.tenantId}' %26%26 @.service=='{$.paymentDetails[0].businessService}')%5D", "apiRequest": null, "responseMapping": [ { From c5f356dd9b57c68a0cdb5d08b51fed3e0ae43014 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:14:23 +0530 Subject: [PATCH 096/158] Updated health project perister for save and update project topics (#2980) --- health/egov-persister/project-persister.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index e9c64aba4..d5c6e8434 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -182,7 +182,7 @@ serviceMaps: - version: 1.0 name: Projects description: Persists project details in project table - fromTopic: save-project + fromTopic: save-project-health isTransaction: true isAuditEnabled: true module: PROJECT @@ -337,7 +337,7 @@ serviceMaps: - version: 1.0 name: Projects description: Updates project details in project table - fromTopic: update-project + fromTopic: update-project-health isTransaction: true isAuditEnabled: true module: PROJECT @@ -683,4 +683,4 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.*.id From 573e24bfc475ad7874bfcb6037b6b7b0d3e4d859 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 15 Feb 2024 11:19:21 +0530 Subject: [PATCH 097/158] adding persister configs changes for save draft functionality --- egov-persister/pqm-persister.yaml | 41 +++++++++++++++++++ sanitation/egov-persister/pqm-persister.yaml | 43 +++++++++++++++++++- 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/egov-persister/pqm-persister.yaml b/egov-persister/pqm-persister.yaml index 8cb4ca524..77de88ccb 100644 --- a/egov-persister/pqm-persister.yaml +++ b/egov-persister/pqm-persister.yaml @@ -298,3 +298,44 @@ serviceMaps: - jsonPath: $.plantUsers.*.auditDetails.createdTime - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime - jsonPath: $.plantUsers.*.id + + - version: 1.0 + description: Update test result documents + fromTopic: update-test-documents + isTransaction: true + queryMaps: + - query: UPDATE eg_pqm_test_result_documents SET documentUid = ?, documentUri = ?, documentType = ?, filestoreId = ?, isActive = ?, additionalDetails = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.documents.*.id + + + - query: INSERT INTO eg_pqm_test_result_documents_auditlog (id, testId, documentUid, documentUri, documentType, filestoreId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 0a727caa2..0e75732d6 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -294,4 +294,45 @@ serviceMaps: - jsonPath: $.plantUsers.*.auditDetails.lastModifiedBy - jsonPath: $.plantUsers.*.auditDetails.createdTime - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime - - jsonPath: $.plantUsers.*.id \ No newline at end of file + - jsonPath: $.plantUsers.*.id + + - version: 1.0 + description: Update test result documents + fromTopic: update-test-documents + isTransaction: true + queryMaps: + - query: UPDATE eg_pqm_test_result_documents SET documentUid = ?, documentUri = ?, documentType = ?, filestoreId = ?, isActive = ?, additionalDetails = ?, createdBy = ?, lastModifiedBy = ?, createdTime = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime + - jsonPath: $.tests.*.documents.*.id + + + - query: INSERT INTO eg_pqm_test_result_documents_auditlog (id, testId, documentUid, documentUri, documentType, filestoreId, additionalDetails, isActive, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.tests.*.documents.* + jsonMaps: + - jsonPath: $.tests.*.documents.*.id + - jsonPath: $.tests.*.documents.*.testId + - jsonPath: $.tests.*.documents.*.documentUid + - jsonPath: $.tests.*.documents.*.documentUri + - jsonPath: $.tests.*.documents.*.documentType + - jsonPath: $.tests.*.documents.*.fileStoreId + - jsonPath: $.tests.*.documents.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.tests.*.documents.*.isActive + - jsonPath: $.tests.*.documents.*.auditDetails.createdBy + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedBy + - jsonPath: $.tests.*.documents.*.auditDetails.createdTime + - jsonPath: $.tests.*.documents.*.auditDetails.lastModifiedTime \ No newline at end of file From 617735db3ffe4b374d786398f61bc73a172bd875 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 15 Feb 2024 12:11:50 +0530 Subject: [PATCH 098/158] changes of configs for save as draft function --- sanitation/egov-persister/pqm-persister.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitation/egov-persister/pqm-persister.yaml b/sanitation/egov-persister/pqm-persister.yaml index 0e75732d6..22562e8f1 100644 --- a/sanitation/egov-persister/pqm-persister.yaml +++ b/sanitation/egov-persister/pqm-persister.yaml @@ -296,7 +296,7 @@ serviceMaps: - jsonPath: $.plantUsers.*.auditDetails.lastModifiedTime - jsonPath: $.plantUsers.*.id - - version: 1.0 + - version: 1.0 description: Update test result documents fromTopic: update-test-documents isTransaction: true From d5843c023002ee445403743b2b0594c642966f4a Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:58:14 +0530 Subject: [PATCH 099/158] Update ChartApiConfig.json --- egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json index f8c61cc9b..12ec53761 100644 --- a/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json +++ b/egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json @@ -17039,7 +17039,7 @@ "dateRefField": "Data.fsm.@timestamp", "requestQueryMap": "{\"wardId\" : \"Data.ward.name.keyword\", \"tenantId\" : \"Data.tenantData.code\" , \"district\" : \"Data.tenantData.city.districtName\"}", "indexName": "fsm", - "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}}}" + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.fsm.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"ULBs\":{\"terms\":{\"field\":\"Data.fsm.tenantId.keyword\",\"size\":1000},\"aggs\":{\"Open_Req\":{\"filter\":{\"bool\":{\"must_not\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\",\"DSO_REJECTED\",\"REJECTED\",\"CANCELED\"]}}]}},\"aggs\":{\"OpenReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"Closed_Req\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}}]}},\"aggs\":{\"ClosedReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}},\"TotalReq\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}},\"Closed_With_In_Sla\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.fsm.applicationStatus.keyword\":[\"COMPLETED\",\"CITIZEN_FEEDBACK_PENDING\"]}},{\"script\":{\"script\":{\"source\":\"doc['Data.fsm.auditDetails.lastModifiedTime'].value - doc['Data.fsm.auditDetails.createdTime'].value < params.threshold\",\"lang\":\"painless\",\"params\":{\"threshold\":172800000}}}}]}},\"aggs\":{\"ClosedWithInSla\":{\"value_count\":{\"field\":\"Data.fsm.tenantId.keyword\"}}}}}}}}}}" }, { "module": "FSM", From 693b0374e47800061e720587c879a3d48c78a0ea Mon Sep 17 00:00:00 2001 From: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com> Date: Thu, 15 Feb 2024 18:48:26 +0530 Subject: [PATCH 100/158] Update household-indexer.yml --- egov-indexer/household-indexer.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/egov-indexer/household-indexer.yml b/egov-indexer/household-indexer.yml index cfff16b9b..f5a9fea33 100644 --- a/egov-indexer/household-indexer.yml +++ b/egov-indexer/household-indexer.yml @@ -28,4 +28,31 @@ ServiceMaps: id: $.id isBulk: true jsonPath: $.* - timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file + timeStampField: $.auditDetails.lastModifiedTime + - topic: save-household-health-topic + configKey: INDEX + indexes: + - name: household-index-v1 + type: household + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + - topic: update-household-health-topic + configKey: INDEX + indexes: + - name: household-index-v1 + type: household + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + - topic: delete-household-health-topic + configKey: INDEX + indexes: + - name: household-index-v1 + type: household + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime From 7f561538c2b6c534462ff7f6311818f975b5da7c Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Thu, 15 Feb 2024 19:14:03 +0530 Subject: [PATCH 101/158] updated indexer required for unified-qa on health related topics --- egov-indexer/household-indexer.yml | 27 ---- health/egov-indexer/facility-indexer.yml | 13 ++ health/egov-indexer/household-indexer.yml | 31 ++++ health/egov-indexer/individual-indexer.yml | 31 ++++ health/egov-indexer/product-indexer.yml | 40 ++++++ health/egov-indexer/project-indexer.yml | 132 ++++++++++++++++++ health/egov-indexer/project-staff-indexer.yml | 41 ++++++ health/egov-indexer/project-task-indexer.yml | 41 ++++++ .../referral-management-indexer.yml | 101 ++++++++++++++ health/egov-indexer/stock-indexer.yml | 45 ++++++ 10 files changed, 475 insertions(+), 27 deletions(-) create mode 100644 health/egov-indexer/facility-indexer.yml create mode 100644 health/egov-indexer/household-indexer.yml create mode 100644 health/egov-indexer/individual-indexer.yml create mode 100644 health/egov-indexer/product-indexer.yml create mode 100644 health/egov-indexer/project-indexer.yml create mode 100644 health/egov-indexer/project-staff-indexer.yml create mode 100644 health/egov-indexer/project-task-indexer.yml create mode 100644 health/egov-indexer/referral-management-indexer.yml create mode 100644 health/egov-indexer/stock-indexer.yml diff --git a/egov-indexer/household-indexer.yml b/egov-indexer/household-indexer.yml index f5a9fea33..9a1d43eae 100644 --- a/egov-indexer/household-indexer.yml +++ b/egov-indexer/household-indexer.yml @@ -29,30 +29,3 @@ ServiceMaps: isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime - - topic: save-household-health-topic - configKey: INDEX - indexes: - - name: household-index-v1 - type: household - id: $.id - isBulk: true - jsonPath: $.* - timeStampField: $.auditDetails.createdTime - - topic: update-household-health-topic - configKey: INDEX - indexes: - - name: household-index-v1 - type: household - id: $.id - isBulk: true - jsonPath: $.* - timeStampField: $.auditDetails.lastModifiedTime - - topic: delete-household-health-topic - configKey: INDEX - indexes: - - name: household-index-v1 - type: household - id: $.id - isBulk: true - jsonPath: $.* - timeStampField: $.auditDetails.lastModifiedTime diff --git a/health/egov-indexer/facility-indexer.yml b/health/egov-indexer/facility-indexer.yml new file mode 100644 index 000000000..525399a46 --- /dev/null +++ b/health/egov-indexer/facility-indexer.yml @@ -0,0 +1,13 @@ +ServiceMaps: + serviceName: facility + version: 1.0.0 + mappings: + - topic: save-facility-health-topic + configKey: INDEX + indexes: + - name: facility-index-v1 + type: facility + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime \ No newline at end of file diff --git a/health/egov-indexer/household-indexer.yml b/health/egov-indexer/household-indexer.yml new file mode 100644 index 000000000..5a7eea34a --- /dev/null +++ b/health/egov-indexer/household-indexer.yml @@ -0,0 +1,31 @@ +ServiceMaps: + serviceName: household + version: 1.0.0 + mappings: + - topic: save-household-health-topic + configKey: INDEX + indexes: + - name: household-index-v1 + type: household + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + - topic: update-household-health-topic + configKey: INDEX + indexes: + - name: household-index-v1 + type: household + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + - topic: delete-household-health-topic + configKey: INDEX + indexes: + - name: household-index-v1 + type: household + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime diff --git a/health/egov-indexer/individual-indexer.yml b/health/egov-indexer/individual-indexer.yml new file mode 100644 index 000000000..96ff4c558 --- /dev/null +++ b/health/egov-indexer/individual-indexer.yml @@ -0,0 +1,31 @@ +ServiceMaps: + serviceName: individual + version: 1.0.0 + mappings: + - topic: save-individual-health-topic + configKey: INDEX + indexes: + - name: individual-index-v1 + type: individual + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + - topic: update-individual-health-topic + configKey: INDEX + indexes: + - name: individual-index-v1 + type: individual + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + - topic: delete-individual-health-topic + configKey: INDEX + indexes: + - name: individual-index-v1 + type: individual + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/health/egov-indexer/product-indexer.yml b/health/egov-indexer/product-indexer.yml new file mode 100644 index 000000000..32cf7f885 --- /dev/null +++ b/health/egov-indexer/product-indexer.yml @@ -0,0 +1,40 @@ +ServiceMaps: + serviceName: product + version: 1.0.0 + mappings: + - topic: save-product-variant-health-topic + configKey: INDEX + indexes: + - name: product-variant-index-v1 + type: product-variant + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + - topic: save-product-health-topic + configKey: INDEX + indexes: + - name: product-index-v1 + type: product + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + - topic: update-product-health-topic + configKey: INDEX + indexes: + - name: product-index-v1 + type: product + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + - topic: update-product-variant-health-topic + configKey: INDEX + indexes: + - name: product-variant-index-v1 + type: product-variant-update + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime \ No newline at end of file diff --git a/health/egov-indexer/project-indexer.yml b/health/egov-indexer/project-indexer.yml new file mode 100644 index 000000000..fa1e11a51 --- /dev/null +++ b/health/egov-indexer/project-indexer.yml @@ -0,0 +1,132 @@ +ServiceMaps: + serviceName: Project Service + version: 1.0.0 + mappings: + - topic: transformer-producer-bulk-project-index-v1-topic1 + configKey: INDEX + indexes: + - name: project-index-v1 + type: projects + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.lastModifiedTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.lastModifiedBy + outJsonPath: $.Data.userId + - inJsonPath: $.lastModifiedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.province + outJsonPath: $.Data.province + - inJsonPath: $.district + outJsonPath: $.Data.district + - inJsonPath: $.administrativeProvince + outJsonPath: $.Data.administrativeProvince + - inJsonPath: $.locality + outJsonPath: $.Data.locality + - inJsonPath: $.village + outJsonPath: $.Data.village + timeStampField: $.lastModifiedTime + + - topic: save-project-beneficiary-health-topic + configKey: INDEX + indexes: + - name: project-beneficiary-index-v1 + type: project-beneficiary + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-project-beneficiary-health-topic + configKey: INDEX + indexes: + - name: project-beneficiary-index-v1 + type: project-beneficiary + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-project-beneficiary-health-topic + configKey: INDEX + indexes: + - name: project-beneficiary-index-v1 + type: project-beneficiary + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + + - topic: save-project-resource-health-topic + configKey: INDEX + indexes: + - name: project-resource-index-v1 + type: project-resource + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-project-resource-health-topic + configKey: INDEX + indexes: + - name: project-resource-index-v1 + type: project-resource + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-project-resource-health-topic + configKey: INDEX + indexes: + - name: project-resource-index-v1 + type: project-resource + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: save-project-facility-health-topic + configKey: INDEX + indexes: + - name: project-facility-index-v1 + type: project-facility + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-project-facility-health-topic + configKey: INDEX + indexes: + - name: project-facility-index-v1 + type: project-facility + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-project-facility-health-topic + configKey: INDEX + indexes: + - name: project-facility-index-v1 + type: project-facility + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/health/egov-indexer/project-staff-indexer.yml b/health/egov-indexer/project-staff-indexer.yml new file mode 100644 index 000000000..6d84fbc75 --- /dev/null +++ b/health/egov-indexer/project-staff-indexer.yml @@ -0,0 +1,41 @@ +ServiceMaps: + serviceName: project + version: 1.0.0 + mappings: + - topic: transformer-producer-bulk-project-staff-index-v1-topic1 + configKey: INDEX + indexes: + - name: project-staff-index-v1 + type: staff + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.lastModifiedTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $.lastModifiedBy + outJsonPath: $.Data.userId + - inJsonPath: $.lastModifiedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.province + outJsonPath: $.Data.province + - inJsonPath: $.district + outJsonPath: $.Data.district + - inJsonPath: $.administrativeProvince + outJsonPath: $.Data.administrativeProvince + - inJsonPath: $.locality + outJsonPath: $.Data.locality + - inJsonPath: $.village + outJsonPath: $.Data.village + timeStampField: $.lastModifiedTime \ No newline at end of file diff --git a/health/egov-indexer/project-task-indexer.yml b/health/egov-indexer/project-task-indexer.yml new file mode 100644 index 000000000..bd556f3f1 --- /dev/null +++ b/health/egov-indexer/project-task-indexer.yml @@ -0,0 +1,41 @@ +ServiceMaps: + serviceName: project + version: 1.0.0 + mappings: + - topic: transformer-producer-bulk-project-task-index-v1-topic + configKey: INDEX + indexes: + - name: project-task-index-v1 + type: tasks + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.createdTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $.lastModifiedBy + outJsonPath: $.Data.userId + - inJsonPath: $.createdTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.province + outJsonPath: $.Data.province + - inJsonPath: $.district + outJsonPath: $.Data.district + - inJsonPath: $.administrativeProvince + outJsonPath: $.Data.administrativeProvince + - inJsonPath: $.locality + outJsonPath: $.Data.locality + - inJsonPath: $.village + outJsonPath: $.Data.village + timeStampField: $.lastModifiedTime \ No newline at end of file diff --git a/health/egov-indexer/referral-management-indexer.yml b/health/egov-indexer/referral-management-indexer.yml new file mode 100644 index 000000000..ad969a45f --- /dev/null +++ b/health/egov-indexer/referral-management-indexer.yml @@ -0,0 +1,101 @@ +ServiceMaps: + serviceName: referralmanagement + version: 1.0.0 + mappings: + - topic: transformer-producer-bulk-referral-management-index-v1-topic + configKey: INDEX + indexes: + - name: referral-management-index-v1 + type: referrals + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.createdTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": {} } + fieldMapping: + - inJsonPath: $.lastModifiedBy + outJsonPath: $.Data.userId + - inJsonPath: $.createdTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.province + outJsonPath: $.Data.province + - inJsonPath: $.district + outJsonPath: $.Data.district + - inJsonPath: $.administrativeProvince + outJsonPath: $.Data.administrativeProvince + - inJsonPath: $.locality + outJsonPath: $.Data.locality + - inJsonPath: $.village + outJsonPath: $.Data.village + timeStampField: $.lastModifiedTime + + - topic: save-referral-health-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-referral-health-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-referral-health-topic + configKey: INDEX + indexes: + - name: referral-index-v1 + type: referral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: save-side-effect-health-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-side-effect-health-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-side-effect-health-topic + configKey: INDEX + indexes: + - name: side-effect-index-v1 + type: side-effect + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file diff --git a/health/egov-indexer/stock-indexer.yml b/health/egov-indexer/stock-indexer.yml new file mode 100644 index 000000000..29515ed41 --- /dev/null +++ b/health/egov-indexer/stock-indexer.yml @@ -0,0 +1,45 @@ +ServiceMaps: + serviceName: stock + version: 1.0.0 + mappings: + - topic: transformer-producer-bulk-stock-index-v1-topic1 + configKey: INDEX + indexes: + - name: stock-index-v1 + type: stock + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data + timeStampField: $.lastModifiedTime + - name: user-sync-index-v1 + type: users + id: $.id + isBulk: true + jsonPath: $ + customJsonMapping: + indexMapping: { "Data": { } } + fieldMapping: + - inJsonPath: $.lastModifiedBy + outJsonPath: $.Data.userId + - inJsonPath: $.lastModifiedTime + outJsonPath: $.Data.createdTime + - inJsonPath: $.province + outJsonPath: $.Data.province + - inJsonPath: $.district + outJsonPath: $.Data.district + - inJsonPath: $.administrativeProvince + outJsonPath: $.Data.administrativeProvince + - inJsonPath: $.locality + outJsonPath: $.Data.locality + - inJsonPath: $.village + outJsonPath: $.Data.village + - inJsonPath: $.latitude + outJsonPath: $.Data.latitude + - inJsonPath: $.longitude + outJsonPath: $.Data.longitude + timeStampField: $.lastModifiedTime \ No newline at end of file From c43891bc0573c13f6bc467baaf953896d502bbaf Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Thu, 15 Feb 2024 19:24:15 +0530 Subject: [PATCH 102/158] updated health indexers --- health/egov-indexer/project-task-indexer.yml | 2 +- health/egov-indexer/referral-management-indexer.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/health/egov-indexer/project-task-indexer.yml b/health/egov-indexer/project-task-indexer.yml index bd556f3f1..d0424aced 100644 --- a/health/egov-indexer/project-task-indexer.yml +++ b/health/egov-indexer/project-task-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: project version: 1.0.0 mappings: - - topic: transformer-producer-bulk-project-task-index-v1-topic + - topic: transformer-producer-bulk-project-task-index-v1-topic1 configKey: INDEX indexes: - name: project-task-index-v1 diff --git a/health/egov-indexer/referral-management-indexer.yml b/health/egov-indexer/referral-management-indexer.yml index ad969a45f..870a6d4e6 100644 --- a/health/egov-indexer/referral-management-indexer.yml +++ b/health/egov-indexer/referral-management-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: referralmanagement version: 1.0.0 mappings: - - topic: transformer-producer-bulk-referral-management-index-v1-topic + - topic: transformer-producer-bulk-referral-management-index-v1-topic1 configKey: INDEX indexes: - name: referral-management-index-v1 From 8d42a6da95b3bd15e141aaca1eff92fe60201a27 Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Thu, 15 Feb 2024 19:27:05 +0530 Subject: [PATCH 103/158] updated transformer topics --- health/egov-indexer/project-indexer.yml | 2 +- health/egov-indexer/project-staff-indexer.yml | 2 +- health/egov-indexer/project-task-indexer.yml | 2 +- health/egov-indexer/referral-management-indexer.yml | 2 +- health/egov-indexer/stock-indexer.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/health/egov-indexer/project-indexer.yml b/health/egov-indexer/project-indexer.yml index fa1e11a51..527307c6a 100644 --- a/health/egov-indexer/project-indexer.yml +++ b/health/egov-indexer/project-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: Project Service version: 1.0.0 mappings: - - topic: transformer-producer-bulk-project-index-v1-topic1 + - topic: transformer-producer-bulk-project-index-v1-health-topic configKey: INDEX indexes: - name: project-index-v1 diff --git a/health/egov-indexer/project-staff-indexer.yml b/health/egov-indexer/project-staff-indexer.yml index 6d84fbc75..978bf2a1f 100644 --- a/health/egov-indexer/project-staff-indexer.yml +++ b/health/egov-indexer/project-staff-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: project version: 1.0.0 mappings: - - topic: transformer-producer-bulk-project-staff-index-v1-topic1 + - topic: transformer-producer-bulk-project-staff-index-v1-health-topic configKey: INDEX indexes: - name: project-staff-index-v1 diff --git a/health/egov-indexer/project-task-indexer.yml b/health/egov-indexer/project-task-indexer.yml index d0424aced..25d292ac7 100644 --- a/health/egov-indexer/project-task-indexer.yml +++ b/health/egov-indexer/project-task-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: project version: 1.0.0 mappings: - - topic: transformer-producer-bulk-project-task-index-v1-topic1 + - topic: transformer-producer-bulk-project-task-index-v1-health-topic configKey: INDEX indexes: - name: project-task-index-v1 diff --git a/health/egov-indexer/referral-management-indexer.yml b/health/egov-indexer/referral-management-indexer.yml index 870a6d4e6..74f4f7cc5 100644 --- a/health/egov-indexer/referral-management-indexer.yml +++ b/health/egov-indexer/referral-management-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: referralmanagement version: 1.0.0 mappings: - - topic: transformer-producer-bulk-referral-management-index-v1-topic1 + - topic: transformer-producer-bulk-referral-management-index-v1-health-topic configKey: INDEX indexes: - name: referral-management-index-v1 diff --git a/health/egov-indexer/stock-indexer.yml b/health/egov-indexer/stock-indexer.yml index 29515ed41..27d61168b 100644 --- a/health/egov-indexer/stock-indexer.yml +++ b/health/egov-indexer/stock-indexer.yml @@ -2,7 +2,7 @@ ServiceMaps: serviceName: stock version: 1.0.0 mappings: - - topic: transformer-producer-bulk-stock-index-v1-topic1 + - topic: transformer-producer-bulk-stock-index-v1-health-topic configKey: INDEX indexes: - name: stock-index-v1 From 22dafd6aaf5d2239966b2a19d4cd948c68914569 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:32:03 +0530 Subject: [PATCH 104/158] HLM-4894 - Created hrms-employee-persister.yml (#2989) --- .../hrms-employee-persister.yml | 533 ++++++++++++++++++ 1 file changed, 533 insertions(+) create mode 100644 health/egov-persister/hrms-employee-persister.yml diff --git a/health/egov-persister/hrms-employee-persister.yml b/health/egov-persister/hrms-employee-persister.yml new file mode 100644 index 000000000..5af131f99 --- /dev/null +++ b/health/egov-persister/hrms-employee-persister.yml @@ -0,0 +1,533 @@ +serviceMaps: + serviceName: HRMS + mappings: + - version: 1.0 + name: hrms + description: Persists employee details in the table + fromTopic: save-hrms-employee-health + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.* + jsonMaps: + + + - jsonPath: $.Employees.*.tenantId + + - jsonPath: $.Employees.*.id + + - jsonPath: $.Employees.*.uuid + + - jsonPath: $.Employees.*.code + + - jsonPath: $.Employees.*.dateOfAppointment + + - jsonPath: $.Employees.*.employeeStatus + + - jsonPath: $.Employees.*.employeeType + + - jsonPath: $.Employees.*.isActive + + - jsonPath: $.Employees.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.auditDetails.lastModifiedDate + + - jsonPath: $.Employees.*.reActivateEmployee + + + + - query: INSERT INTO health.eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.assignments.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId + + - jsonPath: $.Employees.*.assignments.*.id + + - jsonPath: $.Employees.*.assignments.*.position + + - jsonPath: $.Employees.*.assignments.*.department + + - jsonPath: $.Employees.*.assignments.*.designation + + - jsonPath: $.Employees.*.assignments.*.fromDate + + - jsonPath: $.Employees.*.assignments.*.toDate + + - jsonPath: $.Employees.*.assignments.*.govtOrderNumber + + - jsonPath: $.Employees.*.assignments.*.reportingTo + + - jsonPath: $.Employees.*.assignments.*.isHOD + + - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate + + + + + - query: INSERT INTO health.eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.education.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId + + - jsonPath: $.Employees.*.education.*.id + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid + + - jsonPath: $.Employees.*.education.*.qualification + + - jsonPath: $.Employees.*.education.*.stream + + - jsonPath: $.Employees.*.education.*.yearOfPassing + + - jsonPath: $.Employees.*.education.*.university + + - jsonPath: $.Employees.*.education.*.remarks + + - jsonPath: $.Employees.*.education.*.isActive + + - jsonPath: $.Employees.*.education.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.education.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.tests.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId + + - jsonPath: $.Employees.*.tests.*.id + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid + + - jsonPath: $.Employees.*.tests.*.test + + - jsonPath: $.Employees.*.tests.*.yearOfPassing + + - jsonPath: $.Employees.*.tests.*.remarks + + - jsonPath: $.Employees.*.tests.*.isActive + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.documents.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId + + - jsonPath: $.Employees.*.documents.*.id + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid + + - jsonPath: $.Employees.*.documents.*.documentId + + - jsonPath: $.Employees.*.documents.*.documentName + + - jsonPath: $.Employees.*.documents.*.referenceType + + - jsonPath: $.Employees.*.documents.*.referenceId + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.serviceHistory.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId + + - jsonPath: $.Employees.*.serviceHistory.*.id + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid + + - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus + + - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom + + - jsonPath: $.Employees.*.serviceHistory.*.serviceTo + + - jsonPath: $.Employees.*.serviceHistory.*.orderNo + + - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition + + - jsonPath: $.Employees.*.serviceHistory.*.location + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.jurisdictions.* + jsonMaps: + + - jsonPath: $.Employees.*.jurisdictions.*.id + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid + + - jsonPath: $.Employees.*.jurisdictions.*.hierarchy + + - jsonPath: $.Employees.*.jurisdictions.*.boundaryType + + - jsonPath: $.Employees.*.jurisdictions.*.boundary + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId + + - jsonPath: $.Employees.*.jurisdictions.*.isActive + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate + + + + + - version: 1.0 + name: hrms + description: Persists employee details in the table + fromTopic: update-hrms-employee-health + isTransaction: true + queryMaps: + - query: DELETE from eg_hrms_employee WHERE uuid=? + + basePath: Employees.* + jsonMaps: + + - jsonPath: $.Employees.*.uuid + + - query: INSERT INTO health.eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.* + jsonMaps: + + + - jsonPath: $.Employees.*.tenantId + + - jsonPath: $.Employees.*.id + + - jsonPath: $.Employees.*.uuid + + - jsonPath: $.Employees.*.code + + - jsonPath: $.Employees.*.dateOfAppointment + + - jsonPath: $.Employees.*.employeeStatus + + - jsonPath: $.Employees.*.employeeType + + - jsonPath: $.Employees.*.isActive + + - jsonPath: $.Employees.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.auditDetails.lastModifiedDate + + - jsonPath: $.Employees.*.reActivateEmployee + + + + - query: INSERT INTO health.eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.assignments.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId + + - jsonPath: $.Employees.*.assignments.*.id + + - jsonPath: $.Employees.*.assignments.*.position + + - jsonPath: $.Employees.*.assignments.*.department + + - jsonPath: $.Employees.*.assignments.*.designation + + - jsonPath: $.Employees.*.assignments.*.fromDate + + - jsonPath: $.Employees.*.assignments.*.toDate + + - jsonPath: $.Employees.*.assignments.*.govtOrderNumber + + - jsonPath: $.Employees.*.assignments.*.reportingTo + + - jsonPath: $.Employees.*.assignments.*.isHOD + + - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate + + + + + - query: INSERT INTO health.eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.education.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId + + - jsonPath: $.Employees.*.education.*.id + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid + + - jsonPath: $.Employees.*.education.*.qualification + + - jsonPath: $.Employees.*.education.*.stream + + - jsonPath: $.Employees.*.education.*.yearOfPassing + + - jsonPath: $.Employees.*.education.*.university + + - jsonPath: $.Employees.*.education.*.remarks + + - jsonPath: $.Employees.*.education.*.isActive + + - jsonPath: $.Employees.*.education.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.education.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.tests.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId + + - jsonPath: $.Employees.*.tests.*.id + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid + + - jsonPath: $.Employees.*.tests.*.test + + - jsonPath: $.Employees.*.tests.*.yearOfPassing + + - jsonPath: $.Employees.*.tests.*.remarks + + - jsonPath: $.Employees.*.tests.*.isActive + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.documents.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId + + - jsonPath: $.Employees.*.documents.*.id + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid + + - jsonPath: $.Employees.*.documents.*.documentId + + - jsonPath: $.Employees.*.documents.*.documentName + + - jsonPath: $.Employees.*.documents.*.referenceType + + - jsonPath: $.Employees.*.documents.*.referenceId + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.serviceHistory.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId + + - jsonPath: $.Employees.*.serviceHistory.*.id + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid + + - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus + + - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom + + - jsonPath: $.Employees.*.serviceHistory.*.serviceTo + + - jsonPath: $.Employees.*.serviceHistory.*.orderNo + + - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition + + - jsonPath: $.Employees.*.serviceHistory.*.location + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.jurisdictions.* + jsonMaps: + + - jsonPath: $.Employees.*.jurisdictions.*.id + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid + + - jsonPath: $.Employees.*.jurisdictions.*.hierarchy + + - jsonPath: $.Employees.*.jurisdictions.*.boundaryType + + - jsonPath: $.Employees.*.jurisdictions.*.boundary + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId + + - jsonPath: $.Employees.*.jurisdictions.*.isActive + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate + + + + - query: INSERT INTO health.eg_hrms_deactivationdetails(uuid, employeeid, reasonfordeactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.deactivationDetails.* + jsonMaps: + + - jsonPath: $.Employees.*.deactivationDetails.*.id + + - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].uuid + + - jsonPath: $.Employees.*.deactivationDetails.*.reasonForDeactivation + + - jsonPath: $.Employees.*.deactivationDetails.*.effectiveFrom + + - jsonPath: $.Employees.*.deactivationDetails.*.orderNo + + - jsonPath: $.Employees.*.deactivationDetails.*.remarks + + - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].tenantId + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO health.eg_hrms_reactivationdetails(uuid, employeeid, reasonforreactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.reactivationDetails.* + jsonMaps: + + - jsonPath: $.Employees.*.reactivationDetails.*.id + + - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].uuid + + - jsonPath: $.Employees.*.reactivationDetails.*.reasonForReactivation + + - jsonPath: $.Employees.*.reactivationDetails.*.effectiveFrom + + - jsonPath: $.Employees.*.reactivationDetails.*.orderNo + + - jsonPath: $.Employees.*.reactivationDetails.*.remarks + + - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].tenantId + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedDate From 486ca335934e93a7ff2b45a80673995fa3627875 Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Fri, 16 Feb 2024 14:09:14 +0530 Subject: [PATCH 105/158] updated project-persister.yml, removed additonalDetails field in delete topic --- health/egov-persister/project-persister.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index d5c6e8434..2850d2fa8 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -575,16 +575,13 @@ serviceMaps: transactionCodeJsonPath: $.id auditAttributeBasePath: $.* queryMaps: - - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id = ? + - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields - type: JSON - dbType: JSONB - jsonPath: $.*.id - version: 1.0 From 45e17d80c6c93a1dba03bd252aea826fabd2d199 Mon Sep 17 00:00:00 2001 From: Priyanka-eGov Date: Mon, 19 Feb 2024 11:38:54 +0530 Subject: [PATCH 106/158] HLM-4966 Updating household member related kafka topics --- health/egov-persister/household-persister.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/health/egov-persister/household-persister.yml b/health/egov-persister/household-persister.yml index 1b265656a..bc6f80b1c 100644 --- a/health/egov-persister/household-persister.yml +++ b/health/egov-persister/household-persister.yml @@ -145,7 +145,7 @@ serviceMaps: - version: 1.0 description: Persists household member. - fromTopic: save-household-health-member-topic + fromTopic: save-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD @@ -181,7 +181,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Update household member. - fromTopic: update-household-health-member-topic + fromTopic: update-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD @@ -209,7 +209,7 @@ serviceMaps: - jsonPath: $.*.householdId - version: 1.0 description: Deletes household Member. - fromTopic: delete-household-health-member-topic + fromTopic: delete-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD From 5fa62eb87d2017594d8aa3fdd5113e8d7cd681aa Mon Sep 17 00:00:00 2001 From: kanishq-egov <138671649+kanishq-egov@users.noreply.github.com> Date: Mon, 19 Feb 2024 12:07:42 +0530 Subject: [PATCH 107/158] Update household-indexer.yml --- health/egov-indexer/household-indexer.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/health/egov-indexer/household-indexer.yml b/health/egov-indexer/household-indexer.yml index 5a7eea34a..d873e6784 100644 --- a/health/egov-indexer/household-indexer.yml +++ b/health/egov-indexer/household-indexer.yml @@ -29,3 +29,12 @@ ServiceMaps: isBulk: true jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime + - topic: transformer-producer-amp-household-index-v1-topic + configKey: INDEX + indexes: + - name: amp-household-index-v1 + type: household + id: $.household.clientReferenceId + isBulk: true + jsonPath: $.* + timeStampField: $.household.auditDetails.createdTime From 824bdb0d00de5bd3dddc429cd6abe332e6c71039 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:29:45 +0530 Subject: [PATCH 108/158] Updated stock-persister.yml to store sender and receiver details (#2996) --- health/egov-persister/stock-persister.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/health/egov-persister/stock-persister.yml b/health/egov-persister/stock-persister.yml index 1336f6ab0..1b4794ce6 100644 --- a/health/egov-persister/stock-persister.yml +++ b/health/egov-persister/stock-persister.yml @@ -13,13 +13,12 @@ serviceMaps: transactionCodeJsonPath: $.clientReferenceId auditAttributeBasePath: $.* queryMaps: - - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, facilityId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, transactingPartyId, transactingPartyType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, senderType, senderId, receiverType, receiverId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id - jsonPath: $.*.clientReferenceId - jsonPath: $.*.tenantId - - jsonPath: $.*.facilityId - jsonPath: $.*.productVariantId - jsonPath: $.*.wayBillNumber - jsonPath: $.*.quantity @@ -27,8 +26,10 @@ serviceMaps: - jsonPath: $.*.referenceIdType - jsonPath: $.*.transactionType - jsonPath: $.*.transactionReason - - jsonPath: $.*.transactingPartyId - - jsonPath: $.*.transactingPartyType + - jsonPath: $.*.senderType + - jsonPath: $.*.senderId + - jsonPath: $.*.receiverType + - jsonPath: $.*.receiverId - jsonPath: $.*.additionalFields type: JSON dbType: JSONB @@ -56,12 +57,11 @@ serviceMaps: transactionCodeJsonPath: $.clientReferenceId auditAttributeBasePath: $.* queryMaps: - - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, facilityId=?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, transactingPartyId=?, transactingPartyType=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; + - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, senderType=?, senderId=?, receiverType=?, receiverId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId - jsonPath: $.*.dateOfEntry - - jsonPath: $.*.facilityId - jsonPath: $.*.productVariantId - jsonPath: $.*.wayBillNumber - jsonPath: $.*.quantity @@ -69,8 +69,10 @@ serviceMaps: - jsonPath: $.*.referenceIdType - jsonPath: $.*.transactionType - jsonPath: $.*.transactionReason - - jsonPath: $.*.transactingPartyId - - jsonPath: $.*.transactingPartyType + - jsonPath: $.*.senderType + - jsonPath: $.*.senderId + - jsonPath: $.*.receiverType + - jsonPath: $.*.receiverId - jsonPath: $.*.additionalFields type: JSON dbType: JSONB @@ -206,4 +208,4 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.*.id From b215809ca6f620bfb012d6df7f82476bc4bcab0e Mon Sep 17 00:00:00 2001 From: Lokendra Tyagi Date: Mon, 26 Feb 2024 15:26:34 +0530 Subject: [PATCH 109/158] added persister and indexer files and changed the topics for mukta services --- .../mukta-contractservices-indexer.yml | 267 ++++++++ .../mukta-estimateservices-indexer.yml | 250 +++++++ egov-indexer/mukta-expensebill-indexer.yml | 195 ++++++ egov-indexer/mukta-individual-indexer.yml | 190 ++++++ .../mukta-contract-service-persister.yml | 332 ++++++++++ egov-persister/mukta-estimate-service.yml | 316 +++++++++ .../mukta-expense-bill-payment-persister.yaml | 614 ++++++++++++++++++ ...mukta-expensebilling-service-persister.yml | 117 ++++ .../mukta-hrms-employee-persister.yml | 533 +++++++++++++++ egov-persister/mukta-individual-persister.yml | 278 ++++++++ 10 files changed, 3092 insertions(+) create mode 100644 egov-indexer/mukta-contractservices-indexer.yml create mode 100644 egov-indexer/mukta-estimateservices-indexer.yml create mode 100644 egov-indexer/mukta-expensebill-indexer.yml create mode 100644 egov-indexer/mukta-individual-indexer.yml create mode 100644 egov-persister/mukta-contract-service-persister.yml create mode 100644 egov-persister/mukta-estimate-service.yml create mode 100644 egov-persister/mukta-expense-bill-payment-persister.yaml create mode 100644 egov-persister/mukta-expensebilling-service-persister.yml create mode 100644 egov-persister/mukta-hrms-employee-persister.yml create mode 100644 egov-persister/mukta-individual-persister.yml diff --git a/egov-indexer/mukta-contractservices-indexer.yml b/egov-indexer/mukta-contractservices-indexer.yml new file mode 100644 index 000000000..90954d82d --- /dev/null +++ b/egov-indexer/mukta-contractservices-indexer.yml @@ -0,0 +1,267 @@ +ServiceMaps: + serviceName: mukta-contract-event indexer + version: 1.0.0 + mappings: + - topic: mukta-save-contract + configKey: INDEX + indexes: + - name: contract-inbox + type: general + id: $.id,$.tenantId + jsonPath: $.contract + timeStampField: $.auditDetails.createdTime + isBulk: false + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","contractStatus":"","contractNumber":"","supplementNumber":"","versionNumber":"","oldUuid":"","businessService":"","executingAuthority":"","contractType":"","totalContractedAmount":"","securityDeposit":"","agreementDate":"","issueDate":"","defectLiabilityPeriod":"","orgId":"","startDate":"","endDate":"","completionPeriod":"","status":"","lineItems":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{},"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.wfStatus + outJsonPath: $.Data.contractStatus + - inJsonPath: $.contractNumber + outJsonPath: $.Data.contractNumber + - inJsonPath: $.supplementNumber + outJsonPath: $.Data.supplementNumber + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.executingAuthority + outJsonPath: $.Data.executingAuthority + - inJsonPath: $.contractType + outJsonPath: $.Data.contractType + - inJsonPath: $.totalContractedAmount + outJsonPath: $.Data.totalContractedAmount + - inJsonPath: $.securityDeposit + outJsonPath: $.Data.securityDeposit + - inJsonPath: $.agreementDate + outJsonPath: $.Data.agreementDate + - inJsonPath: $.issueDate + outJsonPath: $.Data.issueDate + - inJsonPath: $.defectLiabilityPeriod + outJsonPath: $.Data.defectLiabilityPeriod + - inJsonPath: $.orgId + outJsonPath: $.Data.orgId + - inJsonPath: $.startDate + outJsonPath: $.Data.startDate + - inJsonPath: $.endDate + outJsonPath: $.Data.endDate + - inJsonPath: $.completionPeriod + outJsonPath: $.Data.completionPeriod + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.lineItems + outJsonPath: $.Data.lineItems + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.processInstance + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.contractNumber,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.jalandhar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.jalandhar" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + + - topic: mukta-update-contract + configKey: INDEX + indexes: + - name: contract-inbox + type: general + id: $.id,$.tenantId + jsonPath: $.contract + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data": { "id": "","tenantId": "","contractStatus":"","contractNumber": "","supplementNumber":"","versionNumber":"","oldUuid":"","businessService":"","executingAuthority": "","contractType": "","totalContractedAmount": "","securityDeposit": "","agreementDate": "","issueDate": "","defectLiabilityPeriod": "","orgId": "","startDate": "","endDate": "","completionPeriod": "","status": "","lineItems": [],"@timestamp": "timestamp","auditDetails": {},"additionalDetails": {},"currentProcessInstance": {},"history": {}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.wfStatus + outJsonPath: $.Data.contractStatus + - inJsonPath: $.contractNumber + outJsonPath: $.Data.contractNumber + - inJsonPath: $.supplementNumber + outJsonPath: $.Data.supplementNumber + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.executingAuthority + outJsonPath: $.Data.executingAuthority + - inJsonPath: $.contractType + outJsonPath: $.Data.contractType + - inJsonPath: $.totalContractedAmount + outJsonPath: $.Data.totalContractedAmount + - inJsonPath: $.securityDeposit + outJsonPath: $.Data.securityDeposit + - inJsonPath: $.agreementDate + outJsonPath: $.Data.agreementDate + - inJsonPath: $.issueDate + outJsonPath: $.Data.issueDate + - inJsonPath: $.defectLiabilityPeriod + outJsonPath: $.Data.defectLiabilityPeriod + - inJsonPath: $.orgId + outJsonPath: $.Data.orgId + - inJsonPath: $.startDate + outJsonPath: $.Data.startDate + - inJsonPath: $.endDate + outJsonPath: $.Data.endDate + - inJsonPath: $.completionPeriod + outJsonPath: $.Data.completionPeriod + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.lineItems + outJsonPath: $.Data.lineItems + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.processInstance + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.contractNumber,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.jalandhar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.jalandhar" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + + + - topic: mukta-contract-legacyIndex + configKey: LEGACYINDEX + indexes: + - name: contract-inbox-legacyindex + type: general + id: $.id,$.tenantId + isBulk: true + jsonPath: $.contract.* + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data": { "id": "","tenantId": "","contractStatus":"","contractNumber": "","supplementNumber":"","versionNumber":"","oldUuid":"","businessService":"","executingAuthority": "","contractType": "","totalContractedAmount": "","securityDeposit": "","agreementDate": "","issueDate": "","defectLiabilityPeriod": "","orgId": "","startDate": "","endDate": "","completionPeriod": "","status": "","lineItems": [ ],"@timestamp": "timestamp","auditDetails": { },"additionalDetails": { },"currentProcessInstance": { },"history": { } } } + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.wfStatus + outJsonPath: $.Data.contractStatus + - inJsonPath: $.contractNumber + outJsonPath: $.Data.contractNumber + - inJsonPath: $.supplementNumber + outJsonPath: $.Data.supplementNumber + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.executingAuthority + outJsonPath: $.Data.executingAuthority + - inJsonPath: $.contractType + outJsonPath: $.Data.contractType + - inJsonPath: $.totalContractedAmount + outJsonPath: $.Data.totalContractedAmount + - inJsonPath: $.securityDeposit + outJsonPath: $.Data.securityDeposit + - inJsonPath: $.agreementDate + outJsonPath: $.Data.agreementDate + - inJsonPath: $.issueDate + outJsonPath: $.Data.issueDate + - inJsonPath: $.defectLiabilityPeriod + outJsonPath: $.Data.defectLiabilityPeriod + - inJsonPath: $.orgId + outJsonPath: $.Data.orgId + - inJsonPath: $.startDate + outJsonPath: $.Data.startDate + - inJsonPath: $.endDate + outJsonPath: $.Data.endDate + - inJsonPath: $.completionPeriod + outJsonPath: $.Data.completionPeriod + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.lineItems + outJsonPath: $.Data.lineItems + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.processInstance + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.contractNumber,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.jalandhar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.jalandhar" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + + - topic: mukta-migrate-contract + configKey: INDEX + indexes: + - name: contract-inbox-migrate + type: general + id: $.id,$.tenantId + jsonPath: $.contract + timeStampField: $.auditDetails.createdTime + isBulk: false + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","contractStatus":"","contractNumber":"","executingAuthority":"","contractType":"","totalContractedAmount":"","securityDeposit":"","agreementDate":"","issueDate":"","defectLiabilityPeriod":"","orgId":"","startDate":"","endDate":"","completionPeriod":"","status":"","lineItems":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{},"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.wfStatus + outJsonPath: $.Data.contractStatus + - inJsonPath: $.contractNumber + outJsonPath: $.Data.contractNumber + - inJsonPath: $.executingAuthority + outJsonPath: $.Data.executingAuthority + - inJsonPath: $.contractType + outJsonPath: $.Data.contractType + - inJsonPath: $.totalContractedAmount + outJsonPath: $.Data.totalContractedAmount + - inJsonPath: $.securityDeposit + outJsonPath: $.Data.securityDeposit + - inJsonPath: $.agreementDate + outJsonPath: $.Data.agreementDate + - inJsonPath: $.issueDate + outJsonPath: $.Data.issueDate + - inJsonPath: $.defectLiabilityPeriod + outJsonPath: $.Data.defectLiabilityPeriod + - inJsonPath: $.orgId + outJsonPath: $.Data.orgId + - inJsonPath: $.startDate + outJsonPath: $.Data.startDate + - inJsonPath: $.endDate + outJsonPath: $.Data.endDate + - inJsonPath: $.completionPeriod + outJsonPath: $.Data.completionPeriod + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.lineItems + outJsonPath: $.Data.lineItems + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.processInstance + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.contractNumber,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pb.jalandhar","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pb.jalandhar" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history \ No newline at end of file diff --git a/egov-indexer/mukta-estimateservices-indexer.yml b/egov-indexer/mukta-estimateservices-indexer.yml new file mode 100644 index 000000000..203ef910a --- /dev/null +++ b/egov-indexer/mukta-estimateservices-indexer.yml @@ -0,0 +1,250 @@ +ServiceMaps: + serviceName: mukta-estimate-event indexer + version: 1.0.0 + mappings: + - topic: mukta-enrich-estimate + configKey: INDEX + indexes: + - name: estimate-inbox-v3 + type: general + id: $.id,$.tenantId + jsonPath: $.estimate + timeStampField: $.auditDetails.createdTime + isBulk: false + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"project":{},"currentProcessInstance":[],"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.projectId + outJsonPath: $.Data.projectId + - inJsonPath: $.proposalDate + outJsonPath: $.Data.proposalDate + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.referenceNumber + outJsonPath: $.Data.referenceNumber + - inJsonPath: $.description + outJsonPath: $.Data.description + - inJsonPath: $.executingDepartment + outJsonPath: $.Data.executingDepartment + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.estimateDetails + outJsonPath: $.Data.estimateDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.project + outJsonPath: $.Data.project + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.estimateNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.jalandhar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.jalandhar"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + + - topic: mukta-update-estimate + configKey: INDEX + indexes: + - name: estimate-inbox-v3 + type: general + id: $.id,$.tenantId + jsonPath: $.estimate + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{}, "history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.projectId + outJsonPath: $.Data.projectId + - inJsonPath: $.proposalDate + outJsonPath: $.Data.proposalDate + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.referenceNumber + outJsonPath: $.Data.referenceNumber + - inJsonPath: $.description + outJsonPath: $.Data.description + - inJsonPath: $.executingDepartment + outJsonPath: $.Data.executingDepartment + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.estimateDetails + outJsonPath: $.Data.estimateDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.estimateNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.jalandhar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.jalandhar"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + + - topic: mukta-estimate-legacyIndex + configKey: LEGACYINDEX + indexes: + - name: estimate-inbox-legacyindex + type: general + id: $.id,$.tenantId + isBulk: true + jsonPath: $.estimates.* + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"currentProcessInstance":{}, "history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.projectId + outJsonPath: $.Data.projectId + - inJsonPath: $.proposalDate + outJsonPath: $.Data.proposalDate + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.referenceNumber + outJsonPath: $.Data.referenceNumber + - inJsonPath: $.description + outJsonPath: $.Data.description + - inJsonPath: $.executingDepartment + outJsonPath: $.Data.executingDepartment + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.estimateDetails + outJsonPath: $.Data.estimateDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.estimateNumber,history=false,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.jalandhar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.jalandhar"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.currentProcessInstance + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.estimateNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.jalandhar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.jalandhar"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + + - topic: mukta-migrate-estimate + configKey: INDEX + indexes: + - name: estimate-inbox-v3-migrate + type: general + id: $.id,$.tenantId + jsonPath: $.estimate + timeStampField: $.auditDetails.createdTime + isBulk: false + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","estimateNumber":"","revisionNumber":"","businessService":"","versionNumber":"","oldUuid":"","projectId":"","proposalDate":"","status":"","wfStatus":"","name":"","referenceNumber":"","description":"","executingDepartment":"","address":{},"estimateDetails":[],"@timestamp":"timestamp","auditDetails":{},"additionalDetails":{},"project":{},"currentProcessInstance":[],"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.estimateNumber + outJsonPath: $.Data.estimateNumber + - inJsonPath: $.revisionNumber + outJsonPath: $.Data.revisionNumber + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.versionNumber + outJsonPath: $.Data.versionNumber + - inJsonPath: $.oldUuid + outJsonPath: $.Data.oldUuid + - inJsonPath: $.projectId + outJsonPath: $.Data.projectId + - inJsonPath: $.proposalDate + outJsonPath: $.Data.proposalDate + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.wfStatus + outJsonPath: $.Data.wfStatus + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.referenceNumber + outJsonPath: $.Data.referenceNumber + - inJsonPath: $.description + outJsonPath: $.Data.description + - inJsonPath: $.executingDepartment + outJsonPath: $.Data.executingDepartment + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.estimateDetails + outJsonPath: $.Data.estimateDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.project + outJsonPath: $.Data.project + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.currentProcessInstance + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.estimateNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pb.jalandhar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.jalandhar"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history \ No newline at end of file diff --git a/egov-indexer/mukta-expensebill-indexer.yml b/egov-indexer/mukta-expensebill-indexer.yml new file mode 100644 index 000000000..2c9b456c7 --- /dev/null +++ b/egov-indexer/mukta-expensebill-indexer.yml @@ -0,0 +1,195 @@ +ServiceMaps: + serviceName: mukta-expense-bill indexer + version: 1.0.0 + mappings: + - topic: mukta-expense-bill-create + configKey: INDEX + indexes: + - name: expense-bill-index + type: general + id: $.id,$.tenantId + jsonPath: $.bill + isBulk: false + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","billNumber":"","billDate":"","dueDate":"","totalAmount":"","totalPaidAmount":"","businessService":"","referenceId":"","fromPeriod":"","toPeriod":"","paymentStatus":"","status":"","payer":{},"billDetails":[],"additionalDetails":{},"auditDetails":{},"currentProcessInstance":{},"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.billNumber + outJsonPath: $.Data.billNumber + - inJsonPath: $.billDate + outJsonPath: $.Data.billDate + - inJsonPath: $.dueDate + outJsonPath: $.Data.dueDate + - inJsonPath: $.totalAmount + outJsonPath: $.Data.totalAmount + - inJsonPath: $.totalPaidAmount + outJsonPath: $.Data.totalPaidAmount + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.referenceId + outJsonPath: $.Data.referenceId + - inJsonPath: $.fromPeriod + outJsonPath: $.Data.fromPeriod + - inJsonPath: $.toPeriod + outJsonPath: $.Data.toPeriod + - inJsonPath: $.paymentStatus + outJsonPath: $.Data.paymentStatus + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.payer + outJsonPath: $.Data.payer + - inJsonPath: $.billDetails + outJsonPath: $.Data.billDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails.locality + outJsonPath: $.Data.locality + - inJsonPath: $.additionalDetails.ward + outJsonPath: $.Data.ward + - inJsonPath: $.additionalDetails.projectName + outJsonPath: $.Data.projectName + - inJsonPath: $.additionalDetails.orgName + outJsonPath: $.Data.orgName + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.billNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.bill","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"od","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"od"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance + + - topic: mukta-expense-bill-update + configKey: INDEX + indexes: + - name: expense-bill-index + type: general + id: $.id,$.tenantId + jsonPath: $.bill + isBulk: false + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","billNumber":"","billDate":"","dueDate":"","totalAmount":"","totalPaidAmount":"","businessService":"","referenceId":"","fromPeriod":"","toPeriod":"","paymentStatus":"","status":"","payer":{},"billDetails":[],"additionalDetails":{},"auditDetails":{},"currentProcessInstance":{},"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.billNumber + outJsonPath: $.Data.billNumber + - inJsonPath: $.billDate + outJsonPath: $.Data.billDate + - inJsonPath: $.dueDate + outJsonPath: $.Data.dueDate + - inJsonPath: $.totalAmount + outJsonPath: $.Data.totalAmount + - inJsonPath: $.totalPaidAmount + outJsonPath: $.Data.totalPaidAmount + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.referenceId + outJsonPath: $.Data.referenceId + - inJsonPath: $.fromPeriod + outJsonPath: $.Data.fromPeriod + - inJsonPath: $.toPeriod + outJsonPath: $.Data.toPeriod + - inJsonPath: $.paymentStatus + outJsonPath: $.Data.paymentStatus + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.payer + outJsonPath: $.Data.payer + - inJsonPath: $.billDetails + outJsonPath: $.Data.billDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails.locality + outJsonPath: $.Data.locality + - inJsonPath: $.additionalDetails.ward + outJsonPath: $.Data.ward + - inJsonPath: $.additionalDetails.projectName + outJsonPath: $.Data.projectName + - inJsonPath: $.additionalDetails.orgName + outJsonPath: $.Data.orgName + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.billNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.bill","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"statea.cityone","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"statea.cityone"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance + + - topic: mukta-expense-bill-legacyIndex + configKey: LEGACYINDEX + indexes: + - name: expense-bill-legacyIndex + type: general + id: $.id,$.tenantId + jsonPath: $.bill + isBulk: false + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data":{"id":"","tenantId":"","billNumber":"","billDate":"","dueDate":"","totalAmount":"","totalPaidAmount":"","businessService":"","referenceId":"","fromPeriod":"","toPeriod":"","paymentStatus":"","status":"","payer":{},"billDetails":[],"additionalDetails":{},"auditDetails":{},"history":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.billNumber + outJsonPath: $.Data.billNumber + - inJsonPath: $.billDate + outJsonPath: $.Data.billDate + - inJsonPath: $.dueDate + outJsonPath: $.Data.dueDate + - inJsonPath: $.totalAmount + outJsonPath: $.Data.totalAmount + - inJsonPath: $.totalPaidAmount + outJsonPath: $.Data.totalPaidAmount + - inJsonPath: $.businessService + outJsonPath: $.Data.businessService + - inJsonPath: $.referenceId + outJsonPath: $.Data.referenceId + - inJsonPath: $.fromPeriod + outJsonPath: $.Data.fromPeriod + - inJsonPath: $.toPeriod + outJsonPath: $.Data.toPeriod + - inJsonPath: $.paymentStatus + outJsonPath: $.Data.paymentStatus + - inJsonPath: $.status + outJsonPath: $.Data.status + - inJsonPath: $.payer + outJsonPath: $.Data.payer + - inJsonPath: $.billDetails + outJsonPath: $.Data.billDetails + - inJsonPath: $.additionalDetails + outJsonPath: $.Data.additionalDetails + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - inJsonPath: $.additionalDetails.locality + outJsonPath: $.Data.locality + - inJsonPath: $.additionalDetails.ward + outJsonPath: $.Data.ward + - inJsonPath: $.additionalDetails.projectName + outJsonPath: $.Data.projectName + - inJsonPath: $.additionalDetails.orgName + outJsonPath: $.Data.orgName + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.billNumber,history=true,tenantId=$.tenantId + apiRequest: {"RequestInfo":{"apiId":"org.egov.bill","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"statea.cityone","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"statea.cityone"}]}}} + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + - inJsonPath: $.ProcessInstances[0] + outJsonPath: $.Data.currentProcessInstance diff --git a/egov-indexer/mukta-individual-indexer.yml b/egov-indexer/mukta-individual-indexer.yml new file mode 100644 index 000000000..cb83dd38d --- /dev/null +++ b/egov-indexer/mukta-individual-indexer.yml @@ -0,0 +1,190 @@ +ServiceMaps: + serviceName: mukta-individual + version: 1.0.0 + mappings: + - topic: mukta-save-individual-topic + configKey: INDEX + indexes: + - name: individual-index-v1 + type: individual + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: { "Data":{"id":"","individualId":"","tenantId":"","clientReferenceId":"","userId":"","name":{},"dateOfBirth":"","gender":"","bloodGroup":"","mobileNumber":"","altContactNumber":"","email":"","address":[],"fatherName":"","husbandName":"","relationship":"","identifiers":[],"skills":[],"photo":"","additionalFields":{},"socialCategoryKey":"","socialCategoryValue":"","isDeleted":"","rowVersion":"","@timestamp":"","auditDetails":{}}} + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.individualId + outJsonPath: $.Data.individualId + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.clientReferenceId + outJsonPath: $.Data.clientReferenceId + - inJsonPath: $.userId + outJsonPath: $.Data.userId + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.dateOfBirth + outJsonPath: $.Data.dateOfBirth + - inJsonPath: $.gender + outJsonPath: $.Data.gender + - inJsonPath: $.bloodGroup + outJsonPath: $.Data.bloodGroup + - inJsonPath: $.mobileNumber + outJsonPath: $.Data.mobileNumber + - inJsonPath: $.altContactNumber + outJsonPath: $.Data.altContactNumber + - inJsonPath: $.email + outJsonPath: $.Data.email + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.fatherName + outJsonPath: $.Data.fatherName + - inJsonPath: $.husbandName + outJsonPath: $.Data.husbandName + - inJsonPath: $.relationship + outJsonPath: $.Data.relationship + - inJsonPath: $.identifiers + outJsonPath: $.Data.identifiers + - inJsonPath: $.skills + outJsonPath: $.Data.skills + - inJsonPath: $.photo + outJsonPath: $.Data.photo + - inJsonPath: $.additionalFields + outJsonPath: $.Data.additionalFields + - inJsonPath: $.additionalFields.fields[0].key + outJsonPath: $.Data.socialCategoryKey + - inJsonPath: $.additionalFields.fields[0].value + outJsonPath: $.Data.socialCategoryValue + - inJsonPath: $.isDeleted + outJsonPath: $.Data.isDeleted + - inJsonPath: $.rowVersion + outJsonPath: $.Data.rowVersion + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - topic: mukta-update-individual-topic + configKey: INDEX + indexes: + - name: individual-index-v1 + type: individual + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + customJsonMapping: + indexMapping: { "Data": { "id": "","individualId": "","tenantId": "","clientReferenceId": "","userId": "","name": { },"dateOfBirth": "","gender": "","bloodGroup": "","mobileNumber": "","altContactNumber": "","email": "","address": [ ],"fatherName": "","husbandName": "","relationship": "","identifiers": [ ],"skills": [ ],"photo": "","additionalFields": { },"socialCategoryKey":"","socialCategoryValue":"","isDeleted": "","rowVersion": "","@timestamp": "","auditDetails": { } } } + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.individualId + outJsonPath: $.Data.individualId + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.clientReferenceId + outJsonPath: $.Data.clientReferenceId + - inJsonPath: $.userId + outJsonPath: $.Data.userId + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.dateOfBirth + outJsonPath: $.Data.dateOfBirth + - inJsonPath: $.gender + outJsonPath: $.Data.gender + - inJsonPath: $.bloodGroup + outJsonPath: $.Data.bloodGroup + - inJsonPath: $.mobileNumber + outJsonPath: $.Data.mobileNumber + - inJsonPath: $.altContactNumber + outJsonPath: $.Data.altContactNumber + - inJsonPath: $.email + outJsonPath: $.Data.email + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.fatherName + outJsonPath: $.Data.fatherName + - inJsonPath: $.husbandName + outJsonPath: $.Data.husbandName + - inJsonPath: $.relationship + outJsonPath: $.Data.relationship + - inJsonPath: $.identifiers + outJsonPath: $.Data.identifiers + - inJsonPath: $.skills + outJsonPath: $.Data.skills + - inJsonPath: $.photo + outJsonPath: $.Data.photo + - inJsonPath: $.additionalFields + outJsonPath: $.Data.additionalFields + - inJsonPath: $.additionalFields.fields[0].key + outJsonPath: $.Data.socialCategoryKey + - inJsonPath: $.additionalFields.fields[0].value + outJsonPath: $.Data.socialCategoryValue + - inJsonPath: $.isDeleted + outJsonPath: $.Data.isDeleted + - inJsonPath: $.rowVersion + outJsonPath: $.Data.rowVersion + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails + - topic: mukta-delete-individual-topic + configKey: INDEX + indexes: + - name: individual-index-v1 + type: individual + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + customJsonMapping: + indexMapping: { "Data": { "id": "","individualId": "","tenantId": "","clientReferenceId": "","userId": "","name": { },"dateOfBirth": "","gender": "","bloodGroup": "","mobileNumber": "","altContactNumber": "","email": "","address": [ ],"fatherName": "","husbandName": "","relationship": "","identifiers": [ ],"skills": [ ],"photo": "","additionalFields": { },"socialCategoryKey":"","socialCategoryValue":"","isDeleted": "","rowVersion": "","@timestamp": "","auditDetails": { } } } + fieldMapping: + - inJsonPath: $.id + outJsonPath: $.Data.id + - inJsonPath: $.individualId + outJsonPath: $.Data.individualId + - inJsonPath: $.tenantId + outJsonPath: $.Data.tenantId + - inJsonPath: $.clientReferenceId + outJsonPath: $.Data.clientReferenceId + - inJsonPath: $.userId + outJsonPath: $.Data.userId + - inJsonPath: $.name + outJsonPath: $.Data.name + - inJsonPath: $.dateOfBirth + outJsonPath: $.Data.dateOfBirth + - inJsonPath: $.gender + outJsonPath: $.Data.gender + - inJsonPath: $.bloodGroup + outJsonPath: $.Data.bloodGroup + - inJsonPath: $.mobileNumber + outJsonPath: $.Data.mobileNumber + - inJsonPath: $.altContactNumber + outJsonPath: $.Data.altContactNumber + - inJsonPath: $.email + outJsonPath: $.Data.email + - inJsonPath: $.address + outJsonPath: $.Data.address + - inJsonPath: $.fatherName + outJsonPath: $.Data.fatherName + - inJsonPath: $.husbandName + outJsonPath: $.Data.husbandName + - inJsonPath: $.relationship + outJsonPath: $.Data.relationship + - inJsonPath: $.identifiers + outJsonPath: $.Data.identifiers + - inJsonPath: $.skills + outJsonPath: $.Data.skills + - inJsonPath: $.photo + outJsonPath: $.Data.photo + - inJsonPath: $.additionalFields + outJsonPath: $.Data.additionalFields + - inJsonPath: $.additionalFields.fields[0].key + outJsonPath: $.Data.socialCategoryKey + - inJsonPath: $.additionalFields.fields[0].value + outJsonPath: $.Data.socialCategoryValue + - inJsonPath: $.isDeleted + outJsonPath: $.Data.isDeleted + - inJsonPath: $.rowVersion + outJsonPath: $.Data.rowVersion + - inJsonPath: $.auditDetails + outJsonPath: $.Data.auditDetails diff --git a/egov-persister/mukta-contract-service-persister.yml b/egov-persister/mukta-contract-service-persister.yml new file mode 100644 index 000000000..7b82e87bf --- /dev/null +++ b/egov-persister/mukta-contract-service-persister.yml @@ -0,0 +1,332 @@ +serviceMaps: + serviceName: mukta-contract-service + mappings: + - version: 1.0 + name: contract + description: Persists contract details in eg_wms_contract table + fromTopic: mukta-save-contract + isTransaction: true + isAuditEnabled: true + module: CT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.contractNumber + auditAttributeBasePath: $.contract + queryMaps: + - query: INSERT INTO eg_wms_contract (id, contract_number, supplement_number, version_number, old_uuid, business_service, tenant_id , wf_status, executing_authority, contract_type, total_contracted_amount, security_deposit, agreement_date, defect_liability_period, org_id, start_date, end_date, status, additional_details, created_by, last_modified_by, created_time, last_modified_time,completion_period) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.contract + jsonMaps: + - jsonPath: $.contract.id + + - jsonPath: $.contract.contractNumber + + - jsonPath: $.contract.supplementNumber + + - jsonPath: $.contract.versionNumber + + - jsonPath: $.contract.oldUuid + + - jsonPath: $.contract.businessService + + - jsonPath: $.contract.tenantId + + - jsonPath: $.contract.wfStatus + + - jsonPath: $.contract.executingAuthority + + - jsonPath: $.contract.contractType + + - jsonPath: $.contract.totalContractedAmount + + - jsonPath: $.contract.securityDeposit + + - jsonPath: $.contract.agreementDate + + - jsonPath: $.contract.defectLiabilityPeriod + + - jsonPath: $.contract.orgId + + - jsonPath: $.contract.startDate + + - jsonPath: $.contract.endDate + + - jsonPath: $.contract.status + + - jsonPath: $.contract.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract.auditDetails.createdBy + + - jsonPath: $.contract.auditDetails.lastModifiedBy + + - jsonPath: $.contract.auditDetails.createdTime + + - jsonPath: $.contract.auditDetails.lastModifiedTime + + - jsonPath: $.contract.completionPeriod + + - query: INSERT INTO eg_wms_contract_documents (id, filestore_id, document_type, document_uid, status, contract_id, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: $.contract.documents.* + jsonMaps: + - jsonPath: $.contract.documents.*.id + + - jsonPath: $.contract.documents.*.fileStore + + - jsonPath: $.contract.documents.*.documentType + + - jsonPath: $.contract.documents.*.documentUid + + - jsonPath: $.contract.documents.*.status + + - jsonPath: $.contract[?({id} in @.documents[*].id)].id + + - jsonPath: $.contract.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.createdBy + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.createdTime + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_wms_contract_line_items (id, estimate_id, estimate_line_item_id, contract_line_item_ref, contract_id, tenant_id, unit_rate, no_of_unit, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.contract.lineItems.* + jsonMaps: + - jsonPath: $.contract.lineItems.*.id + + - jsonPath: $.contract.lineItems.*.estimateId + + - jsonPath: $.contract.lineItems.*.estimateLineItemId + + - jsonPath: $.contract.lineItems.*.contractLineItemRef + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].id + + - jsonPath: $.contract.lineItems.*.tenantId + + - jsonPath: $.contract.lineItems.*.unitRate + + - jsonPath: $.contract.lineItems.*.noOfunit + + - jsonPath: $.contract.lineItems.*.status + + - jsonPath: $.contract.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.createdBy + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.createdTime + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.lastModifiedTime + + - query: INSERT INTO eg_wms_contract_amount_breakups (id, estimate_amount_breakup_id, line_item_id, amount, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?); + basePath: $.contract.lineItems.*.amountBreakups.* + jsonMaps: + - jsonPath: $.contract.lineItems.*.amountBreakups.*.id + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.estimateAmountBreakupId + + - jsonPath: $.contract.lineItems[?({id} in @.amountBreakups[*].id)].id + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.amount + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.status + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.createdBy + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.createdTime + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.lastModifiedTime + + - version: 1.0 + name: contract + description: Update contract details in eg_wms_contract table + fromTopic: mukta-update-contract + isTransaction: true + module: CT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.contractNumber + auditAttributeBasePath: $.contract + queryMaps: + - query: UPDATE eg_wms_contract set wf_status = ?, executing_authority = ?, contract_type = ?, total_contracted_amount = ?, security_deposit = ?, agreement_date = ?, defect_liability_period = ?, start_date = ?, end_date = ?, status = ?, additional_details = ?, created_by = ?, last_modified_by = ?, created_time = ?, last_modified_time = ?, issue_date = ?, completion_period = ?, org_id = ? where id = ? ; + basePath: $.contract + jsonMaps: + - jsonPath: $.contract.wfStatus + + - jsonPath: $.contract.executingAuthority + + - jsonPath: $.contract.contractType + + - jsonPath: $.contract.totalContractedAmount + + - jsonPath: $.contract.securityDeposit + + - jsonPath: $.contract.agreementDate + + - jsonPath: $.contract.defectLiabilityPeriod + + - jsonPath: $.contract.startDate + + - jsonPath: $.contract.endDate + + - jsonPath: $.contract.status + + - jsonPath: $.contract.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract.auditDetails.createdBy + + - jsonPath: $.contract.auditDetails.lastModifiedBy + + - jsonPath: $.contract.auditDetails.createdTime + + - jsonPath: $.contract.auditDetails.lastModifiedTime + + - jsonPath: $.contract.issueDate + + - jsonPath: $.contract.completionPeriod + + - jsonPath: $.contract.orgId + + - jsonPath: $.contract.id + + - query: INSERT INTO eg_wms_contract_documents (id, filestore_id, document_type, document_uid, status, contract_id, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET filestore_id = ?, document_type = ? , additional_details = ? ,last_modified_by = ? ,last_modified_time = ?, status = ?; + basePath: $.contract.documents.* + jsonMaps: + - jsonPath: $.contract.documents.*.id + + - jsonPath: $.contract.documents.*.fileStore + + - jsonPath: $.contract.documents.*.documentType + + - jsonPath: $.contract.documents.*.documentUid + + - jsonPath: $.contract.documents.*.status + + - jsonPath: $.contract[?({id} in @.documents[*].id)].id + + - jsonPath: $.contract.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.createdBy + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.createdTime + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.contract.documents.*.fileStore + + - jsonPath: $.contract.documents.*.documentType + + - jsonPath: $.contract.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.documents[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.contract.documents.*.status + + - query: INSERT INTO eg_wms_contract_line_items (id, estimate_id, estimate_line_item_id, contract_line_item_ref, contract_id, tenant_id, unit_rate, no_of_unit, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET unit_rate = ?, no_of_unit = ?, status = ?, additional_details = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.contract.lineItems.* + jsonMaps: + - jsonPath: $.contract.lineItems.*.id + + - jsonPath: $.contract.lineItems.*.estimateId + + - jsonPath: $.contract.lineItems.*.estimateLineItemId + + - jsonPath: $.contract.lineItems.*.contractLineItemRef + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].id + + - jsonPath: $.contract.lineItems.*.tenantId + + - jsonPath: $.contract.lineItems.*.unitRate + + - jsonPath: $.contract.lineItems.*.noOfunit + + - jsonPath: $.contract.lineItems.*.status + + - jsonPath: $.contract.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.createdBy + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.createdTime + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.contract.lineItems.*.unitRate + + - jsonPath: $.contract.lineItems.*.noOfunit + + - jsonPath: $.contract.lineItems.*.status + + - jsonPath: $.contract.documents.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.lineItems[*].id)].auditDetails.lastModifiedTime + + - query: INSERT INTO eg_wms_contract_amount_breakups (id, estimate_amount_breakup_id, line_item_id, amount, status, additional_details, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET amount = ?, status = ?, additional_details = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.contract.lineItems.*.amountBreakups.* + jsonMaps: + - jsonPath: $.contract.lineItems.*.amountBreakups.*.id + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.estimateAmountBreakupId + + - jsonPath: $.contract.lineItems[?({id} in @.amountBreakups[*].id)].id + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.amount + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.status + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.createdBy + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.createdTime + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.lastModifiedTime + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.amount + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.status + + - jsonPath: $.contract.lineItems.*.amountBreakups.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.contract[?({id} in @.lineItems.*.amountBreakups[*].id)].auditDetails.lastModifiedTime \ No newline at end of file diff --git a/egov-persister/mukta-estimate-service.yml b/egov-persister/mukta-estimate-service.yml new file mode 100644 index 000000000..46156a199 --- /dev/null +++ b/egov-persister/mukta-estimate-service.yml @@ -0,0 +1,316 @@ +serviceMaps: + serviceName: mukta-estimate-service + mappings: + - version: 1.0 + name: Estimate + description: Persists estimate details + fromTopic: mukta-save-estimate + isTransaction: true + isAuditEnabled: true + module: EST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.estimateNumber + auditAttributeBasePath: $.estimate + queryMaps: + - query: INSERT INTO eg_wms_estimate(id,tenant_id,estimate_number,project_id,proposal_date,status,wf_status,name,reference_number,description,executing_department,additional_details,created_by,last_modified_by,created_time,last_modified_time,revision_number,version_number,old_uuid,business_service) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + + basePath: $.estimate + jsonMaps: + - jsonPath: $.estimate.id + + - jsonPath: $.estimate.tenantId + + - jsonPath: $.estimate.estimateNumber + + - jsonPath: $.estimate.projectId + + - jsonPath: $.estimate.proposalDate + + - jsonPath: $.estimate.status + + - jsonPath: $.estimate.wfStatus + + - jsonPath: $.estimate.name + + - jsonPath: $.estimate.referenceNumber + + - jsonPath: $.estimate.description + + - jsonPath: $.estimate.executingDepartment + + - jsonPath: $.estimate.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.estimate.auditDetails.createdBy + + - jsonPath: $.estimate.auditDetails.lastModifiedBy + + - jsonPath: $.estimate.auditDetails.createdTime + + - jsonPath: $.estimate.auditDetails.lastModifiedTime + + - jsonPath: $.estimate.revisionNumber + + - jsonPath: $.estimate.versionNumber + + - jsonPath: $.estimate.oldUuid + + - jsonPath: $.estimate.businessService + + - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction, old_uuid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + + basePath: $.estimate.estimateDetails.* + jsonMaps: + - jsonPath: $.estimate.estimateDetails.*.id + + - jsonPath: $.estimate.tenantId + + - jsonPath: $.estimate.id + + - jsonPath: $.estimate.estimateDetails.*.sorId + + - jsonPath: $.estimate.estimateDetails.*.category + + - jsonPath: $.estimate.estimateDetails.*.name + + - jsonPath: $.estimate.estimateDetails.*.description + + - jsonPath: $.estimate.estimateDetails.*.unitRate + + - jsonPath: $.estimate.estimateDetails.*.noOfunit + + - jsonPath: $.estimate.estimateDetails.*.uom + + - jsonPath: $.estimate.estimateDetails.*.uomValue + + - jsonPath: $.estimate.estimateDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.estimate.estimateDetails.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.length + + - jsonPath: $.estimate.estimateDetails.*.width + + - jsonPath: $.estimate.estimateDetails.*.height + + - jsonPath: $.estimate.estimateDetails.*.quantity + + - jsonPath: $.estimate.estimateDetails.*.isDeduction + + - jsonPath: $.estimate.estimateDetails.*.previousLineItemId + + - query: INSERT INTO eg_wms_estimate_address(id,tenant_id,estimate_id,latitude,longitude,address_number,address_line_1,address_line_2,landmark,city,pin_code,detail) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + + basePath: $.estimate.address + jsonMaps: + - jsonPath: $.estimate.address.id + + - jsonPath: $.estimate.address.tenantId + + - jsonPath: $.estimate.id + + - jsonPath: $.estimate.address.latitude + + - jsonPath: $.estimate.address.longitude + + - jsonPath: $.estimate.address.addressNumber + + - jsonPath: $.estimate.address.addressLine1 + + - jsonPath: $.estimate.address.addressLine2 + + - jsonPath: $.estimate.address.landmark + + - jsonPath: $.estimate.address.city + + - jsonPath: $.estimate.address.pincode + + - jsonPath: $.estimate.address.detail + + - query: INSERT INTO eg_wms_estimate_amount_detail(id,tenant_id,estimate_detail_id,type,is_active,amount,additional_details) VALUES (?,?,?,?,?,?,?); + + basePath: $.estimate.estimateDetails.*.amountDetail.* + jsonMaps: + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.id + + - jsonPath: $.estimate.tenantId + + - jsonPath: $.estimate.estimateDetails[*][?({id} in @.amountDetail[*].id)].id + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.type + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.amount + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + description: Update estimate + fromTopic: mukta-update-estimate + isTransaction: true + isAuditEnabled: true + module: EST + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.estimateNumber + auditAttributeBasePath: $.estimate + queryMaps: + - query: UPDATE eg_wms_estimate set status=?, wf_status=?, name=?, reference_number=?, description=?, executing_department=?, additional_details=?,last_modified_by=?, last_modified_time=? where id=?; + basePath: $.estimate + jsonMaps: + - jsonPath: $.estimate.status + + - jsonPath: $.estimate.wfStatus + + - jsonPath: $.estimate.name + + - jsonPath: $.estimate.referenceNumber + + - jsonPath: $.estimate.description + + - jsonPath: $.estimate.executingDepartment + + - jsonPath: $.estimate.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.estimate.auditDetails.lastModifiedBy + + - jsonPath: $.estimate.auditDetails.lastModifiedTime + + - jsonPath: $.estimate.id + + - query: INSERT INTO eg_wms_estimate_detail(id,tenant_id,estimate_id,sor_id,category,name,description,unit_rate,no_of_unit,uom,uom_value,additional_details,is_active,length,width,height,quantity,is_deduction) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET sor_id=?, category=?, name=?, description=?,unit_rate=?, no_of_unit=?,uom=?, uom_value=?, additional_details=?,is_active = ?,length = ?,width = ?,height = ?,quantity = ?,is_deduction = ?; + + basePath: $.estimate.estimateDetails.* + jsonMaps: + - jsonPath: $.estimate.estimateDetails.*.id + + - jsonPath: $.estimate.tenantId + + - jsonPath: $.estimate.id + + - jsonPath: $.estimate.estimateDetails.*.sorId + + - jsonPath: $.estimate.estimateDetails.*.category + + - jsonPath: $.estimate.estimateDetails.*.name + + - jsonPath: $.estimate.estimateDetails.*.description + + - jsonPath: $.estimate.estimateDetails.*.unitRate + + - jsonPath: $.estimate.estimateDetails.*.noOfunit + + - jsonPath: $.estimate.estimateDetails.*.uom + + - jsonPath: $.estimate.estimateDetails.*.uomValue + + - jsonPath: $.estimate.estimateDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.estimate.estimateDetails.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.length + + - jsonPath: $.estimate.estimateDetails.*.width + + - jsonPath: $.estimate.estimateDetails.*.height + + - jsonPath: $.estimate.estimateDetails.*.quantity + + - jsonPath: $.estimate.estimateDetails.*.isDeduction + + - jsonPath: $.estimate.estimateDetails.*.sorId + + - jsonPath: $.estimate.estimateDetails.*.category + + - jsonPath: $.estimate.estimateDetails.*.name + + - jsonPath: $.estimate.estimateDetails.*.description + + - jsonPath: $.estimate.estimateDetails.*.unitRate + + - jsonPath: $.estimate.estimateDetails.*.noOfunit + + - jsonPath: $.estimate.estimateDetails.*.uom + + - jsonPath: $.estimate.estimateDetails.*.uomValue + + - jsonPath: $.estimate.estimateDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.estimate.estimateDetails.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.length + + - jsonPath: $.estimate.estimateDetails.*.width + + - jsonPath: $.estimate.estimateDetails.*.height + + - jsonPath: $.estimate.estimateDetails.*.quantity + + - jsonPath: $.estimate.estimateDetails.*.isDeduction + + - query: UPDATE eg_wms_estimate_address set latitude=?, longitude=?, address_number=?,address_line_1=?, address_line_2=?,landmark=?,city=?, pin_code=?, detail=? where id=?; + + basePath: $.estimate.address + jsonMaps: + - jsonPath: $.estimate.address.latitude + + - jsonPath: $.estimate.address.longitude + + - jsonPath: $.estimate.address.addressNumber + + - jsonPath: $.estimate.address.addressLine1 + + - jsonPath: $.estimate.address.addressLine2 + + - jsonPath: $.estimate.address.landmark + + - jsonPath: $.estimate.address.city + + - jsonPath: $.estimate.address.pincode + + - jsonPath: $.estimate.address.detail + + - jsonPath: $.estimate.address.id + + - query: INSERT INTO eg_wms_estimate_amount_detail(id,tenant_id,estimate_detail_id,type,is_active,amount,additional_details) VALUES (?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE set type=?, is_active=?,amount=?,additional_details=?; + + basePath: $.estimate.estimateDetails.*.amountDetail.* + jsonMaps: + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.id + + - jsonPath: $.estimate.tenantId + + - jsonPath: $.estimate.estimateDetails[*][?({id} in @.amountDetail[*].id)].id + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.type + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.amount + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.type + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.isActive + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.amount + + - jsonPath: $.estimate.estimateDetails.*.amountDetail.*.additionalDetails + type: JSON + dbType: JSONB \ No newline at end of file diff --git a/egov-persister/mukta-expense-bill-payment-persister.yaml b/egov-persister/mukta-expense-bill-payment-persister.yaml new file mode 100644 index 000000000..2e2b9d35d --- /dev/null +++ b/egov-persister/mukta-expense-bill-payment-persister.yaml @@ -0,0 +1,614 @@ +serviceMaps: + serviceName: mukta-expense Service + mappings: + - version: 1.0 + name: bill create + description: create bill in eg_expense_bill + fromTopic: mukta-expense-bill-create + isAuditEnabled: true + module: BILL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.billNumber + auditAttributeBasePath: $.bill + queryMaps: + - query: INSERT into eg_expense_bill (id, tenantid, billdate, duedate, billnumber, totalamount, totalPaidAmount, businessservice, referenceId, fromperiod, toperiod, status, paymentStatus, createdby, createdTime, lastmodifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) + basePath: $.bill + jsonMaps: + + - jsonPath: $.bill.id + + - jsonPath: $.bill.tenantId + + - jsonPath: $.bill.billDate + + - jsonPath: $.bill.dueDate + + - jsonPath: $.bill.billNumber + + - jsonPath: $.bill.totalAmount + + - jsonPath: $.bill.totalPaidAmount + + - jsonPath: $.bill.businessService + + - jsonPath: $.bill.referenceId + + - jsonPath: $.bill.fromPeriod + + - jsonPath: $.bill.toPeriod + + - jsonPath: $.bill.status + + - jsonPath: $.bill.paymentStatus + + - jsonPath: $.bill.auditDetails.createdBy + + - jsonPath: $.bill.auditDetails.createdTime + + - jsonPath: $.bill.auditDetails.lastModifiedBy + + - jsonPath: $.bill.auditDetails.lastModifiedTime + + - jsonPath: $.bill.additionalDetails + type: JSON + dbType: JSONB + + + # insert into party from payer of bill + - query: INSERT into eg_expense_party (id, tenantid, type, identifier, parentId, status, createdby, createdTime, lastmodifiedby, lastModifiedTime) values(?,?,?,?,?,?,?,?,?,?) + basePath: $.bill.payer + jsonMaps: + + - jsonPath: $.bill.payer.id + + - jsonPath: $.bill.payer.tenantId + + - jsonPath: $.bill.payer.type + + - jsonPath: $.bill.payer.identifier + + - jsonPath: $.bill.id + + - jsonPath: $.bill.payer.status + + - jsonPath: $.bill.payer.auditDetails.createdBy + + - jsonPath: $.bill.payer.auditDetails.createdTime + + - jsonPath: $.bill.payer.auditDetails.lastModifiedBy + + - jsonPath: $.bill.payer.auditDetails.lastModifiedTime + + + - query: INSERT into eg_expense_billdetail (id, tenantid, billid, referenceId, totalAmount, totalPaidAmount, status, paymentStatus, fromperiod, toperiod, createdby, createdTime, lastModifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.bill.billDetails.* + jsonMaps: + - jsonPath: $.bill.billDetails.*.id + + - jsonPath: $.bill.billDetails.*.tenantId + + - jsonPath: $.bill.id + + - jsonPath: $.bill.billDetails.*.referenceId + + - jsonPath: $.bill.totalAmount + + - jsonPath: $.bill.totalPaidAmount + + - jsonPath: $.bill.billDetails.*.status + + - jsonPath: $.bill.billDetails.*.paymentStatus + + - jsonPath: $.bill.billDetails.*.fromPeriod + + - jsonPath: $.bill.billDetails.*.toPeriod + + - jsonPath: $.bill.billDetails.*.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.auditDetails.lastModifiedTime + + - jsonPath: $.bill.billDetails.*.additionalDetails + type: JSON + dbType: JSONB + + # insert into party from payee of bill details + - query: INSERT into eg_expense_party (id, tenantid, type, identifier, parentId, status, additionalDetails, createdby, createdTime, lastmodifiedby, lastModifiedTime) values(?,?,?,?,?,?,?,?,?,?,?) + basePath: $.bill.billDetails.*.payee + jsonMaps: + + - jsonPath: $.bill.billDetails.*.payee.id + + - jsonPath: $.bill.billDetails.*.payee.tenantId + + - jsonPath: $.bill.billDetails.*.payee.type + + - jsonPath: $.bill.billDetails.*.payee.identifier + + - jsonPath: $.bill.billDetails.*.id + + - jsonPath: $.bill.billDetails.*.payee.status + + - jsonPath: $.bill.billDetails.*.payee.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.lastModifiedTime + + + - query: INSERT into eg_expense_lineitem (id, tenantid, billDetailId, headCode, amount, paidAmount, type, status, paymentStatus, islineitempayable, createdby, createdTime, lastmodifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,?,false,?,?,?,?,?); + basePath: $.bill.billDetails.*.lineItems.* + jsonMaps: + - jsonPath: $.bill.billDetails.*.lineItems.*.id + + - jsonPath: $.bill.billDetails.*.lineItems.*.tenantId + + - jsonPath: $.bill.billDetails[?({id} in @.lineItems[*].id)].id + + - jsonPath: $.bill.billDetails.*.lineItems.*.headCode + + - jsonPath: $.bill.billDetails.*.lineItems.*.amount + + - jsonPath: $.bill.billDetails.*.lineItems.*.paidAmount + + - jsonPath: $.bill.billDetails.*.lineItems.*.type + + - jsonPath: $.bill.billDetails.*.lineItems.*.status + + - jsonPath: $.bill.billDetails.*.lineItems.*.paymentStatus + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.lastModifiedTime + + - jsonPath: $.bill.billDetails.*.lineItems.*.additionalDetails + type: JSON + dbType: JSONB + + - query: INSERT into eg_expense_lineitem (id, tenantid, billDetailId, headCode, amount, paidAmount, type, status, paymentStatus,islineitempayable, createdby, createdTime, lastmodifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,?,true,?,?,?,?,?); + basePath: $.bill.billDetails.*.payableLineItems.* + jsonMaps: + - jsonPath: $.bill.billDetails.*.payableLineItems.*.id + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.tenantId + + - jsonPath: $.bill.billDetails[?({id} in @.payableLineItems[*].id)].id + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.headCode + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.amount + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.paidAmount + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.type + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.status + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.paymentStatus + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.lastModifiedTime + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.additionalDetails + type: JSON + dbType: JSONB + + + - version: 1.0 + name: bill update + description: update bill in eg_expense_bill + fromTopic: mukta-expense-bill-update + isAuditEnabled: true + module: BILL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.billNumber + auditAttributeBasePath: $.bill + queryMaps: + - query: UPDATE eg_expense_bill SET billdate=?, duedate=?, totalAmount=?, totalPaidAmount=?, businessservice=?, referenceid=?, fromperiod=?, toperiod=?, status=?, paymentstatus=?, lastmodifiedby=?, lastmodifiedtime=?, additionaldetails=? WHERE id=? AND tenantid=?; + basePath: $.bill + jsonMaps: + + - jsonPath: $.bill.billDate + + - jsonPath: $.bill.dueDate + + - jsonPath: $.bill.totalAmount + + - jsonPath: $.bill.totalPaidAmount + + - jsonPath: $.bill.businessService + + - jsonPath: $.bill.referenceId + + - jsonPath: $.bill.fromPeriod + + - jsonPath: $.bill.toPeriod + + - jsonPath: $.bill.status + + - jsonPath: $.bill.paymentStatus + + - jsonPath: $.bill.auditDetails.lastModifiedBy + + - jsonPath: $.bill.auditDetails.lastModifiedTime + + - jsonPath: $.bill.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.bill.id + + - jsonPath: $.bill.tenantId + + # update to party from payer of bill + - query: UPDATE eg_expense_party SET type=?, identifier=?, parentid=?, status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? AND tenantid=?; + basePath: $.bill + jsonMaps: + + - jsonPath: $.bill.payer.type + + - jsonPath: $.bill.payer.identifier + + - jsonPath: $.bill.id + + - jsonPath: $.bill.payer.status + + - jsonPath: $.bill.payer.auditDetails.lastModifiedBy + + - jsonPath: $.bill.payer.auditDetails.lastModifiedTime + + - jsonPath: $.bill.payer.id + + - jsonPath: $.bill.tenantId + + - query: INSERT into eg_expense_billdetail (id, tenantid, billid, totalamount, totalpaidamount, status, referenceId, paymentStatus, fromperiod, toperiod, createdby, createdTime, lastModifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT(id, tenantid) DO UPDATE SET referenceid=EXCLUDED.referenceid, paymentstatus=EXCLUDED.paymentstatus, status=EXCLUDED.status, totalamount=EXCLUDED.totalamount, totalpaidamount=EXCLUDED.totalpaidamount, fromperiod=EXCLUDED.fromperiod, toperiod=EXCLUDED.toperiod, lastmodifiedby=EXCLUDED.lastmodifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime, additionaldetails=EXCLUDED.additionaldetails; + basePath: $.bill.billDetails.* + jsonMaps: + - jsonPath: $.bill.billDetails.*.id + + - jsonPath: $.bill.billDetails.*.tenantId + + - jsonPath: $.bill.id + + - jsonPath: $.bill.totalAmount + + - jsonPath: $.bill.totalPaidAmount + + - jsonPath: $.bill.billDetails.*.status + + - jsonPath: $.bill.billDetails.*.referenceId + + - jsonPath: $.bill.billDetails.*.paymentStatus + + - jsonPath: $.bill.billDetails.*.fromPeriod + + - jsonPath: $.bill.billDetails.*.toPeriod + + - jsonPath: $.bill.billDetails.*.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.auditDetails.lastModifiedTime + + - jsonPath: $.bill.billDetails.*.additionalDetails + type: JSON + dbType: JSONB + + # update party from payee of bill details + - query: INSERT into eg_expense_party (id, tenantid, type, identifier, parentId, status, additionalDetails, createdby, createdTime, lastmodifiedby, lastModifiedTime) values(?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id, tenantid) DO UPDATE SET type=EXCLUDED.type, identifier=EXCLUDED.identifier, parentid=EXCLUDED.parentid, status=EXCLUDED.status, lastmodifiedby=EXCLUDED.lastmodifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime, additionaldetails=EXCLUDED.additionaldetails + basePath: $.bill.billDetails.*.payee + jsonMaps: + + - jsonPath: $.bill.billDetails.*.payee.id + + - jsonPath: $.bill.billDetails.*.payee.tenantId + + - jsonPath: $.bill.billDetails.*.payee.type + + - jsonPath: $.bill.billDetails.*.payee.identifier + + - jsonPath: $.bill.billDetails.*.id + + - jsonPath: $.bill.billDetails.*.payee.status + + - jsonPath: $.bill.billDetails.*.payee.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.payee.auditDetails.lastModifiedTime + + + - query: INSERT into eg_expense_lineitem (id, tenantid, billDetailId, headCode, amount, paidAmount, type, status, islineitempayable, createdby, createdTime, lastmodifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,false,?,?,?,?,?) ON CONFLICT (id,tenantid) DO UPDATE SET headcode=EXCLUDED.headcode, amount=EXCLUDED.amount, paidamount=EXCLUDED.paidamount, type=EXCLUDED.type, status=EXCLUDED.status, islineitempayable=EXCLUDED.islineitempayable, lastmodifiedby=EXCLUDED.lastmodifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime, additionaldetails=EXCLUDED.additionaldetails; + basePath: $.bill.billDetails.*.lineItems.* + jsonMaps: + + - jsonPath: $.bill.billDetails.*.lineItems.*.id + + - jsonPath: $.bill.billDetails.*.lineItems.*.tenantId + + - jsonPath: $.bill.billDetails[?({id} in @.lineItems[*].id)].id + + - jsonPath: $.bill.billDetails.*.lineItems.*.headCode + + - jsonPath: $.bill.billDetails.*.lineItems.*.amount + + - jsonPath: $.bill.billDetails.*.lineItems.*.paidAmount + + - jsonPath: $.bill.billDetails.*.lineItems.*.type + + - jsonPath: $.bill.billDetails.*.lineItems.*.status + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.lineItems.*.auditDetails.lastModifiedTime + + - jsonPath: $.bill.billDetails.*.lineItems.*.additionalDetails + type: JSON + dbType: JSONB + + - query: INSERT into eg_expense_lineitem (id, tenantid, billDetailId, headCode, amount, paidAmount, type, status, paymentStatus, islineitempayable, createdby, createdTime, lastmodifiedby, lastModifiedTime, additionalDetails) values(?,?,?,?,?,?,?,?,?,true,?,?,?,?,?) ON CONFLICT (id,tenantid) DO UPDATE SET headcode=EXCLUDED.headcode, amount=EXCLUDED.amount, paidamount=EXCLUDED.paidamount, type=EXCLUDED.type, status=EXCLUDED.status, paymentStatus=EXCLUDED.paymentStatus, islineitempayable=EXCLUDED.islineitempayable, lastmodifiedby=EXCLUDED.lastmodifiedby, lastmodifiedtime=EXCLUDED.lastmodifiedtime, additionaldetails=EXCLUDED.additionaldetails; + basePath: $.bill.billDetails.*.payableLineItems.* + jsonMaps: + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.id + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.tenantId + + - jsonPath: $.bill.billDetails[?({id} in @.payableLineItems[*].id)].id + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.headCode + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.amount + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.paidAmount + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.type + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.status + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.paymentStatus + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.createdBy + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.createdTime + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.lastModifiedBy + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.auditDetails.lastModifiedTime + + - jsonPath: $.bill.billDetails.*.payableLineItems.*.additionalDetails + type: JSON + dbType: JSONB + + + - version: 1.0 + name: Payment create + description: create payment in eg_expense_payment + fromTopic: mukta-expense-payment-create + isAuditEnabled: true + module: BILL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.paymentNumber + auditAttributeBasePath: $.payment + queryMaps: + - query: INSERT INTO eg_expense_payment(id, tenantid, netpayableamount, netpaidamount, paymentnumber, status, referencestatus, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.payment + jsonMaps: + + - jsonPath: $.payment.id + + - jsonPath: $.payment.tenantId + + - jsonPath: $.payment.netPayableAmount + + - jsonPath: $.payment.netPaidAmount + + - jsonPath: $.payment.paymentNumber + + - jsonPath: $.payment.status + + - jsonPath: $.payment.referenceStatus + + - jsonPath: $.payment.auditDetails.createdBy + + - jsonPath: $.payment.auditDetails.createdTime + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + - jsonPath: $.payment.additionalDetails + type: JSON + dbType: JSONB + + + # insert into party from payer of payment + - query: INSERT INTO eg_expense_payment_bill (id, paymentid, billid, tenantid, totalamount, totalpaidamount, status, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.payment.bills.* + jsonMaps: + + - jsonPath: $.payment.bills.*.id + + - jsonPath: $.payment.id + + - jsonPath: $.payment.bills.*.billId + + - jsonPath: $.payment.tenantId + + - jsonPath: $.payment.bills.*.totalAmount + + - jsonPath: $.payment.bills.*.totalPaidAmount + + - jsonPath: $.payment.bills.*.status + + - jsonPath: $.payment.auditDetails.createdBy + + - jsonPath: $.payment.auditDetails.createdTime + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_expense_payment_billdetail (id, tenantid, paymentbillid, billdetailid, totalamount, totalpaidamount, status, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.payment.bills.*.billDetails.* + jsonMaps: + + - jsonPath: $.payment.bills.*.billDetails.*.id + + - jsonPath: $.payment.tenantId + + - jsonPath: $.payment.bills[?({id} in @.billDetails[*].id)].id + + - jsonPath: $.payment.bills.*.billDetails.*.billDetailId + + - jsonPath: $.payment.bills.*.billDetails.*.totalAmount + + - jsonPath: $.payment.bills.*.billDetails.*.totalPaidAmount + + - jsonPath: $.payment.bills.*.billDetails.*.status + + - jsonPath: $.payment.auditDetails.createdBy + + - jsonPath: $.payment.auditDetails.createdTime + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_expense_payment_lineitem (id, tenantid, paymentbilldetailid, lineitemid, paidamount, status, createdby, createdtime, lastmodifiedby, lastmodifiedtime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.payment.bills.*.billDetails.*.payableLineItems.* + jsonMaps: + + - jsonPath: $.payment.bills.*.billDetails.*.payableLineItems.*.id + + - jsonPath: $.payment.tenantId + + - jsonPath: $.payment.bills.*.billDetails[?({id} in @.payableLineItems[*].id)].id + + - jsonPath: $.payment.bills.*.billDetails.*.payableLineItems.*.lineItemId + + - jsonPath: $.payment.bills.*.billDetails.*.payableLineItems.*.paidAmount + + - jsonPath: $.payment.bills.*.billDetails.*.payableLineItems.*.status + + - jsonPath: $.payment.auditDetails.createdBy + + - jsonPath: $.payment.auditDetails.createdTime + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + - version: 1.0 + name: Payment update + description: update payment status in eg_expense_payment + fromTopic: mukta-expense-payment-update + isAuditEnabled: true + module: BILL + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.paymentNumber + auditAttributeBasePath: $.payment + queryMaps: + - query: UPDATE eg_expense_payment SET status=?, referencestatus=?, lastmodifiedby=?, lastmodifiedtime=?, additionaldetails=? WHERE id=? AND tenantid=?; + basePath: $.payment + jsonMaps: + + - jsonPath: $.payment.status + + - jsonPath: $.payment.referenceStatus + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + - jsonPath: $.payment.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.payment.id + + - jsonPath: $.payment.tenantId + + - query: UPDATE eg_expense_payment_bill SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id = ? AND paymentid=? AND tenantid = ?; + basePath: $.payment.bills.* + jsonMaps: + + - jsonPath: $.payment.bills.*.status + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + - jsonPath: $.payment.bills.*.id + + - jsonPath: $.payment.id + + - jsonPath: $.payment.tenantId + + - query: UPDATE eg_expense_payment_billdetail SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? AND paymentbillid=? AND tenantid=?; + basePath: $.payment.bills.*.billDetails.* + jsonMaps: + + - jsonPath: $.payment.bills.*.billDetails.*.status + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + - jsonPath: $.payment.bills.*.billDetails.*.id + + - jsonPath: $.payment.bills[?({id} in @.billDetails[*].id)].id + + - jsonPath: $.payment.tenantId + + - query: UPDATE eg_expense_payment_lineitem SET status=?, lastmodifiedby=?, lastmodifiedtime=? WHERE id=? AND paymentbilldetailid=? AND tenantid=?; + basePath: $.payment.bills.*.billDetails.*.payableLineItems.* + jsonMaps: + + - jsonPath: $.payment.bills.*.billDetails.*.payableLineItems.*.status + + - jsonPath: $.payment.auditDetails.lastModifiedBy + + - jsonPath: $.payment.auditDetails.lastModifiedTime + + - jsonPath: $.payment.bills.*.billDetails.*.payableLineItems.*.id + + - jsonPath: $.payment.bills.*.billDetails[?({id} in @.payableLineItems[*].id)].id + + - jsonPath: $.payment.tenantId diff --git a/egov-persister/mukta-expensebilling-service-persister.yml b/egov-persister/mukta-expensebilling-service-persister.yml new file mode 100644 index 000000000..6d527e1f9 --- /dev/null +++ b/egov-persister/mukta-expensebilling-service-persister.yml @@ -0,0 +1,117 @@ +serviceMaps: + serviceName: mukta-expensebilling-service + mappings: + - version: 1.0 + name: expensebilling + description: Persists billing demand in eg_wms_bill_demand table + fromTopic: mukta-bill + isTransaction: true + queryMaps: + - query: INSERT INTO eg_wms_bill_demand (id, tenant_id, bill_number, bill_date, net_amount, gross_amount, head_of_account, ifms_sanction_number, purpose, created_by, last_modified_by, created_time, last_modified_time) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.BillDemands.* + jsonMaps: + - jsonPath: $.BillDemands.*.id + + - jsonPath: $.BillDemands.*.tenantId + + - jsonPath: $.BillDemands.*.billNumber + + - jsonPath: $.BillDemands.*.billDate + + - jsonPath: $.BillDemands.*.netAmount + + - jsonPath: $.BillDemands.*.grossAmount + + - jsonPath: $.BillDemands.*.headOfAccount + + - jsonPath: $.BillDemands.*.ifmsSanctionNumber + + - jsonPath: $.BillDemands.*.purpose + + - jsonPath: $.BillDemands.*.auditDetails.createdBy + + - jsonPath: $.BillDemands.*.auditDetails.lastModifiedBy + + - jsonPath: $.BillDemands.*.auditDetails.createdTime + + - jsonPath: $.BillDemands.*.auditDetails.lastModifiedTime + + - query: INSERT INTO eg_wms_demand_beneficiaries (pk_id, id, bill_number, name, account_number, ifsc_code, mobile_number, address, account_type, amount, purpose, status, created_by, last_modified_by, created_time, last_modified_time) VALUES (?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + basePath: $.BillDemands.*.beneficiaries.* + jsonMaps: + - jsonPath: $.BillDemands.*.beneficiaries.*.pkId + + - jsonPath: $.BillDemands.*.beneficiaries.*.id + + - jsonPath: $.BillDemands[*][?({id} in @.beneficiaries[*].id)].billNumber + + - jsonPath: $.BillDemands.*.beneficiaries.*.name + + - jsonPath: $.BillDemands.*.beneficiaries.*.accountNumber + + - jsonPath: $.BillDemands.*.beneficiaries.*.ifscCode + + - jsonPath: $.BillDemands.*.beneficiaries.*.mobileNumber + + - jsonPath: $.BillDemands.*.beneficiaries.*.address + + - jsonPath: $.BillDemands.*.beneficiaries.*.accountType + + - jsonPath: $.BillDemands.*.beneficiaries.*.amount + + - jsonPath: $.BillDemands.*.beneficiaries.*.purpose + + - jsonPath: $.BillDemands.*.beneficiaries.*.status + + - jsonPath: $.BillDemands[*][?({id} in @.beneficiaries[*].id)].auditDetails.createdBy + + - jsonPath: $.BillDemands[*][?({id} in @.beneficiaries[*].id)].auditDetails.lastModifiedBy + + - jsonPath: $.BillDemands[*][?({id} in @.beneficiaries[*].id)].auditDetails.createdTime + + - jsonPath: $.BillDemands[*][?({id} in @.beneficiaries[*].id)].auditDetails.lastModifiedTime + + - version: 1.0 + name: expensebilling + description: Insert / Update payment status + fromTopic: mukta-payment-status + isTransaction: true + queryMaps: + - query: INSERT INTO eg_wms_bill_payment (bill_number, bill_date, voucher_number, voucher_date) VALUES (?,?,?,?); + basePath: $.PaymentStatuses.* + jsonMaps: + - jsonPath: $.PaymentStatuses.*.billNumber + + - jsonPath: $.PaymentStatuses.*.billDate + + - jsonPath: $.PaymentStatuses.*.voucherNumber + + - jsonPath: $.PaymentStatuses.*.voucherDate + + - query: INSERT INTO eg_wms_beneficiary_transfer_status (bill_number, account_number, ifsc_code, rbi_sequence_number, sequence_date, end_to_end_id, status) VALUES (?,?,?,?,?,?,?); + basePath: $.PaymentStatuses.*.beneficiaryTransferStatuses.* + jsonMaps: + - jsonPath: $.PaymentStatuses[*][?({endToEndId} in @.beneficiaryTransferStatuses[*].endToEndId)].billNumber + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.accountNumber + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.ifscCode + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.rbiSequenceNumber + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.sequenceDate + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.endToEndId + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.status + + - query: UPDATE eg_wms_demand_beneficiaries set status = ? where bill_number = ? and account_number = ? and ifsc_code = ? ; + basePath: $.PaymentStatuses.*.beneficiaryTransferStatuses.* + jsonMaps: + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.status + + - jsonPath: $.PaymentStatuses[*][?({endToEndId} in @.beneficiaryTransferStatuses[*].endToEndId)].billNumber + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.accountNumber + + - jsonPath: $.PaymentStatuses.*.beneficiaryTransferStatuses.*.ifscCode \ No newline at end of file diff --git a/egov-persister/mukta-hrms-employee-persister.yml b/egov-persister/mukta-hrms-employee-persister.yml new file mode 100644 index 000000000..917eba6e2 --- /dev/null +++ b/egov-persister/mukta-hrms-employee-persister.yml @@ -0,0 +1,533 @@ +serviceMaps: + serviceName: mukta-HRMS + mappings: + - version: 1.0 + name: hrms + description: Persists employee details in the table + fromTopic: mukta-save-hrms-employee + isTransaction: true + queryMaps: + - query: INSERT INTO eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.* + jsonMaps: + + + - jsonPath: $.Employees.*.tenantId + + - jsonPath: $.Employees.*.id + + - jsonPath: $.Employees.*.uuid + + - jsonPath: $.Employees.*.code + + - jsonPath: $.Employees.*.dateOfAppointment + + - jsonPath: $.Employees.*.employeeStatus + + - jsonPath: $.Employees.*.employeeType + + - jsonPath: $.Employees.*.isActive + + - jsonPath: $.Employees.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.auditDetails.lastModifiedDate + + - jsonPath: $.Employees.*.reActivateEmployee + + + + - query: INSERT INTO eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.assignments.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId + + - jsonPath: $.Employees.*.assignments.*.id + + - jsonPath: $.Employees.*.assignments.*.position + + - jsonPath: $.Employees.*.assignments.*.department + + - jsonPath: $.Employees.*.assignments.*.designation + + - jsonPath: $.Employees.*.assignments.*.fromDate + + - jsonPath: $.Employees.*.assignments.*.toDate + + - jsonPath: $.Employees.*.assignments.*.govtOrderNumber + + - jsonPath: $.Employees.*.assignments.*.reportingTo + + - jsonPath: $.Employees.*.assignments.*.isHOD + + - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate + + + + + - query: INSERT INTO eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.education.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId + + - jsonPath: $.Employees.*.education.*.id + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid + + - jsonPath: $.Employees.*.education.*.qualification + + - jsonPath: $.Employees.*.education.*.stream + + - jsonPath: $.Employees.*.education.*.yearOfPassing + + - jsonPath: $.Employees.*.education.*.university + + - jsonPath: $.Employees.*.education.*.remarks + + - jsonPath: $.Employees.*.education.*.isActive + + - jsonPath: $.Employees.*.education.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.education.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.tests.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId + + - jsonPath: $.Employees.*.tests.*.id + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid + + - jsonPath: $.Employees.*.tests.*.test + + - jsonPath: $.Employees.*.tests.*.yearOfPassing + + - jsonPath: $.Employees.*.tests.*.remarks + + - jsonPath: $.Employees.*.tests.*.isActive + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.documents.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId + + - jsonPath: $.Employees.*.documents.*.id + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid + + - jsonPath: $.Employees.*.documents.*.documentId + + - jsonPath: $.Employees.*.documents.*.documentName + + - jsonPath: $.Employees.*.documents.*.referenceType + + - jsonPath: $.Employees.*.documents.*.referenceId + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.serviceHistory.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId + + - jsonPath: $.Employees.*.serviceHistory.*.id + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid + + - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus + + - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom + + - jsonPath: $.Employees.*.serviceHistory.*.serviceTo + + - jsonPath: $.Employees.*.serviceHistory.*.orderNo + + - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition + + - jsonPath: $.Employees.*.serviceHistory.*.location + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.jurisdictions.* + jsonMaps: + + - jsonPath: $.Employees.*.jurisdictions.*.id + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid + + - jsonPath: $.Employees.*.jurisdictions.*.hierarchy + + - jsonPath: $.Employees.*.jurisdictions.*.boundaryType + + - jsonPath: $.Employees.*.jurisdictions.*.boundary + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId + + - jsonPath: $.Employees.*.jurisdictions.*.isActive + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate + + + + + - version: 1.0 + name: hrms + description: Persists employee details in the table + fromTopic: mukta-update-hrms-employee + isTransaction: true + queryMaps: + - query: DELETE from eg_hrms_employee WHERE uuid=? + + basePath: Employees.* + jsonMaps: + + - jsonPath: $.Employees.*.uuid + + - query: INSERT INTO eg_hrms_employee(tenantid, id, uuid, code, dateOfAppointment, employeestatus, employeetype, active, createdby, createddate, lastmodifiedby, lastModifiedDate, reactivateemployee) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.* + jsonMaps: + + + - jsonPath: $.Employees.*.tenantId + + - jsonPath: $.Employees.*.id + + - jsonPath: $.Employees.*.uuid + + - jsonPath: $.Employees.*.code + + - jsonPath: $.Employees.*.dateOfAppointment + + - jsonPath: $.Employees.*.employeeStatus + + - jsonPath: $.Employees.*.employeeType + + - jsonPath: $.Employees.*.isActive + + - jsonPath: $.Employees.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.auditDetails.lastModifiedDate + + - jsonPath: $.Employees.*.reActivateEmployee + + + + - query: INSERT INTO eg_hrms_assignment(tenantid, uuid, position, department, designation, fromdate, todate, govtordernumber, reportingto, isHOD, iscurrentassignment, employeeid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.assignments.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].tenantId + + - jsonPath: $.Employees.*.assignments.*.id + + - jsonPath: $.Employees.*.assignments.*.position + + - jsonPath: $.Employees.*.assignments.*.department + + - jsonPath: $.Employees.*.assignments.*.designation + + - jsonPath: $.Employees.*.assignments.*.fromDate + + - jsonPath: $.Employees.*.assignments.*.toDate + + - jsonPath: $.Employees.*.assignments.*.govtOrderNumber + + - jsonPath: $.Employees.*.assignments.*.reportingTo + + - jsonPath: $.Employees.*.assignments.*.isHOD + + - jsonPath: $.Employees.*.assignments.*.isCurrentAssignment + + - jsonPath: $.Employees[*][?({id} in @.assignments[*].id)].uuid + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.assignments.*.auditDetails.lastModifiedDate + + + + + - query: INSERT INTO eg_hrms_educationaldetails(tenantid, uuid, employeeid, qualification, stream, yearofpassing, university, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.education.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].tenantId + + - jsonPath: $.Employees.*.education.*.id + + - jsonPath: $.Employees[*][?({id} in @.education[*].id)].uuid + + - jsonPath: $.Employees.*.education.*.qualification + + - jsonPath: $.Employees.*.education.*.stream + + - jsonPath: $.Employees.*.education.*.yearOfPassing + + - jsonPath: $.Employees.*.education.*.university + + - jsonPath: $.Employees.*.education.*.remarks + + - jsonPath: $.Employees.*.education.*.isActive + + - jsonPath: $.Employees.*.education.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.education.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.education.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_departmentaltests(tenantid, uuid, employeeid, test, yearofpassing, remarks, isactive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.tests.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].tenantId + + - jsonPath: $.Employees.*.tests.*.id + + - jsonPath: $.Employees[*][?({id} in @.tests[*].id)].uuid + + - jsonPath: $.Employees.*.tests.*.test + + - jsonPath: $.Employees.*.tests.*.yearOfPassing + + - jsonPath: $.Employees.*.tests.*.remarks + + - jsonPath: $.Employees.*.tests.*.isActive + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.tests.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_empdocuments(tenantid, uuid, employeeid, documentid, documentname, referencetype, referenceid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.documents.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].tenantId + + - jsonPath: $.Employees.*.documents.*.id + + - jsonPath: $.Employees[*][?({id} in @.documents[*].id)].uuid + + - jsonPath: $.Employees.*.documents.*.documentId + + - jsonPath: $.Employees.*.documents.*.documentName + + - jsonPath: $.Employees.*.documents.*.referenceType + + - jsonPath: $.Employees.*.documents.*.referenceId + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.documents.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_servicehistory(tenantid, uuid, employeeid, servicestatus, servicefrom, serviceto, ordernumber, isCurrentPosition, location, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.serviceHistory.* + jsonMaps: + + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].tenantId + + - jsonPath: $.Employees.*.serviceHistory.*.id + + - jsonPath: $.Employees[*][?({id} in @.serviceHistory[*].id)].uuid + + - jsonPath: $.Employees.*.serviceHistory.*.serviceStatus + + - jsonPath: $.Employees.*.serviceHistory.*.serviceFrom + + - jsonPath: $.Employees.*.serviceHistory.*.serviceTo + + - jsonPath: $.Employees.*.serviceHistory.*.orderNo + + - jsonPath: $.Employees.*.serviceHistory.*.isCurrentPosition + + - jsonPath: $.Employees.*.serviceHistory.*.location + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.serviceHistory.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_jurisdiction (uuid, employeeid, hierarchy, boundarytype, boundary, tenantid, isActive, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.jurisdictions.* + jsonMaps: + + - jsonPath: $.Employees.*.jurisdictions.*.id + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].uuid + + - jsonPath: $.Employees.*.jurisdictions.*.hierarchy + + - jsonPath: $.Employees.*.jurisdictions.*.boundaryType + + - jsonPath: $.Employees.*.jurisdictions.*.boundary + + - jsonPath: $.Employees[*][?({id} in @.jurisdictions[*].id)].tenantId + + - jsonPath: $.Employees.*.jurisdictions.*.isActive + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.jurisdictions.*.auditDetails.lastModifiedDate + + + + - query: INSERT INTO eg_hrms_deactivationdetails(uuid, employeeid, reasonfordeactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.deactivationDetails.* + jsonMaps: + + - jsonPath: $.Employees.*.deactivationDetails.*.id + + - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].uuid + + - jsonPath: $.Employees.*.deactivationDetails.*.reasonForDeactivation + + - jsonPath: $.Employees.*.deactivationDetails.*.effectiveFrom + + - jsonPath: $.Employees.*.deactivationDetails.*.orderNo + + - jsonPath: $.Employees.*.deactivationDetails.*.remarks + + - jsonPath: $.Employees[*][?({id} in @.deactivationDetails[*].id)].tenantId + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.deactivationDetails.*.auditDetails.lastModifiedDate + + + - query: INSERT INTO eg_hrms_reactivationdetails(uuid, employeeid, reasonforreactivation, effectivefrom, ordernumber, remarks, tenantid, createdby, createddate, lastmodifiedby, lastModifiedDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + + basePath: Employees.*.reactivationDetails.* + jsonMaps: + + - jsonPath: $.Employees.*.reactivationDetails.*.id + + - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].uuid + + - jsonPath: $.Employees.*.reactivationDetails.*.reasonForReactivation + + - jsonPath: $.Employees.*.reactivationDetails.*.effectiveFrom + + - jsonPath: $.Employees.*.reactivationDetails.*.orderNo + + - jsonPath: $.Employees.*.reactivationDetails.*.remarks + + - jsonPath: $.Employees[*][?({id} in @.reactivationDetails[*].id)].tenantId + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdBy + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.createdDate + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedBy + + - jsonPath: $.Employees.*.reactivationDetails.*.auditDetails.lastModifiedDate diff --git a/egov-persister/mukta-individual-persister.yml b/egov-persister/mukta-individual-persister.yml new file mode 100644 index 000000000..3d3c472aa --- /dev/null +++ b/egov-persister/mukta-individual-persister.yml @@ -0,0 +1,278 @@ +serviceMaps: + serviceName: mukta-individual + mappings: + - version: 1.0 + description: Persists Individual + fromTopic: mukta-save-individual-topic + isTransaction: true + queryMaps: + - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.clientReferenceId + - jsonPath: $.*.address.*.tenantId + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - query: INSERT INTO individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.* + jsonMaps: + - jsonPath: $.*.id + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.name.givenName + - jsonPath: $.*.name.familyName + - jsonPath: $.*.name.otherNames + - jsonPath: $.*.dateOfBirth + type: DATE + - jsonPath: $.*.gender + - jsonPath: $.*.bloodGroup + - jsonPath: $.*.mobileNumber + - jsonPath: $.*.altContactNumber + - jsonPath: $.*.email + - jsonPath: $.*.fatherName + - jsonPath: $.*.husbandName + - jsonPath: $.*.photo + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.individualId + - jsonPath: $.*.relationship + - jsonPath: $.*.isSystemUser + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB + - query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.auditDetails.createdBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.createdTime + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - query: INSERT INTO individual_identifier(id, clientReferenceId, identifierType, identifierId, individualId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.identifiers.* + jsonMaps: + - jsonPath: $.*.identifiers.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.individualId + - jsonPath: $.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - query: INSERT INTO individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.*.skills.* + jsonMaps: + - jsonPath: $.*.skills.*.id + - jsonPath: $.*.skills.*.clientReferenceId + - jsonPath: $.*.skills.*.individualId + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.createdBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.createdTime + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + + - version: 1.0 + description: Updates Individual + fromTopic: mukta-update-individual-topic + isTransaction: true + queryMaps: + - query: UPDATE individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ? WHERE id=? AND isDeleted=false; + basePath: $.* + jsonMaps: + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.tenantId + - jsonPath: $.*.name.givenName + - jsonPath: $.*.name.familyName + - jsonPath: $.*.name.otherNames + - jsonPath: $.*.dateOfBirth + type: DATE + - jsonPath: $.*.gender + - jsonPath: $.*.bloodGroup + - jsonPath: $.*.mobileNumber + - jsonPath: $.*.altContactNumber + - jsonPath: $.*.email + - jsonPath: $.*.fatherName + - jsonPath: $.*.husbandName + - jsonPath: $.*.relationship + - jsonPath: $.*.photo + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles + type: JSON + dbType: JSONB + - jsonPath: $.*.id + - query: INSERT INTO address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.clientReferenceId + - jsonPath: $.*.address.*.tenantId + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - query: INSERT INTO individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (individualId, addressId, type, isDeleted) WHERE isDeleted=false DO UPDATE SET lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.auditDetails.createdBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.createdTime + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - query: INSERT INTO individual_identifier(id, clientReferenceId, individualId, identifierType, identifierId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET identifierId = ?, identifierType = ?, lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.identifiers.* + jsonMaps: + - jsonPath: $.*.identifiers.*.id + - jsonPath: $.*.identifiers.*.clientReferenceId + - jsonPath: $.*.identifiers.*.individualId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - query: INSERT INTO individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET type = ?, level = ?, experience = ?, lastModifiedBy = ?, lastModifiedTime = ?; + basePath: $.*.skills.* + jsonMaps: + - jsonPath: $.*.skills.*.id + - jsonPath: $.*.skills.*.clientReferenceId + - jsonPath: $.*.skills.*.individualId + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.createdBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.createdTime + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + + - version: 1.0 + description: Deletes Individual and related Entities + fromTopic: mukta-delete-individual-topic + isTransaction: true + queryMaps: + - query: UPDATE individual SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.id + - query: UPDATE individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; + basePath: $.*.address.* + jsonMaps: + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - query: UPDATE individual_identifier SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; + basePath: $.*.identifiers.* + jsonMaps: + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.id + - query: UPDATE individual_skill SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; + basePath: $.*.skills.* + jsonMaps: + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.id + + - version: 1.0 + description: Updates userId and userUuid received from user-service into an individual + fromTopic: mukta-update-user-id-topic + isTransaction: true + queryMaps: + - query: UPDATE individual SET userId=?, userUuid=? WHERE id=?; + basePath: $.* + jsonMaps: + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.id From 6f28da8c7c196d446c46a9b9fa4b418b0092c177 Mon Sep 17 00:00:00 2001 From: Lokendra Tyagi Date: Mon, 26 Feb 2024 15:54:21 +0530 Subject: [PATCH 110/158] added persister and indexer files and changed the topics for mukta services --- egov-indexer/mukta-contractservices-indexer.yml | 8 ++++---- egov-indexer/mukta-estimateservices-indexer.yml | 8 ++++---- egov-indexer/mukta-expensebill-indexer.yml | 6 +++--- egov-indexer/mukta-individual-indexer.yml | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/egov-indexer/mukta-contractservices-indexer.yml b/egov-indexer/mukta-contractservices-indexer.yml index 90954d82d..43f30c7fc 100644 --- a/egov-indexer/mukta-contractservices-indexer.yml +++ b/egov-indexer/mukta-contractservices-indexer.yml @@ -5,7 +5,7 @@ ServiceMaps: - topic: mukta-save-contract configKey: INDEX indexes: - - name: contract-inbox + - name: mukta-contract-inbox type: general id: $.id,$.tenantId jsonPath: $.contract @@ -73,7 +73,7 @@ ServiceMaps: - topic: mukta-update-contract configKey: INDEX indexes: - - name: contract-inbox + - name: mukta-contract-inbox type: general id: $.id,$.tenantId jsonPath: $.contract @@ -141,7 +141,7 @@ ServiceMaps: - topic: mukta-contract-legacyIndex configKey: LEGACYINDEX indexes: - - name: contract-inbox-legacyindex + - name: mukta-contract-inbox-legacyindex type: general id: $.id,$.tenantId isBulk: true @@ -209,7 +209,7 @@ ServiceMaps: - topic: mukta-migrate-contract configKey: INDEX indexes: - - name: contract-inbox-migrate + - name: mukta-contract-inbox-migrate type: general id: $.id,$.tenantId jsonPath: $.contract diff --git a/egov-indexer/mukta-estimateservices-indexer.yml b/egov-indexer/mukta-estimateservices-indexer.yml index 203ef910a..274c3df78 100644 --- a/egov-indexer/mukta-estimateservices-indexer.yml +++ b/egov-indexer/mukta-estimateservices-indexer.yml @@ -5,7 +5,7 @@ ServiceMaps: - topic: mukta-enrich-estimate configKey: INDEX indexes: - - name: estimate-inbox-v3 + - name: mukta-estimate-inbox-v3 type: general id: $.id,$.tenantId jsonPath: $.estimate @@ -67,7 +67,7 @@ ServiceMaps: - topic: mukta-update-estimate configKey: INDEX indexes: - - name: estimate-inbox-v3 + - name: mukta-estimate-inbox-v3 type: general id: $.id,$.tenantId jsonPath: $.estimate @@ -126,7 +126,7 @@ ServiceMaps: - topic: mukta-estimate-legacyIndex configKey: LEGACYINDEX indexes: - - name: estimate-inbox-legacyindex + - name: mukta-estimate-inbox-legacyindex type: general id: $.id,$.tenantId isBulk: true @@ -190,7 +190,7 @@ ServiceMaps: - topic: mukta-migrate-estimate configKey: INDEX indexes: - - name: estimate-inbox-v3-migrate + - name: mukta-estimate-inbox-v3-migrate type: general id: $.id,$.tenantId jsonPath: $.estimate diff --git a/egov-indexer/mukta-expensebill-indexer.yml b/egov-indexer/mukta-expensebill-indexer.yml index 2c9b456c7..fb0c9902f 100644 --- a/egov-indexer/mukta-expensebill-indexer.yml +++ b/egov-indexer/mukta-expensebill-indexer.yml @@ -5,7 +5,7 @@ ServiceMaps: - topic: mukta-expense-bill-create configKey: INDEX indexes: - - name: expense-bill-index + - name: mukta-expense-bill-index type: general id: $.id,$.tenantId jsonPath: $.bill @@ -69,7 +69,7 @@ ServiceMaps: - topic: mukta-expense-bill-update configKey: INDEX indexes: - - name: expense-bill-index + - name: mukta-expense-bill-index type: general id: $.id,$.tenantId jsonPath: $.bill @@ -133,7 +133,7 @@ ServiceMaps: - topic: mukta-expense-bill-legacyIndex configKey: LEGACYINDEX indexes: - - name: expense-bill-legacyIndex + - name: mukta-expense-bill-legacyIndex type: general id: $.id,$.tenantId jsonPath: $.bill diff --git a/egov-indexer/mukta-individual-indexer.yml b/egov-indexer/mukta-individual-indexer.yml index cb83dd38d..424f40039 100644 --- a/egov-indexer/mukta-individual-indexer.yml +++ b/egov-indexer/mukta-individual-indexer.yml @@ -5,7 +5,7 @@ ServiceMaps: - topic: mukta-save-individual-topic configKey: INDEX indexes: - - name: individual-index-v1 + - name: mukta-individual-index-v1 type: individual id: $.id isBulk: true @@ -67,7 +67,7 @@ ServiceMaps: - topic: mukta-update-individual-topic configKey: INDEX indexes: - - name: individual-index-v1 + - name: mukta-individual-index-v1 type: individual id: $.id isBulk: true @@ -129,7 +129,7 @@ ServiceMaps: - topic: mukta-delete-individual-topic configKey: INDEX indexes: - - name: individual-index-v1 + - name: mukta-individual-index-v1 type: individual id: $.id isBulk: true From 7ff0ac70f94eb3f4cdbbef62e2eed0772d871e59 Mon Sep 17 00:00:00 2001 From: SivajiGanesh Nangireddy Date: Wed, 28 Feb 2024 14:20:10 +0530 Subject: [PATCH 111/158] Added localisation for lab --- pdf-service/data-config/pqm-adhoctest.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdf-service/data-config/pqm-adhoctest.json b/pdf-service/data-config/pqm-adhoctest.json index bc2506726..135c8d382 100644 --- a/pdf-service/data-config/pqm-adhoctest.json +++ b/pdf-service/data-config/pqm-adhoctest.json @@ -96,6 +96,11 @@ "variable": "labName", "value": { "path": "$.labAssignedTo" + }, + "localisation":{ + "required":true, + "prefix": "PQM_QUALITYTESTLAB", + "module": "rainmaker-tqm" } }, { From 15ae564266c12a31113fd144caa46bfd04bee1a7 Mon Sep 17 00:00:00 2001 From: Shailesh Pandey <110380977+shailesh-egov@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:05:14 +0530 Subject: [PATCH 112/158] Added digit-exchange indexer configuration --- ifix/egov-indexer/digit-exchange-indexer.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ifix/egov-indexer/digit-exchange-indexer.yaml diff --git a/ifix/egov-indexer/digit-exchange-indexer.yaml b/ifix/egov-indexer/digit-exchange-indexer.yaml new file mode 100644 index 000000000..269fc2867 --- /dev/null +++ b/ifix/egov-indexer/digit-exchange-indexer.yaml @@ -0,0 +1,22 @@ +ServiceMaps: + serviceName: digit-exchange + version: 1.0.0 + mappings: + - topic: exchange-event-log-queue + configKey: INDEX + indexes: + - name: exchange-events-v1 + type: exchange + id: $.header.message_id + isBulk: false + jsonPath: $ + timeStampField: $.header.message_ts + customJsonMapping: + indexMapping: {"Data":{"signature":"","header":{},"message":{}}} + fieldMapping: + - inJsonPath: $.signature + outJsonPath: $.Data.signature + - inJsonPath: $.header + outJsonPath: $.Data.header + - inJsonPath: $.message + outJsonPath: $.Data.message \ No newline at end of file From 06090e91b9e4ecce416923e1faddfaa14565639d Mon Sep 17 00:00:00 2001 From: Shailesh Pandey <110380977+shailesh-egov@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:37:41 +0530 Subject: [PATCH 113/158] Changed extension of the file --- .../{digit-exchange-indexer.yaml => digit-exchange-indexer.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ifix/egov-indexer/{digit-exchange-indexer.yaml => digit-exchange-indexer.yml} (100%) diff --git a/ifix/egov-indexer/digit-exchange-indexer.yaml b/ifix/egov-indexer/digit-exchange-indexer.yml similarity index 100% rename from ifix/egov-indexer/digit-exchange-indexer.yaml rename to ifix/egov-indexer/digit-exchange-indexer.yml From 7f9b8e1ddd00efaf31308f2c33462d483a42eb83 Mon Sep 17 00:00:00 2001 From: Shailesh Pandey <110380977+shailesh-egov@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:18:25 +0530 Subject: [PATCH 114/158] Update digit-exchange-indexer.yml --- ifix/egov-indexer/digit-exchange-indexer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ifix/egov-indexer/digit-exchange-indexer.yml b/ifix/egov-indexer/digit-exchange-indexer.yml index 269fc2867..0063521b5 100644 --- a/ifix/egov-indexer/digit-exchange-indexer.yml +++ b/ifix/egov-indexer/digit-exchange-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: exchange-events-v1 - type: exchange + type: general id: $.header.message_id isBulk: false jsonPath: $ @@ -19,4 +19,4 @@ ServiceMaps: - inJsonPath: $.header outJsonPath: $.Data.header - inJsonPath: $.message - outJsonPath: $.Data.message \ No newline at end of file + outJsonPath: $.Data.message From 9860465bfd446a2f7803553e10189074251f954b Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 19 Mar 2024 12:02:46 +0530 Subject: [PATCH 115/158] persister configuration to enable the persistence of data into the eg_resource_details and eg_resource_activity tables in QA --- .../project-factory-persister.yml | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 health/egov-persister/project-factory-persister.yml diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml new file mode 100644 index 000000000..e8d4d34bd --- /dev/null +++ b/health/egov-persister/project-factory-persister.yml @@ -0,0 +1,128 @@ +serviceMaps: + serviceName: API Resource Service + mappings: + - version: 1.0 + name: CreateResourceDetails + description: Create resource details in the eg_cm_resource_details table + fromTopic: create-resource-details + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_cm_resource_details(id, "status", tenantId, fileStoreId,processedFileStoreId,"action", "type", createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails) VALUES (?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.ResourceDetails + jsonMaps: + - jsonPath: $.ResourceDetails.id + - jsonPath: $.ResourceDetails.status + - jsonPath: $.ResourceDetails.tenantId + - jsonPath: $.ResourceDetails.fileStoreId + - jsonPath: $.ResourceDetails.processedFileStoreId + - jsonPath: $.ResourceDetails.action + - jsonPath: $.ResourceDetails.type + - jsonPath: $.ResourceDetails.auditDetails.createdBy + - jsonPath: $.ResourceDetails.auditDetails.createdTime + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedBy + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedTime + - jsonPath: $.ResourceDetails.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: CreateResourceActivity + description: Create resource activity in the eg_cm_resource_activity table + fromTopic: create-resource-activity + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_cm_resource_activity (id, "status", retryCount,tenantId, type, url, requestPayload, responsePayload, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails, resourceDetailsId) VALUES (?, ?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?); + basePath: $.Activities.* + jsonMaps: + - jsonPath: $.Activities.*.id + - jsonPath: $.Activities.*.status + - jsonPath: $.Activities.*.retryCount + - jsonPath: $.Activities.*.tenantId + - jsonPath: $.Activities.*.type + - jsonPath: $.Activities.*.url + - jsonPath: $.Activities.*.requestPayload + type: JSON + dbType: JSONB + - jsonPath: $.Activities.*.responsePayload + type: JSON + dbType: JSONB + - jsonPath: $.Activities.*.auditDetails.createdBy + - jsonPath: $.Activities.*.auditDetails.createdTime + - jsonPath: $.Activities.*.auditDetails.lastModifiedBy + - jsonPath: $.Activities.*.auditDetails.lastModifiedTime + - jsonPath: $.Activities.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.Activities.*.resourceDetailsId + + + - version: 1.0 + name: CreateForGenerateApiResources + description: Create Api resource in the eg_cm_generated_resource_details table + fromTopic: create-generated-resource-details + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?); + basePath: generatedResource.* + jsonMaps: + - jsonPath: $.generatedResource.*.id + - jsonPath: $.generatedResource.*.fileStoreid + - jsonPath: $.generatedResource.*.type + - jsonPath: $.generatedResource.*.status + - jsonPath: $.generatedResource.*.count + - jsonPath: $.generatedResource.*.tenantId + - jsonPath: $.generatedResource.*.auditDetails.createdBy + - jsonPath: $.generatedResource.*.auditDetails.createdTime + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedBy + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedTime + - jsonPath: $.generatedResource.*.additionalDetails + type: JSON + dbType: JSONB + + + + + - version: 1.0 + name: UpdateForGenerateApiResources + description: Update Api resource in the eg_cm_generated_resource_details table + fromTopic: update-generated-resource-details + isTransaction: true + queryMaps: + - query: UPDATE health.eg_cm_generated_resource_details SET status = ?,count=?, lastModifiedby =? , lastModifiedtime = ? , fileStoreid= ? WHERE id= ?; + basePath: generatedResource.* + jsonMaps: + - jsonPath: $.generatedResource.*.status + - jsonPath: $.generatedResource.*.count + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedBy + - jsonPath: $.generatedResource.*.auditDetails.lastModifiedTime + - jsonPath: $.generatedResource.*.fileStoreid + - jsonPath: $.generatedResource.*.id + + + - version: 1.0 + name: CreateCampaignDetails + description: Create campaign details in the eg_cm_campaign_details table + fromTopic: save-project-campaign-details + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action", campaignNumber,hierarchyType,boundaryCode, projectId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); + basePath: $.CampaignDetails + jsonMaps: + - jsonPath: $.CampaignDetails.id + - jsonPath: $.CampaignDetails.tenantId + - jsonPath: $.CampaignDetails.status + - jsonPath: $.CampaignDetails.action + - jsonPath: $.CampaignDetails.campaignNumber + - jsonPath: $.CampaignDetails.hierarchyType + - jsonPath: $.CampaignDetails.boundaryCode + - jsonPath: $.CampaignDetails.projectId + - jsonPath: $.CampaignDetails.auditDetails.createdBy + - jsonPath: $.CampaignDetails.auditDetails.createdTime + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedBy + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedTime + - jsonPath: $.CampaignDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.CampaignDetails.campaignDetails + type: JSON + dbType: JSONB \ No newline at end of file From 891d1020c0eb9ac668a95bb817f402de7ebf2893 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:13:53 +0530 Subject: [PATCH 116/158] HLM-5403 - Added changes for microplanning (#3017) Co-authored-by: LataNaik --- .../egov-persister/plan-service-persister.yml | 170 ++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 health/egov-persister/plan-service-persister.yml diff --git a/health/egov-persister/plan-service-persister.yml b/health/egov-persister/plan-service-persister.yml new file mode 100644 index 000000000..0f681cf98 --- /dev/null +++ b/health/egov-persister/plan-service-persister.yml @@ -0,0 +1,170 @@ +serviceMaps: + serviceName: plan-service + mappings: + - version: 1.0 + name: plan-configuration + description: Persists plan configuration details + fromTopic: plan-config-create-topic + isTransaction: true + isAuditEnabled: true + module: PLAN + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.PlanConfiguration + queryMaps: + - query: INSERT INTO health.plan_configuration(id, tenant_id, name, execution_plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration + jsonMaps: + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.tenantId + - jsonPath: $.PlanConfiguration.name + - jsonPath: $.PlanConfiguration.executionPlanId + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_mapping(id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.resourceMapping.* + jsonMaps: + - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + - version: 1.0 + name: plan-configuration + description: Updates plan configuration details + fromTopic: plan-config-update-topic + isTransaction: true + isAuditEnabled: true + module: PLAN + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.PlanConfiguration + queryMaps: + - query: UPDATE health.plan_configuration SET tenant_id = ?, name = ?, execution_plan_id = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; + basePath: $.PlanConfiguration + jsonMaps: + - jsonPath: $.PlanConfiguration.tenantId + - jsonPath: $.PlanConfiguration.name + - jsonPath: $.PlanConfiguration.executionPlanId + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.id + + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET key = ?, value = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET input = ?, operator = ?, assumption_value = ?, output = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_mapping(id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.resourceMapping.* + jsonMaps: + - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime \ No newline at end of file From 281acbf39a8318944ed28a5ab19974f14a6582db Mon Sep 17 00:00:00 2001 From: shubhang-eGov <70943369+shubhang-eGov@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:49:59 +0530 Subject: [PATCH 117/158] Update digit-exchange-indexer.yml changed type to exchange --- ifix/egov-indexer/digit-exchange-indexer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifix/egov-indexer/digit-exchange-indexer.yml b/ifix/egov-indexer/digit-exchange-indexer.yml index 0063521b5..bba068217 100644 --- a/ifix/egov-indexer/digit-exchange-indexer.yml +++ b/ifix/egov-indexer/digit-exchange-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: exchange-events-v1 - type: general + type: exchange id: $.header.message_id isBulk: false jsonPath: $ From b24e0e211512ad27a7bef357fcfd7b458bf9fcd8 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:23:55 +0530 Subject: [PATCH 118/158] HLM-5403 - updated changes for microplanning (#3018) Co-authored-by: LataNaik --- .../egov-persister/plan-service-persister.yml | 242 +++++++++++++++++- 1 file changed, 241 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/plan-service-persister.yml b/health/egov-persister/plan-service-persister.yml index 0f681cf98..2dc7c27a9 100644 --- a/health/egov-persister/plan-service-persister.yml +++ b/health/egov-persister/plan-service-persister.yml @@ -167,4 +167,244 @@ serviceMaps: - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime \ No newline at end of file + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - version: 1.0.0 + description: Persists the plan + fromTopic: save-plan + isTransaction: true + queryMaps: + - query: INSERT INTO plan(id, tenant_id, locality, execution_plan_id, plan_configuration_id, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan + jsonMaps: + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.tenantId + + - jsonPath: $.Plan.locality + + - jsonPath: $.Plan.executionPlanId + + - jsonPath: $.Plan.planConfigurationId + + - jsonPath: $.Plan.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.activities.* + jsonMaps: + - jsonPath: $.Plan.activities.*.id + + - jsonPath: $.Plan.activities.*.code + + - jsonPath: $.Plan.activities.*.description + + - jsonPath: $.Plan.activities.*.plannedStartDate + + - jsonPath: $.Plan.activities.*.plannedEndDate + + - jsonPath: $.Plan.activities.*.dependencies + type: ARRAY + dbType: STRING + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.activities.*.conditions.* + jsonMaps: + - jsonPath: $.Plan.activities.*.conditions.*.id + + - jsonPath: $.Plan.activities.*.conditions.*.entity + + - jsonPath: $.Plan.activities.*.conditions.*.entityProperty + + - jsonPath: $.Plan.activities.*.conditions.*.expression + + - jsonPath: $.Plan.activities[*][?({id} in @.conditions[*].id)].id + + - jsonPath: $.Plan.activities.*.conditions.*.isActive + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.resources.* + jsonMaps: + - jsonPath: $.Plan.resources.*.id + + - jsonPath: $.Plan.resources.*.resourceType + + - jsonPath: $.Plan.resources.*.estimatedNumber + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.resources.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.targets.* + jsonMaps: + - jsonPath: $.Plan.targets.*.id + + - jsonPath: $.Plan.targets.*.metric + + - jsonPath: $.Plan.targets.*.metricDetail.value + + - jsonPath: $.Plan.targets.*.metricDetail.comparator + + - jsonPath: $.Plan.targets.*.metricDetail.unit + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.targets.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - version: 1.0.0 + description: Updates the plan + fromTopic: update-plan + isTransaction: true + queryMaps: + - query: UPDATE plan SET execution_plan_id = ?, plan_configuration_id = ?, last_modified_by=?, last_modified_time=? WHERE id = ?; + basePath: $.Plan + jsonMaps: + - jsonPath: $.Plan.executionPlanId + + - jsonPath: $.Plan.planConfigurationId + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - jsonPath: $.Plan.id + + - query: INSERT INTO plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET description = EXCLUDED.description, planned_start_date = EXCLUDED.planned_start_date, planned_end_date = EXCLUDED.planned_end_date, dependencies = EXCLUDED.dependencies, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.activities.* + jsonMaps: + - jsonPath: $.Plan.activities.*.id + + - jsonPath: $.Plan.activities.*.code + + - jsonPath: $.Plan.activities.*.description + + - jsonPath: $.Plan.activities.*.plannedStartDate + + - jsonPath: $.Plan.activities.*.plannedEndDate + + - jsonPath: $.Plan.activities.*.dependencies + type: ARRAY + dbType: STRING + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET entity = EXCLUDED.entity, entity_property = EXCLUDED.entity_property, expression = EXCLUDED.expression, is_active = EXCLUDED.is_active, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.activities.*.conditions.* + jsonMaps: + - jsonPath: $.Plan.activities.*.conditions.*.id + + - jsonPath: $.Plan.activities.*.conditions.*.entity + + - jsonPath: $.Plan.activities.*.conditions.*.entityProperty + + - jsonPath: $.Plan.activities.*.conditions.*.expression + + - jsonPath: $.Plan.activities[*][?({id} in @.conditions[*].id)].id + + - jsonPath: $.Plan.activities.*.conditions.*.isActive + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET resource_type = EXCLUDED.resource_type, estimated_number = EXCLUDED.estimated_number, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.resources.* + jsonMaps: + - jsonPath: $.Plan.resources.*.id + + - jsonPath: $.Plan.resources.*.resourceType + + - jsonPath: $.Plan.resources.*.estimatedNumber + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.resources.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET metric = EXCLUDED.metric, metric_value = EXCLUDED.metric_value, metric_comparator = EXCLUDED.metric_comparator, metric_unit = EXCLUDED.metric_unit, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.targets.* + jsonMaps: + - jsonPath: $.Plan.targets.*.id + + - jsonPath: $.Plan.targets.*.metric + + - jsonPath: $.Plan.targets.*.metricDetail.value + + - jsonPath: $.Plan.targets.*.metricDetail.comparator + + - jsonPath: $.Plan.targets.*.metricDetail.unit + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.targets.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime \ No newline at end of file From cb387e0fe8f4c3d558b699d6d930406d2157d7c8 Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:19:34 +0530 Subject: [PATCH 119/158] adding boundry-persister.yml file in egov persister (#3020) --- egov-persister/boundary-persister.yml | 122 ++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 egov-persister/boundary-persister.yml diff --git a/egov-persister/boundary-persister.yml b/egov-persister/boundary-persister.yml new file mode 100644 index 000000000..b40ae9b17 --- /dev/null +++ b/egov-persister/boundary-persister.yml @@ -0,0 +1,122 @@ +serviceMaps: + serviceName: boundary-Service + mappings: + - version: 1.0 + description: Persists the boundary entity data + fromTopic: create-boundary-entity + isTransaction: true + queryMaps: + - query: INSERT INTO boundary (id, tenantId, code, geometry, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Boundary.* + jsonMaps: + - jsonPath: $.Boundary.*.id + + - jsonPath: $.Boundary.*.tenantId + + - jsonPath: $.Boundary.*.code + + - jsonPath: $.Boundary.*.geometry + type: JSON + dbType: JSONB + + - jsonPath: $.Boundary.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Boundary.*.auditDetails.createdBy + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedBy + + - jsonPath: $.Boundary.*.auditDetails.createdTime + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedTime + - version: 1.0 + description: Persists the boundary entity data + fromTopic: update-boundary-entity + isTransaction: true + queryMaps: + - query: UPDATE boundary SET geometry = ? , lastModifiedBy = ? , lastModifiedTime = ? WHERE code = ? AND tenantId = ?; + basePath: $.Boundary.* + jsonMaps: + - jsonPath: $.Boundary.*.geometry + type: JSON + dbType: JSONB + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedBy + + - jsonPath: $.Boundary.*.auditDetails.lastModifiedTime + + - jsonPath: $.Boundary.*.code + + - jsonPath: $.Boundary.*.tenantId + - version: 1.0 + description: Persists the boundary hierarchy definition data + fromTopic: save-boundary-hierarchy-definition + isTransaction: true + queryMaps: + - query: INSERT INTO boundary_hierarchy (id, tenantId, hierarchyType, boundaryHierarchy, createdTime, createdBy, lastModifiedTime, lastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.BoundaryHierarchy + jsonMaps: + - jsonPath: $.BoundaryHierarchy.id + + - jsonPath: $.BoundaryHierarchy.tenantId + + - jsonPath: $.BoundaryHierarchy.hierarchyType + + - jsonPath: $.BoundaryHierarchy.boundaryHierarchyJsonNode + type: JSON + dbType: JSONB + + - jsonPath: $.BoundaryHierarchy.auditDetails.createdTime + + - jsonPath: $.BoundaryHierarchy.auditDetails.createdBy + + - jsonPath: $.BoundaryHierarchy.auditDetails.lastModifiedTime + + - jsonPath: $.BoundaryHierarchy.auditDetails.lastModifiedBy + - version: 1.0 + description: Persists the boundary relationship data + fromTopic: save-boundary-relationship + isTransaction: true + queryMaps: + - query: INSERT INTO boundary_relationship (id, tenantId, code, hierarchyType, boundaryType, parent, ancestralMaterializedPath, createdTime, createdBy, lastModifiedTime, lastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.BoundaryRelationship + jsonMaps: + - jsonPath: $.BoundaryRelationship.id + + - jsonPath: $.BoundaryRelationship.tenantId + + - jsonPath: $.BoundaryRelationship.code + + - jsonPath: $.BoundaryRelationship.hierarchyType + + - jsonPath: $.BoundaryRelationship.boundaryType + + - jsonPath: $.BoundaryRelationship.parent + + - jsonPath: $.BoundaryRelationship.ancestralMaterializedPath + + - jsonPath: $.BoundaryRelationship.auditDetails.createdTime + + - jsonPath: $.BoundaryRelationship.auditDetails.createdBy + + - jsonPath: $.BoundaryRelationship.auditDetails.lastModifiedTime + + - jsonPath: $.BoundaryRelationship.auditDetails.lastModifiedBy + - version: 1.0 + description: Updates boundary relationship data + fromTopic: update-boundary-relationship + isTransaction: true + queryMaps: + - query: UPDATE boundary_relationship SET parent = ?, ancestralmaterializedpath = ?, lastmodifiedtime = ?, lastmodifiedby = ? WHERE id = ?; + basePath: $.BoundaryRelationshipList.* + jsonMaps: + - jsonPath: $.BoundaryRelationshipList.*.parent + + - jsonPath: $.BoundaryRelationshipList.*.ancestralMaterializedPath + + - jsonPath: $.BoundaryRelationshipList.*.auditDetails.lastModifiedTime + + - jsonPath: $.BoundaryRelationshipList.*.auditDetails.lastModifiedBy + + - jsonPath: $.BoundaryRelationshipList.*.id \ No newline at end of file From 6257fd8b6f957ba7d6c5926c94e12b6d75e9a1e8 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Tue, 2 Apr 2024 12:27:09 +0530 Subject: [PATCH 120/158] adding health persister changes --- health/egov-persister/project-factory-persister.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index e8d4d34bd..061f5a42c 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -105,13 +105,15 @@ serviceMaps: fromTopic: save-project-campaign-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action", campaignNumber,hierarchyType,boundaryCode, projectId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); + - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); basePath: $.CampaignDetails jsonMaps: - jsonPath: $.CampaignDetails.id - jsonPath: $.CampaignDetails.tenantId - jsonPath: $.CampaignDetails.status - jsonPath: $.CampaignDetails.action + - jsonPath: $.CampaignDetails.campaignName + - jsonPath: $.CampaignDetails.projectType - jsonPath: $.CampaignDetails.campaignNumber - jsonPath: $.CampaignDetails.hierarchyType - jsonPath: $.CampaignDetails.boundaryCode From 2c3fadd6d35716ff95dc8d9d46999c2e83b5a749 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:48:57 +0530 Subject: [PATCH 121/158] userUuidJsonPath changed to take user uuid from userInfo in RequestInfo (#3023) Co-authored-by: LataNaik --- health/egov-persister/facility-persister.yml | 200 ++++---- health/egov-persister/household-persister.yml | 316 ++++++------ .../egov-persister/individual-persister.yml | 480 +++++++++--------- health/egov-persister/product-persister.yml | 136 ++--- health/egov-persister/project-persister.yml | 408 +++++++-------- .../egov-persister/project-task-persister.yml | 282 +++++----- .../referral-management-persister.yml | 368 +++++++------- health/egov-persister/stock-persister.yml | 272 +++++----- 8 files changed, 1231 insertions(+), 1231 deletions(-) diff --git a/health/egov-persister/facility-persister.yml b/health/egov-persister/facility-persister.yml index 1e5f4af6f..af2cd98a0 100644 --- a/health/egov-persister/facility-persister.yml +++ b/health/egov-persister/facility-persister.yml @@ -7,52 +7,52 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: FACILITY - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Facilities.*.id + tenantIdJsonPath: $.Facilities.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Facilities.*.clientReferenceId + auditAttributeBasePath: $.Facilities.* queryMaps: - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.Facilities.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.isPermanent - - jsonPath: $.*.name - - jsonPath: $.*.usage - - jsonPath: $.*.storageCapacity - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields + - jsonPath: $.Facilities.*.id + - jsonPath: $.Facilities.*.clientReferenceId + - jsonPath: $.Facilities.*.tenantId + - jsonPath: $.Facilities.*.isPermanent + - jsonPath: $.Facilities.*.name + - jsonPath: $.Facilities.*.usage + - jsonPath: $.Facilities.*.storageCapacity + - jsonPath: $.Facilities.*.address.id + - jsonPath: $.Facilities.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.Facilities.*.auditDetails.createdBy + - jsonPath: $.Facilities.*.auditDetails.createdTime + - jsonPath: $.Facilities.*.auditDetails.lastModifiedBy + - jsonPath: $.Facilities.*.auditDetails.lastModifiedTime + - jsonPath: $.Facilities.*.rowVersion + - jsonPath: $.Facilities.*.isDeleted - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address + basePath: $.Facilities.*.address jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code + - jsonPath: $.Facilities.*.address.id + - jsonPath: $.Facilities.*.address.tenantId + - jsonPath: $.Facilities.*.address.clientReferenceId + - jsonPath: $.Facilities.*.address.doorNo + - jsonPath: $.Facilities.*.address.latitude + - jsonPath: $.Facilities.*.address.longitude + - jsonPath: $.Facilities.*.address.locationAccuracy + - jsonPath: $.Facilities.*.address.type + - jsonPath: $.Facilities.*.address.addressLine1 + - jsonPath: $.Facilities.*.address.addressLine2 + - jsonPath: $.Facilities.*.address.landmark + - jsonPath: $.Facilities.*.address.city + - jsonPath: $.Facilities.*.address.pincode + - jsonPath: $.Facilities.*.address.buildingName + - jsonPath: $.Facilities.*.address.street + - jsonPath: $.Facilities.*.address.locality.code - version: 1.0 description: Updates a facility @@ -60,64 +60,64 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: FACILITY - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Facilities.*.id + tenantIdJsonPath: $.Facilities.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Facilities.*.clientReferenceId + auditAttributeBasePath: $.Facilities.* queryMaps: - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; - basePath: $.* + basePath: $.Facilities.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.isPermanent - - jsonPath: $.*.name - - jsonPath: $.*.usage - - jsonPath: $.*.storageCapacity - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields + - jsonPath: $.Facilities.*.tenantId + - jsonPath: $.Facilities.*.clientReferenceId + - jsonPath: $.Facilities.*.isPermanent + - jsonPath: $.Facilities.*.name + - jsonPath: $.Facilities.*.usage + - jsonPath: $.Facilities.*.storageCapacity + - jsonPath: $.Facilities.*.address.id + - jsonPath: $.Facilities.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.id + - jsonPath: $.Facilities.*.auditDetails.lastModifiedBy + - jsonPath: $.Facilities.*.auditDetails.lastModifiedTime + - jsonPath: $.Facilities.*.rowVersion + - jsonPath: $.Facilities.*.id - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; - basePath: $.*.address + basePath: $.Facilities.*.address jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code + - jsonPath: $.Facilities.*.address.id + - jsonPath: $.Facilities.*.address.tenantId + - jsonPath: $.Facilities.*.address.clientReferenceId + - jsonPath: $.Facilities.*.address.doorNo + - jsonPath: $.Facilities.*.address.latitude + - jsonPath: $.Facilities.*.address.longitude + - jsonPath: $.Facilities.*.address.locationAccuracy + - jsonPath: $.Facilities.*.address.type + - jsonPath: $.Facilities.*.address.addressLine1 + - jsonPath: $.Facilities.*.address.addressLine2 + - jsonPath: $.Facilities.*.address.landmark + - jsonPath: $.Facilities.*.address.city + - jsonPath: $.Facilities.*.address.pincode + - jsonPath: $.Facilities.*.address.buildingName + - jsonPath: $.Facilities.*.address.street + - jsonPath: $.Facilities.*.address.locality.code + - jsonPath: $.Facilities.*.address.tenantId + - jsonPath: $.Facilities.*.address.clientReferenceId + - jsonPath: $.Facilities.*.address.doorNo + - jsonPath: $.Facilities.*.address.latitude + - jsonPath: $.Facilities.*.address.longitude + - jsonPath: $.Facilities.*.address.locationAccuracy + - jsonPath: $.Facilities.*.address.type + - jsonPath: $.Facilities.*.address.addressLine1 + - jsonPath: $.Facilities.*.address.addressLine2 + - jsonPath: $.Facilities.*.address.landmark + - jsonPath: $.Facilities.*.address.city + - jsonPath: $.Facilities.*.address.pincode + - jsonPath: $.Facilities.*.address.buildingName + - jsonPath: $.Facilities.*.address.street + - jsonPath: $.Facilities.*.address.locality.code - version: 1.0 description: Deletes a facility @@ -125,20 +125,20 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: FACILITY - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Facilities.*.id + tenantIdJsonPath: $.Facilities.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Facilities.*.clientReferenceId + auditAttributeBasePath: $.Facilities.* queryMaps: - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* + basePath: $.Facilities.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.Facilities.*.auditDetails.lastModifiedBy + - jsonPath: $.Facilities.*.auditDetails.lastModifiedTime + - jsonPath: $.Facilities.*.rowVersion + - jsonPath: $.Facilities.*.isDeleted + - jsonPath: $.Facilities.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.Facilities.*.id \ No newline at end of file diff --git a/health/egov-persister/household-persister.yml b/health/egov-persister/household-persister.yml index bc6f80b1c..b20816c65 100644 --- a/health/egov-persister/household-persister.yml +++ b/health/egov-persister/household-persister.yml @@ -7,52 +7,52 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Households.*.id + tenantIdJsonPath: $.Households.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Households.*.clientReferenceId + auditAttributeBasePath: $.Households.* queryMaps: - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* + basePath: $.Households.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.memberCount - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields + - jsonPath: $.Households.*.id + - jsonPath: $.Households.*.tenantId + - jsonPath: $.Households.*.clientReferenceId + - jsonPath: $.Households.*.memberCount + - jsonPath: $.Households.*.address.id + - jsonPath: $.Households.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Households.*.auditDetails.createdBy + - jsonPath: $.Households.*.auditDetails.lastModifiedBy + - jsonPath: $.Households.*.auditDetails.createdTime + - jsonPath: $.Households.*.auditDetails.lastModifiedTime + - jsonPath: $.Households.*.rowVersion + - jsonPath: $.Households.*.isDeleted + - jsonPath: $.Households.*.clientAuditDetails.createdTime + - jsonPath: $.Households.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Households.*.clientAuditDetails.createdBy + - jsonPath: $.Households.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address + basePath: $.Households.*.address jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code + - jsonPath: $.Households.*.address.id + - jsonPath: $.Households.*.address.clientReferenceId + - jsonPath: $.Households.*.address.tenantId + - jsonPath: $.Households.*.address.doorNo + - jsonPath: $.Households.*.address.latitude + - jsonPath: $.Households.*.address.longitude + - jsonPath: $.Households.*.address.locationAccuracy + - jsonPath: $.Households.*.address.type + - jsonPath: $.Households.*.address.addressLine1 + - jsonPath: $.Households.*.address.addressLine2 + - jsonPath: $.Households.*.address.landmark + - jsonPath: $.Households.*.address.city + - jsonPath: $.Households.*.address.pincode + - jsonPath: $.Households.*.address.buildingName + - jsonPath: $.Households.*.address.street + - jsonPath: $.Households.*.address.locality.code - version: 1.0 description: Updates household. @@ -60,62 +60,62 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Households.*.id + tenantIdJsonPath: $.Households.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Households.*.clientReferenceId + auditAttributeBasePath: $.Households.* queryMaps: - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; - basePath: $.* + basePath: $.Households.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.memberCount - - jsonPath: $.*.address.id - - jsonPath: $.*.additionalFields + - jsonPath: $.Households.*.tenantId + - jsonPath: $.Households.*.clientReferenceId + - jsonPath: $.Households.*.memberCount + - jsonPath: $.Households.*.address.id + - jsonPath: $.Households.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.id + - jsonPath: $.Households.*.auditDetails.lastModifiedBy + - jsonPath: $.Households.*.auditDetails.lastModifiedTime + - jsonPath: $.Households.*.rowVersion + - jsonPath: $.Households.*.isDeleted + - jsonPath: $.Households.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Households.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Households.*.id - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; - basePath: $.*.address + basePath: $.Households.*.address jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code + - jsonPath: $.Households.*.address.id + - jsonPath: $.Households.*.address.clientReferenceId + - jsonPath: $.Households.*.address.tenantId + - jsonPath: $.Households.*.address.doorNo + - jsonPath: $.Households.*.address.latitude + - jsonPath: $.Households.*.address.longitude + - jsonPath: $.Households.*.address.locationAccuracy + - jsonPath: $.Households.*.address.type + - jsonPath: $.Households.*.address.addressLine1 + - jsonPath: $.Households.*.address.addressLine2 + - jsonPath: $.Households.*.address.landmark + - jsonPath: $.Households.*.address.city + - jsonPath: $.Households.*.address.pincode + - jsonPath: $.Households.*.address.buildingName + - jsonPath: $.Households.*.address.street + - jsonPath: $.Households.*.address.locality.code + - jsonPath: $.Households.*.address.tenantId + - jsonPath: $.Households.*.address.doorNo + - jsonPath: $.Households.*.address.latitude + - jsonPath: $.Households.*.address.longitude + - jsonPath: $.Households.*.address.locationAccuracy + - jsonPath: $.Households.*.address.type + - jsonPath: $.Households.*.address.addressLine1 + - jsonPath: $.Households.*.address.addressLine2 + - jsonPath: $.Households.*.address.landmark + - jsonPath: $.Households.*.address.city + - jsonPath: $.Households.*.address.pincode + - jsonPath: $.Households.*.address.buildingName + - jsonPath: $.Households.*.address.street + - jsonPath: $.Households.*.address.locality.code - version: 1.0 description: Deletes household. @@ -123,25 +123,25 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Households.*.id + tenantIdJsonPath: $.Households.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Households.*.clientReferenceId + auditAttributeBasePath: $.Households.* queryMaps: - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.* + basePath: $.Households.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.Households.*.auditDetails.lastModifiedBy + - jsonPath: $.Households.*.auditDetails.lastModifiedTime + - jsonPath: $.Households.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Households.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Households.*.rowVersion + - jsonPath: $.Households.*.isDeleted + - jsonPath: $.Households.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.Households.*.id - version: 1.0 description: Persists household member. @@ -149,86 +149,86 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.HouseholdMembers.*.id + tenantIdJsonPath: $.HouseholdMembers.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.HouseholdMembers.*.clientReferenceId + auditAttributeBasePath: $.HouseholdMembers.* queryMaps: - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* + basePath: $.HouseholdMembers.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.individualId - - jsonPath: $.*.individualClientReferenceId - - jsonPath: $.*.householdId - - jsonPath: $.*.householdClientReferenceId - - jsonPath: $.*.isHeadOfHousehold - - jsonPath: $.*.additionalFields + - jsonPath: $.HouseholdMembers.*.id + - jsonPath: $.HouseholdMembers.*.tenantId + - jsonPath: $.HouseholdMembers.*.clientReferenceId + - jsonPath: $.HouseholdMembers.*.individualId + - jsonPath: $.HouseholdMembers.*.individualClientReferenceId + - jsonPath: $.HouseholdMembers.*.householdId + - jsonPath: $.HouseholdMembers.*.householdClientReferenceId + - jsonPath: $.HouseholdMembers.*.isHeadOfHousehold + - jsonPath: $.HouseholdMembers.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.HouseholdMembers.*.auditDetails.createdBy + - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedBy + - jsonPath: $.HouseholdMembers.*.auditDetails.createdTime + - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedTime + - jsonPath: $.HouseholdMembers.*.rowVersion + - jsonPath: $.HouseholdMembers.*.isDeleted + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.createdTime + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.createdBy + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Update household member. fromTopic: update-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.HouseholdMembers.*.id + tenantIdJsonPath: $.HouseholdMembers.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.HouseholdMembers.*.clientReferenceId + auditAttributeBasePath: $.HouseholdMembers.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; - basePath: $.* + basePath: $.HouseholdMembers.* jsonMaps: - - jsonPath: $.*.isHeadOfHousehold - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.additionalFields + - jsonPath: $.HouseholdMembers.*.isHeadOfHousehold + - jsonPath: $.HouseholdMembers.*.clientReferenceId + - jsonPath: $.HouseholdMembers.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.individualId - - jsonPath: $.*.householdId + - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedBy + - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedTime + - jsonPath: $.HouseholdMembers.*.rowVersion + - jsonPath: $.HouseholdMembers.*.isDeleted + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.HouseholdMembers.*.individualId + - jsonPath: $.HouseholdMembers.*.householdId - version: 1.0 description: Deletes household Member. fromTopic: delete-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.HouseholdMembers.*.id + tenantIdJsonPath: $.HouseholdMembers.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.HouseholdMembers.*.clientReferenceId + auditAttributeBasePath: $.HouseholdMembers.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.* + basePath: $.HouseholdMembers.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedBy + - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedTime + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.HouseholdMembers.*.rowVersion + - jsonPath: $.HouseholdMembers.*.isDeleted + - jsonPath: $.HouseholdMembers.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.HouseholdMembers.*.id \ No newline at end of file diff --git a/health/egov-persister/individual-persister.yml b/health/egov-persister/individual-persister.yml index 6a06349d3..e9b937fda 100644 --- a/health/egov-persister/individual-persister.yml +++ b/health/egov-persister/individual-persister.yml @@ -7,115 +7,115 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Individuals.*.id + tenantIdJsonPath: $.Individuals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Individuals.*.clientReferenceId + auditAttributeBasePath: $.Individuals.* queryMaps: - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address.* + basePath: $.Individuals.*.address.* jsonMaps: - - jsonPath: $.*.address.*.id - - jsonPath: $.*.address.*.clientReferenceId - - jsonPath: $.*.address.*.tenantId - - jsonPath: $.*.address.*.doorNo - - jsonPath: $.*.address.*.latitude - - jsonPath: $.*.address.*.longitude - - jsonPath: $.*.address.*.locationAccuracy - - jsonPath: $.*.address.*.type - - jsonPath: $.*.address.*.addressLine1 - - jsonPath: $.*.address.*.addressLine2 - - jsonPath: $.*.address.*.landmark - - jsonPath: $.*.address.*.city - - jsonPath: $.*.address.*.pincode - - jsonPath: $.*.address.*.buildingName - - jsonPath: $.*.address.*.street - - jsonPath: $.*.address.*.locality.code - - jsonPath: $.*.address.*.ward.code + - jsonPath: $.Individuals.*.address.*.id + - jsonPath: $.Individuals.*.address.*.clientReferenceId + - jsonPath: $.Individuals.*.address.*.tenantId + - jsonPath: $.Individuals.*.address.*.doorNo + - jsonPath: $.Individuals.*.address.*.latitude + - jsonPath: $.Individuals.*.address.*.longitude + - jsonPath: $.Individuals.*.address.*.locationAccuracy + - jsonPath: $.Individuals.*.address.*.type + - jsonPath: $.Individuals.*.address.*.addressLine1 + - jsonPath: $.Individuals.*.address.*.addressLine2 + - jsonPath: $.Individuals.*.address.*.landmark + - jsonPath: $.Individuals.*.address.*.city + - jsonPath: $.Individuals.*.address.*.pincode + - jsonPath: $.Individuals.*.address.*.buildingName + - jsonPath: $.Individuals.*.address.*.street + - jsonPath: $.Individuals.*.address.*.locality.code + - jsonPath: $.Individuals.*.address.*.ward.code - query: INSERT INTO health.individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* + basePath: $.Individuals.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.userId - - jsonPath: $.*.userUuid - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.name.givenName - - jsonPath: $.*.name.familyName - - jsonPath: $.*.name.otherNames - - jsonPath: $.*.dateOfBirth + - jsonPath: $.Individuals.*.id + - jsonPath: $.Individuals.*.userId + - jsonPath: $.Individuals.*.userUuid + - jsonPath: $.Individuals.*.clientReferenceId + - jsonPath: $.Individuals.*.tenantId + - jsonPath: $.Individuals.*.name.givenName + - jsonPath: $.Individuals.*.name.familyName + - jsonPath: $.Individuals.*.name.otherNames + - jsonPath: $.Individuals.*.dateOfBirth type: DATE - - jsonPath: $.*.gender - - jsonPath: $.*.bloodGroup - - jsonPath: $.*.mobileNumber - - jsonPath: $.*.altContactNumber - - jsonPath: $.*.email - - jsonPath: $.*.fatherName - - jsonPath: $.*.husbandName - - jsonPath: $.*.photo - - jsonPath: $.*.additionalFields + - jsonPath: $.Individuals.*.gender + - jsonPath: $.Individuals.*.bloodGroup + - jsonPath: $.Individuals.*.mobileNumber + - jsonPath: $.Individuals.*.altContactNumber + - jsonPath: $.Individuals.*.email + - jsonPath: $.Individuals.*.fatherName + - jsonPath: $.Individuals.*.husbandName + - jsonPath: $.Individuals.*.photo + - jsonPath: $.Individuals.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.individualId - - jsonPath: $.*.relationship - - jsonPath: $.*.isSystemUser - - jsonPath: $.*.isSystemUserActive - - jsonPath: $.*.userDetails.username - - jsonPath: $.*.userDetails.password - - jsonPath: $.*.userDetails.type - - jsonPath: $.*.userDetails.roles + - jsonPath: $.Individuals.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.rowVersion + - jsonPath: $.Individuals.*.isDeleted + - jsonPath: $.Individuals.*.individualId + - jsonPath: $.Individuals.*.relationship + - jsonPath: $.Individuals.*.isSystemUser + - jsonPath: $.Individuals.*.isSystemUserActive + - jsonPath: $.Individuals.*.userDetails.username + - jsonPath: $.Individuals.*.userDetails.password + - jsonPath: $.Individuals.*.userDetails.type + - jsonPath: $.Individuals.*.userDetails.roles type: JSON dbType: JSONB - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.clientAuditDetails.createdTime + - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.clientAuditDetails.createdBy + - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address.* + basePath: $.Individuals.*.address.* jsonMaps: - - jsonPath: $.*.address.*.individualId - - jsonPath: $.*.address.*.id - - jsonPath: $.*.address.*.type - - jsonPath: $.*.address.*.auditDetails.createdBy - - jsonPath: $.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.*.address.*.auditDetails.createdTime - - jsonPath: $.*.address.*.auditDetails.lastModifiedTime - - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.Individuals.*.address.*.individualId + - jsonPath: $.Individuals.*.address.*.id + - jsonPath: $.Individuals.*.address.*.type + - jsonPath: $.Individuals.*.address.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.address.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.address.*.isDeleted - query: INSERT INTO health.individual_identifier(id, clientReferenceId, identifierType, identifierId, individualId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.identifiers.* + basePath: $.Individuals.*.identifiers.* jsonMaps: - - jsonPath: $.*.identifiers.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.identifiers.*.identifierType - - jsonPath: $.*.identifiers.*.identifierId - - jsonPath: $.*.identifiers.*.individualId - - jsonPath: $.*.identifiers.*.auditDetails.createdBy - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.*.identifiers.*.auditDetails.createdTime - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.Individuals.*.identifiers.*.id + - jsonPath: $.Individuals.*.clientReferenceId + - jsonPath: $.Individuals.*.identifiers.*.identifierType + - jsonPath: $.Individuals.*.identifiers.*.identifierId + - jsonPath: $.Individuals.*.identifiers.*.individualId + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.identifiers.*.isDeleted - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.skills.* + basePath: $.Individuals.*.skills.* jsonMaps: - - jsonPath: $.*.skills.*.id - - jsonPath: $.*.skills.*.clientReferenceId - - jsonPath: $.*.skills.*.individualId - - jsonPath: $.*.skills.*.type - - jsonPath: $.*.skills.*.level - - jsonPath: $.*.skills.*.experience - - jsonPath: $.*.skills.*.auditDetails.createdBy - - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.*.skills.*.auditDetails.createdTime - - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime - - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.Individuals.*.skills.*.id + - jsonPath: $.Individuals.*.skills.*.clientReferenceId + - jsonPath: $.Individuals.*.skills.*.individualId + - jsonPath: $.Individuals.*.skills.*.type + - jsonPath: $.Individuals.*.skills.*.level + - jsonPath: $.Individuals.*.skills.*.experience + - jsonPath: $.Individuals.*.skills.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.skills.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.skills.*.isDeleted - version: 1.0 description: Updates Individual @@ -123,131 +123,131 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Individuals.*.id + tenantIdJsonPath: $.Individuals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Individuals.*.clientReferenceId + auditAttributeBasePath: $.Individuals.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; - basePath: $.* + basePath: $.Individuals.* jsonMaps: - - jsonPath: $.*.userId - - jsonPath: $.*.userUuid - - jsonPath: $.*.tenantId - - jsonPath: $.*.name.givenName - - jsonPath: $.*.name.familyName - - jsonPath: $.*.name.otherNames - - jsonPath: $.*.dateOfBirth + - jsonPath: $.Individuals.*.userId + - jsonPath: $.Individuals.*.userUuid + - jsonPath: $.Individuals.*.tenantId + - jsonPath: $.Individuals.*.name.givenName + - jsonPath: $.Individuals.*.name.familyName + - jsonPath: $.Individuals.*.name.otherNames + - jsonPath: $.Individuals.*.dateOfBirth type: DATE - - jsonPath: $.*.gender - - jsonPath: $.*.bloodGroup - - jsonPath: $.*.mobileNumber - - jsonPath: $.*.altContactNumber - - jsonPath: $.*.email - - jsonPath: $.*.fatherName - - jsonPath: $.*.husbandName - - jsonPath: $.*.relationship - - jsonPath: $.*.photo - - jsonPath: $.*.isSystemUserActive - - jsonPath: $.*.additionalFields + - jsonPath: $.Individuals.*.gender + - jsonPath: $.Individuals.*.bloodGroup + - jsonPath: $.Individuals.*.mobileNumber + - jsonPath: $.Individuals.*.altContactNumber + - jsonPath: $.Individuals.*.email + - jsonPath: $.Individuals.*.fatherName + - jsonPath: $.Individuals.*.husbandName + - jsonPath: $.Individuals.*.relationship + - jsonPath: $.Individuals.*.photo + - jsonPath: $.Individuals.*.isSystemUserActive + - jsonPath: $.Individuals.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.userDetails.username - - jsonPath: $.*.userDetails.password - - jsonPath: $.*.userDetails.type - - jsonPath: $.*.userDetails.roles + - jsonPath: $.Individuals.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.rowVersion + - jsonPath: $.Individuals.*.userDetails.username + - jsonPath: $.Individuals.*.userDetails.password + - jsonPath: $.Individuals.*.userDetails.type + - jsonPath: $.Individuals.*.userDetails.roles type: JSON dbType: JSONB - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.id + - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.id - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; - basePath: $.*.address.* + basePath: $.Individuals.*.address.* jsonMaps: - - jsonPath: $.*.address.*.id - - jsonPath: $.*.address.*.clientReferenceId - - jsonPath: $.*.address.*.tenantId - - jsonPath: $.*.address.*.doorNo - - jsonPath: $.*.address.*.latitude - - jsonPath: $.*.address.*.longitude - - jsonPath: $.*.address.*.locationAccuracy - - jsonPath: $.*.address.*.type - - jsonPath: $.*.address.*.addressLine1 - - jsonPath: $.*.address.*.addressLine2 - - jsonPath: $.*.address.*.landmark - - jsonPath: $.*.address.*.city - - jsonPath: $.*.address.*.pincode - - jsonPath: $.*.address.*.buildingName - - jsonPath: $.*.address.*.street - - jsonPath: $.*.address.*.locality.code - - jsonPath: $.*.address.*.ward.code - - jsonPath: $.*.address.*.doorNo - - jsonPath: $.*.address.*.latitude - - jsonPath: $.*.address.*.longitude - - jsonPath: $.*.address.*.locationAccuracy - - jsonPath: $.*.address.*.type - - jsonPath: $.*.address.*.addressLine1 - - jsonPath: $.*.address.*.addressLine2 - - jsonPath: $.*.address.*.landmark - - jsonPath: $.*.address.*.city - - jsonPath: $.*.address.*.pincode - - jsonPath: $.*.address.*.buildingName - - jsonPath: $.*.address.*.street - - jsonPath: $.*.address.*.locality.code - - jsonPath: $.*.address.*.ward.code + - jsonPath: $.Individuals.*.address.*.id + - jsonPath: $.Individuals.*.address.*.clientReferenceId + - jsonPath: $.Individuals.*.address.*.tenantId + - jsonPath: $.Individuals.*.address.*.doorNo + - jsonPath: $.Individuals.*.address.*.latitude + - jsonPath: $.Individuals.*.address.*.longitude + - jsonPath: $.Individuals.*.address.*.locationAccuracy + - jsonPath: $.Individuals.*.address.*.type + - jsonPath: $.Individuals.*.address.*.addressLine1 + - jsonPath: $.Individuals.*.address.*.addressLine2 + - jsonPath: $.Individuals.*.address.*.landmark + - jsonPath: $.Individuals.*.address.*.city + - jsonPath: $.Individuals.*.address.*.pincode + - jsonPath: $.Individuals.*.address.*.buildingName + - jsonPath: $.Individuals.*.address.*.street + - jsonPath: $.Individuals.*.address.*.locality.code + - jsonPath: $.Individuals.*.address.*.ward.code + - jsonPath: $.Individuals.*.address.*.doorNo + - jsonPath: $.Individuals.*.address.*.latitude + - jsonPath: $.Individuals.*.address.*.longitude + - jsonPath: $.Individuals.*.address.*.locationAccuracy + - jsonPath: $.Individuals.*.address.*.type + - jsonPath: $.Individuals.*.address.*.addressLine1 + - jsonPath: $.Individuals.*.address.*.addressLine2 + - jsonPath: $.Individuals.*.address.*.landmark + - jsonPath: $.Individuals.*.address.*.city + - jsonPath: $.Individuals.*.address.*.pincode + - jsonPath: $.Individuals.*.address.*.buildingName + - jsonPath: $.Individuals.*.address.*.street + - jsonPath: $.Individuals.*.address.*.locality.code + - jsonPath: $.Individuals.*.address.*.ward.code - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (individualId, addressId, type, isDeleted) WHERE isDeleted=false DO UPDATE SET lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.*.address.* + basePath: $.Individuals.*.address.* jsonMaps: - - jsonPath: $.*.address.*.individualId - - jsonPath: $.*.address.*.id - - jsonPath: $.*.address.*.type - - jsonPath: $.*.address.*.auditDetails.createdBy - - jsonPath: $.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.*.address.*.auditDetails.createdTime - - jsonPath: $.*.address.*.auditDetails.lastModifiedTime - - jsonPath: $.*.address.*.isDeleted - - jsonPath: $.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.address.*.individualId + - jsonPath: $.Individuals.*.address.*.id + - jsonPath: $.Individuals.*.address.*.type + - jsonPath: $.Individuals.*.address.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.address.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.address.*.isDeleted + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime - query: INSERT INTO health.individual_identifier(id, clientReferenceId, individualId, identifierType, identifierId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET identifierId = ?, identifierType = ?, lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.*.identifiers.* + basePath: $.Individuals.*.identifiers.* jsonMaps: - - jsonPath: $.*.identifiers.*.id - - jsonPath: $.*.identifiers.*.clientReferenceId - - jsonPath: $.*.identifiers.*.individualId - - jsonPath: $.*.identifiers.*.identifierType - - jsonPath: $.*.identifiers.*.identifierId - - jsonPath: $.*.identifiers.*.auditDetails.createdBy - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.*.identifiers.*.auditDetails.createdTime - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - - jsonPath: $.*.identifiers.*.isDeleted - - jsonPath: $.*.identifiers.*.identifierId - - jsonPath: $.*.identifiers.*.identifierType - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.identifiers.*.id + - jsonPath: $.Individuals.*.identifiers.*.clientReferenceId + - jsonPath: $.Individuals.*.identifiers.*.individualId + - jsonPath: $.Individuals.*.identifiers.*.identifierType + - jsonPath: $.Individuals.*.identifiers.*.identifierId + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.identifiers.*.isDeleted + - jsonPath: $.Individuals.*.identifiers.*.identifierId + - jsonPath: $.Individuals.*.identifiers.*.identifierType + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET type = ?, level = ?, experience = ?, lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.*.skills.* + basePath: $.Individuals.*.skills.* jsonMaps: - - jsonPath: $.*.skills.*.id - - jsonPath: $.*.skills.*.clientReferenceId - - jsonPath: $.*.skills.*.individualId - - jsonPath: $.*.skills.*.type - - jsonPath: $.*.skills.*.level - - jsonPath: $.*.skills.*.experience - - jsonPath: $.*.skills.*.auditDetails.createdBy - - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.*.skills.*.auditDetails.createdTime - - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime - - jsonPath: $.*.skills.*.isDeleted - - jsonPath: $.*.skills.*.type - - jsonPath: $.*.skills.*.level - - jsonPath: $.*.skills.*.experience - - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.skills.*.id + - jsonPath: $.Individuals.*.skills.*.clientReferenceId + - jsonPath: $.Individuals.*.skills.*.individualId + - jsonPath: $.Individuals.*.skills.*.type + - jsonPath: $.Individuals.*.skills.*.level + - jsonPath: $.Individuals.*.skills.*.experience + - jsonPath: $.Individuals.*.skills.*.auditDetails.createdBy + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.skills.*.auditDetails.createdTime + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.skills.*.isDeleted + - jsonPath: $.Individuals.*.skills.*.type + - jsonPath: $.Individuals.*.skills.*.level + - jsonPath: $.Individuals.*.skills.*.experience + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime - version: 1.0 description: Deletes Individual and related Entities @@ -255,45 +255,45 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Individuals.*.id + tenantIdJsonPath: $.Individuals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Individuals.*.clientReferenceId + auditAttributeBasePath: $.Individuals.* queryMaps: - query: UPDATE health.individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; - basePath: $.* + basePath: $.Individuals.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.isSystemUserActive - - jsonPath: $.*.id + - jsonPath: $.Individuals.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.rowVersion + - jsonPath: $.Individuals.*.isDeleted + - jsonPath: $.Individuals.*.isSystemUserActive + - jsonPath: $.Individuals.*.id - query: UPDATE health.individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; - basePath: $.*.address.* + basePath: $.Individuals.*.address.* jsonMaps: - - jsonPath: $.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.*.address.*.auditDetails.lastModifiedTime - - jsonPath: $.*.address.*.isDeleted - - jsonPath: $.*.address.*.individualId - - jsonPath: $.*.address.*.id + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.address.*.isDeleted + - jsonPath: $.Individuals.*.address.*.individualId + - jsonPath: $.Individuals.*.address.*.id - query: UPDATE health.individual_identifier SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; - basePath: $.*.identifiers.* + basePath: $.Individuals.*.identifiers.* jsonMaps: - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - - jsonPath: $.*.identifiers.*.isDeleted - - jsonPath: $.*.identifiers.*.id + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.identifiers.*.isDeleted + - jsonPath: $.Individuals.*.identifiers.*.id - query: UPDATE health.individual_skill SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; - basePath: $.*.skills.* + basePath: $.Individuals.*.skills.* jsonMaps: - - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime - - jsonPath: $.*.skills.*.isDeleted - - jsonPath: $.*.skills.*.id + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.Individuals.*.skills.*.isDeleted + - jsonPath: $.Individuals.*.skills.*.id - version: 1.0 description: Updates userId and userUuid received from user-service into an individual @@ -301,15 +301,15 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Individuals.*.id + tenantIdJsonPath: $.Individuals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Individuals.*.clientReferenceId + auditAttributeBasePath: $.Individuals.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=? WHERE id=?; - basePath: $.* + basePath: $.Individuals.* jsonMaps: - - jsonPath: $.*.userId - - jsonPath: $.*.userUuid - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.Individuals.*.userId + - jsonPath: $.Individuals.*.userUuid + - jsonPath: $.Individuals.*.id \ No newline at end of file diff --git a/health/egov-persister/product-persister.yml b/health/egov-persister/product-persister.yml index be5179a7f..2646a8ca7 100644 --- a/health/egov-persister/product-persister.yml +++ b/health/egov-persister/product-persister.yml @@ -7,29 +7,29 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.Product.*.id + tenantIdJsonPath: $.Product.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Product.*.id + auditAttributeBasePath: $.Product.* queryMaps: - query: INSERT INTO health.product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.* + basePath: $.Product.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.type - - jsonPath: $.*.name - - jsonPath: $.*.manufacturer - - jsonPath: $.*.additionalFields + - jsonPath: $.Product.*.id + - jsonPath: $.Product.*.tenantId + - jsonPath: $.Product.*.type + - jsonPath: $.Product.*.name + - jsonPath: $.Product.*.manufacturer + - jsonPath: $.Product.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.Product.*.auditDetails.createdBy + - jsonPath: $.Product.*.auditDetails.lastModifiedBy + - jsonPath: $.Product.*.auditDetails.createdTime + - jsonPath: $.Product.*.auditDetails.lastModifiedTime + - jsonPath: $.Product.*.rowVersion + - jsonPath: $.Product.*.isDeleted - version: 1.0 description: Updates Product @@ -37,27 +37,27 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.Product.*.id + tenantIdJsonPath: $.Product.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Product.*.id + auditAttributeBasePath: $.Product.* queryMaps: - query: UPDATE health.product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? - basePath: $.* + basePath: $.Product.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.type - - jsonPath: $.*.name - - jsonPath: $.*.manufacturer - - jsonPath: $.*.additionalFields + - jsonPath: $.Product.*.tenantId + - jsonPath: $.Product.*.type + - jsonPath: $.Product.*.name + - jsonPath: $.Product.*.manufacturer + - jsonPath: $.Product.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.Product.*.auditDetails.lastModifiedBy + - jsonPath: $.Product.*.auditDetails.lastModifiedTime + - jsonPath: $.Product.*.rowVersion + - jsonPath: $.Product.*.isDeleted + - jsonPath: $.Product.*.id - version: 1.0 description: Saves a product variant @@ -65,29 +65,29 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProductVariant.*.id + tenantIdJsonPath: $.ProductVariant.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProductVariant.*.id + auditAttributeBasePath: $.ProductVariant.* queryMaps: - query: INSERT INTO health.product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.ProductVariant.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.productId - - jsonPath: $.*.sku - - jsonPath: $.*.variation - - jsonPath: $.*.additionalFields + - jsonPath: $.ProductVariant.*.id + - jsonPath: $.ProductVariant.*.tenantId + - jsonPath: $.ProductVariant.*.productId + - jsonPath: $.ProductVariant.*.sku + - jsonPath: $.ProductVariant.*.variation + - jsonPath: $.ProductVariant.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.ProductVariant.*.auditDetails.createdBy + - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedBy + - jsonPath: $.ProductVariant.*.auditDetails.createdTime + - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedTime + - jsonPath: $.ProductVariant.*.rowVersion + - jsonPath: $.ProductVariant.*.isDeleted - version: 1.0 description: Updates a product variant @@ -95,24 +95,24 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProductVariant.*.id + tenantIdJsonPath: $.ProductVariant.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProductVariant.*.id + auditAttributeBasePath: $.ProductVariant.* queryMaps: - query: UPDATE health.product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; - basePath: $.* + basePath: $.ProductVariant.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.productId - - jsonPath: $.*.sku - - jsonPath: $.*.variation - - jsonPath: $.*.additionalFields + - jsonPath: $.ProductVariant.*.tenantId + - jsonPath: $.ProductVariant.*.productId + - jsonPath: $.ProductVariant.*.sku + - jsonPath: $.ProductVariant.*.variation + - jsonPath: $.ProductVariant.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedBy + - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedTime + - jsonPath: $.ProductVariant.*.rowVersion + - jsonPath: $.ProductVariant.*.isDeleted + - jsonPath: $.ProductVariant.*.id \ No newline at end of file diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index 2850d2fa8..703106515 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -7,30 +7,30 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectStaff.*.id + tenantIdJsonPath: $.ProjectStaff.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectStaff.*.clientReferenceId + auditAttributeBasePath: $.ProjectStaff.* queryMaps: - query: INSERT INTO health.project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.ProjectStaff.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.userId - - jsonPath: $.*.startDate - - jsonPath: $.*.endDate - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectStaff.*.id + - jsonPath: $.ProjectStaff.*.tenantId + - jsonPath: $.ProjectStaff.*.projectId + - jsonPath: $.ProjectStaff.*.userId + - jsonPath: $.ProjectStaff.*.startDate + - jsonPath: $.ProjectStaff.*.endDate + - jsonPath: $.ProjectStaff.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.ProjectStaff.*.auditDetails.createdBy + - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectStaff.*.auditDetails.createdTime + - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectStaff.*.rowVersion + - jsonPath: $.ProjectStaff.*.isDeleted - version: 1.0 description: Update Project Staff @@ -38,27 +38,27 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectStaff.*.id + tenantIdJsonPath: $.ProjectStaff.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectStaff.*.clientReferenceId + auditAttributeBasePath: $.ProjectStaff.* queryMaps: - query: UPDATE health.project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.* + basePath: $.ProjectStaff.* jsonMaps: - - jsonPath: $.*.projectId - - jsonPath: $.*.userId - - jsonPath: $.*.startDate - - jsonPath: $.*.endDate - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectStaff.*.projectId + - jsonPath: $.ProjectStaff.*.userId + - jsonPath: $.ProjectStaff.*.startDate + - jsonPath: $.ProjectStaff.*.endDate + - jsonPath: $.ProjectStaff.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectStaff.*.rowVersion + - jsonPath: $.ProjectStaff.*.isDeleted + - jsonPath: $.ProjectStaff.*.id - version: 1.0 description: Deletes Project Staff @@ -66,23 +66,23 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectStaff.*.id + tenantIdJsonPath: $.ProjectStaff.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectStaff.*.clientReferenceId + auditAttributeBasePath: $.ProjectStaff.* queryMaps: - query: UPDATE health.project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* + basePath: $.ProjectStaff.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectStaff.*.rowVersion + - jsonPath: $.ProjectStaff.*.isDeleted + - jsonPath: $.ProjectStaff.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.ProjectStaff.*.id - version: 1.0 description: Saves a project beneficiary @@ -90,36 +90,36 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectBeneficiaries.*.id + tenantIdJsonPath: $.ProjectBeneficiaries.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectBeneficiaries.*.clientReferenceId + auditAttributeBasePath: $.ProjectBeneficiaries.* queryMaps: - query: INSERT INTO health.project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.ProjectBeneficiaries.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.beneficiaryId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.beneficiaryClientReferenceId - - jsonPath: $.*.dateOfRegistration - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectBeneficiaries.*.id + - jsonPath: $.ProjectBeneficiaries.*.tenantId + - jsonPath: $.ProjectBeneficiaries.*.projectId + - jsonPath: $.ProjectBeneficiaries.*.beneficiaryId + - jsonPath: $.ProjectBeneficiaries.*.clientReferenceId + - jsonPath: $.ProjectBeneficiaries.*.beneficiaryClientReferenceId + - jsonPath: $.ProjectBeneficiaries.*.dateOfRegistration + - jsonPath: $.ProjectBeneficiaries.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.tag + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.createdBy + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.createdTime + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectBeneficiaries.*.rowVersion + - jsonPath: $.ProjectBeneficiaries.*.isDeleted + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.createdTime + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.createdBy + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.ProjectBeneficiaries.*.tag - version: 1.0 description: Update Project Beneficiary @@ -127,31 +127,31 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectBeneficiaries.*.id + tenantIdJsonPath: $.ProjectBeneficiaries.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectBeneficiaries.*.clientReferenceId + auditAttributeBasePath: $.ProjectBeneficiaries.* queryMaps: - query: UPDATE health.project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false - basePath: $.* + basePath: $.ProjectBeneficiaries.* jsonMaps: - - jsonPath: $.*.projectId - - jsonPath: $.*.beneficiaryId - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.beneficiaryClientReferenceId - - jsonPath: $.*.dateOfRegistration - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectBeneficiaries.*.projectId + - jsonPath: $.ProjectBeneficiaries.*.beneficiaryId + - jsonPath: $.ProjectBeneficiaries.*.clientReferenceId + - jsonPath: $.ProjectBeneficiaries.*.beneficiaryClientReferenceId + - jsonPath: $.ProjectBeneficiaries.*.dateOfRegistration + - jsonPath: $.ProjectBeneficiaries.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.tag - - jsonPath: $.*.id + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectBeneficiaries.*.rowVersion + - jsonPath: $.ProjectBeneficiaries.*.isDeleted + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.ProjectBeneficiaries.*.tag + - jsonPath: $.ProjectBeneficiaries.*.id - version: 1.0 description: Deletes Project Beneficiaries @@ -159,25 +159,25 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectBeneficiaries.*.id + tenantIdJsonPath: $.ProjectBeneficiaries.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectBeneficiaries.*.clientReferenceId + auditAttributeBasePath: $.ProjectBeneficiaries.* queryMaps: - query: UPDATE health.project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* + basePath: $.ProjectBeneficiaries.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.ProjectBeneficiaries.*.rowVersion + - jsonPath: $.ProjectBeneficiaries.*.isDeleted + - jsonPath: $.ProjectBeneficiaries.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.ProjectBeneficiaries.*.id - version: 1.0 name: Projects @@ -186,11 +186,11 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.Projects.*.id + tenantIdJsonPath: $.Projects.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Projects.*.id + auditAttributeBasePath: $.Projects.* queryMaps: - query: INSERT INTO health.project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.* @@ -343,7 +343,7 @@ serviceMaps: module: PROJECT objecIdJsonPath: $.id tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy + userUuidJsonPath: $.RequestInfo.userInfo.uuid transactionCodeJsonPath: $.id auditAttributeBasePath: $.* queryMaps: @@ -511,29 +511,29 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectResources.*.id + tenantIdJsonPath: $.ProjectResources.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectResources.*.id + auditAttributeBasePath: $.ProjectResources.* queryMaps: - query: INSERT INTO health.project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.ProjectResources.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.resource.productVariantId - - jsonPath: $.*.resource.isBaseUnitVariant - - jsonPath: $.*.startDate - - jsonPath: $.*.endDate - - jsonPath: $.*.resource.type - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.ProjectResources.*.id + - jsonPath: $.ProjectResources.*.tenantId + - jsonPath: $.ProjectResources.*.projectId + - jsonPath: $.ProjectResources.*.resource.productVariantId + - jsonPath: $.ProjectResources.*.resource.isBaseUnitVariant + - jsonPath: $.ProjectResources.*.startDate + - jsonPath: $.ProjectResources.*.endDate + - jsonPath: $.ProjectResources.*.resource.type + - jsonPath: $.ProjectResources.*.auditDetails.createdBy + - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectResources.*.auditDetails.createdTime + - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectResources.*.rowVersion + - jsonPath: $.ProjectResources.*.isDeleted - version: 1.0 description: Update a project resourcce @@ -541,27 +541,27 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectResources.*.id + tenantIdJsonPath: $.ProjectResources.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectResources.*.id + auditAttributeBasePath: $.ProjectResources.* queryMaps: - query: UPDATE health.project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.* + basePath: $.ProjectResources.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.resource.productVariantId - - jsonPath: $.*.resource.isBaseUnitVariant - - jsonPath: $.*.startDate - - jsonPath: $.*.endDate - - jsonPath: $.*.resource.type - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.ProjectResources.*.tenantId + - jsonPath: $.ProjectResources.*.projectId + - jsonPath: $.ProjectResources.*.resource.productVariantId + - jsonPath: $.ProjectResources.*.resource.isBaseUnitVariant + - jsonPath: $.ProjectResources.*.startDate + - jsonPath: $.ProjectResources.*.endDate + - jsonPath: $.ProjectResources.*.resource.type + - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectResources.*.rowVersion + - jsonPath: $.ProjectResources.*.isDeleted + - jsonPath: $.ProjectResources.*.id - version: 1.0 description: Delete a project resourcce @@ -569,20 +569,20 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectResources.*.id + tenantIdJsonPath: $.ProjectResources.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectResources.*.id + auditAttributeBasePath: $.ProjectResources.* queryMaps: - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.* + basePath: $.ProjectResources.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectResources.*.rowVersion + - jsonPath: $.ProjectResources.*.isDeleted + - jsonPath: $.ProjectResources.*.id - version: 1.0 description: Saves a project facility @@ -590,39 +590,39 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectFacilities.*.id + tenantIdJsonPath: $.ProjectFacilities.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectFacilities.*.id + auditAttributeBasePath: $.ProjectFacilities.* queryMaps: - query: INSERT INTO health.project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.ProjectFacilities.* jsonMaps: - - jsonPath: $.*.id + - jsonPath: $.ProjectFacilities.*.id - - jsonPath: $.*.tenantId + - jsonPath: $.ProjectFacilities.*.tenantId - - jsonPath: $.*.projectId + - jsonPath: $.ProjectFacilities.*.projectId - - jsonPath: $.*.facilityId + - jsonPath: $.ProjectFacilities.*.facilityId - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectFacilities.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.ProjectFacilities.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.ProjectFacilities.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion + - jsonPath: $.ProjectFacilities.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.ProjectFacilities.*.isDeleted - version: 1.0 description: Update Project Facility @@ -630,33 +630,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectFacilities.*.id + tenantIdJsonPath: $.ProjectFacilities.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectFacilities.*.id + auditAttributeBasePath: $.ProjectFacilities.* queryMaps: - query: UPDATE health.project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.* + basePath: $.ProjectFacilities.* jsonMaps: - - jsonPath: $.*.projectId + - jsonPath: $.ProjectFacilities.*.projectId - - jsonPath: $.*.facilityId + - jsonPath: $.ProjectFacilities.*.facilityId - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectFacilities.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion + - jsonPath: $.ProjectFacilities.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.ProjectFacilities.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.ProjectFacilities.*.id - version: 1.0 description: Deletes Project Facility @@ -664,20 +664,20 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.id - auditAttributeBasePath: $.* + objecIdJsonPath: $.ProjectFacilities.*.id + tenantIdJsonPath: $.ProjectFacilities.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.ProjectFacilities.*.id + auditAttributeBasePath: $.ProjectFacilities.* queryMaps: - query: UPDATE health.project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* + basePath: $.ProjectFacilities.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedBy + - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedTime + - jsonPath: $.ProjectFacilities.*.rowVersion + - jsonPath: $.ProjectFacilities.*.isDeleted + - jsonPath: $.ProjectFacilities.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.ProjectFacilities.*.id \ No newline at end of file diff --git a/health/egov-persister/project-task-persister.yml b/health/egov-persister/project-task-persister.yml index 96b14bf35..229f11cf2 100644 --- a/health/egov-persister/project-task-persister.yml +++ b/health/egov-persister/project-task-persister.yml @@ -7,77 +7,77 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Tasks.*.id + tenantIdJsonPath: $.Tasks.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Tasks.*.clientReferenceId + auditAttributeBasePath: $.Tasks.* queryMaps: - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.Tasks.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.projectBeneficiaryId - - jsonPath: $.*.projectBeneficiaryClientReferenceId - - jsonPath: $.*.plannedStartDate - - jsonPath: $.*.plannedEndDate - - jsonPath: $.*.actualStartDate - - jsonPath: $.*.actualEndDate - - jsonPath: $.*.address.id - - jsonPath: $.*.status - - jsonPath: $.*.additionalFields + - jsonPath: $.Tasks.*.id + - jsonPath: $.Tasks.*.clientReferenceId + - jsonPath: $.Tasks.*.tenantId + - jsonPath: $.Tasks.*.projectId + - jsonPath: $.Tasks.*.projectBeneficiaryId + - jsonPath: $.Tasks.*.projectBeneficiaryClientReferenceId + - jsonPath: $.Tasks.*.plannedStartDate + - jsonPath: $.Tasks.*.plannedEndDate + - jsonPath: $.Tasks.*.actualStartDate + - jsonPath: $.Tasks.*.actualEndDate + - jsonPath: $.Tasks.*.address.id + - jsonPath: $.Tasks.*.status + - jsonPath: $.Tasks.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.auditDetails.createdBy + - jsonPath: $.Tasks.*.auditDetails.createdTime + - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.rowVersion + - jsonPath: $.Tasks.*.isDeleted + - jsonPath: $.Tasks.*.clientAuditDetails.createdTime + - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.clientAuditDetails.createdBy + - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.address + basePath: $.Tasks.*.address jsonMaps: - - jsonPath: $.*.address.id - - jsonPath: $.*.address.clientReferenceId - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code + - jsonPath: $.Tasks.*.address.id + - jsonPath: $.Tasks.*.address.clientReferenceId + - jsonPath: $.Tasks.*.address.tenantId + - jsonPath: $.Tasks.*.address.doorNo + - jsonPath: $.Tasks.*.address.latitude + - jsonPath: $.Tasks.*.address.longitude + - jsonPath: $.Tasks.*.address.locationAccuracy + - jsonPath: $.Tasks.*.address.type + - jsonPath: $.Tasks.*.address.addressLine1 + - jsonPath: $.Tasks.*.address.addressLine2 + - jsonPath: $.Tasks.*.address.landmark + - jsonPath: $.Tasks.*.address.city + - jsonPath: $.Tasks.*.address.pincode + - jsonPath: $.Tasks.*.address.buildingName + - jsonPath: $.Tasks.*.address.street + - jsonPath: $.Tasks.*.address.locality.code - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.*.resources.* + basePath: $.Tasks.*.resources.* jsonMaps: - - jsonPath: $.*.resources.*.id - - jsonPath: $.*.resources.*.clientReferenceId - - jsonPath: $.*.resources.*.tenantId - - jsonPath: $.*.resources.*.productVariantId - - jsonPath: $.*.resources.*.taskId - - jsonPath: $.*.resources.*.quantity - - jsonPath: $.*.resources.*.isDelivered - - jsonPath: $.*.resources.*.deliveryComment - - jsonPath: $.*.resources.*.auditDetails.createdBy - - jsonPath: $.*.resources.*.auditDetails.createdTime - - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.Tasks.*.resources.*.id + - jsonPath: $.Tasks.*.resources.*.clientReferenceId + - jsonPath: $.Tasks.*.resources.*.tenantId + - jsonPath: $.Tasks.*.resources.*.productVariantId + - jsonPath: $.Tasks.*.resources.*.taskId + - jsonPath: $.Tasks.*.resources.*.quantity + - jsonPath: $.Tasks.*.resources.*.isDelivered + - jsonPath: $.Tasks.*.resources.*.deliveryComment + - jsonPath: $.Tasks.*.resources.*.auditDetails.createdBy + - jsonPath: $.Tasks.*.resources.*.auditDetails.createdTime + - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.resources.*.isDeleted - version: 1.0 description: Updates a project task @@ -85,79 +85,79 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Tasks.*.id + tenantIdJsonPath: $.Tasks.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Tasks.*.clientReferenceId + auditAttributeBasePath: $.Tasks.* queryMaps: - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; - basePath: $.* + basePath: $.Tasks.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.projectBeneficiaryId - - jsonPath: $.*.projectBeneficiaryClientReferenceId - - jsonPath: $.*.address.id - - jsonPath: $.*.plannedStartDate - - jsonPath: $.*.plannedEndDate - - jsonPath: $.*.actualStartDate - - jsonPath: $.*.actualEndDate - - jsonPath: $.*.status - - jsonPath: $.*.additionalFields + - jsonPath: $.Tasks.*.tenantId + - jsonPath: $.Tasks.*.projectId + - jsonPath: $.Tasks.*.projectBeneficiaryId + - jsonPath: $.Tasks.*.projectBeneficiaryClientReferenceId + - jsonPath: $.Tasks.*.address.id + - jsonPath: $.Tasks.*.plannedStartDate + - jsonPath: $.Tasks.*.plannedEndDate + - jsonPath: $.Tasks.*.actualStartDate + - jsonPath: $.Tasks.*.actualEndDate + - jsonPath: $.Tasks.*.status + - jsonPath: $.Tasks.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.id + - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.rowVersion + - jsonPath: $.Tasks.*.isDeleted + - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.id - query: UPDATE health.ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; - basePath: $.*.address + basePath: $.Tasks.*.address jsonMaps: - - jsonPath: $.*.address.tenantId - - jsonPath: $.*.address.doorNo - - jsonPath: $.*.address.latitude - - jsonPath: $.*.address.longitude - - jsonPath: $.*.address.locationAccuracy - - jsonPath: $.*.address.type - - jsonPath: $.*.address.addressLine1 - - jsonPath: $.*.address.addressLine2 - - jsonPath: $.*.address.landmark - - jsonPath: $.*.address.city - - jsonPath: $.*.address.pincode - - jsonPath: $.*.address.buildingName - - jsonPath: $.*.address.street - - jsonPath: $.*.address.locality.code - - jsonPath: $.*.address.id + - jsonPath: $.Tasks.*.address.tenantId + - jsonPath: $.Tasks.*.address.doorNo + - jsonPath: $.Tasks.*.address.latitude + - jsonPath: $.Tasks.*.address.longitude + - jsonPath: $.Tasks.*.address.locationAccuracy + - jsonPath: $.Tasks.*.address.type + - jsonPath: $.Tasks.*.address.addressLine1 + - jsonPath: $.Tasks.*.address.addressLine2 + - jsonPath: $.Tasks.*.address.landmark + - jsonPath: $.Tasks.*.address.city + - jsonPath: $.Tasks.*.address.pincode + - jsonPath: $.Tasks.*.address.buildingName + - jsonPath: $.Tasks.*.address.street + - jsonPath: $.Tasks.*.address.locality.code + - jsonPath: $.Tasks.*.address.id - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.*.resources.* + basePath: $.Tasks.*.resources.* jsonMaps: - - jsonPath: $.*.resources.*.id - - jsonPath: $.*.resources.*.clientReferenceId - - jsonPath: $.*.resources.*.tenantId - - jsonPath: $.*.resources.*.productVariantId - - jsonPath: $.*.resources.*.taskId - - jsonPath: $.*.resources.*.quantity - - jsonPath: $.*.resources.*.isDelivered - - jsonPath: $.*.resources.*.deliveryComment - - jsonPath: $.*.resources.*.auditDetails.createdBy - - jsonPath: $.*.resources.*.auditDetails.createdTime - - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - - jsonPath: $.*.resources.*.isDeleted - - jsonPath: $.*.resources.*.tenantId - - jsonPath: $.*.resources.*.taskId - - jsonPath: $.*.resources.*.productVariantId - - jsonPath: $.*.resources.*.quantity - - jsonPath: $.*.resources.*.isDelivered - - jsonPath: $.*.resources.*.deliveryComment - - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.resources.*.id + - jsonPath: $.Tasks.*.resources.*.clientReferenceId + - jsonPath: $.Tasks.*.resources.*.tenantId + - jsonPath: $.Tasks.*.resources.*.productVariantId + - jsonPath: $.Tasks.*.resources.*.taskId + - jsonPath: $.Tasks.*.resources.*.quantity + - jsonPath: $.Tasks.*.resources.*.isDelivered + - jsonPath: $.Tasks.*.resources.*.deliveryComment + - jsonPath: $.Tasks.*.resources.*.auditDetails.createdBy + - jsonPath: $.Tasks.*.resources.*.auditDetails.createdTime + - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.resources.*.isDeleted + - jsonPath: $.Tasks.*.resources.*.tenantId + - jsonPath: $.Tasks.*.resources.*.taskId + - jsonPath: $.Tasks.*.resources.*.productVariantId + - jsonPath: $.Tasks.*.resources.*.quantity + - jsonPath: $.Tasks.*.resources.*.isDelivered + - jsonPath: $.Tasks.*.resources.*.deliveryComment + - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedTime - version: 1.0 description: Deletes a project task @@ -165,32 +165,32 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Tasks.*.id + tenantIdJsonPath: $.Tasks.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Tasks.*.clientReferenceId + auditAttributeBasePath: $.Tasks.* queryMaps: - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.* + basePath: $.Tasks.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.rowVersion + - jsonPath: $.Tasks.*.isDeleted + - jsonPath: $.Tasks.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.Tasks.*.id - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; - basePath: $.*.resources.* + basePath: $.Tasks.*.resources.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy + - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime + - jsonPath: $.Tasks.*.isDeleted + - jsonPath: $.Tasks.*.id - version: 1.0 description: Saves a adverse event diff --git a/health/egov-persister/referral-management-persister.yml b/health/egov-persister/referral-management-persister.yml index 7fb9e6d56..becab2372 100644 --- a/health/egov-persister/referral-management-persister.yml +++ b/health/egov-persister/referral-management-persister.yml @@ -7,38 +7,38 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.SideEffects.*.id + tenantIdJsonPath: $.SideEffects.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.SideEffects.*.clientReferenceId + auditAttributeBasePath: $.SideEffects.* queryMaps: - query: INSERT INTO health.SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.SideEffects.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.taskId - - jsonPath: $.*.taskClientReferenceId - - jsonPath: $.*.projectBeneficiaryId - - jsonPath: $.*.projectBeneficiaryClientReferenceId - - jsonPath: $.*.symptoms + - jsonPath: $.SideEffects.*.id + - jsonPath: $.SideEffects.*.clientReferenceId + - jsonPath: $.SideEffects.*.tenantId + - jsonPath: $.SideEffects.*.taskId + - jsonPath: $.SideEffects.*.taskClientReferenceId + - jsonPath: $.SideEffects.*.projectBeneficiaryId + - jsonPath: $.SideEffects.*.projectBeneficiaryClientReferenceId + - jsonPath: $.SideEffects.*.symptoms type: JSON dbType: JSONB - - jsonPath: $.*.additionalFields + - jsonPath: $.SideEffects.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.SideEffects.*.auditDetails.createdBy + - jsonPath: $.SideEffects.*.auditDetails.createdTime + - jsonPath: $.SideEffects.*.auditDetails.lastModifiedBy + - jsonPath: $.SideEffects.*.auditDetails.lastModifiedTime + - jsonPath: $.SideEffects.*.clientAuditDetails.createdBy + - jsonPath: $.SideEffects.*.clientAuditDetails.createdTime + - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.SideEffects.*.rowVersion + - jsonPath: $.SideEffects.*.isDeleted - version: 1.0 description: Updates a side effect @@ -46,33 +46,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.SideEffects.*.id + tenantIdJsonPath: $.SideEffects.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.SideEffects.*.clientReferenceId + auditAttributeBasePath: $.SideEffects.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.* + basePath: $.SideEffects.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.taskId - - jsonPath: $.*.taskClientReferenceId - - jsonPath: $.*.projectBeneficiaryId - - jsonPath: $.*.projectBeneficiaryClientReferenceId - - jsonPath: $.*.symptoms + - jsonPath: $.SideEffects.*.tenantId + - jsonPath: $.SideEffects.*.taskId + - jsonPath: $.SideEffects.*.taskClientReferenceId + - jsonPath: $.SideEffects.*.projectBeneficiaryId + - jsonPath: $.SideEffects.*.projectBeneficiaryClientReferenceId + - jsonPath: $.SideEffects.*.symptoms type: JSON dbType: JSONB - - jsonPath: $.*.additionalFields + - jsonPath: $.SideEffects.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.SideEffects.*.auditDetails.lastModifiedBy + - jsonPath: $.SideEffects.*.auditDetails.lastModifiedTime + - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.SideEffects.*.rowVersion + - jsonPath: $.SideEffects.*.isDeleted + - jsonPath: $.SideEffects.*.id - version: 1.0 description: Deletes a side effect @@ -80,22 +80,22 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.SideEffects.*.id + tenantIdJsonPath: $.SideEffects.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.SideEffects.*.clientReferenceId + auditAttributeBasePath: $.SideEffects.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.* + basePath: $.SideEffects.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.SideEffects.*.auditDetails.lastModifiedBy + - jsonPath: $.SideEffects.*.auditDetails.lastModifiedTime + - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.SideEffects.*.rowVersion + - jsonPath: $.SideEffects.*.isDeleted + - jsonPath: $.SideEffects.*.id - version: 1.0 description: Saves a referral @@ -103,41 +103,41 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Referrals.*.id + tenantIdJsonPath: $.Referrals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Referrals.*.clientReferenceId + auditAttributeBasePath: $.Referrals.* queryMaps: - query: INSERT INTO health.REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.Referrals.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectBeneficiaryId - - jsonPath: $.*.projectBeneficiaryClientReferenceId - - jsonPath: $.*.referrerId - - jsonPath: $.*.recipientId - - jsonPath: $.*.recipientType - - jsonPath: $.*.reasons + - jsonPath: $.Referrals.*.id + - jsonPath: $.Referrals.*.clientReferenceId + - jsonPath: $.Referrals.*.tenantId + - jsonPath: $.Referrals.*.projectBeneficiaryId + - jsonPath: $.Referrals.*.projectBeneficiaryClientReferenceId + - jsonPath: $.Referrals.*.referrerId + - jsonPath: $.Referrals.*.recipientId + - jsonPath: $.Referrals.*.recipientType + - jsonPath: $.Referrals.*.reasons type: JSON dbType: JSONB - - jsonPath: $.*.additionalFields + - jsonPath: $.Referrals.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.sideEffect.id - - jsonPath: $.*.sideEffect.clientReferenceId - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.Referrals.*.sideEffect.id + - jsonPath: $.Referrals.*.sideEffect.clientReferenceId + - jsonPath: $.Referrals.*.auditDetails.createdBy + - jsonPath: $.Referrals.*.auditDetails.createdTime + - jsonPath: $.Referrals.*.auditDetails.lastModifiedBy + - jsonPath: $.Referrals.*.auditDetails.lastModifiedTime + - jsonPath: $.Referrals.*.clientAuditDetails.createdBy + - jsonPath: $.Referrals.*.clientAuditDetails.createdTime + - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Referrals.*.rowVersion + - jsonPath: $.Referrals.*.isDeleted - version: 1.0 description: Updates a referral @@ -145,36 +145,36 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Referrals.*.id + tenantIdJsonPath: $.Referrals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Referrals.*.clientReferenceId + auditAttributeBasePath: $.Referrals.* queryMaps: - query: UPDATE health.REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.* + basePath: $.Referrals.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectBeneficiaryId - - jsonPath: $.*.projectBeneficiaryClientReferenceId - - jsonPath: $.*.referrerId - - jsonPath: $.*.recipientId - - jsonPath: $.*.recipientType - - jsonPath: $.*.reasons + - jsonPath: $.Referrals.*.tenantId + - jsonPath: $.Referrals.*.projectBeneficiaryId + - jsonPath: $.Referrals.*.projectBeneficiaryClientReferenceId + - jsonPath: $.Referrals.*.referrerId + - jsonPath: $.Referrals.*.recipientId + - jsonPath: $.Referrals.*.recipientType + - jsonPath: $.Referrals.*.reasons type: JSON dbType: JSONB - - jsonPath: $.*.additionalFields + - jsonPath: $.Referrals.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.sideEffect.id - - jsonPath: $.*.sideEffect.clientReferenceId - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.Referrals.*.sideEffect.id + - jsonPath: $.Referrals.*.sideEffect.clientReferenceId + - jsonPath: $.Referrals.*.auditDetails.lastModifiedBy + - jsonPath: $.Referrals.*.auditDetails.lastModifiedTime + - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Referrals.*.rowVersion + - jsonPath: $.Referrals.*.isDeleted + - jsonPath: $.Referrals.*.id - version: 1.0 description: Deletes a referral @@ -182,22 +182,22 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Referrals.*.id + tenantIdJsonPath: $.Referrals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Referrals.*.clientReferenceId + auditAttributeBasePath: $.Referrals.* queryMaps: - query: UPDATE health.REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.* + basePath: $.Referrals.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.Referrals.*.auditDetails.lastModifiedBy + - jsonPath: $.Referrals.*.auditDetails.lastModifiedTime + - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Referrals.*.rowVersion + - jsonPath: $.Referrals.*.isDeleted + - jsonPath: $.Referrals.*.id - version: 1.0 description: Saves a hfreferral @@ -205,38 +205,38 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.HFReferrals.*.id + tenantIdJsonPath: $.HFReferrals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.HFReferrals.*.clientReferenceId + auditAttributeBasePath: $.HFReferrals.* queryMaps: - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.HFReferrals.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.projectFacilityId - - jsonPath: $.*.symptom - - jsonPath: $.*.symptomSurveyId - - jsonPath: $.*.beneficiaryId - - jsonPath: $.*.referralCode - - jsonPath: $.*.nationalLevelId - - jsonPath: $.*.additionalFields + - jsonPath: $.HFReferrals.*.id + - jsonPath: $.HFReferrals.*.clientReferenceId + - jsonPath: $.HFReferrals.*.tenantId + - jsonPath: $.HFReferrals.*.projectId + - jsonPath: $.HFReferrals.*.projectFacilityId + - jsonPath: $.HFReferrals.*.symptom + - jsonPath: $.HFReferrals.*.symptomSurveyId + - jsonPath: $.HFReferrals.*.beneficiaryId + - jsonPath: $.HFReferrals.*.referralCode + - jsonPath: $.HFReferrals.*.nationalLevelId + - jsonPath: $.HFReferrals.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted + - jsonPath: $.HFReferrals.*.auditDetails.createdBy + - jsonPath: $.HFReferrals.*.auditDetails.createdTime + - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedBy + - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedTime + - jsonPath: $.HFReferrals.*.clientAuditDetails.createdBy + - jsonPath: $.HFReferrals.*.clientAuditDetails.createdTime + - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.HFReferrals.*.rowVersion + - jsonPath: $.HFReferrals.*.isDeleted - version: 1.0 description: Updates a hfreferral @@ -244,33 +244,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.HFReferrals.*.id + tenantIdJsonPath: $.HFReferrals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.HFReferrals.*.clientReferenceId + auditAttributeBasePath: $.HFReferrals.* queryMaps: - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; - basePath: $.* + basePath: $.HFReferrals.* jsonMaps: - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.projectId - - jsonPath: $.*.projectFacilityId - - jsonPath: $.*.symptom - - jsonPath: $.*.symptomSurveyId - - jsonPath: $.*.beneficiaryId - - jsonPath: $.*.referralCode - - jsonPath: $.*.nationalLevelId - - jsonPath: $.*.additionalFields + - jsonPath: $.HFReferrals.*.clientReferenceId + - jsonPath: $.HFReferrals.*.tenantId + - jsonPath: $.HFReferrals.*.projectId + - jsonPath: $.HFReferrals.*.projectFacilityId + - jsonPath: $.HFReferrals.*.symptom + - jsonPath: $.HFReferrals.*.symptomSurveyId + - jsonPath: $.HFReferrals.*.beneficiaryId + - jsonPath: $.HFReferrals.*.referralCode + - jsonPath: $.HFReferrals.*.nationalLevelId + - jsonPath: $.HFReferrals.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.id + - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedBy + - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedTime + - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.HFReferrals.*.rowVersion + - jsonPath: $.HFReferrals.*.id - version: 1.0 description: Deletes a hfreferral @@ -278,19 +278,19 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.HFReferrals.*.id + tenantIdJsonPath: $.HFReferrals.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.HFReferrals.*.clientReferenceId + auditAttributeBasePath: $.HFReferrals.* queryMaps: - query: UPDATE health.hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.* + basePath: $.HFReferrals.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedBy + - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedTime + - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.HFReferrals.*.rowVersion + - jsonPath: $.HFReferrals.*.isDeleted + - jsonPath: $.HFReferrals.*.id \ No newline at end of file diff --git a/health/egov-persister/stock-persister.yml b/health/egov-persister/stock-persister.yml index 1b4794ce6..094bb5a8c 100644 --- a/health/egov-persister/stock-persister.yml +++ b/health/egov-persister/stock-persister.yml @@ -7,43 +7,43 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Stock.*.id + tenantIdJsonPath: $.Stock.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Stock.*.clientReferenceId + auditAttributeBasePath: $.Stock.* queryMaps: - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, senderType, senderId, receiverType, receiverId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.Stock.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.productVariantId - - jsonPath: $.*.wayBillNumber - - jsonPath: $.*.quantity - - jsonPath: $.*.referenceId - - jsonPath: $.*.referenceIdType - - jsonPath: $.*.transactionType - - jsonPath: $.*.transactionReason - - jsonPath: $.*.senderType - - jsonPath: $.*.senderId - - jsonPath: $.*.receiverType - - jsonPath: $.*.receiverId - - jsonPath: $.*.additionalFields + - jsonPath: $.Stock.*.id + - jsonPath: $.Stock.*.clientReferenceId + - jsonPath: $.Stock.*.tenantId + - jsonPath: $.Stock.*.productVariantId + - jsonPath: $.Stock.*.wayBillNumber + - jsonPath: $.Stock.*.quantity + - jsonPath: $.Stock.*.referenceId + - jsonPath: $.Stock.*.referenceIdType + - jsonPath: $.Stock.*.transactionType + - jsonPath: $.Stock.*.transactionReason + - jsonPath: $.Stock.*.senderType + - jsonPath: $.Stock.*.senderId + - jsonPath: $.Stock.*.receiverType + - jsonPath: $.Stock.*.receiverId + - jsonPath: $.Stock.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.dateOfEntry - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Stock.*.auditDetails.createdBy + - jsonPath: $.Stock.*.auditDetails.createdTime + - jsonPath: $.Stock.*.auditDetails.lastModifiedBy + - jsonPath: $.Stock.*.auditDetails.lastModifiedTime + - jsonPath: $.Stock.*.rowVersion + - jsonPath: $.Stock.*.isDeleted + - jsonPath: $.Stock.*.dateOfEntry + - jsonPath: $.Stock.*.clientAuditDetails.createdTime + - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Stock.*.clientAuditDetails.createdBy + - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Updates a stock @@ -51,37 +51,37 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Stock.*.id + tenantIdJsonPath: $.Stock.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Stock.*.clientReferenceId + auditAttributeBasePath: $.Stock.* queryMaps: - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, senderType=?, senderId=?, receiverType=?, receiverId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; - basePath: $.* + basePath: $.Stock.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.dateOfEntry - - jsonPath: $.*.productVariantId - - jsonPath: $.*.wayBillNumber - - jsonPath: $.*.quantity - - jsonPath: $.*.referenceId - - jsonPath: $.*.referenceIdType - - jsonPath: $.*.transactionType - - jsonPath: $.*.transactionReason - - jsonPath: $.*.senderType - - jsonPath: $.*.senderId - - jsonPath: $.*.receiverType - - jsonPath: $.*.receiverId - - jsonPath: $.*.additionalFields + - jsonPath: $.Stock.*.tenantId + - jsonPath: $.Stock.*.dateOfEntry + - jsonPath: $.Stock.*.productVariantId + - jsonPath: $.Stock.*.wayBillNumber + - jsonPath: $.Stock.*.quantity + - jsonPath: $.Stock.*.referenceId + - jsonPath: $.Stock.*.referenceIdType + - jsonPath: $.Stock.*.transactionType + - jsonPath: $.Stock.*.transactionReason + - jsonPath: $.Stock.*.senderType + - jsonPath: $.Stock.*.senderId + - jsonPath: $.Stock.*.receiverType + - jsonPath: $.Stock.*.receiverId + - jsonPath: $.Stock.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.id + - jsonPath: $.Stock.*.auditDetails.lastModifiedBy + - jsonPath: $.Stock.*.auditDetails.lastModifiedTime + - jsonPath: $.Stock.*.rowVersion + - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Stock.*.id - version: 1.0 description: Deletes a stock @@ -89,25 +89,25 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.Stock.*.id + tenantIdJsonPath: $.Stock.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.Stock.*.clientReferenceId + auditAttributeBasePath: $.Stock.* queryMaps: - query: UPDATE health.STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* + basePath: $.Stock.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.Stock.*.auditDetails.lastModifiedBy + - jsonPath: $.Stock.*.auditDetails.lastModifiedTime + - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.Stock.*.rowVersion + - jsonPath: $.Stock.*.isDeleted + - jsonPath: $.Stock.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.Stock.*.id - version: 1.0 @@ -116,39 +116,39 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.StockReconciliation.*.id + tenantIdJsonPath: $.StockReconciliation.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.StockReconciliation.*.clientReferenceId + auditAttributeBasePath: $.StockReconciliation.* queryMaps: - query: INSERT INTO health.STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.* + basePath: $.StockReconciliation.* jsonMaps: - - jsonPath: $.*.id - - jsonPath: $.*.clientReferenceId - - jsonPath: $.*.tenantId - - jsonPath: $.*.facilityId - - jsonPath: $.*.dateOfReconciliation - - jsonPath: $.*.calculatedCount - - jsonPath: $.*.physicalCount - - jsonPath: $.*.commentsOnReconciliation - - jsonPath: $.*.productVariantId - - jsonPath: $.*.referenceId - - jsonPath: $.*.referenceIdType - - jsonPath: $.*.additionalFields + - jsonPath: $.StockReconciliation.*.id + - jsonPath: $.StockReconciliation.*.clientReferenceId + - jsonPath: $.StockReconciliation.*.tenantId + - jsonPath: $.StockReconciliation.*.facilityId + - jsonPath: $.StockReconciliation.*.dateOfReconciliation + - jsonPath: $.StockReconciliation.*.calculatedCount + - jsonPath: $.StockReconciliation.*.physicalCount + - jsonPath: $.StockReconciliation.*.commentsOnReconciliation + - jsonPath: $.StockReconciliation.*.productVariantId + - jsonPath: $.StockReconciliation.*.referenceId + - jsonPath: $.StockReconciliation.*.referenceIdType + - jsonPath: $.StockReconciliation.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.clientAuditDetails.createdTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.createdBy - - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.StockReconciliation.*.auditDetails.createdBy + - jsonPath: $.StockReconciliation.*.auditDetails.createdTime + - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedBy + - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedTime + - jsonPath: $.StockReconciliation.*.rowVersion + - jsonPath: $.StockReconciliation.*.isDeleted + - jsonPath: $.StockReconciliation.*.clientAuditDetails.createdTime + - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.StockReconciliation.*.clientAuditDetails.createdBy + - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Updates a stock reconciliation @@ -156,33 +156,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.StockReconciliation.*.id + tenantIdJsonPath: $.StockReconciliation.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.StockReconciliation.*.clientReferenceId + auditAttributeBasePath: $.StockReconciliation.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; - basePath: $.* + basePath: $.StockReconciliation.* jsonMaps: - - jsonPath: $.*.tenantId - - jsonPath: $.*.facilityId - - jsonPath: $.*.productVariantId - - jsonPath: $.*.referenceId - - jsonPath: $.*.referenceIdType - - jsonPath: $.*.dateOfReconciliation - - jsonPath: $.*.calculatedCount - - jsonPath: $.*.physicalCount - - jsonPath: $.*.commentsOnReconciliation - - jsonPath: $.*.additionalFields + - jsonPath: $.StockReconciliation.*.tenantId + - jsonPath: $.StockReconciliation.*.facilityId + - jsonPath: $.StockReconciliation.*.productVariantId + - jsonPath: $.StockReconciliation.*.referenceId + - jsonPath: $.StockReconciliation.*.referenceIdType + - jsonPath: $.StockReconciliation.*.dateOfReconciliation + - jsonPath: $.StockReconciliation.*.calculatedCount + - jsonPath: $.StockReconciliation.*.physicalCount + - jsonPath: $.StockReconciliation.*.commentsOnReconciliation + - jsonPath: $.StockReconciliation.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.rowVersion - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.id + - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedBy + - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedTime + - jsonPath: $.StockReconciliation.*.rowVersion + - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.StockReconciliation.*.id - version: 1.0 description: Deletes a stock reconciliation @@ -190,22 +190,22 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.id - tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.[0].auditDetails.createdBy - transactionCodeJsonPath: $.clientReferenceId - auditAttributeBasePath: $.* + objecIdJsonPath: $.StockReconciliation.*.id + tenantIdJsonPath: $.StockReconciliation.*.tenantId + userUuidJsonPath: $.RequestInfo.userInfo.uuid + transactionCodeJsonPath: $.StockReconciliation.*.clientReferenceId + auditAttributeBasePath: $.StockReconciliation.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.* + basePath: $.StockReconciliation.* jsonMaps: - - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.*.rowVersion - - jsonPath: $.*.isDeleted - - jsonPath: $.*.additionalFields + - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedBy + - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedTime + - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.StockReconciliation.*.rowVersion + - jsonPath: $.StockReconciliation.*.isDeleted + - jsonPath: $.StockReconciliation.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id + - jsonPath: $.StockReconciliation.*.id \ No newline at end of file From 826f09d2528ba9f5848d2b79bf5609063a9b404c Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Fri, 5 Apr 2024 11:35:55 +0530 Subject: [PATCH 122/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 061f5a42c..61b7d84f1 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -105,7 +105,7 @@ serviceMaps: fromTopic: save-project-campaign-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); + - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); basePath: $.CampaignDetails jsonMaps: - jsonPath: $.CampaignDetails.id @@ -127,4 +127,4 @@ serviceMaps: dbType: JSONB - jsonPath: $.CampaignDetails.campaignDetails type: JSON - dbType: JSONB \ No newline at end of file + dbType: JSONB From c5e5dccee607f1d9b50bcce9c580ef73d4a2b86a Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:20:51 +0530 Subject: [PATCH 123/158] HLM-5403 Updated plan-service-persister.yml (#3030) --- health/egov-persister/plan-service-persister.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/health/egov-persister/plan-service-persister.yml b/health/egov-persister/plan-service-persister.yml index 2dc7c27a9..57d4c83ba 100644 --- a/health/egov-persister/plan-service-persister.yml +++ b/health/egov-persister/plan-service-persister.yml @@ -26,13 +26,14 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration.files.* jsonMaps: - jsonPath: $.PlanConfiguration.files.*.id - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.files.*.filestoreId - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy @@ -65,10 +66,11 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_mapping(id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration.resourceMapping.* jsonMaps: - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo - jsonPath: $.PlanConfiguration.id @@ -101,19 +103,21 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - jsonPath: $.PlanConfiguration.id - - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, template_identifier = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.PlanConfiguration.files.* jsonMaps: - jsonPath: $.PlanConfiguration.files.*.id - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.files.*.filestoreId - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - jsonPath: $.PlanConfiguration.files.*.filestoreId - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime @@ -153,10 +157,11 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_mapping(id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, filestore_id = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.PlanConfiguration.resourceMapping.* jsonMaps: - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo - jsonPath: $.PlanConfiguration.id @@ -166,6 +171,7 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime @@ -407,4 +413,4 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedBy - - jsonPath: $.Plan.auditDetails.lastModifiedTime \ No newline at end of file + - jsonPath: $.Plan.auditDetails.lastModifiedTime From fe79dcb4de4ab9eef363a24760335c3bc0e0bbdc Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:11:29 +0530 Subject: [PATCH 124/158] Update project-factory-persister.yml --- .../project-factory-persister.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 61b7d84f1..0e92a6490 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -128,3 +128,29 @@ serviceMaps: - jsonPath: $.CampaignDetails.campaignDetails type: JSON dbType: JSONB + + + - version: 1.0 + name: UpdateCampaignDetails + description: Update campaign details in the eg_cm_campaign_details table + fromTopic: update-project-campaign-details + isTransaction: true + queryMaps: + - query: UPDATE health.eg_cm_campaign_details SET "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; + basePath: $.CampaignDetails + jsonMaps: + - jsonPath: $.CampaignDetails.status + - jsonPath: $.CampaignDetails.action + - jsonPath: $.CampaignDetails.projectType + - jsonPath: $.CampaignDetails.hierarchyType + - jsonPath: $.CampaignDetails.boundaryCode + - jsonPath: $.CampaignDetails.projectId + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedBy + - jsonPath: $.CampaignDetails.auditDetails.lastModifiedTime + - jsonPath: $.CampaignDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.CampaignDetails.campaignDetails + type: JSON + dbType: JSONB + - jsonPath: $.CampaignDetails.id From 66a5db578fba1dedddc0e80356c910252c26755f Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:28:14 +0530 Subject: [PATCH 125/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 0e92a6490..16190dc50 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -105,7 +105,7 @@ serviceMaps: fromTopic: save-project-campaign-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); + - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId,startDate,endDate, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); basePath: $.CampaignDetails jsonMaps: - jsonPath: $.CampaignDetails.id @@ -118,6 +118,8 @@ serviceMaps: - jsonPath: $.CampaignDetails.hierarchyType - jsonPath: $.CampaignDetails.boundaryCode - jsonPath: $.CampaignDetails.projectId + - jsonPath: $.CampaignDetails.startDate + - jsonPath: $.CampaignDetails.endDate - jsonPath: $.CampaignDetails.auditDetails.createdBy - jsonPath: $.CampaignDetails.auditDetails.createdTime - jsonPath: $.CampaignDetails.auditDetails.lastModifiedBy @@ -136,7 +138,7 @@ serviceMaps: fromTopic: update-project-campaign-details isTransaction: true queryMaps: - - query: UPDATE health.eg_cm_campaign_details SET "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; + - query: UPDATE health.eg_cm_campaign_details SET "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?,startDate=?,endDate=?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; basePath: $.CampaignDetails jsonMaps: - jsonPath: $.CampaignDetails.status @@ -145,6 +147,8 @@ serviceMaps: - jsonPath: $.CampaignDetails.hierarchyType - jsonPath: $.CampaignDetails.boundaryCode - jsonPath: $.CampaignDetails.projectId + - jsonPath: $.CampaignDetails.startDate + - jsonPath: $.CampaignDetails.endDate - jsonPath: $.CampaignDetails.auditDetails.lastModifiedBy - jsonPath: $.CampaignDetails.auditDetails.lastModifiedTime - jsonPath: $.CampaignDetails.additionalDetails From 40b703eae786e23ed3f1f39b54490453a8cb4674 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:26:39 +0530 Subject: [PATCH 126/158] =?UTF-8?q?Revert=20"userUuidJsonPath=20changed=20?= =?UTF-8?q?to=20take=20user=20uuid=20from=20userInfo=20in=20RequestIn?= =?UTF-8?q?=E2=80=A6"=20(#3036)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2c3fadd6d35716ff95dc8d9d46999c2e83b5a749. --- health/egov-persister/facility-persister.yml | 200 ++++---- health/egov-persister/household-persister.yml | 316 ++++++------ .../egov-persister/individual-persister.yml | 480 +++++++++--------- health/egov-persister/product-persister.yml | 136 ++--- health/egov-persister/project-persister.yml | 408 +++++++-------- .../egov-persister/project-task-persister.yml | 282 +++++----- .../referral-management-persister.yml | 368 +++++++------- health/egov-persister/stock-persister.yml | 272 +++++----- 8 files changed, 1231 insertions(+), 1231 deletions(-) diff --git a/health/egov-persister/facility-persister.yml b/health/egov-persister/facility-persister.yml index af2cd98a0..1e5f4af6f 100644 --- a/health/egov-persister/facility-persister.yml +++ b/health/egov-persister/facility-persister.yml @@ -7,52 +7,52 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: FACILITY - objecIdJsonPath: $.Facilities.*.id - tenantIdJsonPath: $.Facilities.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Facilities.*.clientReferenceId - auditAttributeBasePath: $.Facilities.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.FACILITY(id, clientReferenceId, tenantId, isPermanent, name, usage, storageCapacity, addressId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Facilities.* + basePath: $.* jsonMaps: - - jsonPath: $.Facilities.*.id - - jsonPath: $.Facilities.*.clientReferenceId - - jsonPath: $.Facilities.*.tenantId - - jsonPath: $.Facilities.*.isPermanent - - jsonPath: $.Facilities.*.name - - jsonPath: $.Facilities.*.usage - - jsonPath: $.Facilities.*.storageCapacity - - jsonPath: $.Facilities.*.address.id - - jsonPath: $.Facilities.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.isPermanent + - jsonPath: $.*.name + - jsonPath: $.*.usage + - jsonPath: $.*.storageCapacity + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Facilities.*.auditDetails.createdBy - - jsonPath: $.Facilities.*.auditDetails.createdTime - - jsonPath: $.Facilities.*.auditDetails.lastModifiedBy - - jsonPath: $.Facilities.*.auditDetails.lastModifiedTime - - jsonPath: $.Facilities.*.rowVersion - - jsonPath: $.Facilities.*.isDeleted + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Facilities.*.address + basePath: $.*.address jsonMaps: - - jsonPath: $.Facilities.*.address.id - - jsonPath: $.Facilities.*.address.tenantId - - jsonPath: $.Facilities.*.address.clientReferenceId - - jsonPath: $.Facilities.*.address.doorNo - - jsonPath: $.Facilities.*.address.latitude - - jsonPath: $.Facilities.*.address.longitude - - jsonPath: $.Facilities.*.address.locationAccuracy - - jsonPath: $.Facilities.*.address.type - - jsonPath: $.Facilities.*.address.addressLine1 - - jsonPath: $.Facilities.*.address.addressLine2 - - jsonPath: $.Facilities.*.address.landmark - - jsonPath: $.Facilities.*.address.city - - jsonPath: $.Facilities.*.address.pincode - - jsonPath: $.Facilities.*.address.buildingName - - jsonPath: $.Facilities.*.address.street - - jsonPath: $.Facilities.*.address.locality.code + - jsonPath: $.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code - version: 1.0 description: Updates a facility @@ -60,64 +60,64 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: FACILITY - objecIdJsonPath: $.Facilities.*.id - tenantIdJsonPath: $.Facilities.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Facilities.*.clientReferenceId - auditAttributeBasePath: $.Facilities.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.FACILITY SET tenantId=?, clientReferenceId=?, isPermanent=?, name=?, usage=?, storageCapacity=?, addressId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=? WHERE id=? AND isDeleted=false; - basePath: $.Facilities.* + basePath: $.* jsonMaps: - - jsonPath: $.Facilities.*.tenantId - - jsonPath: $.Facilities.*.clientReferenceId - - jsonPath: $.Facilities.*.isPermanent - - jsonPath: $.Facilities.*.name - - jsonPath: $.Facilities.*.usage - - jsonPath: $.Facilities.*.storageCapacity - - jsonPath: $.Facilities.*.address.id - - jsonPath: $.Facilities.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.isPermanent + - jsonPath: $.*.name + - jsonPath: $.*.usage + - jsonPath: $.*.storageCapacity + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Facilities.*.auditDetails.lastModifiedBy - - jsonPath: $.Facilities.*.auditDetails.lastModifiedTime - - jsonPath: $.Facilities.*.rowVersion - - jsonPath: $.Facilities.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id - query: INSERT INTO health.ADDRESS(id, tenantid, clientReferenceId, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, clientReferenceId=?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; - basePath: $.Facilities.*.address + basePath: $.*.address jsonMaps: - - jsonPath: $.Facilities.*.address.id - - jsonPath: $.Facilities.*.address.tenantId - - jsonPath: $.Facilities.*.address.clientReferenceId - - jsonPath: $.Facilities.*.address.doorNo - - jsonPath: $.Facilities.*.address.latitude - - jsonPath: $.Facilities.*.address.longitude - - jsonPath: $.Facilities.*.address.locationAccuracy - - jsonPath: $.Facilities.*.address.type - - jsonPath: $.Facilities.*.address.addressLine1 - - jsonPath: $.Facilities.*.address.addressLine2 - - jsonPath: $.Facilities.*.address.landmark - - jsonPath: $.Facilities.*.address.city - - jsonPath: $.Facilities.*.address.pincode - - jsonPath: $.Facilities.*.address.buildingName - - jsonPath: $.Facilities.*.address.street - - jsonPath: $.Facilities.*.address.locality.code - - jsonPath: $.Facilities.*.address.tenantId - - jsonPath: $.Facilities.*.address.clientReferenceId - - jsonPath: $.Facilities.*.address.doorNo - - jsonPath: $.Facilities.*.address.latitude - - jsonPath: $.Facilities.*.address.longitude - - jsonPath: $.Facilities.*.address.locationAccuracy - - jsonPath: $.Facilities.*.address.type - - jsonPath: $.Facilities.*.address.addressLine1 - - jsonPath: $.Facilities.*.address.addressLine2 - - jsonPath: $.Facilities.*.address.landmark - - jsonPath: $.Facilities.*.address.city - - jsonPath: $.Facilities.*.address.pincode - - jsonPath: $.Facilities.*.address.buildingName - - jsonPath: $.Facilities.*.address.street - - jsonPath: $.Facilities.*.address.locality.code + - jsonPath: $.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code - version: 1.0 description: Deletes a facility @@ -125,20 +125,20 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: FACILITY - objecIdJsonPath: $.Facilities.*.id - tenantIdJsonPath: $.Facilities.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Facilities.*.clientReferenceId - auditAttributeBasePath: $.Facilities.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.FACILITY SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.Facilities.* + basePath: $.* jsonMaps: - - jsonPath: $.Facilities.*.auditDetails.lastModifiedBy - - jsonPath: $.Facilities.*.auditDetails.lastModifiedTime - - jsonPath: $.Facilities.*.rowVersion - - jsonPath: $.Facilities.*.isDeleted - - jsonPath: $.Facilities.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Facilities.*.id \ No newline at end of file + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/household-persister.yml b/health/egov-persister/household-persister.yml index b20816c65..bc6f80b1c 100644 --- a/health/egov-persister/household-persister.yml +++ b/health/egov-persister/household-persister.yml @@ -7,52 +7,52 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.Households.*.id - tenantIdJsonPath: $.Households.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Households.*.clientReferenceId - auditAttributeBasePath: $.Households.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.HOUSEHOLD(id, tenantId, clientReferenceId, numberOfMembers, addressId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Households.* + basePath: $.* jsonMaps: - - jsonPath: $.Households.*.id - - jsonPath: $.Households.*.tenantId - - jsonPath: $.Households.*.clientReferenceId - - jsonPath: $.Households.*.memberCount - - jsonPath: $.Households.*.address.id - - jsonPath: $.Households.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.memberCount + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Households.*.auditDetails.createdBy - - jsonPath: $.Households.*.auditDetails.lastModifiedBy - - jsonPath: $.Households.*.auditDetails.createdTime - - jsonPath: $.Households.*.auditDetails.lastModifiedTime - - jsonPath: $.Households.*.rowVersion - - jsonPath: $.Households.*.isDeleted - - jsonPath: $.Households.*.clientAuditDetails.createdTime - - jsonPath: $.Households.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Households.*.clientAuditDetails.createdBy - - jsonPath: $.Households.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Households.*.address + basePath: $.*.address jsonMaps: - - jsonPath: $.Households.*.address.id - - jsonPath: $.Households.*.address.clientReferenceId - - jsonPath: $.Households.*.address.tenantId - - jsonPath: $.Households.*.address.doorNo - - jsonPath: $.Households.*.address.latitude - - jsonPath: $.Households.*.address.longitude - - jsonPath: $.Households.*.address.locationAccuracy - - jsonPath: $.Households.*.address.type - - jsonPath: $.Households.*.address.addressLine1 - - jsonPath: $.Households.*.address.addressLine2 - - jsonPath: $.Households.*.address.landmark - - jsonPath: $.Households.*.address.city - - jsonPath: $.Households.*.address.pincode - - jsonPath: $.Households.*.address.buildingName - - jsonPath: $.Households.*.address.street - - jsonPath: $.Households.*.address.locality.code + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code - version: 1.0 description: Updates household. @@ -60,62 +60,62 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.Households.*.id - tenantIdJsonPath: $.Households.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Households.*.clientReferenceId - auditAttributeBasePath: $.Households.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD SET tenantId = ?, clientReferenceId = ?, numberOfMembers = ?, addressId = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; - basePath: $.Households.* + basePath: $.* jsonMaps: - - jsonPath: $.Households.*.tenantId - - jsonPath: $.Households.*.clientReferenceId - - jsonPath: $.Households.*.memberCount - - jsonPath: $.Households.*.address.id - - jsonPath: $.Households.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.memberCount + - jsonPath: $.*.address.id + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Households.*.auditDetails.lastModifiedBy - - jsonPath: $.Households.*.auditDetails.lastModifiedTime - - jsonPath: $.Households.*.rowVersion - - jsonPath: $.Households.*.isDeleted - - jsonPath: $.Households.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Households.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Households.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ?; - basePath: $.Households.*.address + basePath: $.*.address jsonMaps: - - jsonPath: $.Households.*.address.id - - jsonPath: $.Households.*.address.clientReferenceId - - jsonPath: $.Households.*.address.tenantId - - jsonPath: $.Households.*.address.doorNo - - jsonPath: $.Households.*.address.latitude - - jsonPath: $.Households.*.address.longitude - - jsonPath: $.Households.*.address.locationAccuracy - - jsonPath: $.Households.*.address.type - - jsonPath: $.Households.*.address.addressLine1 - - jsonPath: $.Households.*.address.addressLine2 - - jsonPath: $.Households.*.address.landmark - - jsonPath: $.Households.*.address.city - - jsonPath: $.Households.*.address.pincode - - jsonPath: $.Households.*.address.buildingName - - jsonPath: $.Households.*.address.street - - jsonPath: $.Households.*.address.locality.code - - jsonPath: $.Households.*.address.tenantId - - jsonPath: $.Households.*.address.doorNo - - jsonPath: $.Households.*.address.latitude - - jsonPath: $.Households.*.address.longitude - - jsonPath: $.Households.*.address.locationAccuracy - - jsonPath: $.Households.*.address.type - - jsonPath: $.Households.*.address.addressLine1 - - jsonPath: $.Households.*.address.addressLine2 - - jsonPath: $.Households.*.address.landmark - - jsonPath: $.Households.*.address.city - - jsonPath: $.Households.*.address.pincode - - jsonPath: $.Households.*.address.buildingName - - jsonPath: $.Households.*.address.street - - jsonPath: $.Households.*.address.locality.code + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code - version: 1.0 description: Deletes household. @@ -123,25 +123,25 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.Households.*.id - tenantIdJsonPath: $.Households.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Households.*.clientReferenceId - auditAttributeBasePath: $.Households.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.Households.* + basePath: $.* jsonMaps: - - jsonPath: $.Households.*.auditDetails.lastModifiedBy - - jsonPath: $.Households.*.auditDetails.lastModifiedTime - - jsonPath: $.Households.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Households.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Households.*.rowVersion - - jsonPath: $.Households.*.isDeleted - - jsonPath: $.Households.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Households.*.id + - jsonPath: $.*.id - version: 1.0 description: Persists household member. @@ -149,86 +149,86 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.HouseholdMembers.*.id - tenantIdJsonPath: $.HouseholdMembers.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.HouseholdMembers.*.clientReferenceId - auditAttributeBasePath: $.HouseholdMembers.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.HOUSEHOLD_MEMBER(id, tenantId, clientReferenceId, individualId, individualClientReferenceId, householdId, householdClientReferenceId, isHeadOfHousehold, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.HouseholdMembers.* + basePath: $.* jsonMaps: - - jsonPath: $.HouseholdMembers.*.id - - jsonPath: $.HouseholdMembers.*.tenantId - - jsonPath: $.HouseholdMembers.*.clientReferenceId - - jsonPath: $.HouseholdMembers.*.individualId - - jsonPath: $.HouseholdMembers.*.individualClientReferenceId - - jsonPath: $.HouseholdMembers.*.householdId - - jsonPath: $.HouseholdMembers.*.householdClientReferenceId - - jsonPath: $.HouseholdMembers.*.isHeadOfHousehold - - jsonPath: $.HouseholdMembers.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.individualId + - jsonPath: $.*.individualClientReferenceId + - jsonPath: $.*.householdId + - jsonPath: $.*.householdClientReferenceId + - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.HouseholdMembers.*.auditDetails.createdBy - - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedBy - - jsonPath: $.HouseholdMembers.*.auditDetails.createdTime - - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedTime - - jsonPath: $.HouseholdMembers.*.rowVersion - - jsonPath: $.HouseholdMembers.*.isDeleted - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.createdTime - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.createdBy - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Update household member. fromTopic: update-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.HouseholdMembers.*.id - tenantIdJsonPath: $.HouseholdMembers.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.HouseholdMembers.*.clientReferenceId - auditAttributeBasePath: $.HouseholdMembers.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET isHeadOfHousehold=?, clientReferenceId = ?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE individualId=? AND householdId=? AND isDeleted=false; - basePath: $.HouseholdMembers.* + basePath: $.* jsonMaps: - - jsonPath: $.HouseholdMembers.*.isHeadOfHousehold - - jsonPath: $.HouseholdMembers.*.clientReferenceId - - jsonPath: $.HouseholdMembers.*.additionalFields + - jsonPath: $.*.isHeadOfHousehold + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedBy - - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedTime - - jsonPath: $.HouseholdMembers.*.rowVersion - - jsonPath: $.HouseholdMembers.*.isDeleted - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.HouseholdMembers.*.individualId - - jsonPath: $.HouseholdMembers.*.householdId + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.individualId + - jsonPath: $.*.householdId - version: 1.0 description: Deletes household Member. fromTopic: delete-household-member-health-topic isTransaction: true isAuditEnabled: true module: HOUSEHOLD - objecIdJsonPath: $.HouseholdMembers.*.id - tenantIdJsonPath: $.HouseholdMembers.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.HouseholdMembers.*.clientReferenceId - auditAttributeBasePath: $.HouseholdMembers.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.HOUSEHOLD_MEMBER SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.HouseholdMembers.* + basePath: $.* jsonMaps: - - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedBy - - jsonPath: $.HouseholdMembers.*.auditDetails.lastModifiedTime - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.HouseholdMembers.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.HouseholdMembers.*.rowVersion - - jsonPath: $.HouseholdMembers.*.isDeleted - - jsonPath: $.HouseholdMembers.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.HouseholdMembers.*.id \ No newline at end of file + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/individual-persister.yml b/health/egov-persister/individual-persister.yml index e9b937fda..6a06349d3 100644 --- a/health/egov-persister/individual-persister.yml +++ b/health/egov-persister/individual-persister.yml @@ -7,115 +7,115 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.Individuals.*.id - tenantIdJsonPath: $.Individuals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Individuals.*.clientReferenceId - auditAttributeBasePath: $.Individuals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Individuals.*.address.* + basePath: $.*.address.* jsonMaps: - - jsonPath: $.Individuals.*.address.*.id - - jsonPath: $.Individuals.*.address.*.clientReferenceId - - jsonPath: $.Individuals.*.address.*.tenantId - - jsonPath: $.Individuals.*.address.*.doorNo - - jsonPath: $.Individuals.*.address.*.latitude - - jsonPath: $.Individuals.*.address.*.longitude - - jsonPath: $.Individuals.*.address.*.locationAccuracy - - jsonPath: $.Individuals.*.address.*.type - - jsonPath: $.Individuals.*.address.*.addressLine1 - - jsonPath: $.Individuals.*.address.*.addressLine2 - - jsonPath: $.Individuals.*.address.*.landmark - - jsonPath: $.Individuals.*.address.*.city - - jsonPath: $.Individuals.*.address.*.pincode - - jsonPath: $.Individuals.*.address.*.buildingName - - jsonPath: $.Individuals.*.address.*.street - - jsonPath: $.Individuals.*.address.*.locality.code - - jsonPath: $.Individuals.*.address.*.ward.code + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.clientReferenceId + - jsonPath: $.*.address.*.tenantId + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code - query: INSERT INTO health.individual(id, userId, userUuid, clientReferenceId, tenantId, givenName, familyName, otherNames, dateOfBirth, gender, bloodGroup, mobileNumber, altContactNumber, email, fatherName, husbandName, photo, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, individualId, relationship, isSystemUser, isSystemUserActive, username, password, type, roles, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Individuals.* + basePath: $.* jsonMaps: - - jsonPath: $.Individuals.*.id - - jsonPath: $.Individuals.*.userId - - jsonPath: $.Individuals.*.userUuid - - jsonPath: $.Individuals.*.clientReferenceId - - jsonPath: $.Individuals.*.tenantId - - jsonPath: $.Individuals.*.name.givenName - - jsonPath: $.Individuals.*.name.familyName - - jsonPath: $.Individuals.*.name.otherNames - - jsonPath: $.Individuals.*.dateOfBirth + - jsonPath: $.*.id + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.name.givenName + - jsonPath: $.*.name.familyName + - jsonPath: $.*.name.otherNames + - jsonPath: $.*.dateOfBirth type: DATE - - jsonPath: $.Individuals.*.gender - - jsonPath: $.Individuals.*.bloodGroup - - jsonPath: $.Individuals.*.mobileNumber - - jsonPath: $.Individuals.*.altContactNumber - - jsonPath: $.Individuals.*.email - - jsonPath: $.Individuals.*.fatherName - - jsonPath: $.Individuals.*.husbandName - - jsonPath: $.Individuals.*.photo - - jsonPath: $.Individuals.*.additionalFields + - jsonPath: $.*.gender + - jsonPath: $.*.bloodGroup + - jsonPath: $.*.mobileNumber + - jsonPath: $.*.altContactNumber + - jsonPath: $.*.email + - jsonPath: $.*.fatherName + - jsonPath: $.*.husbandName + - jsonPath: $.*.photo + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Individuals.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.rowVersion - - jsonPath: $.Individuals.*.isDeleted - - jsonPath: $.Individuals.*.individualId - - jsonPath: $.Individuals.*.relationship - - jsonPath: $.Individuals.*.isSystemUser - - jsonPath: $.Individuals.*.isSystemUserActive - - jsonPath: $.Individuals.*.userDetails.username - - jsonPath: $.Individuals.*.userDetails.password - - jsonPath: $.Individuals.*.userDetails.type - - jsonPath: $.Individuals.*.userDetails.roles + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.individualId + - jsonPath: $.*.relationship + - jsonPath: $.*.isSystemUser + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles type: JSON dbType: JSONB - - jsonPath: $.Individuals.*.clientAuditDetails.createdTime - - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.clientAuditDetails.createdBy - - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Individuals.*.address.* + basePath: $.*.address.* jsonMaps: - - jsonPath: $.Individuals.*.address.*.individualId - - jsonPath: $.Individuals.*.address.*.id - - jsonPath: $.Individuals.*.address.*.type - - jsonPath: $.Individuals.*.address.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.address.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.address.*.isDeleted + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.auditDetails.createdBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.createdTime + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted - query: INSERT INTO health.individual_identifier(id, clientReferenceId, identifierType, identifierId, individualId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Individuals.*.identifiers.* + basePath: $.*.identifiers.* jsonMaps: - - jsonPath: $.Individuals.*.identifiers.*.id - - jsonPath: $.Individuals.*.clientReferenceId - - jsonPath: $.Individuals.*.identifiers.*.identifierType - - jsonPath: $.Individuals.*.identifiers.*.identifierId - - jsonPath: $.Individuals.*.identifiers.*.individualId - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.individualId + - jsonPath: $.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Individuals.*.skills.* + basePath: $.*.skills.* jsonMaps: - - jsonPath: $.Individuals.*.skills.*.id - - jsonPath: $.Individuals.*.skills.*.clientReferenceId - - jsonPath: $.Individuals.*.skills.*.individualId - - jsonPath: $.Individuals.*.skills.*.type - - jsonPath: $.Individuals.*.skills.*.level - - jsonPath: $.Individuals.*.skills.*.experience - - jsonPath: $.Individuals.*.skills.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.skills.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.id + - jsonPath: $.*.skills.*.clientReferenceId + - jsonPath: $.*.skills.*.individualId + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.createdBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.createdTime + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted - version: 1.0 description: Updates Individual @@ -123,131 +123,131 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.Individuals.*.id - tenantIdJsonPath: $.Individuals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Individuals.*.clientReferenceId - auditAttributeBasePath: $.Individuals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=?, tenantId=?, givenName=?, familyName=?, otherNames=?, dateOfBirth=?, Gender=?, bloodGroup=?, mobileNumber=?, altContactNumber=?, email=?, fatherName=?, husbandName=?, relationship=?, photo=?, isSystemUserActive=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, username = ?, password = ?, type = ?, roles = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; - basePath: $.Individuals.* + basePath: $.* jsonMaps: - - jsonPath: $.Individuals.*.userId - - jsonPath: $.Individuals.*.userUuid - - jsonPath: $.Individuals.*.tenantId - - jsonPath: $.Individuals.*.name.givenName - - jsonPath: $.Individuals.*.name.familyName - - jsonPath: $.Individuals.*.name.otherNames - - jsonPath: $.Individuals.*.dateOfBirth + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.tenantId + - jsonPath: $.*.name.givenName + - jsonPath: $.*.name.familyName + - jsonPath: $.*.name.otherNames + - jsonPath: $.*.dateOfBirth type: DATE - - jsonPath: $.Individuals.*.gender - - jsonPath: $.Individuals.*.bloodGroup - - jsonPath: $.Individuals.*.mobileNumber - - jsonPath: $.Individuals.*.altContactNumber - - jsonPath: $.Individuals.*.email - - jsonPath: $.Individuals.*.fatherName - - jsonPath: $.Individuals.*.husbandName - - jsonPath: $.Individuals.*.relationship - - jsonPath: $.Individuals.*.photo - - jsonPath: $.Individuals.*.isSystemUserActive - - jsonPath: $.Individuals.*.additionalFields + - jsonPath: $.*.gender + - jsonPath: $.*.bloodGroup + - jsonPath: $.*.mobileNumber + - jsonPath: $.*.altContactNumber + - jsonPath: $.*.email + - jsonPath: $.*.fatherName + - jsonPath: $.*.husbandName + - jsonPath: $.*.relationship + - jsonPath: $.*.photo + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Individuals.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.rowVersion - - jsonPath: $.Individuals.*.userDetails.username - - jsonPath: $.Individuals.*.userDetails.password - - jsonPath: $.Individuals.*.userDetails.type - - jsonPath: $.Individuals.*.userDetails.roles + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.userDetails.username + - jsonPath: $.*.userDetails.password + - jsonPath: $.*.userDetails.type + - jsonPath: $.*.userDetails.roles type: JSON dbType: JSONB - - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.id + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id - query: INSERT INTO health.address(id, clientReferenceId, tenantId, doorNo, latitude, longitude, locationAccuracy, type, addressLine1, addressLine2, landmark, city, pincode, buildingName, street, localityCode, wardCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET doorno=?, latitude=?, longitude=?, locationaccuracy=?, type=?, addressline1=?, addressline2=?, landmark=?, city=?, pincode=?, buildingname=?, street=?, localitycode=?, wardCode=?; - basePath: $.Individuals.*.address.* + basePath: $.*.address.* jsonMaps: - - jsonPath: $.Individuals.*.address.*.id - - jsonPath: $.Individuals.*.address.*.clientReferenceId - - jsonPath: $.Individuals.*.address.*.tenantId - - jsonPath: $.Individuals.*.address.*.doorNo - - jsonPath: $.Individuals.*.address.*.latitude - - jsonPath: $.Individuals.*.address.*.longitude - - jsonPath: $.Individuals.*.address.*.locationAccuracy - - jsonPath: $.Individuals.*.address.*.type - - jsonPath: $.Individuals.*.address.*.addressLine1 - - jsonPath: $.Individuals.*.address.*.addressLine2 - - jsonPath: $.Individuals.*.address.*.landmark - - jsonPath: $.Individuals.*.address.*.city - - jsonPath: $.Individuals.*.address.*.pincode - - jsonPath: $.Individuals.*.address.*.buildingName - - jsonPath: $.Individuals.*.address.*.street - - jsonPath: $.Individuals.*.address.*.locality.code - - jsonPath: $.Individuals.*.address.*.ward.code - - jsonPath: $.Individuals.*.address.*.doorNo - - jsonPath: $.Individuals.*.address.*.latitude - - jsonPath: $.Individuals.*.address.*.longitude - - jsonPath: $.Individuals.*.address.*.locationAccuracy - - jsonPath: $.Individuals.*.address.*.type - - jsonPath: $.Individuals.*.address.*.addressLine1 - - jsonPath: $.Individuals.*.address.*.addressLine2 - - jsonPath: $.Individuals.*.address.*.landmark - - jsonPath: $.Individuals.*.address.*.city - - jsonPath: $.Individuals.*.address.*.pincode - - jsonPath: $.Individuals.*.address.*.buildingName - - jsonPath: $.Individuals.*.address.*.street - - jsonPath: $.Individuals.*.address.*.locality.code - - jsonPath: $.Individuals.*.address.*.ward.code + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.clientReferenceId + - jsonPath: $.*.address.*.tenantId + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code + - jsonPath: $.*.address.*.doorNo + - jsonPath: $.*.address.*.latitude + - jsonPath: $.*.address.*.longitude + - jsonPath: $.*.address.*.locationAccuracy + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.addressLine1 + - jsonPath: $.*.address.*.addressLine2 + - jsonPath: $.*.address.*.landmark + - jsonPath: $.*.address.*.city + - jsonPath: $.*.address.*.pincode + - jsonPath: $.*.address.*.buildingName + - jsonPath: $.*.address.*.street + - jsonPath: $.*.address.*.locality.code + - jsonPath: $.*.address.*.ward.code - query: INSERT INTO health.individual_address(individualId, addressId, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (individualId, addressId, type, isDeleted) WHERE isDeleted=false DO UPDATE SET lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.Individuals.*.address.* + basePath: $.*.address.* jsonMaps: - - jsonPath: $.Individuals.*.address.*.individualId - - jsonPath: $.Individuals.*.address.*.id - - jsonPath: $.Individuals.*.address.*.type - - jsonPath: $.Individuals.*.address.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.address.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.address.*.isDeleted - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id + - jsonPath: $.*.address.*.type + - jsonPath: $.*.address.*.auditDetails.createdBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.createdTime + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime - query: INSERT INTO health.individual_identifier(id, clientReferenceId, individualId, identifierType, identifierId, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET identifierId = ?, identifierType = ?, lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.Individuals.*.identifiers.* + basePath: $.*.identifiers.* jsonMaps: - - jsonPath: $.Individuals.*.identifiers.*.id - - jsonPath: $.Individuals.*.identifiers.*.clientReferenceId - - jsonPath: $.Individuals.*.identifiers.*.individualId - - jsonPath: $.Individuals.*.identifiers.*.identifierType - - jsonPath: $.Individuals.*.identifiers.*.identifierId - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.identifiers.*.isDeleted - - jsonPath: $.Individuals.*.identifiers.*.identifierId - - jsonPath: $.Individuals.*.identifiers.*.identifierType - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.id + - jsonPath: $.*.identifiers.*.clientReferenceId + - jsonPath: $.*.identifiers.*.individualId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.auditDetails.createdBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.createdTime + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.identifierId + - jsonPath: $.*.identifiers.*.identifierType + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime - query: INSERT INTO health.individual_skill(id, clientReferenceId, individualId, type, level, experience, createdBy, lastModifiedBy, createdTime, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) WHERE isDeleted=false DO UPDATE SET type = ?, level = ?, experience = ?, lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.Individuals.*.skills.* + basePath: $.*.skills.* jsonMaps: - - jsonPath: $.Individuals.*.skills.*.id - - jsonPath: $.Individuals.*.skills.*.clientReferenceId - - jsonPath: $.Individuals.*.skills.*.individualId - - jsonPath: $.Individuals.*.skills.*.type - - jsonPath: $.Individuals.*.skills.*.level - - jsonPath: $.Individuals.*.skills.*.experience - - jsonPath: $.Individuals.*.skills.*.auditDetails.createdBy - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.skills.*.auditDetails.createdTime - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.skills.*.isDeleted - - jsonPath: $.Individuals.*.skills.*.type - - jsonPath: $.Individuals.*.skills.*.level - - jsonPath: $.Individuals.*.skills.*.experience - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.id + - jsonPath: $.*.skills.*.clientReferenceId + - jsonPath: $.*.skills.*.individualId + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.createdBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.createdTime + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.type + - jsonPath: $.*.skills.*.level + - jsonPath: $.*.skills.*.experience + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime - version: 1.0 description: Deletes Individual and related Entities @@ -255,45 +255,45 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.Individuals.*.id - tenantIdJsonPath: $.Individuals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Individuals.*.clientReferenceId - auditAttributeBasePath: $.Individuals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET lastModifiedBy=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, lastModifiedTime=?, rowVersion=?, isDeleted=?, isSystemUserActive=? WHERE id=?; - basePath: $.Individuals.* + basePath: $.* jsonMaps: - - jsonPath: $.Individuals.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.rowVersion - - jsonPath: $.Individuals.*.isDeleted - - jsonPath: $.Individuals.*.isSystemUserActive - - jsonPath: $.Individuals.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.isSystemUserActive + - jsonPath: $.*.id - query: UPDATE health.individual_address SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE individualId=? AND addressId=?; - basePath: $.Individuals.*.address.* + basePath: $.*.address.* jsonMaps: - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.address.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.address.*.isDeleted - - jsonPath: $.Individuals.*.address.*.individualId - - jsonPath: $.Individuals.*.address.*.id + - jsonPath: $.*.address.*.auditDetails.lastModifiedBy + - jsonPath: $.*.address.*.auditDetails.lastModifiedTime + - jsonPath: $.*.address.*.isDeleted + - jsonPath: $.*.address.*.individualId + - jsonPath: $.*.address.*.id - query: UPDATE health.individual_identifier SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; - basePath: $.Individuals.*.identifiers.* + basePath: $.*.identifiers.* jsonMaps: - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.identifiers.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.identifiers.*.isDeleted - - jsonPath: $.Individuals.*.identifiers.*.id + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedBy + - jsonPath: $.*.identifiers.*.auditDetails.lastModifiedTime + - jsonPath: $.*.identifiers.*.isDeleted + - jsonPath: $.*.identifiers.*.id - query: UPDATE health.individual_skill SET lastModifiedBy=?, lastModifiedTime=?, isDeleted=? WHERE id=?; - basePath: $.Individuals.*.skills.* + basePath: $.*.skills.* jsonMaps: - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedBy - - jsonPath: $.Individuals.*.skills.*.auditDetails.lastModifiedTime - - jsonPath: $.Individuals.*.skills.*.isDeleted - - jsonPath: $.Individuals.*.skills.*.id + - jsonPath: $.*.skills.*.auditDetails.lastModifiedBy + - jsonPath: $.*.skills.*.auditDetails.lastModifiedTime + - jsonPath: $.*.skills.*.isDeleted + - jsonPath: $.*.skills.*.id - version: 1.0 description: Updates userId and userUuid received from user-service into an individual @@ -301,15 +301,15 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: INDIVIDUAL - objecIdJsonPath: $.Individuals.*.id - tenantIdJsonPath: $.Individuals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Individuals.*.clientReferenceId - auditAttributeBasePath: $.Individuals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.individual SET userId=?, userUuid=? WHERE id=?; - basePath: $.Individuals.* + basePath: $.* jsonMaps: - - jsonPath: $.Individuals.*.userId - - jsonPath: $.Individuals.*.userUuid - - jsonPath: $.Individuals.*.id \ No newline at end of file + - jsonPath: $.*.userId + - jsonPath: $.*.userUuid + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/product-persister.yml b/health/egov-persister/product-persister.yml index 2646a8ca7..be5179a7f 100644 --- a/health/egov-persister/product-persister.yml +++ b/health/egov-persister/product-persister.yml @@ -7,29 +7,29 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.Product.*.id - tenantIdJsonPath: $.Product.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Product.*.id - auditAttributeBasePath: $.Product.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.product(id, tenantId, type, name, manufacturer, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Product.* + basePath: $.* jsonMaps: - - jsonPath: $.Product.*.id - - jsonPath: $.Product.*.tenantId - - jsonPath: $.Product.*.type - - jsonPath: $.Product.*.name - - jsonPath: $.Product.*.manufacturer - - jsonPath: $.Product.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.type + - jsonPath: $.*.name + - jsonPath: $.*.manufacturer + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Product.*.auditDetails.createdBy - - jsonPath: $.Product.*.auditDetails.lastModifiedBy - - jsonPath: $.Product.*.auditDetails.createdTime - - jsonPath: $.Product.*.auditDetails.lastModifiedTime - - jsonPath: $.Product.*.rowVersion - - jsonPath: $.Product.*.isDeleted + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Updates Product @@ -37,27 +37,27 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.Product.*.id - tenantIdJsonPath: $.Product.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Product.*.id - auditAttributeBasePath: $.Product.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.product SET tenantId = ?, type = ?, name = ?, manufacturer = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ? - basePath: $.Product.* + basePath: $.* jsonMaps: - - jsonPath: $.Product.*.tenantId - - jsonPath: $.Product.*.type - - jsonPath: $.Product.*.name - - jsonPath: $.Product.*.manufacturer - - jsonPath: $.Product.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.type + - jsonPath: $.*.name + - jsonPath: $.*.manufacturer + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Product.*.auditDetails.lastModifiedBy - - jsonPath: $.Product.*.auditDetails.lastModifiedTime - - jsonPath: $.Product.*.rowVersion - - jsonPath: $.Product.*.isDeleted - - jsonPath: $.Product.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Saves a product variant @@ -65,29 +65,29 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.ProductVariant.*.id - tenantIdJsonPath: $.ProductVariant.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProductVariant.*.id - auditAttributeBasePath: $.ProductVariant.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.product_variant(id, tenantId, productId, sku, variation, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.ProductVariant.* + basePath: $.* jsonMaps: - - jsonPath: $.ProductVariant.*.id - - jsonPath: $.ProductVariant.*.tenantId - - jsonPath: $.ProductVariant.*.productId - - jsonPath: $.ProductVariant.*.sku - - jsonPath: $.ProductVariant.*.variation - - jsonPath: $.ProductVariant.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.productId + - jsonPath: $.*.sku + - jsonPath: $.*.variation + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProductVariant.*.auditDetails.createdBy - - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedBy - - jsonPath: $.ProductVariant.*.auditDetails.createdTime - - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedTime - - jsonPath: $.ProductVariant.*.rowVersion - - jsonPath: $.ProductVariant.*.isDeleted + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Updates a product variant @@ -95,24 +95,24 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PRODUCT - objecIdJsonPath: $.ProductVariant.*.id - tenantIdJsonPath: $.ProductVariant.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProductVariant.*.id - auditAttributeBasePath: $.ProductVariant.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.product_variant SET tenantId = ?, productId = ?, sku = ?, variation = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE id = ?; - basePath: $.ProductVariant.* + basePath: $.* jsonMaps: - - jsonPath: $.ProductVariant.*.tenantId - - jsonPath: $.ProductVariant.*.productId - - jsonPath: $.ProductVariant.*.sku - - jsonPath: $.ProductVariant.*.variation - - jsonPath: $.ProductVariant.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.productId + - jsonPath: $.*.sku + - jsonPath: $.*.variation + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedBy - - jsonPath: $.ProductVariant.*.auditDetails.lastModifiedTime - - jsonPath: $.ProductVariant.*.rowVersion - - jsonPath: $.ProductVariant.*.isDeleted - - jsonPath: $.ProductVariant.*.id \ No newline at end of file + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index 703106515..2850d2fa8 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -7,30 +7,30 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectStaff.*.id - tenantIdJsonPath: $.ProjectStaff.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectStaff.*.clientReferenceId - auditAttributeBasePath: $.ProjectStaff.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_staff (id, tenantId, projectId, staffId, startDate, endDate, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.ProjectStaff.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectStaff.*.id - - jsonPath: $.ProjectStaff.*.tenantId - - jsonPath: $.ProjectStaff.*.projectId - - jsonPath: $.ProjectStaff.*.userId - - jsonPath: $.ProjectStaff.*.startDate - - jsonPath: $.ProjectStaff.*.endDate - - jsonPath: $.ProjectStaff.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.userId + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectStaff.*.auditDetails.createdBy - - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectStaff.*.auditDetails.createdTime - - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectStaff.*.rowVersion - - jsonPath: $.ProjectStaff.*.isDeleted + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Update Project Staff @@ -38,27 +38,27 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectStaff.*.id - tenantIdJsonPath: $.ProjectStaff.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectStaff.*.clientReferenceId - auditAttributeBasePath: $.ProjectStaff.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_staff SET projectId=?, staffId=?, startDate=?, endDate=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.ProjectStaff.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectStaff.*.projectId - - jsonPath: $.ProjectStaff.*.userId - - jsonPath: $.ProjectStaff.*.startDate - - jsonPath: $.ProjectStaff.*.endDate - - jsonPath: $.ProjectStaff.*.additionalFields + - jsonPath: $.*.projectId + - jsonPath: $.*.userId + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectStaff.*.rowVersion - - jsonPath: $.ProjectStaff.*.isDeleted - - jsonPath: $.ProjectStaff.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Deletes Project Staff @@ -66,23 +66,23 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectStaff.*.id - tenantIdJsonPath: $.ProjectStaff.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectStaff.*.clientReferenceId - auditAttributeBasePath: $.ProjectStaff.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_staff SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.ProjectStaff.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectStaff.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectStaff.*.rowVersion - - jsonPath: $.ProjectStaff.*.isDeleted - - jsonPath: $.ProjectStaff.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectStaff.*.id + - jsonPath: $.*.id - version: 1.0 description: Saves a project beneficiary @@ -90,36 +90,36 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectBeneficiaries.*.id - tenantIdJsonPath: $.ProjectBeneficiaries.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectBeneficiaries.*.clientReferenceId - auditAttributeBasePath: $.ProjectBeneficiaries.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_beneficiary (id, tenantId, projectId, beneficiaryId, clientReferenceId, beneficiaryClientReferenceId, dateOfRegistration, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy, tag) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.ProjectBeneficiaries.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectBeneficiaries.*.id - - jsonPath: $.ProjectBeneficiaries.*.tenantId - - jsonPath: $.ProjectBeneficiaries.*.projectId - - jsonPath: $.ProjectBeneficiaries.*.beneficiaryId - - jsonPath: $.ProjectBeneficiaries.*.clientReferenceId - - jsonPath: $.ProjectBeneficiaries.*.beneficiaryClientReferenceId - - jsonPath: $.ProjectBeneficiaries.*.dateOfRegistration - - jsonPath: $.ProjectBeneficiaries.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.beneficiaryClientReferenceId + - jsonPath: $.*.dateOfRegistration + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.createdBy - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.createdTime - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectBeneficiaries.*.rowVersion - - jsonPath: $.ProjectBeneficiaries.*.isDeleted - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.createdTime - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.createdBy - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.ProjectBeneficiaries.*.tag + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag - version: 1.0 description: Update Project Beneficiary @@ -127,31 +127,31 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectBeneficiaries.*.id - tenantIdJsonPath: $.ProjectBeneficiaries.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectBeneficiaries.*.clientReferenceId - auditAttributeBasePath: $.ProjectBeneficiaries.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_beneficiary SET projectId=?, beneficiaryId=?, clientReferenceId=?, beneficiaryClientReferenceId=?, dateOfRegistration=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, tag=? WHERE id = ? AND isDeleted=false - basePath: $.ProjectBeneficiaries.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectBeneficiaries.*.projectId - - jsonPath: $.ProjectBeneficiaries.*.beneficiaryId - - jsonPath: $.ProjectBeneficiaries.*.clientReferenceId - - jsonPath: $.ProjectBeneficiaries.*.beneficiaryClientReferenceId - - jsonPath: $.ProjectBeneficiaries.*.dateOfRegistration - - jsonPath: $.ProjectBeneficiaries.*.additionalFields + - jsonPath: $.*.projectId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.beneficiaryClientReferenceId + - jsonPath: $.*.dateOfRegistration + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectBeneficiaries.*.rowVersion - - jsonPath: $.ProjectBeneficiaries.*.isDeleted - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.ProjectBeneficiaries.*.tag - - jsonPath: $.ProjectBeneficiaries.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.tag + - jsonPath: $.*.id - version: 1.0 description: Deletes Project Beneficiaries @@ -159,25 +159,25 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectBeneficiaries.*.id - tenantIdJsonPath: $.ProjectBeneficiaries.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectBeneficiaries.*.clientReferenceId - auditAttributeBasePath: $.ProjectBeneficiaries.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_beneficiary SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.ProjectBeneficiaries.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectBeneficiaries.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.ProjectBeneficiaries.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.ProjectBeneficiaries.*.rowVersion - - jsonPath: $.ProjectBeneficiaries.*.isDeleted - - jsonPath: $.ProjectBeneficiaries.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectBeneficiaries.*.id + - jsonPath: $.*.id - version: 1.0 name: Projects @@ -186,11 +186,11 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.Projects.*.id - tenantIdJsonPath: $.Projects.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Projects.*.id - auditAttributeBasePath: $.Projects.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project(id,tenantId,projectNumber,name,projectType,projectTypeId,projectSubType,department,description,referenceId,startDate,endDate,isTaskEnabled,parent,projectHierarchy,natureOfWork,additionalDetails,isDeleted,rowVersion,createdBy,lastModifiedBy,createdTime,lastModifiedTime) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.Projects.* @@ -343,7 +343,7 @@ serviceMaps: module: PROJECT objecIdJsonPath: $.id tenantIdJsonPath: $.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid + userUuidJsonPath: $.[0].auditDetails.createdBy transactionCodeJsonPath: $.id auditAttributeBasePath: $.* queryMaps: @@ -511,29 +511,29 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectResources.*.id - tenantIdJsonPath: $.ProjectResources.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectResources.*.id - auditAttributeBasePath: $.ProjectResources.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_resource (id, tenantId, projectId, productVariantId, isBaseUnitVariant, startDate, endDate, type, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.ProjectResources.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectResources.*.id - - jsonPath: $.ProjectResources.*.tenantId - - jsonPath: $.ProjectResources.*.projectId - - jsonPath: $.ProjectResources.*.resource.productVariantId - - jsonPath: $.ProjectResources.*.resource.isBaseUnitVariant - - jsonPath: $.ProjectResources.*.startDate - - jsonPath: $.ProjectResources.*.endDate - - jsonPath: $.ProjectResources.*.resource.type - - jsonPath: $.ProjectResources.*.auditDetails.createdBy - - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectResources.*.auditDetails.createdTime - - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectResources.*.rowVersion - - jsonPath: $.ProjectResources.*.isDeleted + - jsonPath: $.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.resource.productVariantId + - jsonPath: $.*.resource.isBaseUnitVariant + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.resource.type + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Update a project resourcce @@ -541,27 +541,27 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectResources.*.id - tenantIdJsonPath: $.ProjectResources.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectResources.*.id - auditAttributeBasePath: $.ProjectResources.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_resource SET tenantId=?, projectId=?, productVariantId=?, isBaseUnitVariant=?, startDate=?, endDate=?, type=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.ProjectResources.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectResources.*.tenantId - - jsonPath: $.ProjectResources.*.projectId - - jsonPath: $.ProjectResources.*.resource.productVariantId - - jsonPath: $.ProjectResources.*.resource.isBaseUnitVariant - - jsonPath: $.ProjectResources.*.startDate - - jsonPath: $.ProjectResources.*.endDate - - jsonPath: $.ProjectResources.*.resource.type - - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectResources.*.rowVersion - - jsonPath: $.ProjectResources.*.isDeleted - - jsonPath: $.ProjectResources.*.id + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.resource.productVariantId + - jsonPath: $.*.resource.isBaseUnitVariant + - jsonPath: $.*.startDate + - jsonPath: $.*.endDate + - jsonPath: $.*.resource.type + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Delete a project resourcce @@ -569,20 +569,20 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectResources.*.id - tenantIdJsonPath: $.ProjectResources.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectResources.*.id - auditAttributeBasePath: $.ProjectResources.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_resource SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.ProjectResources.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectResources.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectResources.*.rowVersion - - jsonPath: $.ProjectResources.*.isDeleted - - jsonPath: $.ProjectResources.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Saves a project facility @@ -590,39 +590,39 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectFacilities.*.id - tenantIdJsonPath: $.ProjectFacilities.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectFacilities.*.id - auditAttributeBasePath: $.ProjectFacilities.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.project_facility (id, tenantId, projectId, facilityId, additionalDetails, createdBy, lastModifiedBy, createdTime, lastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?); - basePath: $.ProjectFacilities.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectFacilities.*.id + - jsonPath: $.*.id - - jsonPath: $.ProjectFacilities.*.tenantId + - jsonPath: $.*.tenantId - - jsonPath: $.ProjectFacilities.*.projectId + - jsonPath: $.*.projectId - - jsonPath: $.ProjectFacilities.*.facilityId + - jsonPath: $.*.facilityId - - jsonPath: $.ProjectFacilities.*.additionalFields + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectFacilities.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdBy - - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectFacilities.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.createdTime - - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedTime + - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectFacilities.*.rowVersion + - jsonPath: $.*.rowVersion - - jsonPath: $.ProjectFacilities.*.isDeleted + - jsonPath: $.*.isDeleted - version: 1.0 description: Update Project Facility @@ -630,33 +630,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectFacilities.*.id - tenantIdJsonPath: $.ProjectFacilities.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectFacilities.*.id - auditAttributeBasePath: $.ProjectFacilities.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_facility SET projectId=?, facilityId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=? WHERE id = ? - basePath: $.ProjectFacilities.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectFacilities.*.projectId + - jsonPath: $.*.projectId - - jsonPath: $.ProjectFacilities.*.facilityId + - jsonPath: $.*.facilityId - - jsonPath: $.ProjectFacilities.*.additionalFields + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedTime + - jsonPath: $.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectFacilities.*.rowVersion + - jsonPath: $.*.rowVersion - - jsonPath: $.ProjectFacilities.*.isDeleted + - jsonPath: $.*.isDeleted - - jsonPath: $.ProjectFacilities.*.id + - jsonPath: $.*.id - version: 1.0 description: Deletes Project Facility @@ -664,20 +664,20 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.ProjectFacilities.*.id - tenantIdJsonPath: $.ProjectFacilities.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.ProjectFacilities.*.id - auditAttributeBasePath: $.ProjectFacilities.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.project_facility SET lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.ProjectFacilities.* + basePath: $.* jsonMaps: - - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedBy - - jsonPath: $.ProjectFacilities.*.auditDetails.lastModifiedTime - - jsonPath: $.ProjectFacilities.*.rowVersion - - jsonPath: $.ProjectFacilities.*.isDeleted - - jsonPath: $.ProjectFacilities.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.ProjectFacilities.*.id \ No newline at end of file + - jsonPath: $.*.id diff --git a/health/egov-persister/project-task-persister.yml b/health/egov-persister/project-task-persister.yml index 229f11cf2..96b14bf35 100644 --- a/health/egov-persister/project-task-persister.yml +++ b/health/egov-persister/project-task-persister.yml @@ -7,77 +7,77 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.Tasks.*.id - tenantIdJsonPath: $.Tasks.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Tasks.*.clientReferenceId - auditAttributeBasePath: $.Tasks.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Tasks.* + basePath: $.* jsonMaps: - - jsonPath: $.Tasks.*.id - - jsonPath: $.Tasks.*.clientReferenceId - - jsonPath: $.Tasks.*.tenantId - - jsonPath: $.Tasks.*.projectId - - jsonPath: $.Tasks.*.projectBeneficiaryId - - jsonPath: $.Tasks.*.projectBeneficiaryClientReferenceId - - jsonPath: $.Tasks.*.plannedStartDate - - jsonPath: $.Tasks.*.plannedEndDate - - jsonPath: $.Tasks.*.actualStartDate - - jsonPath: $.Tasks.*.actualEndDate - - jsonPath: $.Tasks.*.address.id - - jsonPath: $.Tasks.*.status - - jsonPath: $.Tasks.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.plannedStartDate + - jsonPath: $.*.plannedEndDate + - jsonPath: $.*.actualStartDate + - jsonPath: $.*.actualEndDate + - jsonPath: $.*.address.id + - jsonPath: $.*.status + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Tasks.*.auditDetails.createdBy - - jsonPath: $.Tasks.*.auditDetails.createdTime - - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.rowVersion - - jsonPath: $.Tasks.*.isDeleted - - jsonPath: $.Tasks.*.clientAuditDetails.createdTime - - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.clientAuditDetails.createdBy - - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Tasks.*.address + basePath: $.*.address jsonMaps: - - jsonPath: $.Tasks.*.address.id - - jsonPath: $.Tasks.*.address.clientReferenceId - - jsonPath: $.Tasks.*.address.tenantId - - jsonPath: $.Tasks.*.address.doorNo - - jsonPath: $.Tasks.*.address.latitude - - jsonPath: $.Tasks.*.address.longitude - - jsonPath: $.Tasks.*.address.locationAccuracy - - jsonPath: $.Tasks.*.address.type - - jsonPath: $.Tasks.*.address.addressLine1 - - jsonPath: $.Tasks.*.address.addressLine2 - - jsonPath: $.Tasks.*.address.landmark - - jsonPath: $.Tasks.*.address.city - - jsonPath: $.Tasks.*.address.pincode - - jsonPath: $.Tasks.*.address.buildingName - - jsonPath: $.Tasks.*.address.street - - jsonPath: $.Tasks.*.address.locality.code + - jsonPath: $.*.address.id + - jsonPath: $.*.address.clientReferenceId + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); - basePath: $.Tasks.*.resources.* + basePath: $.*.resources.* jsonMaps: - - jsonPath: $.Tasks.*.resources.*.id - - jsonPath: $.Tasks.*.resources.*.clientReferenceId - - jsonPath: $.Tasks.*.resources.*.tenantId - - jsonPath: $.Tasks.*.resources.*.productVariantId - - jsonPath: $.Tasks.*.resources.*.taskId - - jsonPath: $.Tasks.*.resources.*.quantity - - jsonPath: $.Tasks.*.resources.*.isDelivered - - jsonPath: $.Tasks.*.resources.*.deliveryComment - - jsonPath: $.Tasks.*.resources.*.auditDetails.createdBy - - jsonPath: $.Tasks.*.resources.*.auditDetails.createdTime - - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.id + - jsonPath: $.*.resources.*.clientReferenceId + - jsonPath: $.*.resources.*.tenantId + - jsonPath: $.*.resources.*.productVariantId + - jsonPath: $.*.resources.*.taskId + - jsonPath: $.*.resources.*.quantity + - jsonPath: $.*.resources.*.isDelivered + - jsonPath: $.*.resources.*.deliveryComment + - jsonPath: $.*.resources.*.auditDetails.createdBy + - jsonPath: $.*.resources.*.auditDetails.createdTime + - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.isDeleted - version: 1.0 description: Updates a project task @@ -85,79 +85,79 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.Tasks.*.id - tenantIdJsonPath: $.Tasks.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Tasks.*.clientReferenceId - auditAttributeBasePath: $.Tasks.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; - basePath: $.Tasks.* + basePath: $.* jsonMaps: - - jsonPath: $.Tasks.*.tenantId - - jsonPath: $.Tasks.*.projectId - - jsonPath: $.Tasks.*.projectBeneficiaryId - - jsonPath: $.Tasks.*.projectBeneficiaryClientReferenceId - - jsonPath: $.Tasks.*.address.id - - jsonPath: $.Tasks.*.plannedStartDate - - jsonPath: $.Tasks.*.plannedEndDate - - jsonPath: $.Tasks.*.actualStartDate - - jsonPath: $.Tasks.*.actualEndDate - - jsonPath: $.Tasks.*.status - - jsonPath: $.Tasks.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.address.id + - jsonPath: $.*.plannedStartDate + - jsonPath: $.*.plannedEndDate + - jsonPath: $.*.actualStartDate + - jsonPath: $.*.actualEndDate + - jsonPath: $.*.status + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.rowVersion - - jsonPath: $.Tasks.*.isDeleted - - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id - query: UPDATE health.ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; - basePath: $.Tasks.*.address + basePath: $.*.address jsonMaps: - - jsonPath: $.Tasks.*.address.tenantId - - jsonPath: $.Tasks.*.address.doorNo - - jsonPath: $.Tasks.*.address.latitude - - jsonPath: $.Tasks.*.address.longitude - - jsonPath: $.Tasks.*.address.locationAccuracy - - jsonPath: $.Tasks.*.address.type - - jsonPath: $.Tasks.*.address.addressLine1 - - jsonPath: $.Tasks.*.address.addressLine2 - - jsonPath: $.Tasks.*.address.landmark - - jsonPath: $.Tasks.*.address.city - - jsonPath: $.Tasks.*.address.pincode - - jsonPath: $.Tasks.*.address.buildingName - - jsonPath: $.Tasks.*.address.street - - jsonPath: $.Tasks.*.address.locality.code - - jsonPath: $.Tasks.*.address.id + - jsonPath: $.*.address.tenantId + - jsonPath: $.*.address.doorNo + - jsonPath: $.*.address.latitude + - jsonPath: $.*.address.longitude + - jsonPath: $.*.address.locationAccuracy + - jsonPath: $.*.address.type + - jsonPath: $.*.address.addressLine1 + - jsonPath: $.*.address.addressLine2 + - jsonPath: $.*.address.landmark + - jsonPath: $.*.address.city + - jsonPath: $.*.address.pincode + - jsonPath: $.*.address.buildingName + - jsonPath: $.*.address.street + - jsonPath: $.*.address.locality.code + - jsonPath: $.*.address.id - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; - basePath: $.Tasks.*.resources.* + basePath: $.*.resources.* jsonMaps: - - jsonPath: $.Tasks.*.resources.*.id - - jsonPath: $.Tasks.*.resources.*.clientReferenceId - - jsonPath: $.Tasks.*.resources.*.tenantId - - jsonPath: $.Tasks.*.resources.*.productVariantId - - jsonPath: $.Tasks.*.resources.*.taskId - - jsonPath: $.Tasks.*.resources.*.quantity - - jsonPath: $.Tasks.*.resources.*.isDelivered - - jsonPath: $.Tasks.*.resources.*.deliveryComment - - jsonPath: $.Tasks.*.resources.*.auditDetails.createdBy - - jsonPath: $.Tasks.*.resources.*.auditDetails.createdTime - - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.resources.*.isDeleted - - jsonPath: $.Tasks.*.resources.*.tenantId - - jsonPath: $.Tasks.*.resources.*.taskId - - jsonPath: $.Tasks.*.resources.*.productVariantId - - jsonPath: $.Tasks.*.resources.*.quantity - - jsonPath: $.Tasks.*.resources.*.isDelivered - - jsonPath: $.Tasks.*.resources.*.deliveryComment - - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.id + - jsonPath: $.*.resources.*.clientReferenceId + - jsonPath: $.*.resources.*.tenantId + - jsonPath: $.*.resources.*.productVariantId + - jsonPath: $.*.resources.*.taskId + - jsonPath: $.*.resources.*.quantity + - jsonPath: $.*.resources.*.isDelivered + - jsonPath: $.*.resources.*.deliveryComment + - jsonPath: $.*.resources.*.auditDetails.createdBy + - jsonPath: $.*.resources.*.auditDetails.createdTime + - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.tenantId + - jsonPath: $.*.resources.*.taskId + - jsonPath: $.*.resources.*.productVariantId + - jsonPath: $.*.resources.*.quantity + - jsonPath: $.*.resources.*.isDelivered + - jsonPath: $.*.resources.*.deliveryComment + - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy + - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - version: 1.0 description: Deletes a project task @@ -165,32 +165,32 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: PROJECT - objecIdJsonPath: $.Tasks.*.id - tenantIdJsonPath: $.Tasks.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Tasks.*.clientReferenceId - auditAttributeBasePath: $.Tasks.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; - basePath: $.Tasks.* + basePath: $.* jsonMaps: - - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.rowVersion - - jsonPath: $.Tasks.*.isDeleted - - jsonPath: $.Tasks.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Tasks.*.id + - jsonPath: $.*.id - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; - basePath: $.Tasks.*.resources.* + basePath: $.*.resources.* jsonMaps: - - jsonPath: $.Tasks.*.auditDetails.lastModifiedBy - - jsonPath: $.Tasks.*.auditDetails.lastModifiedTime - - jsonPath: $.Tasks.*.isDeleted - - jsonPath: $.Tasks.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Saves a adverse event diff --git a/health/egov-persister/referral-management-persister.yml b/health/egov-persister/referral-management-persister.yml index becab2372..7fb9e6d56 100644 --- a/health/egov-persister/referral-management-persister.yml +++ b/health/egov-persister/referral-management-persister.yml @@ -7,38 +7,38 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.SideEffects.*.id - tenantIdJsonPath: $.SideEffects.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.SideEffects.*.clientReferenceId - auditAttributeBasePath: $.SideEffects.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.SIDE_EFFECT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, symptoms, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.SideEffects.* + basePath: $.* jsonMaps: - - jsonPath: $.SideEffects.*.id - - jsonPath: $.SideEffects.*.clientReferenceId - - jsonPath: $.SideEffects.*.tenantId - - jsonPath: $.SideEffects.*.taskId - - jsonPath: $.SideEffects.*.taskClientReferenceId - - jsonPath: $.SideEffects.*.projectBeneficiaryId - - jsonPath: $.SideEffects.*.projectBeneficiaryClientReferenceId - - jsonPath: $.SideEffects.*.symptoms + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms type: JSON dbType: JSONB - - jsonPath: $.SideEffects.*.additionalFields + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.SideEffects.*.auditDetails.createdBy - - jsonPath: $.SideEffects.*.auditDetails.createdTime - - jsonPath: $.SideEffects.*.auditDetails.lastModifiedBy - - jsonPath: $.SideEffects.*.auditDetails.lastModifiedTime - - jsonPath: $.SideEffects.*.clientAuditDetails.createdBy - - jsonPath: $.SideEffects.*.clientAuditDetails.createdTime - - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.SideEffects.*.rowVersion - - jsonPath: $.SideEffects.*.isDeleted + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Updates a side effect @@ -46,33 +46,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.SideEffects.*.id - tenantIdJsonPath: $.SideEffects.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.SideEffects.*.clientReferenceId - auditAttributeBasePath: $.SideEffects.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, symptoms = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.SideEffects.* + basePath: $.* jsonMaps: - - jsonPath: $.SideEffects.*.tenantId - - jsonPath: $.SideEffects.*.taskId - - jsonPath: $.SideEffects.*.taskClientReferenceId - - jsonPath: $.SideEffects.*.projectBeneficiaryId - - jsonPath: $.SideEffects.*.projectBeneficiaryClientReferenceId - - jsonPath: $.SideEffects.*.symptoms + - jsonPath: $.*.tenantId + - jsonPath: $.*.taskId + - jsonPath: $.*.taskClientReferenceId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.symptoms type: JSON dbType: JSONB - - jsonPath: $.SideEffects.*.additionalFields + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.SideEffects.*.auditDetails.lastModifiedBy - - jsonPath: $.SideEffects.*.auditDetails.lastModifiedTime - - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.SideEffects.*.rowVersion - - jsonPath: $.SideEffects.*.isDeleted - - jsonPath: $.SideEffects.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Deletes a side effect @@ -80,22 +80,22 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.SideEffects.*.id - tenantIdJsonPath: $.SideEffects.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.SideEffects.*.clientReferenceId - auditAttributeBasePath: $.SideEffects.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.SIDE_EFFECT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.SideEffects.* + basePath: $.* jsonMaps: - - jsonPath: $.SideEffects.*.auditDetails.lastModifiedBy - - jsonPath: $.SideEffects.*.auditDetails.lastModifiedTime - - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.SideEffects.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.SideEffects.*.rowVersion - - jsonPath: $.SideEffects.*.isDeleted - - jsonPath: $.SideEffects.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Saves a referral @@ -103,41 +103,41 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.Referrals.*.id - tenantIdJsonPath: $.Referrals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Referrals.*.clientReferenceId - auditAttributeBasePath: $.Referrals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.REFERRAL(id, clientReferenceId, tenantId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, referrerId, recipientId, recipientType, reasons, additionalDetails, sideEffectId, sideEffectClientReferenceId, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Referrals.* + basePath: $.* jsonMaps: - - jsonPath: $.Referrals.*.id - - jsonPath: $.Referrals.*.clientReferenceId - - jsonPath: $.Referrals.*.tenantId - - jsonPath: $.Referrals.*.projectBeneficiaryId - - jsonPath: $.Referrals.*.projectBeneficiaryClientReferenceId - - jsonPath: $.Referrals.*.referrerId - - jsonPath: $.Referrals.*.recipientId - - jsonPath: $.Referrals.*.recipientType - - jsonPath: $.Referrals.*.reasons + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons type: JSON dbType: JSONB - - jsonPath: $.Referrals.*.additionalFields + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Referrals.*.sideEffect.id - - jsonPath: $.Referrals.*.sideEffect.clientReferenceId - - jsonPath: $.Referrals.*.auditDetails.createdBy - - jsonPath: $.Referrals.*.auditDetails.createdTime - - jsonPath: $.Referrals.*.auditDetails.lastModifiedBy - - jsonPath: $.Referrals.*.auditDetails.lastModifiedTime - - jsonPath: $.Referrals.*.clientAuditDetails.createdBy - - jsonPath: $.Referrals.*.clientAuditDetails.createdTime - - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Referrals.*.rowVersion - - jsonPath: $.Referrals.*.isDeleted + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Updates a referral @@ -145,36 +145,36 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.Referrals.*.id - tenantIdJsonPath: $.Referrals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Referrals.*.clientReferenceId - auditAttributeBasePath: $.Referrals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.REFERRAL SET tenantId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, referrerId = ?, recipientId = ?, recipientType = ?, reasons = ?, additionalDetails = ?, sideEffectId = ?, sideEffectClientReferenceId = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.Referrals.* + basePath: $.* jsonMaps: - - jsonPath: $.Referrals.*.tenantId - - jsonPath: $.Referrals.*.projectBeneficiaryId - - jsonPath: $.Referrals.*.projectBeneficiaryClientReferenceId - - jsonPath: $.Referrals.*.referrerId - - jsonPath: $.Referrals.*.recipientId - - jsonPath: $.Referrals.*.recipientType - - jsonPath: $.Referrals.*.reasons + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectBeneficiaryId + - jsonPath: $.*.projectBeneficiaryClientReferenceId + - jsonPath: $.*.referrerId + - jsonPath: $.*.recipientId + - jsonPath: $.*.recipientType + - jsonPath: $.*.reasons type: JSON dbType: JSONB - - jsonPath: $.Referrals.*.additionalFields + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Referrals.*.sideEffect.id - - jsonPath: $.Referrals.*.sideEffect.clientReferenceId - - jsonPath: $.Referrals.*.auditDetails.lastModifiedBy - - jsonPath: $.Referrals.*.auditDetails.lastModifiedTime - - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Referrals.*.rowVersion - - jsonPath: $.Referrals.*.isDeleted - - jsonPath: $.Referrals.*.id + - jsonPath: $.*.sideEffect.id + - jsonPath: $.*.sideEffect.clientReferenceId + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Deletes a referral @@ -182,22 +182,22 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.Referrals.*.id - tenantIdJsonPath: $.Referrals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Referrals.*.clientReferenceId - auditAttributeBasePath: $.Referrals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.REFERRAL SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.Referrals.* + basePath: $.* jsonMaps: - - jsonPath: $.Referrals.*.auditDetails.lastModifiedBy - - jsonPath: $.Referrals.*.auditDetails.lastModifiedTime - - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Referrals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Referrals.*.rowVersion - - jsonPath: $.Referrals.*.isDeleted - - jsonPath: $.Referrals.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id - version: 1.0 description: Saves a hfreferral @@ -205,38 +205,38 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.HFReferrals.*.id - tenantIdJsonPath: $.HFReferrals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.HFReferrals.*.clientReferenceId - auditAttributeBasePath: $.HFReferrals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.hf_referral(id, clientReferenceId, tenantId, projectid, projectFacilityId, symptom, symptomsurveyid, beneficiaryid, referralcode, nationallevelid, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedBy, clientCreatedTime, clientLastModifiedBy, clientLastModifiedTime, rowVersion, isDeleted) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.HFReferrals.* + basePath: $.* jsonMaps: - - jsonPath: $.HFReferrals.*.id - - jsonPath: $.HFReferrals.*.clientReferenceId - - jsonPath: $.HFReferrals.*.tenantId - - jsonPath: $.HFReferrals.*.projectId - - jsonPath: $.HFReferrals.*.projectFacilityId - - jsonPath: $.HFReferrals.*.symptom - - jsonPath: $.HFReferrals.*.symptomSurveyId - - jsonPath: $.HFReferrals.*.beneficiaryId - - jsonPath: $.HFReferrals.*.referralCode - - jsonPath: $.HFReferrals.*.nationalLevelId - - jsonPath: $.HFReferrals.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectFacilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.HFReferrals.*.auditDetails.createdBy - - jsonPath: $.HFReferrals.*.auditDetails.createdTime - - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedBy - - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedTime - - jsonPath: $.HFReferrals.*.clientAuditDetails.createdBy - - jsonPath: $.HFReferrals.*.clientAuditDetails.createdTime - - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.HFReferrals.*.rowVersion - - jsonPath: $.HFReferrals.*.isDeleted + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted - version: 1.0 description: Updates a hfreferral @@ -244,33 +244,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.HFReferrals.*.id - tenantIdJsonPath: $.HFReferrals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.HFReferrals.*.clientReferenceId - auditAttributeBasePath: $.HFReferrals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.hf_referral SET clientReferenceId = ?, tenantId = ?, projectid = ?, projectFacilityId = ?, symptom = ?, symptomsurveyid = ?, beneficiaryid = ?, referralcode = ?, nationallevelid = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ? WHERE ID = ?; - basePath: $.HFReferrals.* + basePath: $.* jsonMaps: - - jsonPath: $.HFReferrals.*.clientReferenceId - - jsonPath: $.HFReferrals.*.tenantId - - jsonPath: $.HFReferrals.*.projectId - - jsonPath: $.HFReferrals.*.projectFacilityId - - jsonPath: $.HFReferrals.*.symptom - - jsonPath: $.HFReferrals.*.symptomSurveyId - - jsonPath: $.HFReferrals.*.beneficiaryId - - jsonPath: $.HFReferrals.*.referralCode - - jsonPath: $.HFReferrals.*.nationalLevelId - - jsonPath: $.HFReferrals.*.additionalFields + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.projectId + - jsonPath: $.*.projectFacilityId + - jsonPath: $.*.symptom + - jsonPath: $.*.symptomSurveyId + - jsonPath: $.*.beneficiaryId + - jsonPath: $.*.referralCode + - jsonPath: $.*.nationalLevelId + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedBy - - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedTime - - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.HFReferrals.*.rowVersion - - jsonPath: $.HFReferrals.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.id - version: 1.0 description: Deletes a hfreferral @@ -278,19 +278,19 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: REFERRALMANAGEMENT - objecIdJsonPath: $.HFReferrals.*.id - tenantIdJsonPath: $.HFReferrals.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.HFReferrals.*.clientReferenceId - auditAttributeBasePath: $.HFReferrals.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.hf_referral SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedBy = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; - basePath: $.HFReferrals.* + basePath: $.* jsonMaps: - - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedBy - - jsonPath: $.HFReferrals.*.auditDetails.lastModifiedTime - - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.HFReferrals.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.HFReferrals.*.rowVersion - - jsonPath: $.HFReferrals.*.isDeleted - - jsonPath: $.HFReferrals.*.id \ No newline at end of file + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/stock-persister.yml b/health/egov-persister/stock-persister.yml index 094bb5a8c..1b4794ce6 100644 --- a/health/egov-persister/stock-persister.yml +++ b/health/egov-persister/stock-persister.yml @@ -7,43 +7,43 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.Stock.*.id - tenantIdJsonPath: $.Stock.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Stock.*.clientReferenceId - auditAttributeBasePath: $.Stock.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.STOCK(id, clientReferenceId, tenantId, productVariantId, wayBillNumber, quantity, referenceId, referenceIdType, transactionType, transactionReason, senderType, senderId, receiverType, receiverId, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, dateOfEntry, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.Stock.* + basePath: $.* jsonMaps: - - jsonPath: $.Stock.*.id - - jsonPath: $.Stock.*.clientReferenceId - - jsonPath: $.Stock.*.tenantId - - jsonPath: $.Stock.*.productVariantId - - jsonPath: $.Stock.*.wayBillNumber - - jsonPath: $.Stock.*.quantity - - jsonPath: $.Stock.*.referenceId - - jsonPath: $.Stock.*.referenceIdType - - jsonPath: $.Stock.*.transactionType - - jsonPath: $.Stock.*.transactionReason - - jsonPath: $.Stock.*.senderType - - jsonPath: $.Stock.*.senderId - - jsonPath: $.Stock.*.receiverType - - jsonPath: $.Stock.*.receiverId - - jsonPath: $.Stock.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.productVariantId + - jsonPath: $.*.wayBillNumber + - jsonPath: $.*.quantity + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.transactionType + - jsonPath: $.*.transactionReason + - jsonPath: $.*.senderType + - jsonPath: $.*.senderId + - jsonPath: $.*.receiverType + - jsonPath: $.*.receiverId + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Stock.*.auditDetails.createdBy - - jsonPath: $.Stock.*.auditDetails.createdTime - - jsonPath: $.Stock.*.auditDetails.lastModifiedBy - - jsonPath: $.Stock.*.auditDetails.lastModifiedTime - - jsonPath: $.Stock.*.rowVersion - - jsonPath: $.Stock.*.isDeleted - - jsonPath: $.Stock.*.dateOfEntry - - jsonPath: $.Stock.*.clientAuditDetails.createdTime - - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Stock.*.clientAuditDetails.createdBy - - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.dateOfEntry + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Updates a stock @@ -51,37 +51,37 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.Stock.*.id - tenantIdJsonPath: $.Stock.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Stock.*.clientReferenceId - auditAttributeBasePath: $.Stock.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK SET tenantId=?, dateOfEntry = ?, productVariantId=?, wayBillNumber=?, quantity=?, referenceId=?, referenceIdType=?, transactionType=?, transactionReason=?, senderType=?, senderId=?, receiverType=?, receiverId=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; - basePath: $.Stock.* + basePath: $.* jsonMaps: - - jsonPath: $.Stock.*.tenantId - - jsonPath: $.Stock.*.dateOfEntry - - jsonPath: $.Stock.*.productVariantId - - jsonPath: $.Stock.*.wayBillNumber - - jsonPath: $.Stock.*.quantity - - jsonPath: $.Stock.*.referenceId - - jsonPath: $.Stock.*.referenceIdType - - jsonPath: $.Stock.*.transactionType - - jsonPath: $.Stock.*.transactionReason - - jsonPath: $.Stock.*.senderType - - jsonPath: $.Stock.*.senderId - - jsonPath: $.Stock.*.receiverType - - jsonPath: $.Stock.*.receiverId - - jsonPath: $.Stock.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.dateOfEntry + - jsonPath: $.*.productVariantId + - jsonPath: $.*.wayBillNumber + - jsonPath: $.*.quantity + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.transactionType + - jsonPath: $.*.transactionReason + - jsonPath: $.*.senderType + - jsonPath: $.*.senderId + - jsonPath: $.*.receiverType + - jsonPath: $.*.receiverId + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Stock.*.auditDetails.lastModifiedBy - - jsonPath: $.Stock.*.auditDetails.lastModifiedTime - - jsonPath: $.Stock.*.rowVersion - - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Stock.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id - version: 1.0 description: Deletes a stock @@ -89,25 +89,25 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.Stock.*.id - tenantIdJsonPath: $.Stock.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.Stock.*.clientReferenceId - auditAttributeBasePath: $.Stock.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.Stock.* + basePath: $.* jsonMaps: - - jsonPath: $.Stock.*.auditDetails.lastModifiedBy - - jsonPath: $.Stock.*.auditDetails.lastModifiedTime - - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.Stock.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.Stock.*.rowVersion - - jsonPath: $.Stock.*.isDeleted - - jsonPath: $.Stock.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.Stock.*.id + - jsonPath: $.*.id - version: 1.0 @@ -116,39 +116,39 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.StockReconciliation.*.id - tenantIdJsonPath: $.StockReconciliation.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.StockReconciliation.*.clientReferenceId - auditAttributeBasePath: $.StockReconciliation.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: INSERT INTO health.STOCK_RECONCILIATION_LOG(id, clientReferenceId, tenantId, facilityId, dateOfReconciliation, calculatedCount, physicalRecordedCount, commentsOnReconciliation, productVariantId, referenceId, referenceIdType, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted,clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); - basePath: $.StockReconciliation.* + basePath: $.* jsonMaps: - - jsonPath: $.StockReconciliation.*.id - - jsonPath: $.StockReconciliation.*.clientReferenceId - - jsonPath: $.StockReconciliation.*.tenantId - - jsonPath: $.StockReconciliation.*.facilityId - - jsonPath: $.StockReconciliation.*.dateOfReconciliation - - jsonPath: $.StockReconciliation.*.calculatedCount - - jsonPath: $.StockReconciliation.*.physicalCount - - jsonPath: $.StockReconciliation.*.commentsOnReconciliation - - jsonPath: $.StockReconciliation.*.productVariantId - - jsonPath: $.StockReconciliation.*.referenceId - - jsonPath: $.StockReconciliation.*.referenceIdType - - jsonPath: $.StockReconciliation.*.additionalFields + - jsonPath: $.*.id + - jsonPath: $.*.clientReferenceId + - jsonPath: $.*.tenantId + - jsonPath: $.*.facilityId + - jsonPath: $.*.dateOfReconciliation + - jsonPath: $.*.calculatedCount + - jsonPath: $.*.physicalCount + - jsonPath: $.*.commentsOnReconciliation + - jsonPath: $.*.productVariantId + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.StockReconciliation.*.auditDetails.createdBy - - jsonPath: $.StockReconciliation.*.auditDetails.createdTime - - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedBy - - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedTime - - jsonPath: $.StockReconciliation.*.rowVersion - - jsonPath: $.StockReconciliation.*.isDeleted - - jsonPath: $.StockReconciliation.*.clientAuditDetails.createdTime - - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.StockReconciliation.*.clientAuditDetails.createdBy - - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.createdBy + - jsonPath: $.*.auditDetails.createdTime + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.clientAuditDetails.createdTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.createdBy + - jsonPath: $.*.clientAuditDetails.lastModifiedBy - version: 1.0 description: Updates a stock reconciliation @@ -156,33 +156,33 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.StockReconciliation.*.id - tenantIdJsonPath: $.StockReconciliation.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.StockReconciliation.*.clientReferenceId - auditAttributeBasePath: $.StockReconciliation.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET tenantId=?, facilityId=?, productVariantId=?, referenceId=?, referenceIdType=?, dateOfReconciliation=?, calculatedCount=?, physicalRecordedCount=?, commentsOnReconciliation=?, additionalDetails=?, lastModifiedBy=?, lastModifiedTime=?, rowVersion=?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE id=? AND isDeleted=false; - basePath: $.StockReconciliation.* + basePath: $.* jsonMaps: - - jsonPath: $.StockReconciliation.*.tenantId - - jsonPath: $.StockReconciliation.*.facilityId - - jsonPath: $.StockReconciliation.*.productVariantId - - jsonPath: $.StockReconciliation.*.referenceId - - jsonPath: $.StockReconciliation.*.referenceIdType - - jsonPath: $.StockReconciliation.*.dateOfReconciliation - - jsonPath: $.StockReconciliation.*.calculatedCount - - jsonPath: $.StockReconciliation.*.physicalCount - - jsonPath: $.StockReconciliation.*.commentsOnReconciliation - - jsonPath: $.StockReconciliation.*.additionalFields + - jsonPath: $.*.tenantId + - jsonPath: $.*.facilityId + - jsonPath: $.*.productVariantId + - jsonPath: $.*.referenceId + - jsonPath: $.*.referenceIdType + - jsonPath: $.*.dateOfReconciliation + - jsonPath: $.*.calculatedCount + - jsonPath: $.*.physicalCount + - jsonPath: $.*.commentsOnReconciliation + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedBy - - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedTime - - jsonPath: $.StockReconciliation.*.rowVersion - - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.StockReconciliation.*.id + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.rowVersion + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.id - version: 1.0 description: Deletes a stock reconciliation @@ -190,22 +190,22 @@ serviceMaps: isTransaction: true isAuditEnabled: true module: STOCK - objecIdJsonPath: $.StockReconciliation.*.id - tenantIdJsonPath: $.StockReconciliation.*.tenantId - userUuidJsonPath: $.RequestInfo.userInfo.uuid - transactionCodeJsonPath: $.StockReconciliation.*.clientReferenceId - auditAttributeBasePath: $.StockReconciliation.* + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.[0].auditDetails.createdBy + transactionCodeJsonPath: $.clientReferenceId + auditAttributeBasePath: $.* queryMaps: - query: UPDATE health.STOCK_RECONCILIATION_LOG SET lastModifiedBy=?, lastModifiedTime=?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion=?, isDeleted=?, additionalDetails=? WHERE id=?; - basePath: $.StockReconciliation.* + basePath: $.* jsonMaps: - - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedBy - - jsonPath: $.StockReconciliation.*.auditDetails.lastModifiedTime - - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedTime - - jsonPath: $.StockReconciliation.*.clientAuditDetails.lastModifiedBy - - jsonPath: $.StockReconciliation.*.rowVersion - - jsonPath: $.StockReconciliation.*.isDeleted - - jsonPath: $.StockReconciliation.*.additionalFields + - jsonPath: $.*.auditDetails.lastModifiedBy + - jsonPath: $.*.auditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedTime + - jsonPath: $.*.clientAuditDetails.lastModifiedBy + - jsonPath: $.*.rowVersion + - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.StockReconciliation.*.id \ No newline at end of file + - jsonPath: $.*.id From 73afae35353122d9f3616488e426ea7f2e99701c Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:11:51 +0530 Subject: [PATCH 127/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 16190dc50..e363a23a7 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -62,7 +62,7 @@ serviceMaps: fromTopic: create-generated-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.id @@ -71,6 +71,7 @@ serviceMaps: - jsonPath: $.generatedResource.*.status - jsonPath: $.generatedResource.*.count - jsonPath: $.generatedResource.*.tenantId + - jsonPath: $.generatedResource.*.hierarchyType - jsonPath: $.generatedResource.*.auditDetails.createdBy - jsonPath: $.generatedResource.*.auditDetails.createdTime - jsonPath: $.generatedResource.*.auditDetails.lastModifiedBy From a1f89c5065bbe7279765b504a64a8a7dff1719fb Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:32:46 +0530 Subject: [PATCH 128/158] HLM-5403 Adding status for Plan configuration (#3040) Co-authored-by: LataNaik --- .../egov-persister/plan-service-persister.yml | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/health/egov-persister/plan-service-persister.yml b/health/egov-persister/plan-service-persister.yml index 57d4c83ba..ac362d0f3 100644 --- a/health/egov-persister/plan-service-persister.yml +++ b/health/egov-persister/plan-service-persister.yml @@ -14,13 +14,14 @@ serviceMaps: transactionCodeJsonPath: $.id auditAttributeBasePath: $.PlanConfiguration queryMaps: - - query: INSERT INTO health.plan_configuration(id, tenant_id, name, execution_plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration(id, tenant_id, name, execution_plan_id, status, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration jsonMaps: - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.tenantId - jsonPath: $.PlanConfiguration.name - jsonPath: $.PlanConfiguration.executionPlanId + - jsonPath: $.PlanConfiguration.status - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy @@ -93,12 +94,13 @@ serviceMaps: transactionCodeJsonPath: $.id auditAttributeBasePath: $.PlanConfiguration queryMaps: - - query: UPDATE health.plan_configuration SET tenant_id = ?, name = ?, execution_plan_id = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; + - query: UPDATE health.plan_configuration SET tenant_id = ?, name = ?, execution_plan_id = ?, status = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; basePath: $.PlanConfiguration jsonMaps: - jsonPath: $.PlanConfiguration.tenantId - jsonPath: $.PlanConfiguration.name - jsonPath: $.PlanConfiguration.executionPlanId + - jsonPath: $.PlanConfiguration.status - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - jsonPath: $.PlanConfiguration.id @@ -180,7 +182,7 @@ serviceMaps: fromTopic: save-plan isTransaction: true queryMaps: - - query: INSERT INTO plan(id, tenant_id, locality, execution_plan_id, plan_configuration_id, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan(id, tenant_id, locality, execution_plan_id, plan_configuration_id, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Plan jsonMaps: - jsonPath: $.Plan.id @@ -205,7 +207,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Plan.activities.* jsonMaps: - jsonPath: $.Plan.activities.*.id @@ -232,7 +234,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Plan.activities.*.conditions.* jsonMaps: - jsonPath: $.Plan.activities.*.conditions.*.id @@ -255,7 +257,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Plan.resources.* jsonMaps: - jsonPath: $.Plan.resources.*.id @@ -276,7 +278,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.Plan.targets.* jsonMaps: - jsonPath: $.Plan.targets.*.id @@ -306,7 +308,7 @@ serviceMaps: fromTopic: update-plan isTransaction: true queryMaps: - - query: UPDATE plan SET execution_plan_id = ?, plan_configuration_id = ?, last_modified_by=?, last_modified_time=? WHERE id = ?; + - query: UPDATE health.plan SET execution_plan_id = ?, plan_configuration_id = ?, last_modified_by=?, last_modified_time=? WHERE id = ?; basePath: $.Plan jsonMaps: - jsonPath: $.Plan.executionPlanId @@ -319,7 +321,7 @@ serviceMaps: - jsonPath: $.Plan.id - - query: INSERT INTO plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET description = EXCLUDED.description, planned_start_date = EXCLUDED.planned_start_date, planned_end_date = EXCLUDED.planned_end_date, dependencies = EXCLUDED.dependencies, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + - query: INSERT INTO health.plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET description = EXCLUDED.description, planned_start_date = EXCLUDED.planned_start_date, planned_end_date = EXCLUDED.planned_end_date, dependencies = EXCLUDED.dependencies, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; basePath: $.Plan.activities.* jsonMaps: - jsonPath: $.Plan.activities.*.id @@ -346,7 +348,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET entity = EXCLUDED.entity, entity_property = EXCLUDED.entity_property, expression = EXCLUDED.expression, is_active = EXCLUDED.is_active, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + - query: INSERT INTO health.plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET entity = EXCLUDED.entity, entity_property = EXCLUDED.entity_property, expression = EXCLUDED.expression, is_active = EXCLUDED.is_active, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; basePath: $.Plan.activities.*.conditions.* jsonMaps: - jsonPath: $.Plan.activities.*.conditions.*.id @@ -369,7 +371,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET resource_type = EXCLUDED.resource_type, estimated_number = EXCLUDED.estimated_number, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + - query: INSERT INTO health.plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET resource_type = EXCLUDED.resource_type, estimated_number = EXCLUDED.estimated_number, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; basePath: $.Plan.resources.* jsonMaps: - jsonPath: $.Plan.resources.*.id @@ -390,7 +392,7 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedTime - - query: INSERT INTO plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET metric = EXCLUDED.metric, metric_value = EXCLUDED.metric_value, metric_comparator = EXCLUDED.metric_comparator, metric_unit = EXCLUDED.metric_unit, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + - query: INSERT INTO health.plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET metric = EXCLUDED.metric, metric_value = EXCLUDED.metric_value, metric_comparator = EXCLUDED.metric_comparator, metric_unit = EXCLUDED.metric_unit, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; basePath: $.Plan.targets.* jsonMaps: - jsonPath: $.Plan.targets.*.id @@ -413,4 +415,4 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedBy - - jsonPath: $.Plan.auditDetails.lastModifiedTime + - jsonPath: $.Plan.auditDetails.lastModifiedTime \ No newline at end of file From c8e4bf7eb70c999e1a3d38c38b0c2dc8f917cfcb Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:23:16 +0530 Subject: [PATCH 129/158] Update project-factory-persister.yml --- .../project-factory-persister.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index e363a23a7..900b835c3 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -25,6 +25,24 @@ serviceMaps: type: JSON dbType: JSONB + + + - version: 1.0 + name: UpdateResourceDetails + description: Update resource details in the eg_cm_resource_details table + fromTopic: update-resource-details + isTransaction: true + queryMaps: + - query: UPDATE health.eg_cm_resource_details SET "status" = ?, processedFileStoreId = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.ResourceDetails + jsonMaps: + - jsonPath: $.ResourceDetails.status + - jsonPath: $.ResourceDetails.processedFileStoreId + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedBy + - jsonPath: $.ResourceDetails.auditDetails.lastModifiedTime + - jsonPath: $.ResourceDetails.id + + - version: 1.0 name: CreateResourceActivity description: Create resource activity in the eg_cm_resource_activity table From 99cee8b69e3e9d35c706474a4a96d08dd7020749 Mon Sep 17 00:00:00 2001 From: nitish-egov <137176807+nitish-egov@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:46:59 +0530 Subject: [PATCH 130/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 900b835c3..e4f578994 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -107,7 +107,7 @@ serviceMaps: fromTopic: update-generated-resource-details isTransaction: true queryMaps: - - query: UPDATE health.eg_cm_generated_resource_details SET status = ?,count=?, lastModifiedby =? , lastModifiedtime = ? , fileStoreid= ? WHERE id= ?; + - query: UPDATE health.eg_cm_generated_resource_details SET status = ?,count=?, lastModifiedby =? , lastModifiedtime = ? , fileStoreid= ?, additionalDetails= ? WHERE id= ?; basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.status @@ -115,6 +115,9 @@ serviceMaps: - jsonPath: $.generatedResource.*.auditDetails.lastModifiedBy - jsonPath: $.generatedResource.*.auditDetails.lastModifiedTime - jsonPath: $.generatedResource.*.fileStoreid + - jsonPath: $.generatedResource.*.additionalDetails + type: JSON + dbType: JSONB - jsonPath: $.generatedResource.*.id From fba40cff492c13544482bcad7361ce337860fede Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:10:17 +0530 Subject: [PATCH 131/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index e4f578994..2202af61c 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -33,13 +33,16 @@ serviceMaps: fromTopic: update-resource-details isTransaction: true queryMaps: - - query: UPDATE health.eg_cm_resource_details SET "status" = ?, processedFileStoreId = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + - query: UPDATE health.eg_cm_resource_details SET "status" = ?, processedFileStoreId = ?, lastModifiedBy = ?, lastModifiedTime = ?,additionalDetails = ? WHERE id = ?; basePath: $.ResourceDetails jsonMaps: - jsonPath: $.ResourceDetails.status - jsonPath: $.ResourceDetails.processedFileStoreId - jsonPath: $.ResourceDetails.auditDetails.lastModifiedBy - jsonPath: $.ResourceDetails.auditDetails.lastModifiedTime + - jsonPath: $.ResourceDetails.additionalDetails + type: JSON + dbType: JSONB - jsonPath: $.ResourceDetails.id From ae966d9f0545c0fb8993383ef24633c30575639a Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:02:18 +0530 Subject: [PATCH 132/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 2202af61c..5eedf5b6a 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -163,9 +163,10 @@ serviceMaps: fromTopic: update-project-campaign-details isTransaction: true queryMaps: - - query: UPDATE health.eg_cm_campaign_details SET "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?,startDate=?,endDate=?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; + - query: UPDATE health.eg_cm_campaign_details SET campaignName = ?, "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?,startDate=?,endDate=?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; basePath: $.CampaignDetails jsonMaps: + - jsonPath: $.CampaignDetails.campaignName - jsonPath: $.CampaignDetails.status - jsonPath: $.CampaignDetails.action - jsonPath: $.CampaignDetails.projectType From 65979a79207de6bf022e3365106c22d3dee39aa2 Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Wed, 22 May 2024 14:46:30 +0530 Subject: [PATCH 133/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 5eedf5b6a..e797f30f9 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -7,7 +7,7 @@ serviceMaps: fromTopic: create-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_resource_details(id, "status", tenantId, fileStoreId,processedFileStoreId,"action", "type", createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails) VALUES (?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.eg_cm_resource_details(id, "status", tenantId, fileStoreId,processedFileStoreId,"action", campaignId,"type", createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails) VALUES (?, ?,?, ?,?,?, ?, ?, ?, ?, ?, ?, ?); basePath: $.ResourceDetails jsonMaps: - jsonPath: $.ResourceDetails.id @@ -16,6 +16,7 @@ serviceMaps: - jsonPath: $.ResourceDetails.fileStoreId - jsonPath: $.ResourceDetails.processedFileStoreId - jsonPath: $.ResourceDetails.action + - jsonPath: $.ResourceDetails.campaignId - jsonPath: $.ResourceDetails.type - jsonPath: $.ResourceDetails.auditDetails.createdBy - jsonPath: $.ResourceDetails.auditDetails.createdTime From 8afa26968ce7e67a7692c8823757893150daac79 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Thu, 23 May 2024 14:35:50 +0530 Subject: [PATCH 134/158] HLM-5403 adding active field to file, assumptions, operations and resource mapping (#3067) --- .../egov-persister/plan-service-persister.yml | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/health/egov-persister/plan-service-persister.yml b/health/egov-persister/plan-service-persister.yml index ac362d0f3..b0f54ab78 100644 --- a/health/egov-persister/plan-service-persister.yml +++ b/health/egov-persister/plan-service-persister.yml @@ -27,7 +27,7 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration.files.* jsonMaps: - jsonPath: $.PlanConfiguration.files.*.id @@ -35,25 +35,27 @@ serviceMaps: - jsonPath: $.PlanConfiguration.files.*.filestoreId - jsonPath: $.PlanConfiguration.files.*.inputFileType - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration.assumptions.* jsonMaps: - jsonPath: $.PlanConfiguration.assumptions.*.id - jsonPath: $.PlanConfiguration.assumptions.*.key - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration.operations.* jsonMaps: - jsonPath: $.PlanConfiguration.operations.*.id @@ -61,19 +63,21 @@ serviceMaps: - jsonPath: $.PlanConfiguration.operations.*.operator - jsonPath: $.PlanConfiguration.operations.*.assumptionValue - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.PlanConfiguration.resourceMapping.* jsonMaps: - jsonPath: $.PlanConfiguration.resourceMapping.*.id - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.active - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime @@ -105,7 +109,7 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - jsonPath: $.PlanConfiguration.id - - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, template_identifier = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, template_identifier = ?, active = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.PlanConfiguration.files.* jsonMaps: - jsonPath: $.PlanConfiguration.files.*.id @@ -113,6 +117,7 @@ serviceMaps: - jsonPath: $.PlanConfiguration.files.*.filestoreId - jsonPath: $.PlanConfiguration.files.*.inputFileType - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy @@ -120,15 +125,17 @@ serviceMaps: - jsonPath: $.PlanConfiguration.files.*.filestoreId - jsonPath: $.PlanConfiguration.files.*.inputFileType - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET key = ?, value = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET key = ?, value = ?, active = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.PlanConfiguration.assumptions.* jsonMaps: - jsonPath: $.PlanConfiguration.assumptions.*.id - jsonPath: $.PlanConfiguration.assumptions.*.key - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime @@ -136,10 +143,11 @@ serviceMaps: - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - jsonPath: $.PlanConfiguration.assumptions.*.key - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET input = ?, operator = ?, assumption_value = ?, output = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET input = ?, operator = ?, assumption_value = ?, output = ?, active = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.PlanConfiguration.operations.* jsonMaps: - jsonPath: $.PlanConfiguration.operations.*.id @@ -147,6 +155,7 @@ serviceMaps: - jsonPath: $.PlanConfiguration.operations.*.operator - jsonPath: $.PlanConfiguration.operations.*.assumptionValue - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime @@ -156,16 +165,18 @@ serviceMaps: - jsonPath: $.PlanConfiguration.operations.*.operator - jsonPath: $.PlanConfiguration.operations.*.assumptionValue - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime - - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, filestore_id = ?, last_modified_by = ?, last_modified_time = ?; + - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, filestore_id = ?, active = ?, last_modified_by = ?, last_modified_time = ?; basePath: $.PlanConfiguration.resourceMapping.* jsonMaps: - jsonPath: $.PlanConfiguration.resourceMapping.*.id - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.active - jsonPath: $.PlanConfiguration.id - jsonPath: $.PlanConfiguration.auditDetails.createdBy - jsonPath: $.PlanConfiguration.auditDetails.createdTime @@ -174,6 +185,7 @@ serviceMaps: - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.active - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime @@ -415,4 +427,4 @@ serviceMaps: - jsonPath: $.Plan.auditDetails.lastModifiedBy - - jsonPath: $.Plan.auditDetails.lastModifiedTime \ No newline at end of file + - jsonPath: $.Plan.auditDetails.lastModifiedTime From f09dc2a09191712e71a2d08e8a1e23a37939fce7 Mon Sep 17 00:00:00 2001 From: Anuraj Date: Tue, 11 Jun 2024 16:34:06 +0530 Subject: [PATCH 135/158] Added persiter config --- .../rate-analysis-service-persister.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 egov-persister/rate-analysis-service-persister.yml diff --git a/egov-persister/rate-analysis-service-persister.yml b/egov-persister/rate-analysis-service-persister.yml new file mode 100644 index 000000000..bd7236b2b --- /dev/null +++ b/egov-persister/rate-analysis-service-persister.yml @@ -0,0 +1,60 @@ +serviceMaps: + serviceName: rate-analysis-service + mappings: + - version: 1.0 + name: RateAnalysisService + description: Persists Scheduled Jobs to Rate Analysis + fromTopic: rate-analysis-job-create + isTransaction: true + module: MAS + queryMaps: + - query: INSERT INTO eg_rate_analysis_schedule (id,jobId,tenantId,rateEffectiveFrom,jobStatus,createdTime,lastModifiedTime,lastModifiedBy,createdBy) VALUES (?,?,?,?,?,?,?,?,?); + basePath: $.ScheduledJobs + jsonMaps: + - jsonPath: $.ScheduledJobs.id + - jsonPath: $.ScheduledJobs.jobId + - jsonPath: $.ScheduledJobs.tenantId + - jsonPath: $.ScheduledJobs.rateEffectiveFrom + - jsonPath: $.ScheduledJobs.status + - jsonPath: $.ScheduledJobs.auditDetails.createdTime + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedTime + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedBy + - jsonPath: $.ScheduledJobs.auditDetails.createdBy + + - query: INSERT INTO eg_rate_analysis_schedule_details (id,sorId,ratesJobId,sorCode,status,failureReason,additionalDetails) VALUES (?,?,?,?,?,?,?); + basePath: $.ScheduledJobs.sorDetails.* + jsonMaps: + - jsonPath: $.ScheduledJobs.sorDetails.*.id + - jsonPath: $.ScheduledJobs.sorDetails.*.sorId + - jsonPath: $.ScheduledJobs.id + - jsonPath: $.ScheduledJobs.sorDetails.*.sorCode + - jsonPath: $.ScheduledJobs.sorDetails.*.status + - jsonPath: $.ScheduledJobs.sorDetails.*.failureReason + - jsonPath: $.ScheduledJobs.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: RateAnalysisService + description: Persists Scheduled Jobs to Rate Analysis + fromTopic: rate-analysis-job-update + isTransaction: true + module: MAS + queryMaps: + - query: UPDATE eg_rate_analysis_schedule SET jobStatus = ?, lastModifiedTime = ?, lastModifiedBy = ? WHERE id = ?; + basePath: $.ScheduledJobs + jsonMaps: + - jsonPath: $.ScheduledJobs.status + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedTime + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedBy + - jsonPath: $.ScheduledJobs.id + + - query: UPDATE eg_rate_analysis_schedule_details SET status = ?, failureReason = ?, additionalDetails = ? WHERE id = ?; + basePath: $.ScheduledJobs.sorDetails.* + jsonMaps: + - jsonPath: $.ScheduledJobs.sorDetails.*.status + - jsonPath: $.ScheduledJobs.sorDetails.*.failureReason + - jsonPath: $.ScheduledJobs.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.ScheduledJobs.sorDetails.*.id \ No newline at end of file From 1f557033a7bbe90045f01646b71c46d4fe9830a8 Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:47:28 +0530 Subject: [PATCH 136/158] Update referral-management-indexer.yml (#3071) --- egov-indexer/referral-management-indexer.yml | 32 +++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/egov-indexer/referral-management-indexer.yml b/egov-indexer/referral-management-indexer.yml index d1f1ec3f2..cdd2c43b7 100644 --- a/egov-indexer/referral-management-indexer.yml +++ b/egov-indexer/referral-management-indexer.yml @@ -98,4 +98,34 @@ ServiceMaps: id: $.id isBulk: true jsonPath: $.* - timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file + timeStampField: $.auditDetails.lastModifiedTime + + - topic: save-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime From 555a8dc94ee937424fded8d77d8bd571d7486e5e Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:04:46 +0530 Subject: [PATCH 137/158] Update referral-management-indexer.yml (#3072) --- .../referral-management-indexer.yml | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/health/egov-indexer/referral-management-indexer.yml b/health/egov-indexer/referral-management-indexer.yml index 74f4f7cc5..10a1d75db 100644 --- a/health/egov-indexer/referral-management-indexer.yml +++ b/health/egov-indexer/referral-management-indexer.yml @@ -98,4 +98,34 @@ ServiceMaps: id: $.id isBulk: true jsonPath: $.* - timeStampField: $.auditDetails.lastModifiedTime \ No newline at end of file + timeStampField: $.auditDetails.lastModifiedTime + + - topic: save-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.createdTime + + - topic: update-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime + + - topic: delete-hfreferral-topic + configKey: INDEX + indexes: + - name: hf-referral-index-v1 + type: hfreferral + id: $.id + isBulk: true + jsonPath: $.* + timeStampField: $.auditDetails.lastModifiedTime From d8c4285ab69548f206a522f4041052b07a8a2e0c Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:15:58 +0530 Subject: [PATCH 138/158] Update referral-management-indexer.yml --- health/egov-indexer/referral-management-indexer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/health/egov-indexer/referral-management-indexer.yml b/health/egov-indexer/referral-management-indexer.yml index 10a1d75db..16407e0eb 100644 --- a/health/egov-indexer/referral-management-indexer.yml +++ b/health/egov-indexer/referral-management-indexer.yml @@ -100,7 +100,7 @@ ServiceMaps: jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime - - topic: save-hfreferral-topic + - topic: save-hfreferral-health-topic configKey: INDEX indexes: - name: hf-referral-index-v1 @@ -110,7 +110,7 @@ ServiceMaps: jsonPath: $.* timeStampField: $.auditDetails.createdTime - - topic: update-hfreferral-topic + - topic: update-hfreferral-health-topic configKey: INDEX indexes: - name: hf-referral-index-v1 @@ -120,7 +120,7 @@ ServiceMaps: jsonPath: $.* timeStampField: $.auditDetails.lastModifiedTime - - topic: delete-hfreferral-topic + - topic: delete-hfreferral-health-topic configKey: INDEX indexes: - name: hf-referral-index-v1 From da21ce2661fb3534a43119772860e39a9f8eb526 Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Fri, 14 Jun 2024 15:26:34 +0530 Subject: [PATCH 139/158] Statement Persister Added --- egov-persister/statement-persister.yml | 103 +++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 egov-persister/statement-persister.yml diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml new file mode 100644 index 000000000..72abd824d --- /dev/null +++ b/egov-persister/statement-persister.yml @@ -0,0 +1,103 @@ +serviceMaps: + serviceName: statement + mappings: + - version: 1.0 + name: statement + description: Persists statement details in eg_statement table + fromTopic: save-analysis-statement + isTransaction: true + isAuditEnabled: true + module: STATEMENT + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.statement + queryMaps: + - query: INSERT INTO eg_statement(id,tenantid,target_id,statement_type,basic_sor_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?); + basePath: $.statement + jsonMaps: + - jsonPath: $.statement.id + - jsonPath: $.statement.tenantId + - jsonPath: $.statement.targetId + - jsonPath: $.statement.statementType + - jsonPath: $.statement.basicSorDetails + type: JSON + dbType: JSONB + - jsonPath: $.statement.auditDetails.createdBy + + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.createdTime + + - jsonPath: $.statement.auditDetails.lastModifiedTime + + + - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details) VALUES (?,?,?,?,?); + basePath: $.statement.sorDetails.* + jsonMaps: + - jsonPath: $.sorDetails.*.id + - jsonPath: $.sorDetails.*.tenantId + - jsonPath: $.statement.id + - jsonPath: $.sorDetails.*.sorId + - jsonPath: $.sorDetails.*.basicSorDetails + type: JSON + dbType: JSONB + + - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details) VALUES (?,?,?,?,?,?); + basePath: $.statement.sorDetails.*.lineItems.* + jsonMaps: + - jsonPath: $.lineItems.*.id + - jsonPath: $.statement.tenantId + - jsonPath: $.lineItems.*.sorId + - jsonPath: $.lineItems.*.sorType + - jsonPath: $.lineItems.*.referenceId + - jsonPath: $.lineItems.*.amountDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: statement + description: Update statement details in eg_statement table + fromTopic: update-analysis-statement + isTransaction: true + isAuditEnabled: true + module: STATEMENT + queryMaps: + - query: UPDATE eg_statement SET basic_sor_details = ?, lastmodifiedby = ?, lastmodifiedtime = ? WHERE id = ?; + basePath: $.statement + jsonMaps: + - jsonPath: $.statement.basicSorDetails + type: JSON + dbType: JSONB + - jsonPath: $.statement.auditDetails.lastModifiedBy + - jsonPath: $.statement.auditDetails.lastModifiedTime + - jsonPath: $.statement.id + + + + - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details) VALUES (?,?,?,?,?); + basePath: $.statement.sorDetails.* + jsonMaps: + - jsonPath: $.sorDetails.*.id + - jsonPath: $.sorDetails.*.tenantId + - jsonPath: $.statement.id + - jsonPath: $.sorDetails.*.sorId + - jsonPath: $.sorDetails.*.basicSorDetails + type: JSON + dbType: JSONB + + - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details) VALUES (?,?,?,?,?,?); + basePath: $.statement.sorDetails.*.lineItems.* + jsonMaps: + - jsonPath: $.lineItems.*.id + - jsonPath: $.statement.tenantId + - jsonPath: $.lineItems.*.sorId + - jsonPath: $.lineItems.*.sorType + - jsonPath: $.lineItems.*.referenceId + - jsonPath: $.lineItems.*.amountDetails + type: JSON + dbType: JSONB + + + + \ No newline at end of file From 5d3c3b0546e82941716d23dbdbd082153165ba3d Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Mon, 17 Jun 2024 09:05:06 +0530 Subject: [PATCH 140/158] Analysis Statement Persister --- egov-persister/statement-persister.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index 72abd824d..bf65dd482 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -32,7 +32,7 @@ serviceMaps: - jsonPath: $.statement.auditDetails.lastModifiedTime - - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details) VALUES (?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?); basePath: $.statement.sorDetails.* jsonMaps: - jsonPath: $.sorDetails.*.id @@ -42,8 +42,11 @@ serviceMaps: - jsonPath: $.sorDetails.*.basicSorDetails type: JSON dbType: JSONB + - jsonPath: $.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB - - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details) VALUES (?,?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?,?); basePath: $.statement.sorDetails.*.lineItems.* jsonMaps: - jsonPath: $.lineItems.*.id @@ -54,6 +57,9 @@ serviceMaps: - jsonPath: $.lineItems.*.amountDetails type: JSON dbType: JSONB + - jsonPath: $.lineItems.*.additionalDetails + type: JSON + dbType: JSONB - version: 1.0 name: statement @@ -75,7 +81,7 @@ serviceMaps: - - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details) VALUES (?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?); basePath: $.statement.sorDetails.* jsonMaps: - jsonPath: $.sorDetails.*.id @@ -85,8 +91,11 @@ serviceMaps: - jsonPath: $.sorDetails.*.basicSorDetails type: JSON dbType: JSONB + - jsonPath: $.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB - - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details) VALUES (?,?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?,?); basePath: $.statement.sorDetails.*.lineItems.* jsonMaps: - jsonPath: $.lineItems.*.id @@ -96,7 +105,10 @@ serviceMaps: - jsonPath: $.lineItems.*.referenceId - jsonPath: $.lineItems.*.amountDetails type: JSON - dbType: JSONB + dbType: JSONB + - jsonPath: $.lineItems.*.additionalDetails + type: JSON + dbType: JSONB From 1966f4361b0690bb5793a6025cac9b049b3563be Mon Sep 17 00:00:00 2001 From: Lata Naik <42994677+Lata-Naik20@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:42:41 +0530 Subject: [PATCH 141/158] Updated persister changes for project task (#3075) Co-authored-by: LataNaik --- egov-persister/project-task-persister.yml | 36 ++++++++++++------- .../egov-persister/project-task-persister.yml | 18 ++++++++-- 2 files changed, 39 insertions(+), 15 deletions(-) diff --git a/egov-persister/project-task-persister.yml b/egov-persister/project-task-persister.yml index b0a7f168c..538e7aec0 100644 --- a/egov-persister/project-task-persister.yml +++ b/egov-persister/project-task-persister.yml @@ -6,7 +6,7 @@ serviceMaps: fromTopic: save-project-task-topic isTransaction: true queryMaps: - - query: INSERT INTO health.PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO PROJECT_TASK(id, clientReferenceId, tenantId, projectId, projectBeneficiaryId, projectBeneficiaryClientReferenceId, plannedStartDate, plannedEndDate, actualStartDate, actualEndDate, addressId, status, additionalDetails, createdBy, createdTime, lastModifiedBy, lastModifiedTime, rowVersion, isDeleted, clientCreatedTime, clientLastModifiedTime, clientCreatedBy, clientLastModifiedBy) VALUES (?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -35,7 +35,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.createdBy - jsonPath: $.*.clientAuditDetails.lastModifiedBy - - query: INSERT INTO health.ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO ADDRESS(id, clientReferenceId, tenantid, doorno, latitude, longitude, locationAccuracy, type, addressline1, addressline2, landmark, city, pincode, buildingName, street, localityCode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.address jsonMaps: - jsonPath: $.*.address.id @@ -55,7 +55,7 @@ serviceMaps: - jsonPath: $.*.address.street - jsonPath: $.*.address.locality.code - - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted, additionalDetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.resources.*.id @@ -71,13 +71,16 @@ serviceMaps: - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.additionalFields + type: JSON + dbType: JSONB - version: 1.0 description: Updates a project task fromTopic: update-project-task-topic isTransaction: true queryMaps: - - query: UPDATE health.PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; + - query: UPDATE PROJECT_TASK SET tenantId = ?, projectId = ?, projectBeneficiaryId = ?, projectBeneficiaryClientReferenceId = ?, addressId = ?, plannedStartDate = ?, plannedEndDate = ?, actualStartDate = ?, actualEndDate = ?, status = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ?, rowVersion = ?, isDeleted = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -101,7 +104,7 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedBy - jsonPath: $.*.id - - query: UPDATE health.ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; + - query: UPDATE ADDRESS SET tenantId = ?, doorno = ?, latitude = ?, longitude = ?, locationAccuracy = ?, type = ?, addressline1 = ?, addressline2 = ?, landmark = ?, city = ?, pincode = ?, buildingName = ?, street = ?, localityCode = ? WHERE ID = ?; basePath: $.*.address jsonMaps: - jsonPath: $.*.address.tenantId @@ -120,7 +123,7 @@ serviceMaps: - jsonPath: $.*.address.locality.code - jsonPath: $.*.address.id - - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; + - query: INSERT INTO TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted, additionalDetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?; basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.resources.*.id @@ -136,6 +139,9 @@ serviceMaps: - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.additionalFields + type: JSON + dbType: JSONB - jsonPath: $.*.resources.*.tenantId - jsonPath: $.*.resources.*.taskId - jsonPath: $.*.resources.*.productVariantId @@ -144,13 +150,16 @@ serviceMaps: - jsonPath: $.*.resources.*.deliveryComment - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.additionalFields + type: JSON + dbType: JSONB - version: 1.0 description: Deletes a project task fromTopic: delete-project-task-topic isTransaction: true queryMaps: - - query: UPDATE health.PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails=? WHERE ID = ?; + - query: UPDATE PROJECT_TASK SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, clientLastModifiedBy = ?, rowVersion = ?, isDeleted = ?, additionalDetails = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -163,12 +172,15 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.*.id - - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ?, additionalDetails = ? WHERE ID = ?; basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB - jsonPath: $.*.id - version: 1.0 @@ -176,7 +188,7 @@ serviceMaps: fromTopic: save-adverse-event-topic isTransaction: true queryMaps: - - query: INSERT INTO health.ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO ADVERSE_EVENT(id, clientReferenceId, tenantId, taskId, taskClientReferenceId, symptoms, reAttempts, createdBy, createdTime, lastModifiedBy, lastModifiedTime, clientCreatedTime, clientLastModifiedTime, rowVersion, isDeleted) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: $.* jsonMaps: - jsonPath: $.*.id @@ -202,7 +214,7 @@ serviceMaps: fromTopic: update-adverse-event-topic isTransaction: true queryMaps: - - query: UPDATE health.ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE ADVERSE_EVENT SET tenantId = ?, taskId = ?, taskClientReferenceId = ?, symptoms = ?, reAttempts = ?, lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.tenantId @@ -224,7 +236,7 @@ serviceMaps: fromTopic: delete-adverse-event-topic isTransaction: true queryMaps: - - query: UPDATE health.ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE ADVERSE_EVENT SET lastModifiedBy = ?, lastModifiedTime = ?, clientLastModifiedTime = ?, rowVersion = ?, isDeleted = ? WHERE ID = ?; basePath: $.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy @@ -232,4 +244,4 @@ serviceMaps: - jsonPath: $.*.clientAuditDetails.lastModifiedTime - jsonPath: $.*.rowVersion - jsonPath: $.*.isDeleted - - jsonPath: $.*.id + - jsonPath: $.*.id \ No newline at end of file diff --git a/health/egov-persister/project-task-persister.yml b/health/egov-persister/project-task-persister.yml index 96b14bf35..b25893b3c 100644 --- a/health/egov-persister/project-task-persister.yml +++ b/health/egov-persister/project-task-persister.yml @@ -62,7 +62,7 @@ serviceMaps: - jsonPath: $.*.address.street - jsonPath: $.*.address.locality.code - - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted, additionalDetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.resources.*.id @@ -78,6 +78,9 @@ serviceMaps: - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.additionalFields + type: JSON + dbType: JSONB - version: 1.0 description: Updates a project task @@ -134,7 +137,7 @@ serviceMaps: - jsonPath: $.*.address.locality.code - jsonPath: $.*.address.id - - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?; + - query: INSERT INTO health.TASK_RESOURCE(id, clientReferenceId, tenantid, productvariantid, taskid, quantity, isDelivered, reasonIfNotDelivered, createdBy, createdTime, lastModifiedBy, lastModifiedTime, isDeleted, additionalDetails) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET tenantid = ?, taskid = ?, productvariantid = ?, quantity = ?, isDelivered = ?, reasonIfNotDelivered = ?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?; basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.resources.*.id @@ -150,6 +153,9 @@ serviceMaps: - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime - jsonPath: $.*.resources.*.isDeleted + - jsonPath: $.*.resources.*.additionalFields + type: JSON + dbType: JSONB - jsonPath: $.*.resources.*.tenantId - jsonPath: $.*.resources.*.taskId - jsonPath: $.*.resources.*.productVariantId @@ -158,6 +164,9 @@ serviceMaps: - jsonPath: $.*.resources.*.deliveryComment - jsonPath: $.*.resources.*.auditDetails.lastModifiedBy - jsonPath: $.*.resources.*.auditDetails.lastModifiedTime + - jsonPath: $.*.resources.*.additionalFields + type: JSON + dbType: JSONB - version: 1.0 description: Deletes a project task @@ -184,12 +193,15 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.*.id - - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ? WHERE ID = ?; + - query: UPDATE health.TASK_RESOURCE SET lastModifiedBy = ?, lastModifiedTime = ?, isDeleted = ?, additionalDetails = ? WHERE ID = ?; basePath: $.*.resources.* jsonMaps: - jsonPath: $.*.auditDetails.lastModifiedBy - jsonPath: $.*.auditDetails.lastModifiedTime - jsonPath: $.*.isDeleted + - jsonPath: $.*.additionalFields + type: JSON + dbType: JSONB - jsonPath: $.*.id - version: 1.0 From 3fbb69f7994dadb4e28a943aa4fc2ed732c03eab Mon Sep 17 00:00:00 2001 From: nitish-egov <137176807+nitish-egov@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:20:00 +0530 Subject: [PATCH 142/158] Update project-factory-persister.yml --- .../project-factory-persister.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index e797f30f9..bbee62721 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -27,7 +27,6 @@ serviceMaps: dbType: JSONB - - version: 1.0 name: UpdateResourceDetails description: Update resource details in the eg_cm_resource_details table @@ -84,7 +83,7 @@ serviceMaps: fromTopic: create-generated-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails,campaignid,auditid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.id @@ -101,6 +100,8 @@ serviceMaps: - jsonPath: $.generatedResource.*.additionalDetails type: JSON dbType: JSONB + - jsonPath: $.generatedResource.*.campaignId + - jsonPath: $.generatedResource.*.auditId @@ -130,6 +131,12 @@ serviceMaps: description: Create campaign details in the eg_cm_campaign_details table fromTopic: save-project-campaign-details isTransaction: true + isAuditEnabled: true + module: HCM + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.campaignNumber + auditAttributeBasePath: $.CampaignDetails queryMaps: - query: INSERT INTO health.eg_cm_campaign_details(id, tenantId, "status","action",campaignName,projectType, campaignNumber,hierarchyType,boundaryCode, projectId,startDate,endDate, createdBy, createdTime, lastModifiedBy, lastModifiedTime, additionalDetails,campaignDetails) VALUES (?,?,?,?,?, ?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?); basePath: $.CampaignDetails @@ -163,6 +170,12 @@ serviceMaps: description: Update campaign details in the eg_cm_campaign_details table fromTopic: update-project-campaign-details isTransaction: true + isAuditEnabled: true + module: HCM + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + transactionCodeJsonPath: $.campaignNumber + auditAttributeBasePath: $.CampaignDetails queryMaps: - query: UPDATE health.eg_cm_campaign_details SET campaignName = ?, "status" = ?, action = ?, projectType = ?, hierarchyType = ?, boundaryCode = ?, projectId = ?,startDate=?,endDate=?, lastModifiedBy = ?, lastModifiedTime = ?, additionalDetails = ?, campaignDetails = ? WHERE id = ?; basePath: $.CampaignDetails From 10628a4229fc638f91474bc493713ff18cc27a61 Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Tue, 18 Jun 2024 17:23:01 +0530 Subject: [PATCH 143/158] Query Updated --- egov-persister/statement-persister.yml | 63 +++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 7 deletions(-) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index bf65dd482..1d9657dbd 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -32,7 +32,7 @@ serviceMaps: - jsonPath: $.statement.auditDetails.lastModifiedTime - - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details,additional_details,is_active,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); basePath: $.statement.sorDetails.* jsonMaps: - jsonPath: $.sorDetails.*.id @@ -45,8 +45,16 @@ serviceMaps: - jsonPath: $.sorDetails.*.additionalDetails type: JSON dbType: JSONB + - jsonPath: $.sorDetails.isActive + - jsonPath: $.statement.auditDetails.createdBy + + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.createdTime + + - jsonPath: $.statement.auditDetails.lastModifiedTime - - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details,additional_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?); basePath: $.statement.sorDetails.*.lineItems.* jsonMaps: - jsonPath: $.lineItems.*.id @@ -59,7 +67,14 @@ serviceMaps: dbType: JSONB - jsonPath: $.lineItems.*.additionalDetails type: JSON - dbType: JSONB + dbType: JSONB + - jsonPath: $.statement.auditDetails.createdBy + + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.createdTime + + - jsonPath: $.statement.auditDetails.lastModifiedTime - version: 1.0 name: statement @@ -81,7 +96,7 @@ serviceMaps: - - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_details(id,tenantid,statement_id,sorid,basic_sor_details,additional_details,is_active,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET basic_sor_details=?, additional_details=?,is_active=?,lastmodifiedby = ?, lastmodifiedtime = ?; basePath: $.statement.sorDetails.* jsonMaps: - jsonPath: $.sorDetails.*.id @@ -93,9 +108,27 @@ serviceMaps: dbType: JSONB - jsonPath: $.sorDetails.*.additionalDetails type: JSON - dbType: JSONB + dbType: JSONB + - jsonPath: $.sorDetails.isActive + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.lastModifiedTime + + - jsonPath: $.statement.auditDetails.lastModifiedTime + + - jsonPath: $.sorDetails.*.basicSorDetails + type: JSON + dbType: JSONB + - jsonPath: $.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.lastModifiedTime - - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details,additional_details) VALUES (?,?,?,?,?,?,?); + - query: INSERT INTO eg_statement_sor_line_items(id,tenantid,sorid,sortype,reference_id,basic_sor_details,additional_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?,?) ON CONFLICT (id) DO UPDATE SET basic_sor_details=?, additional_details=?,lastmodifiedby = ?, lastmodifiedtime = ?; basePath: $.statement.sorDetails.*.lineItems.* jsonMaps: - jsonPath: $.lineItems.*.id @@ -103,12 +136,28 @@ serviceMaps: - jsonPath: $.lineItems.*.sorId - jsonPath: $.lineItems.*.sorType - jsonPath: $.lineItems.*.referenceId - - jsonPath: $.lineItems.*.amountDetails + - jsonPath: $.lineItems.*.basicSorDetails type: JSON dbType: JSONB - jsonPath: $.lineItems.*.additionalDetails type: JSON dbType: JSONB + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.lastModifiedTime + + - jsonPath: $.statement.auditDetails.lastModifiedTime + - jsonPath: $.lineItems.*.basicSorDetails + type: JSON + dbType: JSONB + - jsonPath: $.lineItems.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.statement.auditDetails.lastModifiedBy + + - jsonPath: $.statement.auditDetails.lastModifiedTime From 6a6d736b25ae3648bf125d0d1e21a574a8d422d9 Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Tue, 18 Jun 2024 22:35:05 +0530 Subject: [PATCH 144/158] json path updated for lineitem basicsordetails --- egov-persister/statement-persister.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index 1d9657dbd..25529dc77 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -62,7 +62,7 @@ serviceMaps: - jsonPath: $.lineItems.*.sorId - jsonPath: $.lineItems.*.sorType - jsonPath: $.lineItems.*.referenceId - - jsonPath: $.lineItems.*.amountDetails + - jsonPath: $.lineItems.*.basicSorDetails type: JSON dbType: JSONB - jsonPath: $.lineItems.*.additionalDetails @@ -157,7 +157,7 @@ serviceMaps: dbType: JSONB - jsonPath: $.statement.auditDetails.lastModifiedBy - - jsonPath: $.statement.auditDetails.lastModifiedTime + - jsonPath: $.statement.auditDetails.lastModifiedTime From 3e22ae77d56b3ceac65378829f31d8b231a0fa1a Mon Sep 17 00:00:00 2001 From: ansh-egov <137172017+ansh-egov@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:24:54 +0530 Subject: [PATCH 145/158] Create rate-analysis-service-persister.yml --- .../rate-analysis-service-persister.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 works/egov-persister/works/egov-persister/rate-analysis-service-persister.yml diff --git a/works/egov-persister/works/egov-persister/rate-analysis-service-persister.yml b/works/egov-persister/works/egov-persister/rate-analysis-service-persister.yml new file mode 100644 index 000000000..a1124d027 --- /dev/null +++ b/works/egov-persister/works/egov-persister/rate-analysis-service-persister.yml @@ -0,0 +1,60 @@ +serviceMaps: + serviceName: rate-analysis-service + mappings: + - version: 1.0 + name: RateAnalysisService + description: Persists Scheduled Jobs to Rate Analysis + fromTopic: rate-analysis-job-create + isTransaction: true + module: MAS + queryMaps: + - query: INSERT INTO eg_rate_analysis_schedule (id,jobId,tenantId,rateEffectiveFrom,jobStatus,createdTime,lastModifiedTime,lastModifiedBy,createdBy) VALUES (?,?,?,?,?,?,?,?,?); + basePath: $.ScheduledJobs + jsonMaps: + - jsonPath: $.ScheduledJobs.id + - jsonPath: $.ScheduledJobs.jobId + - jsonPath: $.ScheduledJobs.tenantId + - jsonPath: $.ScheduledJobs.rateEffectiveFrom + - jsonPath: $.ScheduledJobs.status + - jsonPath: $.ScheduledJobs.auditDetails.createdTime + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedTime + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedBy + - jsonPath: $.ScheduledJobs.auditDetails.createdBy + + - query: INSERT INTO eg_rate_analysis_schedule_details (id,sorId,ratesJobId,sorCode,status,failureReason,additionalDetails) VALUES (?,?,?,?,?,?,?); + basePath: $.ScheduledJobs.sorDetails.* + jsonMaps: + - jsonPath: $.ScheduledJobs.sorDetails.*.id + - jsonPath: $.ScheduledJobs.sorDetails.*.sorId + - jsonPath: $.ScheduledJobs.id + - jsonPath: $.ScheduledJobs.sorDetails.*.sorCode + - jsonPath: $.ScheduledJobs.sorDetails.*.status + - jsonPath: $.ScheduledJobs.sorDetails.*.failureReason + - jsonPath: $.ScheduledJobs.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: RateAnalysisService + description: Persists Scheduled Jobs to Rate Analysis + fromTopic: rate-analysis-job-update + isTransaction: true + module: MAS + queryMaps: + - query: UPDATE eg_rate_analysis_schedule SET jobStatus = ?, lastModifiedTime = ?, lastModifiedBy = ? WHERE id = ?; + basePath: $.ScheduledJobs + jsonMaps: + - jsonPath: $.ScheduledJobs.status + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedTime + - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedBy + - jsonPath: $.ScheduledJobs.id + + - query: UPDATE eg_rate_analysis_schedule_details SET status = ?, failureReason = ?, additionalDetails = ? WHERE id = ?; + basePath: $.ScheduledJobs.sorDetails.* + jsonMaps: + - jsonPath: $.ScheduledJobs.sorDetails.*.status + - jsonPath: $.ScheduledJobs.sorDetails.*.failureReason + - jsonPath: $.ScheduledJobs.sorDetails.*.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.ScheduledJobs.sorDetails.*.id From 8945ed51f8b36f32bbc410818532d340d0332037 Mon Sep 17 00:00:00 2001 From: ansh-egov Date: Wed, 19 Jun 2024 11:55:31 +0530 Subject: [PATCH 146/158] added --- .../rate-analysis-service-persister.yml | 60 ------------------- .../rate-analysis-service-persister.yml | 0 2 files changed, 60 deletions(-) delete mode 100644 egov-persister/rate-analysis-service-persister.yml rename works/egov-persister/{works/egov-persister => }/rate-analysis-service-persister.yml (100%) diff --git a/egov-persister/rate-analysis-service-persister.yml b/egov-persister/rate-analysis-service-persister.yml deleted file mode 100644 index bd7236b2b..000000000 --- a/egov-persister/rate-analysis-service-persister.yml +++ /dev/null @@ -1,60 +0,0 @@ -serviceMaps: - serviceName: rate-analysis-service - mappings: - - version: 1.0 - name: RateAnalysisService - description: Persists Scheduled Jobs to Rate Analysis - fromTopic: rate-analysis-job-create - isTransaction: true - module: MAS - queryMaps: - - query: INSERT INTO eg_rate_analysis_schedule (id,jobId,tenantId,rateEffectiveFrom,jobStatus,createdTime,lastModifiedTime,lastModifiedBy,createdBy) VALUES (?,?,?,?,?,?,?,?,?); - basePath: $.ScheduledJobs - jsonMaps: - - jsonPath: $.ScheduledJobs.id - - jsonPath: $.ScheduledJobs.jobId - - jsonPath: $.ScheduledJobs.tenantId - - jsonPath: $.ScheduledJobs.rateEffectiveFrom - - jsonPath: $.ScheduledJobs.status - - jsonPath: $.ScheduledJobs.auditDetails.createdTime - - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedTime - - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedBy - - jsonPath: $.ScheduledJobs.auditDetails.createdBy - - - query: INSERT INTO eg_rate_analysis_schedule_details (id,sorId,ratesJobId,sorCode,status,failureReason,additionalDetails) VALUES (?,?,?,?,?,?,?); - basePath: $.ScheduledJobs.sorDetails.* - jsonMaps: - - jsonPath: $.ScheduledJobs.sorDetails.*.id - - jsonPath: $.ScheduledJobs.sorDetails.*.sorId - - jsonPath: $.ScheduledJobs.id - - jsonPath: $.ScheduledJobs.sorDetails.*.sorCode - - jsonPath: $.ScheduledJobs.sorDetails.*.status - - jsonPath: $.ScheduledJobs.sorDetails.*.failureReason - - jsonPath: $.ScheduledJobs.sorDetails.*.additionalDetails - type: JSON - dbType: JSONB - - - version: 1.0 - name: RateAnalysisService - description: Persists Scheduled Jobs to Rate Analysis - fromTopic: rate-analysis-job-update - isTransaction: true - module: MAS - queryMaps: - - query: UPDATE eg_rate_analysis_schedule SET jobStatus = ?, lastModifiedTime = ?, lastModifiedBy = ? WHERE id = ?; - basePath: $.ScheduledJobs - jsonMaps: - - jsonPath: $.ScheduledJobs.status - - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedTime - - jsonPath: $.ScheduledJobs.auditDetails.lastModifiedBy - - jsonPath: $.ScheduledJobs.id - - - query: UPDATE eg_rate_analysis_schedule_details SET status = ?, failureReason = ?, additionalDetails = ? WHERE id = ?; - basePath: $.ScheduledJobs.sorDetails.* - jsonMaps: - - jsonPath: $.ScheduledJobs.sorDetails.*.status - - jsonPath: $.ScheduledJobs.sorDetails.*.failureReason - - jsonPath: $.ScheduledJobs.sorDetails.*.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.ScheduledJobs.sorDetails.*.id \ No newline at end of file diff --git a/works/egov-persister/works/egov-persister/rate-analysis-service-persister.yml b/works/egov-persister/rate-analysis-service-persister.yml similarity index 100% rename from works/egov-persister/works/egov-persister/rate-analysis-service-persister.yml rename to works/egov-persister/rate-analysis-service-persister.yml From 3a9d909cb4299111130aa7b53006cfe081e50a4a Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Wed, 19 Jun 2024 11:58:08 +0530 Subject: [PATCH 147/158] Added isActive jsonPath --- egov-persister/statement-persister.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index 25529dc77..298a96327 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -124,6 +124,7 @@ serviceMaps: - jsonPath: $.sorDetails.*.additionalDetails type: JSON dbType: JSONB + - jsonPath: $.sorDetails.isActive - jsonPath: $.statement.auditDetails.lastModifiedBy - jsonPath: $.statement.auditDetails.lastModifiedTime From f7b43ce3dd01b234aa7f38e6b12780ee4d71a19e Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Wed, 19 Jun 2024 18:04:09 +0530 Subject: [PATCH 148/158] JsonPath For Is Active Updated --- egov-persister/statement-persister.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index 298a96327..6f0054c2b 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -45,7 +45,7 @@ serviceMaps: - jsonPath: $.sorDetails.*.additionalDetails type: JSON dbType: JSONB - - jsonPath: $.sorDetails.isActive + - jsonPath: $.sorDetails.*.isActive - jsonPath: $.statement.auditDetails.createdBy - jsonPath: $.statement.auditDetails.lastModifiedBy @@ -109,7 +109,7 @@ serviceMaps: - jsonPath: $.sorDetails.*.additionalDetails type: JSON dbType: JSONB - - jsonPath: $.sorDetails.isActive + - jsonPath: $.sorDetails.*.isActive - jsonPath: $.statement.auditDetails.lastModifiedBy - jsonPath: $.statement.auditDetails.lastModifiedBy @@ -124,7 +124,7 @@ serviceMaps: - jsonPath: $.sorDetails.*.additionalDetails type: JSON dbType: JSONB - - jsonPath: $.sorDetails.isActive + - jsonPath: $.sorDetails.*.isActive - jsonPath: $.statement.auditDetails.lastModifiedBy - jsonPath: $.statement.auditDetails.lastModifiedTime From d03f5d60aa44f8b7aefb793d95c33b5e9d4bcbd7 Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Thu, 20 Jun 2024 15:21:03 +0530 Subject: [PATCH 149/158] AdditionalDetails PAth Updated --- egov-persister/statement-persister.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index 6f0054c2b..b6d67193e 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -13,7 +13,7 @@ serviceMaps: transactionCodeJsonPath: $.id auditAttributeBasePath: $.statement queryMaps: - - query: INSERT INTO eg_statement(id,tenantid,target_id,statement_type,basic_sor_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?); + - query: INSERT INTO eg_statement(id,tenantid,target_id,statement_type,basic_sor_details,additional_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?); basePath: $.statement jsonMaps: - jsonPath: $.statement.id @@ -23,6 +23,7 @@ serviceMaps: - jsonPath: $.statement.basicSorDetails type: JSON dbType: JSONB + - jsonPath: $.statement.additionalDetails - jsonPath: $.statement.auditDetails.createdBy - jsonPath: $.statement.auditDetails.lastModifiedBy From 45439d21c9ef3f9d714b19f25aac9e5915efc977 Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Thu, 20 Jun 2024 15:49:11 +0530 Subject: [PATCH 150/158] Refactored --- egov-persister/statement-persister.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index b6d67193e..b1a236632 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -13,7 +13,7 @@ serviceMaps: transactionCodeJsonPath: $.id auditAttributeBasePath: $.statement queryMaps: - - query: INSERT INTO eg_statement(id,tenantid,target_id,statement_type,basic_sor_details,additional_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?); + - query: INSERT INTO eg_statement(id,tenantid,target_id,statement_type,basic_sor_details,additional_details,createdby,lastmodifiedby,createdtime,lastmodifiedtime) VALUES (?,?,?,?,?,?,?,?,?,?); basePath: $.statement jsonMaps: - jsonPath: $.statement.id From d6335c53002bc5c0909f24a04763f47d2f4b51f0 Mon Sep 17 00:00:00 2001 From: manastanmay-eGov Date: Thu, 20 Jun 2024 16:09:12 +0530 Subject: [PATCH 151/158] Path type updated --- egov-persister/statement-persister.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/egov-persister/statement-persister.yml b/egov-persister/statement-persister.yml index b1a236632..22300ed9b 100644 --- a/egov-persister/statement-persister.yml +++ b/egov-persister/statement-persister.yml @@ -24,6 +24,8 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.statement.additionalDetails + type: JSON + dbType: JSONB - jsonPath: $.statement.auditDetails.createdBy - jsonPath: $.statement.auditDetails.lastModifiedBy From 5e378984651e7df9207a4a4443666a78a1778647 Mon Sep 17 00:00:00 2001 From: LataNaik Date: Mon, 24 Jun 2024 14:53:50 +0530 Subject: [PATCH 152/158] Added plan service persister file --- .../egov-persister/plan-service-persister.yml | 430 ++++++++++++++++++ 1 file changed, 430 insertions(+) create mode 100644 health/egov-persister/plan-service-persister.yml diff --git a/health/egov-persister/plan-service-persister.yml b/health/egov-persister/plan-service-persister.yml new file mode 100644 index 000000000..e0b952166 --- /dev/null +++ b/health/egov-persister/plan-service-persister.yml @@ -0,0 +1,430 @@ +serviceMaps: + serviceName: plan-service + mappings: + - version: 1.0 + name: plan-configuration + description: Persists plan configuration details + fromTopic: plan-config-create-topic + isTransaction: true + isAuditEnabled: true + module: PLAN + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.PlanConfiguration + queryMaps: + - query: INSERT INTO health.plan_configuration(id, tenant_id, name, execution_plan_id, status, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration + jsonMaps: + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.tenantId + - jsonPath: $.PlanConfiguration.name + - jsonPath: $.PlanConfiguration.executionPlanId + - jsonPath: $.PlanConfiguration.status + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.PlanConfiguration.resourceMapping.* + jsonMaps: + - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + + - version: 1.0 + name: plan-configuration + description: Updates plan configuration details + fromTopic: plan-config-update-topic + isTransaction: true + isAuditEnabled: true + module: PLAN + objecIdJsonPath: $.id + tenantIdJsonPath: $.tenantId + userUuidJsonPath: $.auditDetails.createdBy + transactionCodeJsonPath: $.id + auditAttributeBasePath: $.PlanConfiguration + queryMaps: + - query: UPDATE health.plan_configuration SET tenant_id = ?, name = ?, execution_plan_id = ?, status = ?, last_modified_by = ?, last_modified_time = ? WHERE id = ?; + basePath: $.PlanConfiguration + jsonMaps: + - jsonPath: $.PlanConfiguration.tenantId + - jsonPath: $.PlanConfiguration.name + - jsonPath: $.PlanConfiguration.executionPlanId + - jsonPath: $.PlanConfiguration.status + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.id + + - query: INSERT INTO health.plan_configuration_files(id, plan_configuration_id, filestore_id, input_file_type, template_identifier, active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET filestore_id =?, input_file_type = ?, template_identifier = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.files.* + jsonMaps: + - jsonPath: $.PlanConfiguration.files.*.id + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.files.*.filestoreId + - jsonPath: $.PlanConfiguration.files.*.inputFileType + - jsonPath: $.PlanConfiguration.files.*.templateIdentifier + - jsonPath: $.PlanConfiguration.files.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_assumptions(id, key, value, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET key = ?, value = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.assumptions.* + jsonMaps: + - jsonPath: $.PlanConfiguration.assumptions.*.id + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.assumptions.*.key + - jsonPath: $.PlanConfiguration.assumptions.*.value + - jsonPath: $.PlanConfiguration.assumptions.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_operations(id, input, operator, assumption_value, output, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET input = ?, operator = ?, assumption_value = ?, output = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.operations.* + jsonMaps: + - jsonPath: $.PlanConfiguration.operations.*.id + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.operations.*.input + - jsonPath: $.PlanConfiguration.operations.*.operator + - jsonPath: $.PlanConfiguration.operations.*.assumptionValue + - jsonPath: $.PlanConfiguration.operations.*.output + - jsonPath: $.PlanConfiguration.operations.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_configuration_mapping(id, filestore_id, mapped_from, mapped_to, active, plan_configuration_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET mapped_from = ?, mapped_to = ?, filestore_id = ?, active = ?, last_modified_by = ?, last_modified_time = ?; + basePath: $.PlanConfiguration.resourceMapping.* + jsonMaps: + - jsonPath: $.PlanConfiguration.resourceMapping.*.id + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.active + - jsonPath: $.PlanConfiguration.id + - jsonPath: $.PlanConfiguration.auditDetails.createdBy + - jsonPath: $.PlanConfiguration.auditDetails.createdTime + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedFrom + - jsonPath: $.PlanConfiguration.resourceMapping.*.mappedTo + - jsonPath: $.PlanConfiguration.resourceMapping.*.filestoreId + - jsonPath: $.PlanConfiguration.resourceMapping.*.active + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedBy + - jsonPath: $.PlanConfiguration.auditDetails.lastModifiedTime + + - version: 1.0.0 + description: Persists the plan + fromTopic: save-plan + isTransaction: true + queryMaps: + - query: INSERT INTO health.plan(id, tenant_id, locality, execution_plan_id, plan_configuration_id, additional_details, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan + jsonMaps: + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.tenantId + + - jsonPath: $.Plan.locality + + - jsonPath: $.Plan.executionPlanId + + - jsonPath: $.Plan.planConfigurationId + + - jsonPath: $.Plan.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.activities.* + jsonMaps: + - jsonPath: $.Plan.activities.*.id + + - jsonPath: $.Plan.activities.*.code + + - jsonPath: $.Plan.activities.*.description + + - jsonPath: $.Plan.activities.*.plannedStartDate + + - jsonPath: $.Plan.activities.*.plannedEndDate + + - jsonPath: $.Plan.activities.*.dependencies + type: ARRAY + dbType: STRING + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.activities.*.conditions.* + jsonMaps: + - jsonPath: $.Plan.activities.*.conditions.*.id + + - jsonPath: $.Plan.activities.*.conditions.*.entity + + - jsonPath: $.Plan.activities.*.conditions.*.entityProperty + + - jsonPath: $.Plan.activities.*.conditions.*.expression + + - jsonPath: $.Plan.activities[*][?({id} in @.conditions[*].id)].id + + - jsonPath: $.Plan.activities.*.conditions.*.isActive + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.resources.* + jsonMaps: + - jsonPath: $.Plan.resources.*.id + + - jsonPath: $.Plan.resources.*.resourceType + + - jsonPath: $.Plan.resources.*.estimatedNumber + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.resources.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); + basePath: $.Plan.targets.* + jsonMaps: + - jsonPath: $.Plan.targets.*.id + + - jsonPath: $.Plan.targets.*.metric + + - jsonPath: $.Plan.targets.*.metricDetail.value + + - jsonPath: $.Plan.targets.*.metricDetail.comparator + + - jsonPath: $.Plan.targets.*.metricDetail.unit + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.targets.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - version: 1.0.0 + description: Updates the plan + fromTopic: update-plan + isTransaction: true + queryMaps: + - query: UPDATE health.plan SET execution_plan_id = ?, plan_configuration_id = ?, last_modified_by=?, last_modified_time=? WHERE id = ?; + basePath: $.Plan + jsonMaps: + - jsonPath: $.Plan.executionPlanId + + - jsonPath: $.Plan.planConfigurationId + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - jsonPath: $.Plan.id + + - query: INSERT INTO health.plan_activity(id, code, description, planned_start_date, planned_end_date, dependencies, plan_id, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET description = EXCLUDED.description, planned_start_date = EXCLUDED.planned_start_date, planned_end_date = EXCLUDED.planned_end_date, dependencies = EXCLUDED.dependencies, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.activities.* + jsonMaps: + - jsonPath: $.Plan.activities.*.id + + - jsonPath: $.Plan.activities.*.code + + - jsonPath: $.Plan.activities.*.description + + - jsonPath: $.Plan.activities.*.plannedStartDate + + - jsonPath: $.Plan.activities.*.plannedEndDate + + - jsonPath: $.Plan.activities.*.dependencies + type: ARRAY + dbType: STRING + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_activity_condition(id, entity, entity_property, expression, activity_id, is_active, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET entity = EXCLUDED.entity, entity_property = EXCLUDED.entity_property, expression = EXCLUDED.expression, is_active = EXCLUDED.is_active, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.activities.*.conditions.* + jsonMaps: + - jsonPath: $.Plan.activities.*.conditions.*.id + + - jsonPath: $.Plan.activities.*.conditions.*.entity + + - jsonPath: $.Plan.activities.*.conditions.*.entityProperty + + - jsonPath: $.Plan.activities.*.conditions.*.expression + + - jsonPath: $.Plan.activities[*][?({id} in @.conditions[*].id)].id + + - jsonPath: $.Plan.activities.*.conditions.*.isActive + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_resource(id, resource_type, estimated_number, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET resource_type = EXCLUDED.resource_type, estimated_number = EXCLUDED.estimated_number, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.resources.* + jsonMaps: + - jsonPath: $.Plan.resources.*.id + + - jsonPath: $.Plan.resources.*.resourceType + + - jsonPath: $.Plan.resources.*.estimatedNumber + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.resources.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime + + - query: INSERT INTO health.plan_target(id, metric, metric_value, metric_comparator, metric_unit, plan_id, activity_code, created_by, created_time, last_modified_by, last_modified_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET metric = EXCLUDED.metric, metric_value = EXCLUDED.metric_value, metric_comparator = EXCLUDED.metric_comparator, metric_unit = EXCLUDED.metric_unit, last_modified_by = EXCLUDED.last_modified_by, last_modified_time = EXCLUDED.last_modified_time; + basePath: $.Plan.targets.* + jsonMaps: + - jsonPath: $.Plan.targets.*.id + + - jsonPath: $.Plan.targets.*.metric + + - jsonPath: $.Plan.targets.*.metricDetail.value + + - jsonPath: $.Plan.targets.*.metricDetail.comparator + + - jsonPath: $.Plan.targets.*.metricDetail.unit + + - jsonPath: $.Plan.id + + - jsonPath: $.Plan.targets.*.activityCode + + - jsonPath: $.Plan.auditDetails.createdBy + + - jsonPath: $.Plan.auditDetails.createdTime + + - jsonPath: $.Plan.auditDetails.lastModifiedBy + + - jsonPath: $.Plan.auditDetails.lastModifiedTime \ No newline at end of file From b6448c618633d9a33ad477649e956f07785e2538 Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:15:17 +0530 Subject: [PATCH 153/158] Update project-factory-persister.yml --- .../project-factory-persister.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 3e38ca4b8..f652a2edc 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -197,3 +197,47 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.CampaignDetails.id + + - version: 1.0 + name: CreateProcessTrack + description: Create process track in the eg_cm_campaign_process table + fromTopic: save-process-track + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_cm_campaign_process(id, campaignId, "type","status",details,createdtime, lastmodifiedtime,additionaldetails) VALUES (?,?,?,?,?,?,?,?); + basePath: $.processDetails + jsonMaps: + - jsonPath: $.processDetails.id + - jsonPath: $.processDetails.campaignId + - jsonPath: $.processDetails.type + - jsonPath: $.processDetails.status + - jsonPath: $.processDetails.details + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.createdTime + - jsonPath: $.processDetails.lastModifiedTime + - jsonPath: $.processDetails.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: UpdateProcessTrack + description: Update process track in the eg_cm_campaign_process table + fromTopic: update-process-track + isTransaction: true + queryMaps: + - query: UPDATE health.eg_cm_campaign_process SET campaignId = ?, "type" = ?, "status" = ?,details = ?,createdtime = ?,lastmodifiedtime = ?,additionaldetails = ? WHERE id = ?; + basePath: $.processDetails + jsonMaps: + - jsonPath: $.processDetails.campaignId + - jsonPath: $.processDetails.type + - jsonPath: $.processDetails.status + - jsonPath: $.processDetails.details + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.createdTime + - jsonPath: $.processDetails.lastModifiedTime + - jsonPath: $.processDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.id From 71f8c95ea6eaf2a8ca940f7364bd91acca2371fd Mon Sep 17 00:00:00 2001 From: nitish-egov <137176807+nitish-egov@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:15:26 +0530 Subject: [PATCH 154/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index f652a2edc..28ae8c7fd 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -84,7 +84,7 @@ serviceMaps: fromTopic: create-generated-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails,campaignid,auditid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.id @@ -101,6 +101,8 @@ serviceMaps: - jsonPath: $.generatedResource.*.additionalDetails type: JSON dbType: JSONB + - jsonPath: $.generatedResource.*.campaignId + - jsonPath: $.generatedResource.*.auditId From b54a85454740a46b1dab885656658e68a8294bfa Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:11:02 +0530 Subject: [PATCH 155/158] Update project-factory-persister.yml --- .../project-factory-persister.yml | 48 +------------------ 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 28ae8c7fd..3e38ca4b8 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -84,7 +84,7 @@ serviceMaps: fromTopic: create-generated-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails,campaignid,auditid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.id @@ -101,8 +101,6 @@ serviceMaps: - jsonPath: $.generatedResource.*.additionalDetails type: JSON dbType: JSONB - - jsonPath: $.generatedResource.*.campaignId - - jsonPath: $.generatedResource.*.auditId @@ -199,47 +197,3 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.CampaignDetails.id - - - version: 1.0 - name: CreateProcessTrack - description: Create process track in the eg_cm_campaign_process table - fromTopic: save-process-track - isTransaction: true - queryMaps: - - query: INSERT INTO health.eg_cm_campaign_process(id, campaignId, "type","status",details,createdtime, lastmodifiedtime,additionaldetails) VALUES (?,?,?,?,?,?,?,?); - basePath: $.processDetails - jsonMaps: - - jsonPath: $.processDetails.id - - jsonPath: $.processDetails.campaignId - - jsonPath: $.processDetails.type - - jsonPath: $.processDetails.status - - jsonPath: $.processDetails.details - type: JSON - dbType: JSONB - - jsonPath: $.processDetails.createdTime - - jsonPath: $.processDetails.lastModifiedTime - - jsonPath: $.processDetails.additionalDetails - type: JSON - dbType: JSONB - - - version: 1.0 - name: UpdateProcessTrack - description: Update process track in the eg_cm_campaign_process table - fromTopic: update-process-track - isTransaction: true - queryMaps: - - query: UPDATE health.eg_cm_campaign_process SET campaignId = ?, "type" = ?, "status" = ?,details = ?,createdtime = ?,lastmodifiedtime = ?,additionaldetails = ? WHERE id = ?; - basePath: $.processDetails - jsonMaps: - - jsonPath: $.processDetails.campaignId - - jsonPath: $.processDetails.type - - jsonPath: $.processDetails.status - - jsonPath: $.processDetails.details - type: JSON - dbType: JSONB - - jsonPath: $.processDetails.createdTime - - jsonPath: $.processDetails.lastModifiedTime - - jsonPath: $.processDetails.additionalDetails - type: JSON - dbType: JSONB - - jsonPath: $.processDetails.id From b0f6d65c3db166a8b473bcfeaec3f36254d0a9e0 Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:49:21 +0530 Subject: [PATCH 156/158] 0.2v Admin console updating projectfactory persister file (#3121) --- .../project-factory-persister.yml | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 3e38ca4b8..61be0eab5 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -84,7 +84,7 @@ serviceMaps: fromTopic: create-generated-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails) VALUES (?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails,campaignid,auditid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.id @@ -101,6 +101,8 @@ serviceMaps: - jsonPath: $.generatedResource.*.additionalDetails type: JSON dbType: JSONB + - jsonPath: $.generatedResource.*.campaignId + - jsonPath: $.generatedResource.*.auditId @@ -197,3 +199,47 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.CampaignDetails.id + + - version: 1.0 + name: CreateProcessTrack + description: Create process track in the eg_cm_campaign_process table + fromTopic: save-process-track + isTransaction: true + queryMaps: + - query: INSERT INTO health.eg_cm_campaign_process(id, campaignId, "type","status",details,createdtime, lastmodifiedtime,additionaldetails) VALUES (?,?,?,?,?,?,?,?); + basePath: processDetails.* + jsonMaps: + - jsonPath: $.processDetails.*.id + - jsonPath: $.processDetails.*.campaignId + - jsonPath: $.processDetails.*.type + - jsonPath: $.processDetails.*.status + - jsonPath: $.processDetails.*.details + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.*.createdTime + - jsonPath: $.processDetails.*.lastModifiedTime + - jsonPath: $.processDetails.*.additionalDetails + type: JSON + dbType: JSONB + + - version: 1.0 + name: UpdateProcessTrack + description: Update process track in the eg_cm_campaign_process table + fromTopic: update-process-track + isTransaction: true + queryMaps: + - query: UPDATE health.eg_cm_campaign_process SET campaignId = ?, "type" = ?, "status" = ?,details = ?,createdtime = ?,lastmodifiedtime = ?,additionaldetails = ? WHERE id = ?; + basePath: $.processDetails + jsonMaps: + - jsonPath: $.processDetails.campaignId + - jsonPath: $.processDetails.type + - jsonPath: $.processDetails.status + - jsonPath: $.processDetails.details + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.createdTime + - jsonPath: $.processDetails.lastModifiedTime + - jsonPath: $.processDetails.additionalDetails + type: JSON + dbType: JSONB + - jsonPath: $.processDetails.id \ No newline at end of file From 0e38e39f973f52a7de098d4e3251ca433af8a354 Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:29:06 +0530 Subject: [PATCH 157/158] Update project-factory-persister.yml --- health/egov-persister/project-factory-persister.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/health/egov-persister/project-factory-persister.yml b/health/egov-persister/project-factory-persister.yml index 61be0eab5..13c6e04a6 100644 --- a/health/egov-persister/project-factory-persister.yml +++ b/health/egov-persister/project-factory-persister.yml @@ -84,7 +84,7 @@ serviceMaps: fromTopic: create-generated-resource-details isTransaction: true queryMaps: - - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails,campaignid,auditid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?); + - query: INSERT INTO health.eg_cm_generated_resource_details (id,filestoreid, type,"status",count,tenantid,hierarchyType, createdby, createdtime, lastmodifiedby, lastmodifiedtime, additionaldetails,campaignid) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?); basePath: generatedResource.* jsonMaps: - jsonPath: $.generatedResource.*.id @@ -102,7 +102,6 @@ serviceMaps: type: JSON dbType: JSONB - jsonPath: $.generatedResource.*.campaignId - - jsonPath: $.generatedResource.*.auditId @@ -242,4 +241,4 @@ serviceMaps: - jsonPath: $.processDetails.additionalDetails type: JSON dbType: JSONB - - jsonPath: $.processDetails.id \ No newline at end of file + - jsonPath: $.processDetails.id From 8412708f5349e4bea3bb046f82a1e7b147c1fddc Mon Sep 17 00:00:00 2001 From: Shreya-egov <144668573+Shreya-egov@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:04:09 +0530 Subject: [PATCH 158/158] adding update date persister changes for Adminconsole (#3138) --- health/egov-persister/project-persister.yml | 25 ++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/health/egov-persister/project-persister.yml b/health/egov-persister/project-persister.yml index 7ff1a5580..421381c80 100644 --- a/health/egov-persister/project-persister.yml +++ b/health/egov-persister/project-persister.yml @@ -680,4 +680,27 @@ serviceMaps: - jsonPath: $.*.additionalFields type: JSON dbType: JSONB - - jsonPath: $.*.id \ No newline at end of file + - jsonPath: $.*.id + + - version: 1.0 + name: Projects + description: Updates project dates only in project table + fromTopic: update-project-date + isTransaction: true + queryMaps: + - query: UPDATE health.project SET startDate = ?, endDate = ?, additionalDetails = ?, lastModifiedBy = ?, lastModifiedTime = ? WHERE id = ?; + basePath: $.Projects.* + jsonMaps: + - jsonPath: $.Projects.*.startDate + + - jsonPath: $.Projects.*.endDate + + - jsonPath: $.Projects.*.additionalDetails + type: JSON + dbType: JSONB + + - jsonPath: $.Projects.*.auditDetails.lastModifiedBy + + - jsonPath: $.Projects.*.auditDetails.lastModifiedTime + + - jsonPath: $.Projects.*.id \ No newline at end of file