dispel.providers.bdh.tasks.neuroqol module#

Functionalities to process neuroqol data.

class dispel.providers.bdh.tasks.neuroqol.ExtractNeuroqol[source]#

Bases: ExtractStep

Extract subset information.

__init__(level_name, *args, **kwargs)[source]#
Parameters:

level_name (str) –

data_set_ids: str | Iterable[str] = 'theta_scores'#

An iterable of data sets to be being processed

class dispel.providers.bdh.tasks.neuroqol.ExtractNeuroqolStandardError[source]#

Bases: ExtractNeuroqol

Extract subset standard error.

get_definition(**kwargs)[source]#

Overwrite get_definition.

Return type:

ValueDefinition

get_standard_error(data)[source]#

Get t_score.

Parameters:

data (DataFrame) –

Return type:

float

class dispel.providers.bdh.tasks.neuroqol.ExtractNeuroqolTScore[source]#

Bases: ExtractNeuroqol

Extract subset t scores.

get_definition(**kwargs)[source]#

Overwrite get_definition.

Return type:

ValueDefinition

get_t_score(data)[source]#

Get t_score.

Parameters:

data (DataFrame) –

Return type:

float

class dispel.providers.bdh.tasks.neuroqol.ListNeuroqolThetaScores[source]#

Bases: ProcessingStep

Gather individual scores in the same data frame.

process_reading(reading, **kwargs)[source]#

Gather theta scores.

dispel.providers.bdh.tasks.neuroqol.NEUROQOL_SUBTEST_NAME = ['upper_extremity', 'lower_extremity', 'sleep', 'fatigue', 'anxiety', 'depression', 'stigma', 'cognitive_function', 'ability_participate_social_roles', 'satisfaction_social_roles']#

The name of the neuroqol sub tests.

dispel.providers.bdh.tasks.neuroqol.get_theta_scores(levels)[source]#

Create a data frame with standard error theta and t scores.

Parameters:

levels (List[Level]) –

Return type:

Tuple[DataFrame, List[Type[MeasureValue]]]