felicity-lims/webapp/graphql/operations/dashboard.queries.graphql
2024-11-20 06:39:33 +02:00

119 lines
2.6 KiB
GraphQL

query getSampleGroupByStatus {
countSampleGroupByStatus {
data {
__typename
group
count
}
}
}
query getExtrasGroupByStatus {
countExtrasGroupByStatus {
data {
__typename
group
count
}
}
}
query getAnalysisGroupByStatus {
countAnalyteGroupByStatus {
data {
__typename
group
count
}
}
}
query getWorksheetGroupByStatus {
countWorksheetGroupByStatus {
data {
__typename
group
count
}
}
}
query getAnalysisGroupByInstrument($startDate: String!, $endDate: String!) {
countAnalyteGroupByInstrument(startDate: $startDate, endDate: $endDate) {
data {
__typename
group
count
}
}
}
query sampleProcessPeformance($startDate: String!, $endDate: String!) {
sampleProcessPerformance(startDate: $startDate, endDate: $endDate) {
__typename
data {
process
counts {
totalSamples
totalLate
totalNotLate
processAverage
avgExtraDays
}
}
}
}
query getAnalysisProcessPeformance($process: String!, $startDate: String!, $endDate: String!) {
analysisProcessPerformance(process: $process, startDate: $startDate, endDate: $endDate) {
__typename
data {
process
groups {
totalSamples
totalLate
totalNotLate
processAverage
avgExtraDays
service
}
}
}
}
query sampleGroupByAction($startDate: String!, $endDate: String!) {
countSampleGroupByAction(startDate: $startDate, endDate: $endDate) {
__typename
data {
__typename
group
counts {
__typename
group
count
}
}
}
}
query getSampleLaggards {
sampleLaggards {
__typename
data {
__typename
category
counts {
__typename
totalIncomplete
totalDelayed
totalNotDelayed
lessThanTen
tenToTwenty
twentyToThirty
graterThanThirty
}
}
}
}