Fixed patient search for RetroCI

https://www.pivotaltracker.com/story/show/80323838