Attention
You’re viewing an old version of the L’ART Research Assistant documentation. The project has moved to https://lart.readthedocs.io/projects/research-assistant.
research_client.consent
Informed consent from user.
Functions
loops through the folder [versions] inside [consent] and finds all unique language versions, regardless of test type. |
|
|
takes a json file and returns info from inside the file as a list in the form of [version_name, version_ID, version_data] |
|
takes a filename and returns the json data from that file |
|
Takes in data from index.html and prints it to file && to console. |
|
Takes a language version as arg and finds all consent forms available for that version. |
- consent_getversions()[source]
loops through the folder [versions] inside [consent] and finds all unique language versions, regardless of test type. Returns a list of lists in the form: [versionId, languageInfo]
- fetch_file_info(file)[source]
takes a json file and returns info from inside the file as a list in the form of [version_name, version_ID, version_data]
- Parameters:
file (str)
- fetch_study_info(filename)[source]
takes a filename and returns the json data from that file
- Parameters:
filename (str)
- record_consent(data)[source]
Takes in data from index.html and prints it to file && to console.
- Parameters:
data (dict[Any, Any])
- set_options(selected_version)[source]
Takes a language version as arg and finds all consent forms available for that version. Returns a list in the form of [version_name, version_ID, version_data]
- Parameters:
selected_version (str)
Modules