query_event, filter_event, cohort helpers, …) remain importable from encodebox and keep their signatures. Each call emits a DeprecationWarning naming the replacement.
Quick map
Semantic traps
Occurrence counting
Opt into legacy-style row counting with
occurring(..., count_distinct_on=None).
Gap definition
Index date after a gap filter
Afteroccurring(gap_days=...), first_per_patient() / with_index_date() use the first date of the first qualifying consecutive pair, not the earliest event on the patient.
Side-by-side examples
Query + filter → EventFrame
Inclusion ladder → Cohort
What stays
- Connector registry (
register_connector,list_connectors, …) connectwithoutconnector=still returns an enginedomain_code_type_map- Sentinel CDM YAML connectors unchanged