RESTWS-430 | adding search handler for fetching encounters

adding search handler for fetching encounters by encounter type and patient