research_client.memorygame.dataschema

Data structures for the Memory Game.

Classes

Response

Class for representing the data of a Memory Game.

class Response[source]

Bases: DataSchema

Class for representing the data of a Memory Game.

__init__(id_=None)[source]

Instantiates a new LSBQ-RML response object.

Parameters:

id_ (Optional[str])

__schema = {'id': {'constraint': '[0-9a-fA-F]{8}-?(?:[0-9a-fA-F]{4}-?){3}[0-9a-fA-F]{12}', 'type_': <class 'str'>, 'typedesc': 'Memory Game Response ID'}, 'meta': {'app_version': {'constraint': '(?:\\d+.)*\\d+\\w?\\w?\\d*', 'type_': <class 'str'>, 'typedesc': 'Version of app that last modified the Response'}, 'consent': {'constraint': ({'true', True, 'yes', '1', 'on'}, {False, 'false', 'off', 'no', '0'}), 'type_': typing.Union[tuple[typing.Iterable[typing.Any], typing.Iterable[typing.Any]], list[typing.Iterable[typing.Any]]], 'typedesc': 'consent confirmation'}, 'date': {'constraint': '[0-9]{1,4}\\-(0?[1-9]|1[0-2])\\-(0?[1-9]|[12][0-9]|3[01])', 'type_': <class 'str'>, 'typedesc': 'current date'}, 'participant_id': {'constraint': '[A-Za-z0-9]{3,10}', 'type_': <class 'str'>, 'typedesc': 'Participant ID'}, 'research_location': {'constraint': "[\\w,' \\(\\)\\.\\-]{1,50}", 'type_': <class 'str'>, 'typedesc': 'location name'}, 'researcher_id': {'constraint': '[A-Za-z0-9]{3,10}', 'type_': <class 'str'>, 'typedesc': 'Researcher ID'}, 'version_id': {'constraint': '\\w{13,17}', 'type_': <class 'str'>, 'typedesc': 'Memory Game version identifier'}, 'version_no': {'constraint': '(?:\\d+.)*\\d+\\w?\\w?\\d*', 'type_': <class 'str'>, 'typedesc': 'Memory Game version number'}}, 'scores': {'score': {'constraint': (0, 9223372036854775807), 'multiple': True, 'type_': <class 'int'>, 'typedesc': 'score'}, 'time': {'constraint': (0, 9223372036854775807), 'multiple': True, 'type_': <class 'int'>, 'typedesc': 'time'}}}

Type:    dict