def __quick_validate(r, check=('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')):
if '<STR_LIT>' in check and '<STR_LIT>' not in r:<EOL><INDENT>raise ResultSetError('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in check and '<STR_LIT>' not in r['<STR_LIT>']:<EOL><INDENT>raise ResultSetError('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in check and '<STR_LIT>' not in r['<STR_LIT>']:<EOL><INDENT>raise ResultSetError('<STR_LIT>')<EOL><DEDENT>return True<EOL>
Quick validation of JSON result set returned by XNAT.

:param r: Result set data in JSON format
:type r: dict
:param check: Fields to check
:type check: tuple
:returns: Result set is valid
:rtype: bool