Encounter closing

Implemented medical encounter closing (no dr visit) and pharmacy encounter closing