mclinic-api: service method to perform generic search

This commit contains the following fixes:
- Add method to perform generic patient search
- Add method to perform generic observation search
- Merge implementation of patient from both cohort member and patient.