Fix for linked patients Trello 174

Fix for linked patients Trello 174