Skip to content

Commit 855414c

Browse files
feat: improve docs for GetUniqueCohortDefinitionIdsListFromRequest
1 parent 9ab34c7 commit 855414c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/parsing.go

+3
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ func MakeUnique(input []int) []int {
298298
return uniqueList
299299
}
300300

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).
301304
func GetUniqueCohortDefinitionIdsListFromRequest(cohortDefinitionIds []int, filterCohortPairs []CustomDichotomousVariableDef) []int {
302305
var idsList []int
303306
idsList = append(idsList, cohortDefinitionIds...)

0 commit comments

Comments
 (0)