Skip to content

Commit 4e01d02

Browse files
authored
Merge pull request #70 from NHSDigital/8442-recording-medical-info-non-functioning
Add a non-functioning record medical info page
2 parents bae9690 + c26572f commit 4e01d02

2 files changed

Lines changed: 120 additions & 0 deletions

File tree

manage_breast_screening/record_a_mammogram/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,13 @@ class RecordMedicalInformation(BaseAppointmentForm):
156156

157157
def get_context_data(self, **kwargs):
158158
context = super().get_context_data(**kwargs)
159+
id = self.kwargs["id"]
160+
participant = get_object_or_404(Participant, screeningepisode__appointment__id=id)
159161
context.update(
160162
{
161163
"title": "Record medical information",
164+
"participant": participant,
165+
"caption": participant.full_name,
162166
"decision_legend": "Can imaging go ahead?",
163167
}
164168
)
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,117 @@
11
{% extends "wizard_step.jinja" %}
2+
{% from "card/macro.jinja" import card %}
3+
{% from "inset-text/macro.jinja" import insetText %}
4+
{% from "summary-list/macro.jinja" import summaryList %}
5+
{% block stepContent %}
6+
7+
{% set symptoms_card_html %}
8+
{% set has_symptoms = false %}
9+
10+
{% set insetHtml %}
11+
<p>No symptoms have been recorded for this participant.</p>
12+
{% endset %}
13+
{{ insetText({
14+
"html": insetHtml,
15+
"classes": "nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-4"
16+
}) }}
17+
18+
<p class="nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0">
19+
<a href="#" class="nhsuk-link">{{ "Add another symptom" if has_symptoms else "Add a symptom" }}</a>
20+
</p>
21+
{% endset %}
22+
{{ card({
23+
"heading": "Recent breast changes or symptoms",
24+
"headingLevel": "2",
25+
"descriptionHtml": symptoms_card_html
26+
}) }}
27+
28+
{% set medical_history_card_html %}
29+
{% set breast_cancer_history_link %}
30+
<a class="nhsuk-link" href="#">Enter breast cancer history</a>
31+
{% endset %}
32+
{% set non_cancerous_lump_diagnosis_link %}
33+
<a class="nhsuk-link" href="#">Enter non-cancerous lump diagnosis</a>
34+
{% endset %}
35+
{% set chest_procedures_link %}
36+
<a class="nhsuk-link" href="#">Enter other breast or chest procedures</a>
37+
{% endset %}
38+
{{ summaryList({
39+
"rows": [
40+
{
41+
"key": {
42+
"text": "Breast cancer history"
43+
},
44+
"value": {
45+
"html": breast_cancer_history_link
46+
},
47+
"actions": {
48+
"items": []
49+
}
50+
},
51+
{
52+
"key": {
53+
"text": "Non-cancerous lump diagnosis"
54+
},
55+
"value": {
56+
"html": non_cancerous_lump_diagnosis_link
57+
},
58+
"actions": {
59+
"items": []
60+
}
61+
},
62+
{
63+
"key": {
64+
"text": "Other breast or chest procedures"
65+
},
66+
"value": {
67+
"html": chest_procedures_link
68+
},
69+
"actions": {
70+
"items": []
71+
}
72+
}
73+
]
74+
}) }}
75+
{% endset %}
76+
{{ card({
77+
"heading": "Medical history",
78+
"headingLevel": "2",
79+
"descriptionHtml": medical_history_card_html
80+
}) }}
81+
82+
{% set breast_features_card_html %}
83+
{% set breast_features_recorded = false %}
84+
85+
{% set insetHtml %}
86+
<p>No breast features have been recorded for this participant. Add any scars, moles, warts or lumps observed or reported during the appointment.</p>
87+
{% endset %}
88+
{{ insetText({
89+
"html": insetHtml,
90+
"classes": "nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-4"
91+
}) }}
92+
93+
<p class="nhsuk-u-margin-top-4 nhsuk-u-margin-bottom-0">
94+
<a href="#" class="nhsuk-link">{{ "Add another feature" if breast_features_recorded else "Add a feature" }}</a>
95+
</p>
96+
{% endset %}
97+
{{ card({
98+
"heading": "Breast features",
99+
"headingLevel": "2",
100+
"descriptionHtml": breast_features_card_html
101+
}) }}
102+
103+
{% set other_information_card_html %}
104+
{% set hrt_link %}
105+
<a class="nhsuk-link" href="#">Enter hormone replacement therapy (HRT)</a>
106+
{% endset %}
107+
{% set pregnancy_and_breastfeeding_link %}
108+
<a class="nhsuk-link" href="#">Enter pregnancy and breastfeeding</a>
109+
{% endset %}
110+
{% endset %}
111+
{{ card({
112+
"heading": "Other information",
113+
"headingLevel": "2",
114+
"descriptionHtml": other_information_card_html
115+
}) }}
116+
117+
{% endblock %}

0 commit comments

Comments
 (0)