filter_in_observation

filter_in_observation(table, cdm, *, index_date)

Keep only rows where index_date falls within an observation period.

Parameters

Name Type Description Default
table Any Ibis table with person_id or subject_id and index_date column. required
cdm Cdm CDM reference (observation_period). required
index_date str Column name for index date. required

Returns

Name Type Description
ibis.expr.types.Table Table with only rows in observation.