use doc.from as last resort to add message.
moved update_clinics filter to transition

added more filters to patient registrations to avoid endless loops.