So I would select each part of the score, and it would output the calculated elements. If an item is not full points, I want it to output why they were docked, such as E3/4 (patient only opened eyes when instructed to do so)
{if: eye_score < 4}E{=eye_score}/4 (Reason: {if: eye_score = 3}Patient only opened eyes when instructed to do so{elseif: eye_score = 2}Patient opened eyes only to pressure{elseif: eye_score = 1}Patient did not open eyes{endif}){else}E4/4 (No deductions){endif}
{if: verbal_score < 5}V{=verbal_score}/5 (Reason: {if: verbal_score = 4}Patient is confused and disoriented{elseif: verbal_score = 3}Patient used inappropriate words{elseif: verbal_score = 2}Patient made incomprehensible sounds{elseif: verbal_score = 1}No verbal response{endif}){else}V5/5 (No deductions){endif}
{if: motor_score < 6}M{=motor_score}/6 (Reason: {if: motor_score = 5}Patient localizes to pressure{elseif: motor_score = 4}Patient withdraws from pressure{elseif: motor_score = 3}Patient shows flexion to pressure{elseif: motor_score = 2}Patient shows extension to pressure{elseif: motor_score = 1}No motor response{endif}){else}M6/6 (No deductions){endif}
Here are a few of the commands it uses (with links to documentation for each)