From 5bc315b1601dd9156b54add10abb470c3f602787 Mon Sep 17 00:00:00 2001 From: wvxcheung <83677809+wvxcheung@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:49:37 -0400 Subject: [PATCH] feat: add measure filter, TPH auth group --- graphql/auth.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/graphql/auth.ts b/graphql/auth.ts index d218c97..c066a6b 100644 --- a/graphql/auth.ts +++ b/graphql/auth.ts @@ -35,13 +35,28 @@ export const groups: { readonly [authGroup: string]: AuthFilters } = { whereNot: ['datasetID', 'NML-WWMPOX'], }, }, - pho: { + pho: { // MOH is using this as well sites:{ whereIn: ['healthReg', ['Dryden', 'Kenora', 'Toronto']] }, datasets: { whereNotIn: ['datasetID', ['NML-WWMPOX', 'OMECP']], }, + measures: { + whereIn: ['measure', ["covN2", "covN200U", "fluA", "fluB", "rsvA", "rsvB"]] + } + }, + omecp: { // as OMECP conditions TBD, use OMECP group as TPH group and rename afterwards + // TPH conditions + sites:{ + whereIn: ['healthReg', ['Toronto']] + }, + datasets: { + whereNotIn: ['datasetID', ['NML-WWMPOX', 'OMECP']], + }, + measures: { + whereIn: ['measure', ["covN2", "covN200U", "fluA", "fluB", "rsvA", "rsvB"]] + }, }, open: { sites: {