Update occurrence_add api entry point to deal properly with the new origin_visit policy
origin_visit was internally dealt with by the occurrence_add api. Now it's externally dealt with through its own api entry points (cf. #538 (closed)).
This task is to update occurrence_add accordingly.
Migrated from T540 (view on Phabricator)