We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab34c7 commit 855414cCopy full SHA for 855414c
utils/parsing.go
@@ -298,6 +298,9 @@ func MakeUnique(input []int) []int {
298
return uniqueList
299
}
300
301
+// Utility function to parse out the cohort definition ids from a specific structure in which
302
+// they can be found (in this case deep inside CustomDichotomousVariableDef items) and concatenate them
303
+// with another given list of ids, removing duplicate ids (if any).
304
func GetUniqueCohortDefinitionIdsListFromRequest(cohortDefinitionIds []int, filterCohortPairs []CustomDichotomousVariableDef) []int {
305
var idsList []int
306
idsList = append(idsList, cohortDefinitionIds...)
0 commit comments