{
"name" : "dash-sys-coll-dist-lastquat",
"title" : "Specimen Collected and Distributed in last quarter",
"type" : "CHART",
"dataSource" : {
"options" : {
"dataSources" : [ {
"type" : "AQL",
"options" : {
"category" : {
"expr" : "Specimen.createdOn",
"title" : "Creation Time"
},
"metrics" : [ {
"expr" : "c_count(Specimen.id)",
"title" : "Collected Specimens"
} ],
"criteria" : "Specimen.createdOn exists and Specimen.collectionStatus = \"Collected\" and date_range(Specimen.createdOn, last_cal_qtr)"
}
}, {
"type" : "AQL",
"options" : {
"category" : {
"expr" : "Specimen.specimenOrders.executionDate",
"title" : "Distribution Time"
},
"metrics" : [ {
"expr" : "c_count(Specimen.id)",
"title" : "Distributed Specimens"
} ],
"criteria" : "Specimen.specimenOrders.executionDate exists and Specimen.specimenOrders.orderStatus = \"EXECUTED\" and date_range(Specimen.specimenOrders.executionDate, last_cal_qtr)"
}
} ],
"categoryType" : "date"
},
"type" : "SERIES_MIXER"
},
"chartOpts" : { },
"activityStatus" : "Active"
}
|