add_future_observation
add_future_observation(
table,
cdm,
*,
index_date='cohort_start_date',
future_observation_name='future_observation',
future_observation_type='days',
)
Add days (or date) of future observation from index_date to end of observation period.
Parameters
| table |
Any |
Ibis table with person_id or subject_id and index_date. |
required |
| cdm |
Cdm |
CDM reference (observation_period). |
required |
| index_date |
str |
Column name for index date (default “cohort_start_date”). |
'cohort_start_date' |
| future_observation_name |
str |
Output column name (default “future_observation”). |
'future_observation' |
| future_observation_type |
str |
“days” or “date” (default “days”). |
'days' |
Returns
|
ibis.expr.types.Table |
Table with future_observation column. |