• Rehabilitation Activity (SGRQ_A)

• Rehabilitation Activity (SGRQ_A)

ü  Rehabilitation Activity (SGRQ_A)

Is the SGRQ index for the Activities in the rehabilitation

Calculated:

on close form

Formula:

SGRQ_A, $Value1, …

Calculation:

return calculate_SGRQ_X("A", $values, 1209.1)

 

function calculate_SGRQ_X($type, $values, $factor){

    $res = calculate_sum_formula_SGRQ($type, $values);

    if ($res ==  false) return false;

    $res = ($res / $factor) * 100;

    return round($res, 2);

}

 

function calculate_SGRQ ($values_a, $values_s, $values_i){

    $res_s = calculate_sum_formula_SGRQ("S", $values_s);

    $res_a = calculate_sum_formula_SGRQ("A", $values_a);

    $res_i = calculate_sum_formula_SGRQ("I", $values_i);

 

    if( !$res_s || !$res_a || !$res_i ) return false;

 

    $res = $res_s + $res_a + $res_i;

    $res = ($res / 3989.4) * 100;

    return round($res, 2);

}