<!-- BEGIN [% component.name %] -->
    [% questionnaire = outreach.questionnaire;
		# PROCESS dumper.tt dump = questionnaire %]

	[% BLOCK no_data %]
		<span class="grey">[no data]</span>
	[% END %]
	
	<table class="indent outreachResults">
        <tr>
            <td colspan="2" align="center">
                <b><u>Questionnaire summary</u></b>
            </td>
        </tr>          
        <tr>
            <td class="label">Bone pain:</td>
            [%  %]
            <td class="result">
            [% IF questionnaire.symptoms.pain; # only if have data
				pain_sites = questionnaire.pain.size || 0;
				pain_sites > 2
					? '<span class="red">generalised</span>'
					: pain_sites _ ' site(s)';
				ELSE; INCLUDE no_data; END %]
            </td>
        </tr>          
        <tr>
            <td class="label">Swelling:</td>
            <td class="result">
            [% IF questionnaire.symptoms.adenopathy; # only if have data
				swelling_sites = questionnaire.adenopathy.size || 0;
                swelling_sites > 2
					? '<span class="red">generalised</span>'
					: swelling_sites _ ' site(s)';
				ELSE; INCLUDE no_data; END %]
            </td>
        </tr>          
        <tr>
            <td class="label">Night sweats:</td>
            <td class="result">
                [% IF questionnaire.symptoms.night_sweats;
						questionnaire.symptoms.night_sweats;
					ELSE; INCLUDE no_data; END %]
            </td>
        </tr>          
        <tr>
            <td class="label">QoL:</td>
            <td class="result">
                1[% questionnaire.eq5d.mobility       || '?' %]
                2[% questionnaire.eq5d.self_care      || '?' %]
                3[% questionnaire.eq5d.usual_activity || '?' %]
                4[% questionnaire.eq5d.discomfort     || '?' %]
                5[% questionnaire.eq5d.anxiety        || '?' %]
                [% questionnaire.eq5d.health_index    || '??' %]
            </td>
        </tr>          
    </table>
<!-- END [% component.name %] -->
