Fixed patient search for RetroCI

https://www.pivotaltracker.com/story/show/80323838
Merge pull request #380 from pfschwartz/develop

Fixed patient search for RetroCI