@@ -29,10 +29,12 @@ <h1>{{ pageHeading }}</h1>
2929
3030 {% set viewsRightBreastCCCount = mammogramTemp.viewsRightBreastCCCount or mammogramViews.rightCraniocaudal.count or "1" %}
3131 {% set viewsRightBreastMLOCount = mammogramTemp.viewsRightBreastMLOCount or mammogramViews.rightMediolateralOblique.count or "1" %}
32- {% set viewsRightBreastEklundCount = mammogramTemp.viewsRightBreastEklundCount or mammogramViews.rightEklund.count or "0" %}
32+ {% set viewsRightBreastCCIDCount = mammogramTemp.viewsRightBreastCCIDCount or mammogramViews.rightCCID.count or "0" %}
33+ {% set viewsRightBreastMLOIDCount = mammogramTemp.viewsRightBreastMLOIDCount or mammogramViews.rightMLOID.count or "0" %}
3334 {% set viewsLeftBreastCCCount = mammogramTemp.viewsLeftBreastCCCount or mammogramViews.leftCraniocaudal.count or "1" %}
3435 {% set viewsLeftBreastMLOCount = mammogramTemp.viewsLeftBreastMLOCount or mammogramViews.leftMediolateralOblique.count or "1" %}
35- {% set viewsLeftBreastEklundCount = mammogramTemp.viewsLeftBreastEklundCount or mammogramViews.leftEklund.count or "0" %}
36+ {% set viewsLeftBreastCCIDCount = mammogramTemp.viewsLeftBreastCCIDCount or mammogramViews.leftCCID.count or "0" %}
37+ {% set viewsLeftBreastMLOIDCount = mammogramTemp.viewsLeftBreastMLOIDCount or mammogramViews.leftMLOID.count or "0" %}
3638 {% set additionalDetails = mammogramTemp.additionalDetails or event.mammogramData.additionalDetails or "" %}
3739 {% set notesForReader = mammogramTemp.notesForReader or event.mammogramData.notesForReader or "" %}
3840
@@ -115,23 +117,9 @@ <h2 aria-hidden="true">{{ viewsQuestionText }}?</h2>
115117 max: 9
116118 }) }}
117119 {% endif %}
118-
119- {{ appStepperInput({
120- label: {
121- text: "Right Eklund"
122- },
123- hint: {
124- text: "Used with breast implants"
125- },
126- name: "event[mammogramDataTemp][viewsRightBreastEklundCount]",
127- value: viewsRightBreastEklundCount | default("0"),
128- id: "views-right-breast-eklund-count",
129- min: 0,
130- max: 9
131- }) }}
132120 </ fieldset >
133121 </ div >
134-
122+
135123 < div class ="nhsuk-grid-column-one-half ">
136124 < fieldset class ="nhsuk-fieldset ">
137125 < legend class ="nhsuk-fieldset__legend nhsuk-fieldset__legend--s ">
@@ -195,32 +183,161 @@ <h2 aria-hidden="true">{{ viewsQuestionText }}?</h2>
195183 max: 9
196184 }) }}
197185 {% endif %}
198-
199- {{ appStepperInput({
200- label: {
201- text: "Left Eklund"
202- },
203- hint: {
204- text: "Used with breast implants"
205- },
206- name: "event[mammogramDataTemp][viewsLeftBreastEklundCount]",
207- value: viewsLeftBreastEklundCount | default("0"),
208- id: "views-left-breast-eklund-count",
209- min: 0,
210- max: 9
211- }) }}
212186 </ fieldset >
213187 </ div >
214188 </ div >
215189
190+ {# Implant displaced (Eklund) views – collapsible, open if any data already present #}
191+ {% set hasImplantDisplacedData = (viewsRightBreastCCIDCount | int) > 0 or (viewsRightBreastMLOIDCount | int) > 0 or (viewsLeftBreastCCIDCount | int) > 0 or (viewsLeftBreastMLOIDCount | int) > 0 %}
192+ {% call details({
193+ summaryText: "Other views",
194+ open: hasImplantDisplacedData
195+ }) %}
196+ < div class ="nhsuk-grid-row ">
197+ < div class ="nhsuk-grid-column-one-half ">
198+ < fieldset class ="nhsuk-fieldset ">
199+ < legend class ="nhsuk-fieldset__legend nhsuk-fieldset__legend--s ">
200+ {{ (viewsQuestionText + " for the") | asVisuallyHiddenText }} Right breast
201+ </ legend >
202+
203+ {% if data.settings.mammogramViewOrder == 'mlo-first' %}
204+ {{ appStepperInput({
205+ label: {
206+ text: "RMLOID"
207+ },
208+ _hint: {
209+ text: "Eklund RMLO"
210+ },
211+ name: "event[mammogramDataTemp][viewsRightBreastMLOIDCount]",
212+ value: viewsRightBreastMLOIDCount | default("0"),
213+ id: "views-right-breast-mloid-count",
214+ min: 0,
215+ max: 9
216+ }) }}
217+
218+ {{ appStepperInput({
219+ label: {
220+ text: "RCCID"
221+ },
222+ _hint: {
223+ text: "Eklund RCC"
224+ },
225+ name: "event[mammogramDataTemp][viewsRightBreastCCIDCount]",
226+ value: viewsRightBreastCCIDCount | default("0"),
227+ id: "views-right-breast-ccid-count",
228+ min: 0,
229+ max: 9
230+ }) }}
231+ {% else %}
232+ {{ appStepperInput({
233+ label: {
234+ text: "RCCID"
235+ },
236+ _hint: {
237+ text: "Eklund RCC"
238+ },
239+ name: "event[mammogramDataTemp][viewsRightBreastCCIDCount]",
240+ value: viewsRightBreastCCIDCount | default("0"),
241+ id: "views-right-breast-ccid-count",
242+ min: 0,
243+ max: 9
244+ }) }}
245+
246+ {{ appStepperInput({
247+ label: {
248+ text: "RMLOID"
249+ },
250+ _hint: {
251+ text: "Eklund RMLO"
252+ },
253+ name: "event[mammogramDataTemp][viewsRightBreastMLOIDCount]",
254+ value: viewsRightBreastMLOIDCount | default("0"),
255+ id: "views-right-breast-mloid-count",
256+ min: 0,
257+ max: 9
258+ }) }}
259+ {% endif %}
260+ </ fieldset >
261+ </ div >
262+
263+ < div class ="nhsuk-grid-column-one-half ">
264+ < fieldset class ="nhsuk-fieldset ">
265+ < legend class ="nhsuk-fieldset__legend nhsuk-fieldset__legend--s ">
266+ {{ (viewsQuestionText + " for the") | asVisuallyHiddenText }} Left breast
267+ </ legend >
268+
269+ {% if data.settings.mammogramViewOrder == 'mlo-first' %}
270+ {{ appStepperInput({
271+ label: {
272+ text: "LMLOID"
273+ },
274+ _hint: {
275+ text: "Eklund LMLO"
276+ },
277+ name: "event[mammogramDataTemp][viewsLeftBreastMLOIDCount]",
278+ value: viewsLeftBreastMLOIDCount | default("0"),
279+ id: "views-left-breast-mloid-count",
280+ min: 0,
281+ max: 9
282+ }) }}
283+
284+ {{ appStepperInput({
285+ label: {
286+ text: "LCCID"
287+ },
288+ _hint: {
289+ text: "Eklund LCC"
290+ },
291+ name: "event[mammogramDataTemp][viewsLeftBreastCCIDCount]",
292+ value: viewsLeftBreastCCIDCount | default("0"),
293+ id: "views-left-breast-ccid-count",
294+ min: 0,
295+ max: 9
296+ }) }}
297+ {% else %}
298+ {{ appStepperInput({
299+ label: {
300+ text: "LCCID"
301+ },
302+ _hint: {
303+ text: "Eklund LCC"
304+ },
305+ name: "event[mammogramDataTemp][viewsLeftBreastCCIDCount]",
306+ value: viewsLeftBreastCCIDCount | default("0"),
307+ id: "views-left-breast-ccid-count",
308+ min: 0,
309+ max: 9
310+ }) }}
311+
312+ {{ appStepperInput({
313+ label: {
314+ text: "LMLOID"
315+ },
316+ _hint: {
317+ text: "Eklund LMLO"
318+ },
319+ name: "event[mammogramDataTemp][viewsLeftBreastMLOIDCount]",
320+ value: viewsLeftBreastMLOIDCount | default("0"),
321+ id: "views-left-breast-mloid-count",
322+ min: 0,
323+ max: 9
324+ }) }}
325+ {% endif %}
326+ </ fieldset >
327+ </ div >
328+ </ div >
329+ {% endcall %}
330+
216331 {# Calculate initial total count from form data #}
217332 {% set initialTotalCount = 0 %}
218333 {% set initialTotalCount = initialTotalCount + (viewsRightBreastCCCount | int(0)) %}
219334 {% set initialTotalCount = initialTotalCount + (viewsRightBreastMLOCount | int(0)) %}
220- {% set initialTotalCount = initialTotalCount + (viewsRightBreastEklundCount | int(0)) %}
335+ {% set initialTotalCount = initialTotalCount + (viewsRightBreastCCIDCount | int(0)) %}
336+ {% set initialTotalCount = initialTotalCount + (viewsRightBreastMLOIDCount | int(0)) %}
221337 {% set initialTotalCount = initialTotalCount + (viewsLeftBreastCCCount | int(0)) %}
222338 {% set initialTotalCount = initialTotalCount + (viewsLeftBreastMLOCount | int(0)) %}
223- {% set initialTotalCount = initialTotalCount + (viewsLeftBreastEklundCount | int(0)) %}
339+ {% set initialTotalCount = initialTotalCount + (viewsLeftBreastCCIDCount | int(0)) %}
340+ {% set initialTotalCount = initialTotalCount + (viewsLeftBreastMLOIDCount | int(0)) %}
224341
225342 < p class ="_nhsuk-u-font-weight-bold app-js-only app-text-grey nhsuk-u-margin-bottom-4 nhsuk-u-font-size-22 " id ="total-images-count ">
226343 Images taken: < span data-total-count > {{ initialTotalCount }}</ span >
@@ -266,10 +383,12 @@ <h2>Additional details</h2>
266383 return [
267384 document . getElementById ( 'views-right-breast-cc-count' ) ,
268385 document . getElementById ( 'views-right-breast-mlo-count' ) ,
269- document . getElementById ( 'views-right-breast-eklund-count' ) ,
386+ document . getElementById ( 'views-right-breast-ccid-count' ) ,
387+ document . getElementById ( 'views-right-breast-mloid-count' ) ,
270388 document . getElementById ( 'views-left-breast-cc-count' ) ,
271389 document . getElementById ( 'views-left-breast-mlo-count' ) ,
272- document . getElementById ( 'views-left-breast-eklund-count' )
390+ document . getElementById ( 'views-left-breast-ccid-count' ) ,
391+ document . getElementById ( 'views-left-breast-mloid-count' )
273392 ] . filter ( Boolean ) // Remove any null values
274393 }
275394
0 commit comments