fixed bugs when searching old patient; introduced refer out in Labour Ward