File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ export class Session {
252252 /**
253253 * Get consent window
254254 *
255- * @returns {object } Consent window
255+ * @returns {string } Consent window
256256 */
257257 get consentWindow ( ) {
258258 return getConsentWindow ( this )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export function getRepliesWithHealthAnswers(replies) {
5858 * Get combined answers to health questions
5959 *
6060 * @param {import('../models.js').PatientSession } patientSession - Patient session
61- * @returns {object|boolean } Combined answers to health questions
61+ * @returns {object|undefined } Combined answers to health questions
6262 */
6363export function getConsentHealthAnswers ( patientSession ) {
6464 const consentHealthAnswers = { }
@@ -69,7 +69,7 @@ export function getConsentHealthAnswers(patientSession) {
6969 ) . filter ( ( reply ) => reply . healthAnswers )
7070
7171 if ( responsesWithHealthAnswers . length === 0 ) {
72- return false
72+ return
7373 }
7474
7575 for ( const response of responsesWithHealthAnswers ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { today } from './date.js'
1616 * Get consent window (is it open, opening or closed)
1717 *
1818 * @param {import('../models.js').Session } session - Session
19- * @returns {object } Consent window key and value
19+ * @returns {string } Consent window key and value
2020 */
2121export const getConsentWindow = ( session ) => {
2222 const nowAt = today ( )
Original file line number Diff line number Diff line change 88}) %}
99 {# Description #}
1010 {% if not isVaccinated %}
11- {{ patientSession .consentNotes | nhsukMarkdown }}
11+ {{ patientSession .consentDescription | nhsukMarkdown }}
1212
1313 {% if patientSession .patient .lastReminderDate %}
1414 {{ patientSession .patient .formatted .lastReminderDate | nhsukMarkdown }}
Original file line number Diff line number Diff line change 33 headingSize : " m"
44}) %}
55 {# Description #}
6- {{ patientSession .registerNotes | nhsukMarkdown }}
6+ {{ patientSession .registerDescription | nhsukMarkdown }}
77
88 {# Actions #}
99 {% if patientSession .register == RegistrationOutcome .Pending %}
Original file line number Diff line number Diff line change 66 headingSize : " m"
77}) %}
88 {# Description #}
9- {{ patientSession .reportNotes | nhsukMarkdown }}
9+ {{ patientSession .reportDescription | nhsukMarkdown }}
1010
1111 {# Decision table #}
1212 {% set vaccinationRows = [] %}
Original file line number Diff line number Diff line change 55 headingSize : " m"
66}) %}
77 {# Description #}
8- {{ patientSession .screenNotes | nhsukMarkdown }}
8+ {{ patientSession .screenDescription | nhsukMarkdown }}
99
1010 {# Actions #}
1111 {{ actionLink ({
You can’t perform that action at this time.
0 commit comments