Every treatment episode for a patient that has a non-null episode_start (active and
discharged), facility name joined, newest episode_start first. The shared read behind the
episode selector and episode pill — visibility-scoped via canAccessPatient, not gated on the
sync feature flag, so callers other than the sync menu can reuse it.
Every treatment episode for a patient that has a non-null
episode_start(active and discharged), facility name joined, newestepisode_startfirst. The shared read behind the episode selector and episode pill — visibility-scoped viacanAccessPatient, not gated on the sync feature flag, so callers other than the sync menu can reuse it.