Restored medication functions at physician station, a good deal or related refactoring, and some minor bug-fixes.