Skip to main content
The pre-unified exports (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

Do not assume gap=30 and gap_days=30 select the same patients.

Index date after a gap filter

After occurring(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, …)
  • connect without connector= still returns an engine
  • domain_code_type_map
  • Sentinel CDM YAML connectors unchanged