State DSS - Birth and Death
Technical Doc
Overview
Key Concepts
"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",
"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\":\"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",
"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\":\"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\"}}}}}}"
}
],
"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\":\"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\"}}}}}}"
}
],
"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\":\"pb.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\":\"pb.testing\"}},{\"terms\":{\"Data.applicationStatus.keyword\":[\"ACTIVE\"]}}]}},\"aggs\":{\"less than 2\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"to\":1}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"2-14\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":2,\"to\":14}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"15-29\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":15,\"to\":29}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"30-44\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":30,\"to\":44}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"45-59\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":45,\"to\":59}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"60-74\":{\"date_range\":{\"field\":\"Data.age\",\"ranges\":[{\"from\":60,\"to\":74}]},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.age\"}}}},\"greater than 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",
"aggregationPaths": [
"less than 2",
"2-14",
"15-29",
"30-44",
"45-59",
"60-74",
"greater than 75"
],
"insight": {
},
"_comment": "Death By Age Category"
},
"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\":\"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\"}}}}}}}}}}"
}
],
"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\":\"pb.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\":\"pb.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\":\"pb.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\":\"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\"}}}}}}}}"
}
],
"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\":\"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\"}}}}}}}}}}"
}
],
"filterKeys": [
{"key": "ulb", "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\":\"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\"}}}}}}}}}}"
}
],
"filterKeys": [
{"key": "ward", "column": "Ward"}
],
"isPostResponseHandler": true,
"postAggregationTheory" : "repsonseToDifferenceOfDates",
"chartType": "xtable",
"valueType": "number",
"drillChart": "none",
"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": ""
},
"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\"}}}}}}}}}}"
}
],
"chartType": "line",
"valueType": "number",
"action": "",
"drillChart": "none",
"documentType": "_doc",
"aggregationPaths": [
"downloads"
],
"isCumulative": false,
"interval": "month",
"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\":\"pb.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"
},
"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\":\"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\"}}}},\"death_total_downloads\":{\"value_count\":{\"field\":\"Data.deathCertificateNo.keyword\"}},\"death_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",
"death_total_downloads",
"death_delayed_registrations"
],
"pathDataTypeMapping": [
{
"total_downloads_mobile_app": "number"
},
{
"total_downloads_web": "number"
},
{
"death_total_downloads": "number"
},
{
"death_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\":\"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\"}}}}}}}}}}"
}
],
"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\":\"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\"}}}}}}}}}}"
}
],
"filterKeys": [
{"key": "ward", "column": "Ward"}
],
"isPostResponseHandler": true,
"postAggregationTheory" : "repsonseToDifferenceOfDates",
"chartType": "table",
"valueType": "number",
"drillChart": "none",
"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": ""
}








Newly Introduced Property
Common Properties Available
Available Chart Types
Index Properties of State Birth and Death- Dss:
Postman Links
Last updated
Was this helpful?





