core.rquest_dto.cohort

source

Cohort

class Cohort(
  groups: List[Group],
  groups_operator: str
)

Represents a cohort in a query. Contains a list of groups, and an operator for those groups.

Methods

to_dict(self) -> dict:

Serialises the Cohort as a dictionary

from_dict(cls, dict_: dict):

Builds a Cohort from a dictionary

Relationships

imports BaseDto

imports Group