Soham | BSHR-274 | Moved business logic from patient repository to service.