dispel.providers.bdh.tasks.alsfrs module#

Functionalities to process ALSFRS data.

dispel.providers.bdh.tasks.alsfrs.DOMAINS = {'climbing_stairs': 9, 'cutting_food': 5, 'dressing_and_hygiene': 6, 'dyspnea': 10, 'handwritting': 3, 'orthopnea': 11, 'respiratory_insufficiency': 12, 'salivation': 1, 'speech': 0, 'swallowing': 2, 'turning_in_bed': 7, 'walking': 8}#

The twelve functional domains evaluated through the survey.

class dispel.providers.bdh.tasks.alsfrs.ExtractAnswer[source]#

Bases: ExtractStep

Extract alsfrs score for individual questions.

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

domain (str) –

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

An iterable of data sets to be being processed

get_definition(**kwargs)[source]#

Overwrite get_definition.

Return type:

ValueDefinition

read_als_score(data)[source]#

Read als_frs score corresponding to the domain.

Parameters:

data (DataFrame) –

Return type:

float

class dispel.providers.bdh.tasks.alsfrs.ExtractFullScore[source]#

Bases: ExtractStep

Extract alsfrs total score.

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

An iterable of data sets to be being processed

definition: ValueDefinition | ValueDefinitionPrototype | None = <dispel.data.measures.MeasureValueDefinitionPrototype object>#

The specification of the measure definition

read_als_score(data)[source]#

Read als_frs score corresponding to the domain.

Parameters:

data (DataFrame) –

Return type:

float