def _fetch_data(self, included_mrns: Optional[Set]=None, limit: Optional[int]=None):
    '\n        Fetches the data defined with ``.data_columns`` for each patient\n        defined by this condition and via ``included_mrns`` from the results of\n        ``._create_query()``.\n        '
    q = self._create_query()
    if included_mrns:
        q = q.filter(self.mrn_column.in_(included_mrns))
    if limit:
        q = q.limit(limit)
    q = q.with_entities(*self.data_columns).distinct()
    result = read_with_progress(q.statement, self.engine, silent=bool(included_mrns))
    return result
Fetches the data defined with ``.data_columns`` for each patient
defined by this condition and via ``included_mrns`` from the results of
``._create_query()``.
def _fetch_data(self, included_mrns: Optional[Set]=None, limit: Optional[int]=None):
    '\n        Fetches the data defined with ``.data_columns`` for each patient\n        defined by this condition and via ``included_mrns`` from the results of\n        ``._create_query()``.\n        '
    q = self._create_query()
    if included_mrns:
        q = q.filter(self.mrn_column.in_(included_mrns))
    if limit:
        q = q.limit(limit)
    q = q.with_entities(*self.data_columns).distinct()
    result = read_with_progress(q.statement, self.engine, silent=bool(included_mrns))
    return result