Fixed issue selecting medication.
Fixed issues with search
Moved inventory adapter logic into application adapter and extended it so that we can handle joins
Fixed issues with search; changed search to work with join functionality in application adapter.