# Functions
CheckQueryID checks whether the user really has a query before inserting a new cohort defined by that query's id.
DoesCohortExist check whether a cohort exists for provided user ID and a cohort name.
GetDate runs a SQL query on db and returns the update date of cohort corresponding to cohortID.
GetPatientList runs a SQL query on db and returns the list of patient IDs for given queryID and userID.
GetPatientSetID retrieves the patient set ID related to a certain query.
GetQueryDefinition is called when the query is created.
GetSavedCohorts runs a SQL query on db and returns the list of saved cohorts for given queryID and userID.
InsertCohort runs a SQL query to either insert a new cohort or update an existing one.
InsertExploreResultInstance is called when the query is created.
NewCohortsPatientList returns a new pointer on a CohortsPatientList.
RemoveCohort deletes cohort.
UpdateCohort runs a SQL query to either insert a new cohort or update an existing one.
UpdateErrorExploreResultInstance updates the instance corresponding to the given queryID.
UpdateExploreResultInstance updates the instance corresponding to the given queryID.
# Structs
CohortsPatientList holds the parameters structure to retrieve the patient list of a saved cohort.