research_client.consent

Informed consent from user.

Functions

consent_getversions()

loops through the folder [versions] inside [consent] and finds all unique language versions, regardless of test type.

fetch_file_info(file)

takes a json file and returns info from inside the file as a list in the form of [version_name, version_ID, version_data]

fetch_study_info(filename)

takes a filename and returns the json data from that file

record_consent(data)

Takes in data from index.html and prints it to file && to console.

set_options(selected_version)

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)

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

research_client.consent.versions