Use flow for discharging patients from list view. refs #214
use flow in search results and detail view. refs #214
Update tests to pass with new flow refs #214
Add untittests for Flow service. refs #214
Allow patients to be accepted or rejected from the OPAT service
refs openhealthcare/elcid#193