package
0.0.0-20241024144128-56a014f44ca3
Repository: https://github.com/uc-cdis/cohort-middleware.git
Documentation: pkg.go.dev
# Functions
Adds a specific timeout to a query.
Adds a default timeout to a query.
No description provided by the author
No description provided by the author
No description provided by the author
This function returns the bin width upon the Freedman Diaconis formula: https://en.wikipedia.org/wiki/Freedman%E2%80%93Diaconis_rule Can return 0 if IQR(values) is 0.
No description provided by the author
No description provided by the author
Sorts the given values, and returns the number of bins, the width of the bins using FreedmanDiaconis.
No description provided by the author
separates a conceptIdsAndCohortPairs into a conceptIds list and a cohortPairs list.
No description provided by the author
Utility function to parse out the cohort definition ids from a specific structure in which they can be found (in this case deep inside CustomDichotomousVariableDef items) and concatenate them with another given list of ids, removing duplicate ids (if any).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
deprecated: for backwards compatibility.
This method expects a request body with a payload similar to the following example: {"variables": [ {variable_type: "concept", concept_id: 2000000324}, {variable_type: "concept", concept_id: 2000006885}, {variable_type: "custom_dichotomous", provided_name: "name1", cohort_ids: [cohortX_id, cohortY_id]}, {variable_type: "custom_dichotomous", provided_name: "name2", cohort_ids: [cohortM_id, cohortN_id]}, ..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
returns sourceid, cohortid, list of variables (formed by concept ids and/or of cohort tuples which are also known as custom dichotomous variables).
deprecated: returns the conceptIds and cohortPairs as separate lists (for backwards compatibility).
No description provided by the author
No description provided by the author
No description provided by the author
Takes in a list of strings and attempts to transform them to int64, returning the resulting list of int64 values.
subtract list2 from list1.
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
fields that define a custom dichotomous variable:.
No description provided by the author
No description provided by the author