def search_task_views(self, user, search_string):
        """
        invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action
        :return: JSON response
        """
        magic = self._magic_json(
            action=TouchWorksMagicConstants.ACTION_SEARCH_TASK_VIEWS,
            parameter1=user,
            parameter2=search_string)

        response = self._http_request(TouchWorksEndPoints.MAGIC_JSON, data=magic)
        result = self._get_results_or_raise_if_magic_invalid(
            magic,
            response,
            TouchWorksMagicConstants.RESULT_SEARCH_TASK_VIEWS)
        return result
def search_task_views ( self , user , search_string ) : magic = self . _magic_json ( action = TouchWorksMagicConstants . ACTION_SEARCH_TASK_VIEWS , parameter1 = user , parameter2 = search_string ) response = self . _http_request ( TouchWorksEndPoints . MAGIC_JSON , data = magic ) result = self . _get_results_or_raise_if_magic_invalid ( magic , response , TouchWorksMagicConstants . RESULT_SEARCH_TASK_VIEWS ) return result
invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action
        :return: JSON response