Inconsistent keys between visits and origin visits in the journal
visit keys are their origin and (visit) date, while status keys are the origin, visit id, and status date.
Both should use the visit id to identify the visit because:
- consistency
- visit dates are not unique
Migrated from T2672 (view on Phabricator)