|
134 | 134 | errorMessage: { |
135 | 135 | text: consentError.text |
136 | 136 | } if consentError, |
| 137 | + value: data.consent, |
137 | 138 | items: [ |
138 | 139 | { |
139 | 140 | value: 'patient', |
140 | | - text: (data.patientName or "Michael James"), |
141 | | - checked: (data.consent === 'patient') |
| 141 | + text: (data.patientName or "Michael James") |
142 | 142 | }, |
143 | 143 | { |
144 | 144 | divider: "or" |
145 | 145 | }, |
146 | 146 | { |
147 | 147 | value: "Clinician acting in the patient’s best interests", |
148 | 148 | text: "Clinician acting in the patient’s best interests", |
149 | | - checked: (data.consent === "Clinician acting in the patient’s best interests"), |
150 | 149 | conditional: { |
151 | 150 | html: consentClinicianHtml |
152 | 151 | } |
153 | 152 | }, |
154 | 153 | { |
155 | 154 | value: "Person with lasting power of attorney for health and welfare", |
156 | 155 | text: "Person with lasting power of attorney for health and welfare", |
157 | | - checked: (data.consent === "Person with lasting power of attorney for health and welfare"), |
158 | 156 | conditional: { |
159 | 157 | html: consentAttorneyHtml |
160 | 158 | } |
161 | 159 | }, |
162 | 160 | { |
163 | 161 | value: "Parent or guardian", |
164 | 162 | text: "Parent or guardian", |
165 | | - checked: (data.consent === "Parent or guardian"), |
166 | 163 | conditional: { |
167 | 164 | html: consentParentHtml |
168 | 165 | } |
169 | 166 | }, |
170 | 167 | { |
171 | 168 | value: "Independent mental capacity advocate", |
172 | 169 | text: "Independent mental capacity advocate", |
173 | | - checked: (data.consent === "Independent mental capacity advocate"), |
174 | 170 | conditional: { |
175 | 171 | html: consentAdvocateHtml |
176 | 172 | } |
177 | 173 | }, |
178 | 174 | { |
179 | 175 | value: "Court appointed deputy", |
180 | 176 | text: "Court appointed deputy", |
181 | | - checked: (data.consent === "Court appointed deputy"), |
182 | 177 | conditional: { |
183 | 178 | html: consentDeputyHtml |
184 | 179 | } |
|
0 commit comments