{% for item in focused_items %}

	<tr class="current-tr">
		<th class="item-th" scope="row" rowspan="{{ previousSessionData and includePreviousScores ? 2 : 1 }}">
			<div class="item-title">{{ item.title }}</div>
		</th>
		{% if previousSessionData and includePreviousScores %}
		<td class="previous-td">&nbsp;</td>
		{% endif %}

		{% for joint in joints %}
		<td>
			<div class="cell score-side">
				{% if item.slug == 'swelling' and item.area == 'duration' %}
					{{ sessionScoresData[joint][item.slug][item.area].score.right }}
				{% elseif sessionData.ne[joint][item.slug].right is defined and sessionData.ne[joint][item.slug].right and sessionData.attributes[joint][item.slug].ne.right.reason is defined %}
					NE
				{% elseif sessionData.ne[joint][item.slug].right is defined and sessionData.ne[joint][item.slug].right and sessionData.attributes[joint][item.slug].ne.right.reason is not defined %}
					-
				{% else %}
					{{ sessionScoresData[joint][item.slug][item.area].score.right }}
				{% endif %}
				{# {{ sessionData.ne[joint][item.slug].right is defined ? 'NE' : sessionScoresData[joint][item.slug][item.area].score.right }} #}
			</div>
		</td>
		<td>
			<div class="cell score-side">
				{% if item.slug == 'swelling' and item.area == 'duration' %}
					{{ sessionScoresData[joint][item.slug][item.area].score.left }}
				{% elseif sessionData.ne[joint][item.slug].left is defined and sessionData.ne[joint][item.slug].left and sessionData.attributes[joint][item.slug].ne.left.reason is defined %}
					NE
				{% elseif sessionData.ne[joint][item.slug].left is defined and sessionData.ne[joint][item.slug].left and sessionData.attributes[joint][item.slug].ne.left.reason is not defined %}
					-
				{% else %}
					{{ sessionScoresData[joint][item.slug][item.area].score.left }}
				{% endif %}
				{# {{ sessionData.ne[joint][item.slug].left is defined ? 'NE' : sessionScoresData[joint][item.slug][item.area].score.left }} #}
			</div>
		</td>
		{% endfor %}

		<td class="total-td">
			<div class="total">{{ sessionScoresData.total[item.slug][item.area].score }}</div>
		</td>
	</tr>

	{% if previousSessionData and includePreviousScores %}
	<tr class="previous-tr">
		<th scope="row" class="previous-td">Previous</th>
		{% for joint in joints %}
		<td>
			<div class="cell score-side">
				{% if item.slug == 'swelling' and item.area == 'duration' %}
					{{ previousSessionScoresData[joint][item.slug][item.area].score.right }}
				{% elseif previousSessionData.ne[joint][item.slug].right is defined and previousSessionData.ne[joint][item.slug].right and previousSessionData.attributes[joint][item.slug].ne.right.reason is defined %}
					NE
				{% elseif previousSessionData.ne[joint][item.slug].right is defined and previousSessionData.ne[joint][item.slug].right and previousSessionData.attributes[joint][item.slug].ne.right.reason is not defined %}
					-
				{% else %}
					{{ previousSessionScoresData[joint][item.slug][item.area].score.right }}
				{% endif %}
				{# {{ previousSessionData.ne[joint][item.slug][item.area].right is defined ? 'NE' : previousSessionScoresData[joint][item.slug][item.area].score.right }} #}
			</div>
		</td>
		<td>
			<div class="cell score-side">
			{% if item.slug == 'swelling' and item.area == 'duration' %}
					{{ previousSessionScoresData[joint][item.slug][item.area].score.left }}
				{% elseif previousSessionData.ne[joint][item.slug].left is defined and previousSessionData.ne[joint][item.slug].left and previousSessionData.attributes[joint][item.slug].ne.left.reason is defined %}
					NE
				{% elseif previousSessionData.ne[joint][item.slug].left is defined and previousSessionData.ne[joint][item.slug].left and previousSessionData.attributes[joint][item.slug].ne.left.reason is not defined %}
					-
				{% else %}
					{{ previousSessionScoresData[joint][item.slug][item.area].score.left }}
				{% endif %}
				{# {{ previousSessionData.ne[joint][item.slug][item.area].left is defined ? 'NE' : previousSessionScoresData[joint][item.slug][item.area].score.left }} #}
			</div>
		</td>
		{% endfor %}

		<td class="total-td">
			{{ previousSessionScoresData.total[item.slug][item.area].score }}
		</td>
	</tr>
	{% endif %}

{% endfor %}