From e0cc9a8160e75b0273b1fded5db157f4fdea3e67 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:36:14 +0000 Subject: [PATCH 01/10] CAR-151 initial prototype form --- runner/src/server/forms/ReportAnOutbreak.json | 1799 +++++++++++++++++ 1 file changed, 1799 insertions(+) create mode 100644 runner/src/server/forms/ReportAnOutbreak.json diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json new file mode 100644 index 000000000..8c1a055a4 --- /dev/null +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -0,0 +1,1799 @@ +{ + "metadata": {}, + "startPage": "/start", + "pages": [ + { + "path": "/start", + "title": "Report an outbreak of acute respiratory infection in an adult social care setting", + "components": [ + { + "name": "nMOTrx", + "options": {}, + "type": "Para", + "content": "

Applies to England

\n", + "schema": {} + }, + { + "name": "nMOTry", + "options": {}, + "type": "Para", + "content": "

\n You can use this service if you provide adult social care, such as a care home, retirement home, supported living or extra care.\n

Use this service to report:

\n

\n

ARIs include COVID-19, flu, respiratory syncytial virus (RSV), or unknown respiratory infection including chest infections.

\n

It should take about 10 minutes to complete.

\n\n

Before you start

\n

\n If possible, test all service users with symptoms who are eligible for COVID-19 treatments using a COVID-19 rapid lateral flow test. Staff with symptoms who are eligible for COVID-19 treatments should test themselves at home. \n

\n

\n If you cannot test people, do not wait. Report as soon as possible. \n

\n

\n You'll need to know the:\n

\n \n\n

Updating about an existing outbreak

\n

\n Do not use this online service to give an update on an outbreak or cluster of ARI that you've already reported. If you need to give an update, contact your local UKHSA health protection team or your community infection control team.\n

Identifying an ARI outbreak

\n

You only need to report 2 or more ARI cases if they could be linked by spread in your setting. If the infection could not have been spread in your setting, you should not report it as an outbreak. If in doubt, report as an outbreak.

\n

Do not use this service to report:

\n \n

Read more on:

\n \n

Why you should report an outbreak

\n

Your local UKHSA health protection team, or the community infection control team, will use your information to assess your outbreak. They will help you manage the outbreak and prevent further spread.

\n

Get help

\n

If you need help using the service or have any other questions, contact your local UKHSA health protection team during working hours.

\n

If your enquiry is urgent outside of working hours, telephone your health protection team's out-of-hours service.

\n

If you need urgent medical advice

\n

If you need urgent medical advice, you should call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies, call 999.

\n", + "schema": {} + } + ], + "next": [ + { + "path": "/setting" + } + ], + "controller": "./pages/start.js" + }, + { + "path": "/setting", + "title": "What type of adult social care do you provide?", + "components": [ + { + "name": "S4Q9", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "What type of adult social care do you provide?", + "list": "MpSRIP", + "schema": {}, + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/positive-ari" + } + ] + }, + { + "path": "/positive-ari", + "title": "Do you have any positive test results for an acute respiratory infection?", + "components": [ + { + "name": "PositiveARI", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Do you have any positive test results for an acute respiratory infection?", + "hint": "Acute respiratory infections include COVID-19, flu, respiratory syncytial virus (RSV), adenovirus, human metapneumovirus (hMPV), parainfluenza and rhinovirus", + "schema": {}, + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/2-or-more-ari", + "condition": "sUrRwU" + }, + { + "path": "/which-ari" + } + ] + }, + { + "path": "/which-ari", + "title": "Which acute respiratory infections do you have a positive test result for? ", + "components": [ + { + "name": "WhichARI", + "options": {}, + "type": "CheckboxesField", + "nameHasError": false, + "title": "Which acute respiratory infections do you have a positive test result for? ", + "list": "InfectionTypes", + "hint": "You can select more than one option", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/check-answers", + "condition": "einiQH" + }, + { + "path": "/2-or-more-cases-not-covid-or-flu", + "condition": "fknfQQQ" + }, + { + "path": "/2-or-more-covid" + } + ] + }, + { + "path": "/2-or-more-covid", + "title": "Are you reporting 2 or more cases of COVID-19?", + "components": [ + { + "name": "TwoOrMoreCovid", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Are you reporting 2 or more cases of COVID-19?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/do-not-need-to-report", + "condition": "fninfWW" + }, + { + "path": "/2-or-more-covid-details" + } + ] + }, + { + "path": "/2-or-more-covid-details", + "title": "COVID-19 in your setting", + "components": [ + { + "name": "TwoOrMoreCovid5days", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "Did symptoms in 2 or more cases of COVID-19 start within 5 days of each other?", + "list": "YesNoSure", + "values": { + "type": "listRef" + } + }, + { + "name": "TwoOrMoreCovidSpread", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "Is it possible that at least 2 of the cases of COVID-19 are linked by spread in your setting?​", + "list": "YesNoSure", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/do-not-need-to-report", + "condition": "dmdojqQH" + }, + { + "path": "/check-answers" + } + ] + }, + { + "path": "/2-or-more-ari", + "title": "Are you reporting 2 or more cases of an acute respiratory infection?", + "components": [ + { + "name": "TwoOrMoreARI", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Are you reporting 2 or more cases of an acute respiratory infection?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/do-not-need-to-report", + "condition": "yowninW" + }, + { + "path": "/check-answers" + } + ] + }, + { + "path": "/do-not-need-to-report", + "title": "You do not need to report", + "components": [] + }, + { + "path": "/check-answers", + "title": "Check your answers before continuing", + "next": [ + { + "path": "/cases-of-flu" + } + ] + }, + { + "path": "/2-or-more-cases-not-covid-or-flu", + "title": "Are you reporting 2 or more cases of an acute respiratory infection that is not COVID-19 or flu?", + "components": [ + { + "name": "TwoOrMoreCasesNotCovidFlu", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Are you reporting 2 or more cases of an acute respiratory infection that is not COVID-19 or flu?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/do-not-need-to-report", + "condition": "yowninW" + }, + { + "path": "/ari-infection-type" + } + ] + }, + { + "path": "/ari-infection-type", + "title": "What infection are you reporting?", + "components": [ + { + "name": "ARIinfectionType", + "options": {}, + "type": "CheckboxesField", + "nameHasError": false, + "title": "What infection are you reporting?", + "list": "ARIinfectionType", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/do-not-need-to-report", + "condition": "yowninW" + }, + { + "path": "/check-answers" + } + ] + }, + { + "path": "/cases-of-flu", + "title": "How many cases of flu are you reporting?", + "components": [ + { + "name": "NumberOfCasesOfFlu", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "How many cases of flu are you reporting?", + "list": "OneOrMore", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/single-case-of-flu", + "condition": "NumberOfCasesOfFlu:One" + }, + { + "path": "/multiple-cases-of-flu" + } + ] + }, + { + "path": "/single-case-of-flu", + "title": "Who has the case of flu?", + "components": [ + { + "name": "SingleCaseOfFluServiceOrStaff", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "Who has the case of flu?", + "list": "ServiceOrStaff", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/symptom-onset-flu", + "condition": "SingleCaseOfFluServiceUserOrStaff:ServiceUser" + }, + { + "path": "/vaccination" + } + ] + }, + { + "path": "/multiple-cases-of-flu", + "title": "Who are you reporting cases or symptoms of flu in?", + "components": [ + { + "name": "MultipleCasesOfFluServiceOrStaff", + "options": {}, + "type": "CheckboxesField", + "nameHasError": false, + "title": "Who are you reporting cases or symptoms of flu in?", + "list": "ServiceOrStaffMultiple", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/multiple-cases-flu-service-users", + "condition": "MultipleCasesOfFluServiceOrStaff:ServiceUsers" + }, + { + "path": "/multiple-cases-flu-staff" + } + ] + }, + { + "path": "/multiple-cases-flu-service-users", + "title": "Service users: number of flu or chest infection cases", + "components": [ + { + "name": "ServiceUsersFluSwabTest", + "options": {}, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many service users have flu confirmed by a swab test?", + "hint": "Include those who are currently in hospital. If none, enter 0" + }, + { + "name": "ServiceUsersSuspectedFlu", + "options": {}, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many service users have suspected (not confirmed) flu?", + "hint": "Among elderly people this may include people who have a sudden onset of acute respiratory symptoms, fever, or sudden mental or physical deterioration without any other known cause. Include those who are currently in hospital. If none, enter 0" + }, + { + "name": "ServiceUsersChestInfection", + "options": { + "required": false + }, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many service users have been diagnosed with a chest infection by a GP?", + "hint": "Do not include cases you have already reported in this section as having confirmed or suspected flu Include those who are currently in hospital. If none, enter 0" + }, + { + "name": "ServiceUsersChestInfectionCovid19", + "options": { + "required": false + }, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many of these service users with confirmed or suspected flu or a chest infection have been tested for COVID-19?", + "hint": "If none, enter 0" + }, + { + "name": "ServiceUsersChestInfectionCovid19Positive", + "options": { + "required": false + }, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many of these service users tested for COVID-19 had a positive result?", + "hint": "If none, enter 0" + } + ], + "next": [ + { + "path": "/multiple-cases-flu-staff", + "condition": "MultipleCasesOfFluServiceOrStaff:ServiceUsersAndStaff" + }, + { + "path": "/symptom-onset-flu-multiple-cases" + } + ] + }, + { + "path": "/multiple-cases-flu-staff", + "title": "Staff: number of flu or chest infection cases", + "components": [ + { + "name": "ServiceUsersFluSwabTest", + "options": {}, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many staff have flu confirmed by a swab test?", + "hint": "Include those who are currently in hospital. If none, enter 0" + }, + { + "name": "StaffSuspectedFlu", + "options": {}, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many staff have suspected (not confirmed) flu?", + "hint": "Among elderly people this may include people who have a sudden onset of acute respiratory symptoms, fever, or sudden mental or physical deterioration without any other known cause. Include those who are currently in hospital. If none, enter 0" + }, + { + "name": "StaffChestInfection", + "options": { + "required": false + }, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many staff have been diagnosed with a chest infection by a GP?", + "hint": "Do not include cases you have already reported in this section as having confirmed or suspected flu Include those who are currently in hospital. If none, enter 0" + }, + { + "name": "StaffChestInfectionCovid19", + "options": { + "required": false + }, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many of these staff members with confirmed or suspected flu or a chest infection have been tested for COVID-19?", + "hint": "If none, enter 0" + }, + { + "name": "StaffChestInfectionCovid19Positive", + "options": { + "required": false + }, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many of these staff members tested for COVID-19 had a positive result?", + "hint": "If none, enter 0" + } + ], + "next": [ + { + "path": "/symptom-onset-flu-multiple-cases" + } + ] + }, + { + "path": "/symptom-onset-flu", + "title": "Symptom onset for the case of flu", + "components": [ + { + "name": "FluSymptomOnsetDate", + "options": {}, + "type": "DatePartsField", + "nameHasError": false, + "title": "When did symptoms start?", + "hint": "For example, 31 03 2024", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/flu-severity" + } + ] + }, + { + "path": "/flu-severity", + "title": "Severity of the case of flu", + "components": [ + { + "name": "FluSeverityCalledGP", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Have you called the GP because of the severity of illness in this case?", + "values": { + "type": "listRef" + } + }, + { + "name": "FluSeverityHospitalised", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Has the person been hospitalised with the flu?", + "values": { + "type": "listRef" + } + }, + { + "name": "FluSeverityDeath", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Has the person died with flu in this case?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/vaccination" + } + ] + }, + { + "path": "/vaccination", + "title": "Vaccination among your staff and service users", + "components": [ + { + "name": "ServiceUsersCovid19Vaccination", + "options": { + "required": false + }, + "type": "NumberField", + "nameHasError": false, + "schema": { + "min": 0, + "max": 200 + }, + "title": "How many service users are up to date with the current COVID-19 vaccination schedule?", + "values": { + "type": "listRef" + } + }, + { + "name": "StaffCovid19Vaccination", + "options": { + "required": false + }, + "type": "NumberField", + "nameHasError": false, + "schema": { + "min": 0, + "max": 200 + }, + "title": "How many staff are up to date with the current COVID-19 vaccination schedule?", + "values": { + "type": "listRef" + } + }, + { + "name": "ServiceUsersFluVaccination", + "options": { + "required": false + }, + "type": "NumberField", + "nameHasError": false, + "schema": { + "min": 0, + "max": 200 + }, + "title": "How many service users have had the flu vaccine for this current winter season?", + "values": { + "type": "listRef" + } + }, + { + "name": "StaffFluVaccination", + "options": { + "required": false + }, + "type": "NumberField", + "nameHasError": false, + "schema": { + "min": 0, + "max": 200 + }, + "title": "How many staff have had the flu vaccine for this current winter season?", + "values": { + "type": "listRef" + } + }, + { + "name": "ServiceUsersRSVVaccination", + "options": { + "required": false + }, + "type": "NumberField", + "nameHasError": false, + "schema": { + "min": 0, + "max": 200 + }, + "title": "How many service users have had the respiratory syncytial virus (RSV) vaccine?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/ipc" + } + ] + }, + { + "path": "/ipc", + "title": "Infection prevention and control (IPC) and outbreak management in your setting", + "components": [ + { + "name": "IPCPractices", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "How often do you monitor staff IPC practices?", + "hint": "For example, hand hygiene, use of personal protective equipment (PPE) and cleaning", + "list": "IPCPractices", + "values": { + "type": "listRef" + } + }, + { + "name": "Issues", + "options": {}, + "type": "CheckboxesField", + "nameHasError": false, + "title": "What issues are you currently experiencing and need support with?", + "hint": "You can select more than one option", + "list": "Issues", + "values": { + "type": "listRef" + } + }, + { + "name": "AGPs", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Does your setting undertake aerosol generating procedures (AGPs)?", + "hint": "For example, inserting or removing a tracheotomy or ostomy, non-invasive ventilation (NIV), bi-level positive airway pressure (BPAP), continuous positive airway pressure (CPA P), sputum induction, respiratory tract suctioning (mouth suctioning is not an AGP).", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/agps", + "condition": "AGPs:yes" + }, + { + "path": "/agency-staff" + } + ] + }, + { + "path": "/symptom-onset-flu-multiple-cases", + "title": "Symptom onset of flu or chest infection cases in this outbreak", + "components": [ + { + "name": "FluSymptomOnsetDateFirstCase", + "options": {}, + "type": "DatePartsField", + "nameHasError": false, + "title": "When did symptoms start in the first case of confirmed or suspected flu, or chest infection?", + "hint": "For example, 31 03 2024", + "values": { + "type": "listRef" + } + }, + { + "name": "FluSymptomOnsetDateSecondCase", + "options": {}, + "type": "DatePartsField", + "nameHasError": false, + "title": "When did symptoms start in the second case of confirmed or suspected flu, or chest infection?", + "hint": "For example, 31 03 2024", + "values": { + "type": "listRef" + } + }, + { + "name": "FluSymptomOnsetDateMostRecentCase", + "options": { + "required": false + }, + "type": "DatePartsField", + "nameHasError": false, + "title": "When did symptoms start in the most recent case of confirmed or suspected flu or chest infection?", + "hint": "For example, 31 03 2024", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/flu-severity-multiple-cases" + } + ] + }, + { + "path": "/flu-severity-multiple-cases", + "title": "Severity of flu or chest infection cases in this outbreak", + "components": [ + { + "name": "FluSeverityCalledGPMultipleCases", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "How many cases of suspected or confirmed flu or chest infection have you called the GP about because of the severity of illness in this outbreak?", + "list": "CaseNumbers", + "values": { + "type": "listRef" + } + }, + { + "name": "FluSeverityHospitalisedMultipleCases", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "How many service users or staff have been hospitalised because of confirmed or suspected flu or chest infection in this outbreak?", + "list": "CaseNumbers", + "values": { + "type": "listRef" + } + }, + { + "name": "FluSeverityDeathMultipleCases", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "How many service users or staff have died because of confirmed or suspected flu or chest infection in this outbreak?", + "list": "CaseNumbers", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/vaccination" + } + ] + }, + { + "path": "/agps", + "title": "Do staff carrying out aerosol generating procedures (AGPs) wear fit-tested FFP3 masks?", + "components": [ + { + "name": "FFP3Masks", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "Do staff carrying out aerosol generating procedures (AGPs) wear fit-tested FFP3 masks?", + "list": "FFP3Masks", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/agency-staff" + } + ] + }, + { + "path": "/agency-staff", + "title": "Do you use agency staff or share staff with other care settings?", + "components": [ + { + "name": "AgencyStaff", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Do you use agency staff or share staff with other care settings?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/setting-details", + "condition": "AgencyStaff:No" + }, + { + "path": "/additional-staff" + } + ] + }, + { + "path": "/additional-staff", + "title": "How many additional agency staff or staff from other care settings have you used during this outbreak?", + "components": [ + { + "name": "AdditionalStaff", + "options": {}, + "type": "RadiosField", + "nameHasError": false, + "title": "How many additional agency staff or staff from other care settings have you used during this outbreak?", + "list": "AdditionalStaff", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/setting-details" + } + ] + }, + { + "path": "/setting-details", + "title": "Setting details", + "components": [ + { + "name": "SettingName", + "options": {}, + "type": "TextField", + "nameHasError": false, + "title": "Your setting name", + "hint": "The name of the setting where the cases are located, not the management company", + "values": { + "type": "listRef" + } + }, + { + "name": "SettingPostcode", + "options": {}, + "type": "TextField", + "nameHasError": false, + "title": "Your setting postcode", + "hint": "The postcode of the setting where the cases are located, not the management company", + "values": { + "type": "listRef" + } + }, + { + "name": "S0Q3", + "options": { + "required": true, + "customValidationMessages": { + "string.empty": "Your local UKHSA health protection team is required", + "string.base": "Your local UKHSA health protection team is required" + } + }, + "type": "SelectField", + "title": "Your local UKHSA health protection team", + "list": "sjgMDe", + "nameHasError": false, + "schema": {}, + "values": { + "type": "listRef" + } + }, + { + "name": "CQCRegistered", + "options": {}, + "type": "YesNoField", + "nameHasError": false, + "title": "Is your care setting registered with the Care Quality Commission (CQC)?", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/contact-details" + } + ] + }, + { + "path": "/contact-details", + "title": "Contact details", + "components": [ + { + "name": "MainContactName", + "options": {}, + "type": "TextField", + "nameHasError": false, + "title": "Full name", + "values": { + "type": "listRef" + } + }, + { + "name": "MainContactJobTitle", + "options": { + "required": false + }, + "type": "TextField", + "nameHasError": false, + "title": "Job title", + "hint": "For example, manager, senior carer", + "values": { + "type": "listRef" + } + }, + { + "name": "MainContactPhoneNumber", + "options": {}, + "type": "TextField", + "nameHasError": false, + "title": "Phone number", + "values": { + "type": "listRef" + } + }, + { + "name": "MainContactEmailAddress", + "options": {}, + "type": "TextField", + "nameHasError": false, + "title": "Email address", + "values": { + "type": "listRef" + } + }, + { + "name": "AltContactName", + "options": { + "required": false + }, + "type": "TextField", + "nameHasError": false, + "title": "Full name", + "values": { + "type": "listRef" + } + }, + { + "name": "AltContactJobTitle", + "options": { + "required": false + }, + "type": "TextField", + "nameHasError": false, + "title": "Job title", + "hint": "For example, manager, senior carer", + "values": { + "type": "listRef" + } + }, + { + "name": "AltContactPhoneNumber", + "options": { + "required": false + }, + "type": "TextField", + "nameHasError": false, + "title": "Phone number", + "values": { + "type": "listRef" + } + }, + { + "name": "AltContactEmailAddress", + "options": { + "required": false + }, + "type": "TextField", + "nameHasError": false, + "title": "Email address", + "values": { + "type": "listRef" + } + } + ], + "next": [ + { + "path": "/service-users" + } + ] + }, + { + "path": "/service-users", + "title": "Service users and staff", + "components": [ + { + "name": "ServiceUsersTypes", + "options": {}, + "type": "CheckboxesField", + "nameHasError": false, + "title": "Select the options that best describe the majority of your service users", + "list": "ServiceUsersTypes", + "values": { + "type": "listRef" + } + }, + { + "name": "ServiceUsersCurrentlyLive", + "options": {}, + "type": "NumberField", + "nameHasError": false, + "schema": { + "min": 0, + "max": 200 + }, + "title": "How many service users currently live in your care setting or use your service?", + "list": "ServiceUsersTypes" + }, + { + "name": "ServiceUsersNumber", + "options": {}, + "type": "NumberField", + "schema": { + "min": 0, + "max": 200 + }, + "nameHasError": false, + "title": "How many service users currently live in your care setting or use your service?" + } + ], + "next": [ + { + "path": "/summaryPage" + } + ] + }, + { + "path": "/summaryPage", + "title": "Check your answers before submitting your report", + "components": [ + { + "name": "nMOTrx", + "options": {}, + "type": "Para", + "content": "

Check your answers before sending your report

\n", + "schema": {} + } + ], + "next": [ + { + "path": "/reportSent" + } + ] + }, + { + "path": "/reportSent", + "title": "Service users and staff", + "components": [ + { + "name": "nMOTrx", + "options": {}, + "type": "Para", + "content": "

Report Sent

\n", + "schema": {} + } + ] + } + ], + "lists": [ + { + "title": "yes-no-sure", + "name": "YesNoSure", + "type": "string", + "items": [ + { + "text": "Yes", + "value": "Yes" + }, + { + "text": "No", + "value": "No" + }, + { + "text": "Not sure", + "value": "Not sure" + } + ] + }, + { + "title": "infection-types", + "name": "InfectionTypes", + "type": "string", + "items": [ + { + "text": "COVID-19", + "value": "COVID-19" + }, + { + "text": "Flu", + "value": "Flu" + }, + { + "text": "Any other acute respiratory infections", + "value": "Any other acute respiratory infections", + "description": "including viruses such as respiratory syncytial virus (RSV), adenovirus, human metapneumovirus (hMPV), parainfluenza and rhinovirus" + } + ] + }, + { + "title": "ari-infection-types", + "name": "ARIinfectionType", + "type": "string", + "items": [ + { + "text": "Adenovirus", + "value": "Adenovirus" + }, + { + "text": "Human Metapneumovirus (hMPV)", + "value": "Human Metapneumovirus (hMPV)" + }, + { + "text": "Parainfluenza", + "value": "Parainfluenza" + }, + { + "text": "Respiratory Syncytial Virus (RSV)", + "value": "Respiratory Syncytial Virus (RSV)" + }, + { + "text": "Rhinovirus", + "value": "Rhinovirus" + }, + { + "text": "Other acute respiratory infection", + "value": "Other acute respiratory infection" + } + ] + }, + { + "title": "social-care-provider-type", + "name": "MpSRIP", + "type": "string", + "items": [ + { + "text": "Residential care home", + "value": "Residential care home" + }, + { + "text": "Nursing care home", + "value": "Nursing care home" + }, + { + "text": "Residential and nursing care home", + "value": "Residential and nursing care home" + }, + { + "text": "Supported living", + "value": "Supported living or extra care (not high risk)" + }, + { + "text": "Extra care", + "value": "Extra care" + }, + { + "text": "Domiciliary or home care", + "value": "Domiciliary or home care" + }, + { + "text": "Rehabilitation, reablement or respite", + "value": "Rehabilitation, reablement or respite" + }, + { + "text": "Other adult social care", + "value": "Other" + } + ] + }, + { + "title": "one-or-more", + "name": "OneOrMore", + "type": "string", + "items": [ + { + "text": "1", + "value": "One" + }, + { + "text": "2 or more", + "value": "2 or more" + } + ] + }, + { + "title": "service-or-staff", + "name": "ServiceOrStaff", + "type": "string", + "items": [ + { + "text": "Service user", + "value": "Service user" + }, + { + "text": "Staff", + "value": "Staff" + } + ] + }, + { + "title": "service-or-staff-multiple", + "name": "ServiceOrStaffMultiple", + "type": "string", + "items": [ + { + "text": "Service users", + "value": "Service users" + }, + { + "text": "Staff", + "value": "Staff" + } + ] + }, + { + "title": "ipc-practices", + "name": "IPCPractices", + "type": "string", + "items": [ + { + "text": "We do not monitor infection prevention and control practices", + "value": "We do not monitor infection prevention and control practices" + }, + { + "text": "Within the last month", + "value": "Within the last month" + }, + { + "text": "Between 1 and 6 months ago", + "value": "Between 1 and 6 months ago" + }, + { + "text": "7 to 12 months ago", + "value": "7 to 12 months ago" + }, + { + "text": "more than 12 months ago", + "value": "more than 12 months ago" + } + ] + }, + { + "title": "case-numbers", + "name": "CaseNumbers", + "type": "string", + "items": [ + { + "text": "0", + "value": "None" + }, + { + "text": "1", + "value": "One" + }, + { + "text": "2 to 3", + "value": "2 to 3" + }, + { + "text": "4 to 5", + "value": "4 to 5" + }, + { + "text": "More than 5", + "value": "More than 5" + }, + { + "text": "I do not know", + "value": "I do not know" + } + ] + }, + { + "title": "issues", + "name": "Issues", + "type": "string", + "items": [ + { + "text": "COVID-19: access to treatments", + "value": "COVID-19: access to treatments" + }, + { + "text": "COVID-19: LFD test kit supply", + "value": "COVID-19: LFD test kit supply" + }, + { + "text": "Hand hygiene", + "value": "Hand hygiene" + }, + { + "text": "Isolation", + "value": "Isolation" + }, + { + "text": "New admissions or transfer of service users", + "value": "New admissions or transfer of service users" + }, + { + "text": "Staffing", + "value": "Staffing" + }, + { + "text": "Supply of PPE", + "value": "Supply of PPE" + }, + { + "text": "Use of PPE", + "value": "Use of PPE" + }, + { + "text": "Visits", + "value": "Visits" + }, + { + "text": "Waste, cleaning or laundry", + "value": "Waste, cleaning or laundry" + }, + { + "text": "No issues", + "value": "No issues" + } + ] + }, + { + "title": "ffp3-masks", + "name": "FFP3Masks", + "type": "string", + "items": [ + { + "text": "All", + "value": "All" + }, + { + "text": "Some", + "value": "Some" + }, + { + "text": "None", + "value": "None" + }, + { + "text": "I do not know", + "value": "I do not know" + } + ] + }, + { + "title": "additional-staff", + "name": "AdditionalStaff", + "type": "string", + "items": [ + { + "text": "Fewer than 5", + "value": "Fewer than 5" + }, + { + "text": "5 or more", + "value": "5 or more" + } + ] + }, + { + "title": "service-users-types", + "name": "ServiceUsersTypes", + "type": "string", + "items": [ + { + "text": "People with learning difficulties or learning disabilities", + "value": "People with learning difficulties or learning disabilities" + }, + { + "text": "People with physical disabilities or severe medical conditions", + "value": "People with physical disabilities or severe medical conditions" + }, + { + "text": "People with mental health needs", + "value": "People with mental health needs" + }, + { + "text": "People with substance misuse issues", + "value": "People with substance misuse issues" + }, + { + "text": "People living with dementia", + "value": "People living with dementia" + }, + { + "text": "Under 65 years", + "value": "Under 65 years" + }, + { + "text": "65 years or over", + "value": "65 years or over" + } + ] + }, + { + "title": "HPTs", + "name": "sjgMDe", + "type": "string", + "items": [ + { + "text": "East of England HPT", + "value": "East of England HPT" + }, + { + "text": "West Midlands HPT", + "value": "West Midlands HPT" + }, + { + "text": "South West HPT", + "value": "South West HPT" + } + ] + } + ], + "sections": [], + "conditions": [ + { + "displayName": "PositiveARI:No", + "name": "sUrRwU", + "value": { + "name": "PositiveARI:No", + "conditions": [ + { + "field": { + "name": "PositiveARI", + "type": "YesNoField", + "display": "Do you have any positive test results for an acute respiratory infection?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "false", + "display": "false" + } + } + ] + } + }, + { + "displayName": "TwoOrMoreARI:No", + "name": "yowninW", + "value": { + "name": "TwoOrMoreARI:No", + "conditions": [ + { + "field": { + "name": "TwoOrMoreARI", + "type": "YesNoField", + "display": "Are you reporting 2 or more cases of an acute respiratory infection?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "false", + "display": "false" + } + } + ] + } + }, + { + "displayName": "TwoOrMoreCovid:No", + "name": "fninfWW", + "value": { + "name": "TwoOrMoreCovid:No", + "conditions": [ + { + "field": { + "name": "TwoOrMoreCovid", + "type": "YesNoField", + "display": "Are you reporting 2 or more cases of COVID-19?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "false", + "display": "false" + } + } + ] + } + }, + { + "displayName": "WhichARI:FLU", + "name": "einiQH", + "value": { + "name": "WhichARI:FLU", + "conditions": [ + { + "field": { + "name": "WhichARI", + "type": "CheckboxesField", + "display": "Which acute respiratory infections do you have a positive test result for?" + }, + "operator": "contains", + "value": { + "type": "Value", + "value": "Flu", + "display": "Flu" + } + } + ] + } + }, + { + "displayName": "WhichARI:OTHER", + "name": "fknfQQQ", + "value": { + "name": "WhichARI:OTHER", + "conditions": [ + { + "field": { + "name": "WhichARI", + "type": "CheckboxesField", + "display": "Which acute respiratory infections do you have a positive test result for?" + }, + "operator": "contains", + "value": { + "type": "Value", + "value": "Any other acute respiratory infections", + "display": "Any other acute respiratory infections" + } + } + ] + } + }, + { + "displayName": "ReportCovid:No", + "name": "dmdojqQH", + "value": { + "name": "ReportCovid:No", + "conditions": [ + { + "field": { + "name": "TwoOrMoreCovid5days", + "type": "RadiosField", + "display": "Did symptoms in 2 or more cases of COVID-19 start within 5 days of each other?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "No", + "display": "No" + } + }, + { + "coordinator": "or", + "field": { + "name": "TwoOrMoreCovidSpread", + "type": "RadiosField", + "display": "Is it possible that at least 2 of the cases of COVID-19 are linked by spread in your setting?​" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "No", + "display": "No" + } + } + ] + } + }, + { + "displayName": "TwoOrMoreCasesNotCovidFlu:NO", + "name": "fwnsinQ", + "value": { + "name": "TwoOrMoreCasesNotCovidFlu:NO", + "conditions": [ + { + "field": { + "name": "WhichARI", + "type": "YesNoField", + "display": "Are you reporting 2 or more cases of an acute respiratory infection that is not COVID-19 or flu?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "true", + "display": "true" + } + } + ] + } + }, + { + "displayName": "SingleCaseOfFluServiceUserOrStaff:ServiceUser", + "name": "SingleCaseOfFluServiceUserOrStaff:ServiceUser", + "value": { + "name": "SingleCaseOfFluServiceUserOrStaff:ServiceUser", + "conditions": [ + { + "field": { + "name": "SingleCaseOfFluServiceOrStaff", + "type": "RadiosField", + "display": "Who has the case of flu?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "Service user", + "display": "Service user" + } + } + ] + } + }, + { + "displayName": "NumberOfCasesOfFlu:One", + "name": "NumberOfCasesOfFlu:One", + "value": { + "name": "NumberOfCasesOfFlu:One", + "conditions": [ + { + "field": { + "name": "NumberOfCasesOfFlu", + "type": "RadiosField", + "display": "How many cases of flu are you reporting?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "One", + "display": "1" + } + } + ] + } + }, + { + "displayName": "MultipleCasesOfFluServiceOrStaff:ServiceUsers", + "name": "MultipleCasesOfFluServiceOrStaff:ServiceUsers", + "value": { + "name": "MultipleCasesOfFluServiceOrStaff:ServiceUsers", + "conditions": [ + { + "field": { + "name": "MultipleCasesOfFluServiceOrStaff", + "type": "CheckboxesField", + "display": "Who are you reporting cases or symptoms of flu in?" + }, + "operator": "contains", + "value": { + "type": "Value", + "value": "Service users", + "display": "Service users" + } + } + ] + } + }, + { + "displayName": "MultipleCasesOfFluServiceOrStaff:ServiceUsersAndStaff", + "name": "MultipleCasesOfFluServiceOrStaff:ServiceUsersAndStaff", + "value": { + "name": "MultipleCasesOfFluServiceOrStaff:ServiceUsersAndStaff", + "conditions": [ + { + "field": { + "name": "MultipleCasesOfFluServiceOrStaff", + "type": "CheckboxesField", + "display": "Who are you reporting cases or symptoms of flu in?" + }, + "operator": "contains", + "value": { + "type": "Value", + "value": "Service users", + "display": "Service users" + } + }, + { + "coordinator": "and", + "field": { + "name": "MultipleCasesOfFluServiceOrStaff", + "type": "CheckboxesField", + "display": "Who are you reporting cases or symptoms of flu in?" + }, + "operator": "contains", + "value": { + "type": "Value", + "value": "Staff", + "display": "Staff" + } + } + ] + } + }, + { + "displayName": "AGPs:yes", + "name": "AGPs:yes", + "value": { + "name": "AGPs:yes", + "conditions": [ + { + "field": { + "name": "AGPs", + "type": "YesNoField", + "display": "Does your setting undertake aerosol generating procedures (AGPs)?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "true", + "display": "true" + } + } + ] + } + }, + { + "displayName": "AgencyStaff:No", + "name": "AgencyStaff:No", + "value": { + "name": "AgencyStaff:No", + "conditions": [ + { + "field": { + "name": "AgencyStaff", + "type": "YesNoField", + "display": "Do you use agency staff or share staff with other care settings?" + }, + "operator": "is", + "value": { + "type": "Value", + "value": "false", + "display": "false" + } + } + ] + } + } + ], + "fees": [], + "outputs": [], + "version": 2, + "skipSummary": false, + "declaration": "
\n

Your responses may be shared with your local UKHSA health protection team, your local authority community infection control team, and the NHS. They will use your information to help you to manage your situation.
\n

By submitting this report you confirm that the details you are providing are correct to the best of your knowledge. You confirm that you have not included any personally identifiable information, for example names or dates of birth

\n\n", + "name": "Report an outbreak", + "feedback": { + "feedbackForm": true, + "url": "" + }, + "phaseBanner": { + "phase": "beta" + }, + "specialPages": { + "confirmationPage": { + "customText": { + "nextSteps": "We will send 2 automated emails to {{ S1Q8 }}", + "title": "Report sent" + } + } + } +} From 1603560861bfad8b4cfc06b9fa0edb15638da788 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Sun, 8 Dec 2024 09:38:55 +0000 Subject: [PATCH 02/10] add html to summary pages and report sent page --- runner/src/server/forms/ReportAnOutbreak.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index 8c1a055a4..2df952c5f 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -204,6 +204,14 @@ { "path": "/check-answers", "title": "Check your answers before continuing", + "components": [ + { + "name": "rofomf", + "options": {}, + "type": "Para", + "content": "

Acute respiratory infections in your setting

Setting typeResidential care homeChange
Positive test resultYesChange
InfectionFluChange
" + } + ], "next": [ { "path": "/cases-of-flu" @@ -1077,7 +1085,7 @@ "name": "nMOTrx", "options": {}, "type": "Para", - "content": "

Check your answers before sending your report

\n", + "content": "

Setting details

Your setting nameBelmont Care HomeChange
Your setting postcodeTQ5 0AHChange
Your local UKHSA health protection teamSouth West Health Protection TeamChange
Your Care Quality Commission (CQC) location ID000001888Change
Type of adult social care you provideResidential care homeChange

Contact details

Full name of contact personPat DeerfieldChange
Job title of contact personManagerChange
Telephone number07451300300Change
Email addressPat@cov.comChange

Infections you are reporting

Acute respiratory infections you are reportingFluChange
Number of cases of Flu you are reporting2 or moreChange
Symptoms in 2 or more cases of Flu started within 5 days of each otherYesChange
You think the cases of Flu could be linked by spread in your settingYesChange
At least one case of Flu has been confirmed by a positive testYesChange

Service users and staff

How would you describe the majority of your service usersService users, staffChange
Number of people that currently live in your setting or use your service27Change
Number of staff that work in your care setting or service7Change
Number of empty beds (optional)3Change

Flu in your setting

You are reporting cases or symptoms of Flu in service users or staff2Change
Number of service users who have Flu confirmed by a test5Change
Number of service users who have symptoms of an acute respiratory infection, but have not been tested for Flu5Change
Number of staff members who have Flu confirmed by a test1Change
Number of staff who have symptoms of an acute respiratory infection, but have not been tested for Flu2Change
Date symptoms started in the first case of Flu02 August 2024Change
Date symptoms started in the second case of Flu (optional)N/AChange
Date symptoms started in the most recent case of Flu10 August 2024Change

Vaccination among your staff and service users

Number of service users who have had the flu vaccine for this current winter season (optional)20Change
Number of staff who have had the flu vaccine for this current winter season (optional)6Change

Infection prevention and control (IPC) and outbreak management in your setting

How often are you monitoring staff IPC practicesWithin the last monthChange
Issues you are currently experiencing and need support withTest kit supplyChange
Your setting undertakes aerosol generating procedures (AGPs)YesChange
Staff carrying out aerosol generating procedures, wear fit-tested and FFP3 masksAllChange

Staffing

You use agency staff or share staff with other care settingsYesChange
Number of additional agency staff or staff shared with settings you have used during this outbreakFewer than 5Change
Your responses must be shared with your local Health Protection team and Local Authority infection control team and they will use them to help you to manage your situation.
", "schema": {} } ], @@ -1089,13 +1097,13 @@ }, { "path": "/reportSent", - "title": "Service users and staff", + "title": "", "components": [ { "name": "nMOTrx", "options": {}, "type": "Para", - "content": "

Report Sent

\n", + "content": "

Report sent

Your reference number
OS-5371

Your outbreak reference number

Your reference number is: OS-5371. Use this number if you need to contact the UKHSA health protection team about your outbreak.

What happens next

We will send 2 automated emails to Pel@coy.com.

An acknowledgement email will give you your reference number and a copy of the information you've provided. The email will tell you if you have a low-risk outbreak, a medium-risk outbreak, a high-priority outbreak, or a single case of flu.

An advice email will give you information specific to your situation to help you prevent the spread of infection. It explains what to expect from your local UKHSA health protection team or the community infection control team.

If these emails do not arrive within one hour, or you need urgent advice, telephone your local UKHSA health protection team or community infection control team.

If your outbreak is high priority on a weekend or bank holiday

If your acknowledgement or advice email tells you that your outbreak is assessed as high priority on a weekend or a bank holiday, you also need to telephone your local UKHSA health protection team. Call during the daytime if possible. If you do not call the health protection team, a member of the health protection team will only call you on the next working day.

If you need urgent medical advice

If you need urgent medical advice, you can call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies, call 999.

Give feedback on this service

This is a new service. Help us improve it and give your feedback.

", "schema": {} } ] From 808e5722def548ca0c8ee071cfdc589975530085 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:39:15 +0000 Subject: [PATCH 03/10] prototype changes --- runner/src/server/forms/ReportAnOutbreak.json | 244 ++++++++++-------- 1 file changed, 135 insertions(+), 109 deletions(-) diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index 2df952c5f..da3d5d0da 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -8,14 +8,18 @@ "components": [ { "name": "nMOTrx", - "options": {}, + "options": { + "required": false + }, "type": "Para", "content": "

Applies to England

\n", "schema": {} }, { "name": "nMOTry", - "options": {}, + "options": { + "required": false + }, "type": "Para", "content": "

\n You can use this service if you provide adult social care, such as a care home, retirement home, supported living or extra care.\n

Use this service to report:

\n

\n

ARIs include COVID-19, flu, respiratory syncytial virus (RSV), or unknown respiratory infection including chest infections.

\n

It should take about 10 minutes to complete.

\n\n

Before you start

\n

\n If possible, test all service users with symptoms who are eligible for COVID-19 treatments using a COVID-19 rapid lateral flow test. Staff with symptoms who are eligible for COVID-19 treatments should test themselves at home. \n

\n

\n If you cannot test people, do not wait. Report as soon as possible. \n

\n

\n You'll need to know the:\n

\n \n\n

Updating about an existing outbreak

\n

\n Do not use this online service to give an update on an outbreak or cluster of ARI that you've already reported. If you need to give an update, contact your local UKHSA health protection team or your community infection control team.\n

Identifying an ARI outbreak

\n

You only need to report 2 or more ARI cases if they could be linked by spread in your setting. If the infection could not have been spread in your setting, you should not report it as an outbreak. If in doubt, report as an outbreak.

\n

Do not use this service to report:

\n \n

Read more on:

\n \n

Why you should report an outbreak

\n

Your local UKHSA health protection team, or the community infection control team, will use your information to assess your outbreak. They will help you manage the outbreak and prevent further spread.

\n

Get help

\n

If you need help using the service or have any other questions, contact your local UKHSA health protection team during working hours.

\n

If your enquiry is urgent outside of working hours, telephone your health protection team's out-of-hours service.

\n

If you need urgent medical advice

\n

If you need urgent medical advice, you should call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies, call 999.

\n", "schema": {} @@ -34,7 +38,9 @@ "components": [ { "name": "S4Q9", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "What type of adult social care do you provide?", @@ -57,7 +63,9 @@ "components": [ { "name": "PositiveARI", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Do you have any positive test results for an acute respiratory infection?", @@ -84,7 +92,9 @@ "components": [ { "name": "WhichARI", - "options": {}, + "options": { + "required": false + }, "type": "CheckboxesField", "nameHasError": false, "title": "Which acute respiratory infections do you have a positive test result for? ", @@ -115,7 +125,9 @@ "components": [ { "name": "TwoOrMoreCovid", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Are you reporting 2 or more cases of COVID-19?", @@ -140,7 +152,9 @@ "components": [ { "name": "TwoOrMoreCovid5days", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "Did symptoms in 2 or more cases of COVID-19 start within 5 days of each other?", @@ -151,7 +165,9 @@ }, { "name": "TwoOrMoreCovidSpread", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "Is it possible that at least 2 of the cases of COVID-19 are linked by spread in your setting?​", @@ -177,7 +193,9 @@ "components": [ { "name": "TwoOrMoreARI", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Are you reporting 2 or more cases of an acute respiratory infection?", @@ -207,14 +225,16 @@ "components": [ { "name": "rofomf", - "options": {}, + "options": { + "required": false + }, "type": "Para", "content": "

Acute respiratory infections in your setting

Setting typeResidential care homeChange
Positive test resultYesChange
InfectionFluChange
" } ], "next": [ { - "path": "/cases-of-flu" + "path": "/multiple-cases-flu-service-users" } ] }, @@ -224,7 +244,9 @@ "components": [ { "name": "TwoOrMoreCasesNotCovidFlu", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Are you reporting 2 or more cases of an acute respiratory infection that is not COVID-19 or flu?", @@ -249,7 +271,9 @@ "components": [ { "name": "ARIinfectionType", - "options": {}, + "options": { + "required": false + }, "type": "CheckboxesField", "nameHasError": false, "title": "What infection are you reporting?", @@ -269,65 +293,15 @@ } ] }, - { - "path": "/cases-of-flu", - "title": "How many cases of flu are you reporting?", - "components": [ - { - "name": "NumberOfCasesOfFlu", - "options": {}, - "type": "RadiosField", - "nameHasError": false, - "title": "How many cases of flu are you reporting?", - "list": "OneOrMore", - "values": { - "type": "listRef" - } - } - ], - "next": [ - { - "path": "/single-case-of-flu", - "condition": "NumberOfCasesOfFlu:One" - }, - { - "path": "/multiple-cases-of-flu" - } - ] - }, - { - "path": "/single-case-of-flu", - "title": "Who has the case of flu?", - "components": [ - { - "name": "SingleCaseOfFluServiceOrStaff", - "options": {}, - "type": "RadiosField", - "nameHasError": false, - "title": "Who has the case of flu?", - "list": "ServiceOrStaff", - "values": { - "type": "listRef" - } - } - ], - "next": [ - { - "path": "/symptom-onset-flu", - "condition": "SingleCaseOfFluServiceUserOrStaff:ServiceUser" - }, - { - "path": "/vaccination" - } - ] - }, { "path": "/multiple-cases-of-flu", "title": "Who are you reporting cases or symptoms of flu in?", "components": [ { "name": "MultipleCasesOfFluServiceOrStaff", - "options": {}, + "options": { + "required": false + }, "type": "CheckboxesField", "nameHasError": false, "title": "Who are you reporting cases or symptoms of flu in?", @@ -353,7 +327,9 @@ "components": [ { "name": "ServiceUsersFluSwabTest", - "options": {}, + "options": { + "required": false + }, "type": "NumberField", "schema": { "min": 0, @@ -365,7 +341,9 @@ }, { "name": "ServiceUsersSuspectedFlu", - "options": {}, + "options": { + "required": false + }, "type": "NumberField", "schema": { "min": 0, @@ -420,11 +398,7 @@ ], "next": [ { - "path": "/multiple-cases-flu-staff", - "condition": "MultipleCasesOfFluServiceOrStaff:ServiceUsersAndStaff" - }, - { - "path": "/symptom-onset-flu-multiple-cases" + "path": "/multiple-cases-flu-staff" } ] }, @@ -434,7 +408,9 @@ "components": [ { "name": "ServiceUsersFluSwabTest", - "options": {}, + "options": { + "required": false + }, "type": "NumberField", "schema": { "min": 0, @@ -446,7 +422,9 @@ }, { "name": "StaffSuspectedFlu", - "options": {}, + "options": { + "required": false + }, "type": "NumberField", "schema": { "min": 0, @@ -511,7 +489,9 @@ "components": [ { "name": "FluSymptomOnsetDate", - "options": {}, + "options": { + "required": false + }, "type": "DatePartsField", "nameHasError": false, "title": "When did symptoms start?", @@ -533,7 +513,9 @@ "components": [ { "name": "FluSeverityCalledGP", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Have you called the GP because of the severity of illness in this case?", @@ -543,7 +525,9 @@ }, { "name": "FluSeverityHospitalised", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Has the person been hospitalised with the flu?", @@ -553,7 +537,9 @@ }, { "name": "FluSeverityDeath", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Has the person died with flu in this case?", @@ -665,7 +651,9 @@ "components": [ { "name": "IPCPractices", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "How often do you monitor staff IPC practices?", @@ -677,7 +665,9 @@ }, { "name": "Issues", - "options": {}, + "options": { + "required": false + }, "type": "CheckboxesField", "nameHasError": false, "title": "What issues are you currently experiencing and need support with?", @@ -689,7 +679,9 @@ }, { "name": "AGPs", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Does your setting undertake aerosol generating procedures (AGPs)?", @@ -701,11 +693,7 @@ ], "next": [ { - "path": "/agps", - "condition": "AGPs:yes" - }, - { - "path": "/agency-staff" + "path": "/setting-details" } ] }, @@ -715,7 +703,9 @@ "components": [ { "name": "FluSymptomOnsetDateFirstCase", - "options": {}, + "options": { + "required": false + }, "type": "DatePartsField", "nameHasError": false, "title": "When did symptoms start in the first case of confirmed or suspected flu, or chest infection?", @@ -726,7 +716,9 @@ }, { "name": "FluSymptomOnsetDateSecondCase", - "options": {}, + "options": { + "required": false + }, "type": "DatePartsField", "nameHasError": false, "title": "When did symptoms start in the second case of confirmed or suspected flu, or chest infection?", @@ -761,7 +753,9 @@ "components": [ { "name": "FluSeverityCalledGPMultipleCases", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "How many cases of suspected or confirmed flu or chest infection have you called the GP about because of the severity of illness in this outbreak?", @@ -772,7 +766,9 @@ }, { "name": "FluSeverityHospitalisedMultipleCases", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "How many service users or staff have been hospitalised because of confirmed or suspected flu or chest infection in this outbreak?", @@ -783,7 +779,9 @@ }, { "name": "FluSeverityDeathMultipleCases", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "How many service users or staff have died because of confirmed or suspected flu or chest infection in this outbreak?", @@ -795,7 +793,7 @@ ], "next": [ { - "path": "/vaccination" + "path": "/ipc" } ] }, @@ -805,7 +803,9 @@ "components": [ { "name": "FFP3Masks", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "Do staff carrying out aerosol generating procedures (AGPs) wear fit-tested FFP3 masks?", @@ -827,7 +827,9 @@ "components": [ { "name": "AgencyStaff", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Do you use agency staff or share staff with other care settings?", @@ -852,7 +854,9 @@ "components": [ { "name": "AdditionalStaff", - "options": {}, + "options": { + "required": false + }, "type": "RadiosField", "nameHasError": false, "title": "How many additional agency staff or staff from other care settings have you used during this outbreak?", @@ -874,7 +878,9 @@ "components": [ { "name": "SettingName", - "options": {}, + "options": { + "required": false + }, "type": "TextField", "nameHasError": false, "title": "Your setting name", @@ -885,7 +891,9 @@ }, { "name": "SettingPostcode", - "options": {}, + "options": { + "required": false + }, "type": "TextField", "nameHasError": false, "title": "Your setting postcode", @@ -897,7 +905,7 @@ { "name": "S0Q3", "options": { - "required": true, + "required": false, "customValidationMessages": { "string.empty": "Your local UKHSA health protection team is required", "string.base": "Your local UKHSA health protection team is required" @@ -914,7 +922,9 @@ }, { "name": "CQCRegistered", - "options": {}, + "options": { + "required": false + }, "type": "YesNoField", "nameHasError": false, "title": "Is your care setting registered with the Care Quality Commission (CQC)?", @@ -935,7 +945,9 @@ "components": [ { "name": "MainContactName", - "options": {}, + "options": { + "required": false + }, "type": "TextField", "nameHasError": false, "title": "Full name", @@ -958,7 +970,9 @@ }, { "name": "MainContactPhoneNumber", - "options": {}, + "options": { + "required": false + }, "type": "TextField", "nameHasError": false, "title": "Phone number", @@ -968,7 +982,9 @@ }, { "name": "MainContactEmailAddress", - "options": {}, + "options": { + "required": false + }, "type": "TextField", "nameHasError": false, "title": "Email address", @@ -1028,7 +1044,7 @@ ], "next": [ { - "path": "/service-users" + "path": "/summaryPage" } ] }, @@ -1038,7 +1054,9 @@ "components": [ { "name": "ServiceUsersTypes", - "options": {}, + "options": { + "required": false + }, "type": "CheckboxesField", "nameHasError": false, "title": "Select the options that best describe the majority of your service users", @@ -1049,7 +1067,9 @@ }, { "name": "ServiceUsersCurrentlyLive", - "options": {}, + "options": { + "required": false + }, "type": "NumberField", "nameHasError": false, "schema": { @@ -1061,7 +1081,9 @@ }, { "name": "ServiceUsersNumber", - "options": {}, + "options": { + "required": false + }, "type": "NumberField", "schema": { "min": 0, @@ -1083,7 +1105,9 @@ "components": [ { "name": "nMOTrx", - "options": {}, + "options": { + "required": false + }, "type": "Para", "content": "

Setting details

Your setting nameBelmont Care HomeChange
Your setting postcodeTQ5 0AHChange
Your local UKHSA health protection teamSouth West Health Protection TeamChange
Your Care Quality Commission (CQC) location ID000001888Change
Type of adult social care you provideResidential care homeChange

Contact details

Full name of contact personPat DeerfieldChange
Job title of contact personManagerChange
Telephone number07451300300Change
Email addressPat@cov.comChange

Infections you are reporting

Acute respiratory infections you are reportingFluChange
Number of cases of Flu you are reporting2 or moreChange
Symptoms in 2 or more cases of Flu started within 5 days of each otherYesChange
You think the cases of Flu could be linked by spread in your settingYesChange
At least one case of Flu has been confirmed by a positive testYesChange

Service users and staff

How would you describe the majority of your service usersService users, staffChange
Number of people that currently live in your setting or use your service27Change
Number of staff that work in your care setting or service7Change
Number of empty beds (optional)3Change

Flu in your setting

You are reporting cases or symptoms of Flu in service users or staff2Change
Number of service users who have Flu confirmed by a test5Change
Number of service users who have symptoms of an acute respiratory infection, but have not been tested for Flu5Change
Number of staff members who have Flu confirmed by a test1Change
Number of staff who have symptoms of an acute respiratory infection, but have not been tested for Flu2Change
Date symptoms started in the first case of Flu02 August 2024Change
Date symptoms started in the second case of Flu (optional)N/AChange
Date symptoms started in the most recent case of Flu10 August 2024Change

Vaccination among your staff and service users

Number of service users who have had the flu vaccine for this current winter season (optional)20Change
Number of staff who have had the flu vaccine for this current winter season (optional)6Change

Infection prevention and control (IPC) and outbreak management in your setting

How often are you monitoring staff IPC practicesWithin the last monthChange
Issues you are currently experiencing and need support withTest kit supplyChange
Your setting undertakes aerosol generating procedures (AGPs)YesChange
Staff carrying out aerosol generating procedures, wear fit-tested and FFP3 masksAllChange

Staffing

You use agency staff or share staff with other care settingsYesChange
Number of additional agency staff or staff shared with settings you have used during this outbreakFewer than 5Change
Your responses must be shared with your local Health Protection team and Local Authority infection control team and they will use them to help you to manage your situation.
", "schema": {} @@ -1101,7 +1125,9 @@ "components": [ { "name": "nMOTrx", - "options": {}, + "options": { + "required": false + }, "type": "Para", "content": "

Report sent

Your reference number
OS-5371

Your outbreak reference number

Your reference number is: OS-5371. Use this number if you need to contact the UKHSA health protection team about your outbreak.

What happens next

We will send 2 automated emails to Pel@coy.com.

An acknowledgement email will give you your reference number and a copy of the information you've provided. The email will tell you if you have a low-risk outbreak, a medium-risk outbreak, a high-priority outbreak, or a single case of flu.

An advice email will give you information specific to your situation to help you prevent the spread of infection. It explains what to expect from your local UKHSA health protection team or the community infection control team.

If these emails do not arrive within one hour, or you need urgent advice, telephone your local UKHSA health protection team or community infection control team.

If your outbreak is high priority on a weekend or bank holiday

If your acknowledgement or advice email tells you that your outbreak is assessed as high priority on a weekend or a bank holiday, you also need to telephone your local UKHSA health protection team. Call during the daytime if possible. If you do not call the health protection team, a member of the health protection team will only call you on the next working day.

If you need urgent medical advice

If you need urgent medical advice, you can call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies, call 999.

Give feedback on this service

This is a new service. Help us improve it and give your feedback.

", "schema": {} From 4148ffbef519d5d1e490b997c599d7089e40a88e Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:50:11 +0000 Subject: [PATCH 04/10] add postcode link --- runner/src/server/forms/ReportAnOutbreak.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index da3d5d0da..f607b412c 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -920,6 +920,13 @@ "type": "listRef" } }, + { + "name": "nMOTry", + "options": {}, + "type": "Para", + "content": "\n Use your postcode to find your local health protection team (opens in a new tab)\n", + "schema": {} + }, { "name": "CQCRegistered", "options": { From af37d477dd7838b15964d9dc6d2c965def19cd01 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:40:30 +0000 Subject: [PATCH 05/10] prototype modifications - remove extra start button, contact details h2s, confirm answers text, setting details links --- runner/src/server/forms/ReportAnOutbreak.json | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index f607b412c..a1e1a8d17 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -30,7 +30,8 @@ "path": "/setting" } ], - "controller": "./pages/start.js" + "controller": "MultiStartPageController", + "showContinueButton": false }, { "path": "/setting", @@ -938,6 +939,13 @@ "values": { "type": "listRef" } + }, + { + "name": "nMOTdlmry", + "options": {}, + "type": "Para", + "content": "\n Find your CQC location ID in the care directory on the CQC website (opens in a new tab)\n", + "schema": {} } ], "next": [ @@ -950,6 +958,15 @@ "path": "/contact-details", "title": "Contact details", "components": [ + { + "name": "heading1", + "options": { + "required": false + }, + "type": "Para", + "content": "

Provide a contact who will be available to receive:

If possible, provide a work phone number and email address instead of personal contact details.

Main contact person

", + "schema": {} + }, { "name": "MainContactName", "options": { @@ -999,6 +1016,15 @@ "type": "listRef" } }, + { + "name": "heading1", + "options": { + "required": false + }, + "type": "Para", + "content": "

Alternative contact

Enter details for an alternative contact if you want the emails to also be sent to a second contact person. We will use this phone number for a follow up call if the main contact is not available.

", + "schema": {} + }, { "name": "AltContactName", "options": { @@ -1108,7 +1134,7 @@ }, { "path": "/summaryPage", - "title": "Check your answers before submitting your report", + "title": "Check your answers before sending your report", "components": [ { "name": "nMOTrx", @@ -1116,7 +1142,7 @@ "required": false }, "type": "Para", - "content": "

Setting details

Your setting nameBelmont Care HomeChange
Your setting postcodeTQ5 0AHChange
Your local UKHSA health protection teamSouth West Health Protection TeamChange
Your Care Quality Commission (CQC) location ID000001888Change
Type of adult social care you provideResidential care homeChange

Contact details

Full name of contact personPat DeerfieldChange
Job title of contact personManagerChange
Telephone number07451300300Change
Email addressPat@cov.comChange

Infections you are reporting

Acute respiratory infections you are reportingFluChange
Number of cases of Flu you are reporting2 or moreChange
Symptoms in 2 or more cases of Flu started within 5 days of each otherYesChange
You think the cases of Flu could be linked by spread in your settingYesChange
At least one case of Flu has been confirmed by a positive testYesChange

Service users and staff

How would you describe the majority of your service usersService users, staffChange
Number of people that currently live in your setting or use your service27Change
Number of staff that work in your care setting or service7Change
Number of empty beds (optional)3Change

Flu in your setting

You are reporting cases or symptoms of Flu in service users or staff2Change
Number of service users who have Flu confirmed by a test5Change
Number of service users who have symptoms of an acute respiratory infection, but have not been tested for Flu5Change
Number of staff members who have Flu confirmed by a test1Change
Number of staff who have symptoms of an acute respiratory infection, but have not been tested for Flu2Change
Date symptoms started in the first case of Flu02 August 2024Change
Date symptoms started in the second case of Flu (optional)N/AChange
Date symptoms started in the most recent case of Flu10 August 2024Change

Vaccination among your staff and service users

Number of service users who have had the flu vaccine for this current winter season (optional)20Change
Number of staff who have had the flu vaccine for this current winter season (optional)6Change

Infection prevention and control (IPC) and outbreak management in your setting

How often are you monitoring staff IPC practicesWithin the last monthChange
Issues you are currently experiencing and need support withTest kit supplyChange
Your setting undertakes aerosol generating procedures (AGPs)YesChange
Staff carrying out aerosol generating procedures, wear fit-tested and FFP3 masksAllChange

Staffing

You use agency staff or share staff with other care settingsYesChange
Number of additional agency staff or staff shared with settings you have used during this outbreakFewer than 5Change
Your responses must be shared with your local Health Protection team and Local Authority infection control team and they will use them to help you to manage your situation.
", + "content": "

Setting details

Your setting nameBelmont Care HomeChange
Your setting postcodeTQ5 0AHChange
Your local UKHSA health protection teamSouth West Health Protection TeamChange
Your Care Quality Commission (CQC) location ID000001888Change
Type of adult social care you provideResidential care homeChange

Contact details

Full name of contact personPat DeerfieldChange
Job title of contact personManagerChange
Telephone number07451300300Change
Email addressPat@cov.comChange

Infections you are reporting

Acute respiratory infections you are reportingFluChange
Number of cases of Flu you are reporting2 or moreChange
Symptoms in 2 or more cases of Flu started within 5 days of each otherYesChange
You think the cases of Flu could be linked by spread in your settingYesChange
At least one case of Flu has been confirmed by a positive testYesChange

Service users and staff

How would you describe the majority of your service usersService users, staffChange
Number of people that currently live in your setting or use your service27Change
Number of staff that work in your care setting or service7Change
Number of empty beds (optional)3Change

Flu in your setting

You are reporting cases or symptoms of Flu in service users or staff2Change
Number of service users who have Flu confirmed by a test5Change
Number of service users who have symptoms of an acute respiratory infection, but have not been tested for Flu5Change
Number of staff members who have Flu confirmed by a test1Change
Number of staff who have symptoms of an acute respiratory infection, but have not been tested for Flu2Change
Date symptoms started in the first case of Flu02 August 2024Change
Date symptoms started in the second case of Flu (optional)N/AChange
Date symptoms started in the most recent case of Flu10 August 2024Change

Vaccination among your staff and service users

Number of service users who have had the flu vaccine for this current winter season (optional)20Change
Number of staff who have had the flu vaccine for this current winter season (optional)6Change

Infection prevention and control (IPC) and outbreak management in your setting

How often are you monitoring staff IPC practicesWithin the last monthChange
Issues you are currently experiencing and need support withTest kit supplyChange
Your setting undertakes aerosol generating procedures (AGPs)YesChange
Staff carrying out aerosol generating procedures, wear fit-tested and FFP3 masksAllChange

Staffing

You use agency staff or share staff with other care settingsYesChange
Number of additional agency staff or staff shared with settings you have used during this outbreakFewer than 5Change

Now send your report

Your responses may be shared with your local UKHSA health protection team, your local authority community infection control team, and the NHS. They will use your information to help you to manage your situation.

By submitting this report you confirm that the details you are providing are correct to the best of your knowledge. You confirm that you have not included any personally identifiable information, for example names or dates of birth.

", "schema": {} } ], From 922b04f60437f8f5bfae7791a825954e34aeb771 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:44:55 +0000 Subject: [PATCH 06/10] update hint text postcode --- runner/src/server/forms/ReportAnOutbreak.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index a1e1a8d17..584bf94b9 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -898,7 +898,7 @@ "type": "TextField", "nameHasError": false, "title": "Your setting postcode", - "hint": "The postcode of the setting where the cases are located, not the management company", + "hint": "The postcode of the setting where the cases are located, not the management company. If you provide domiciliary or home care, give the postcode of the care provider company", "values": { "type": "listRef" } From 87e9579ed0eaf6e02336041dfd8b6b13a93f9105 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:52:34 +0000 Subject: [PATCH 07/10] update prototype text on positive test results question --- runner/src/server/forms/ReportAnOutbreak.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/src/server/forms/ReportAnOutbreak.json b/runner/src/server/forms/ReportAnOutbreak.json index 584bf94b9..df55a89cf 100644 --- a/runner/src/server/forms/ReportAnOutbreak.json +++ b/runner/src/server/forms/ReportAnOutbreak.json @@ -70,7 +70,7 @@ "type": "YesNoField", "nameHasError": false, "title": "Do you have any positive test results for an acute respiratory infection?", - "hint": "Acute respiratory infections include COVID-19, flu, respiratory syncytial virus (RSV), adenovirus, human metapneumovirus (hMPV), parainfluenza and rhinovirus", + "hint": "The infection must have been confirmed by a test, for example a lateral flow test, flu swab test or a laboratory test.", "schema": {}, "values": { "type": "listRef" From 328c449f81ff143b310b384db1dbba3f14054cb7 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:22:28 +0000 Subject: [PATCH 08/10] upgrade prisma to 6.1.0 --- runner/package.json | 2 +- yarn.lock | 87 ++++++++++++++++++++++++++++++++++++++------- 2 files changed, 75 insertions(+), 14 deletions(-) diff --git a/runner/package.json b/runner/package.json index 86121bb07..445736da4 100644 --- a/runner/package.json +++ b/runner/package.json @@ -122,7 +122,7 @@ "lodash-es": "^4.17.21", "nodemon": "^3.0.2", "pino": "8.15.1", - "prisma": "^5.1.1", + "prisma": "^6.1.0", "sass": "^1.49.9", "sinon": "^13.0.1", "typescript": "4.9.5" diff --git a/yarn.lock b/yarn.lock index 3825b2f0a..7c9009464 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3688,6 +3688,13 @@ __metadata: languageName: node linkType: hard +"@prisma/debug@npm:6.1.0": + version: 6.1.0 + resolution: "@prisma/debug@npm:6.1.0" + checksum: bf0ea217cae6c1cdbf1e90abe578cc104dd734741bad773c9a850a0b0e606982d46a0ebef7d77d0403b3a46a1745d498d40f5064a1c4697bccdc0de72fcaa763 + languageName: node + linkType: hard + "@prisma/engines-version@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584": version: 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584 resolution: "@prisma/engines-version@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584" @@ -3702,6 +3709,13 @@ __metadata: languageName: node linkType: hard +"@prisma/engines-version@npm:6.1.0-21.11f085a2012c0f4778414c8db2651556ee0ef959": + version: 6.1.0-21.11f085a2012c0f4778414c8db2651556ee0ef959 + resolution: "@prisma/engines-version@npm:6.1.0-21.11f085a2012c0f4778414c8db2651556ee0ef959" + checksum: d558cc390eb8ca1f07426bf06f67a6c8f9dc2ad15d4d49f613113cfd1355e9f389f89eb85807acdd031330824c80664247baefb2e280dff02a39d97e2172627c + languageName: node + linkType: hard + "@prisma/engines@npm:5.8.0": version: 5.8.0 resolution: "@prisma/engines@npm:5.8.0" @@ -3714,6 +3728,18 @@ __metadata: languageName: node linkType: hard +"@prisma/engines@npm:6.1.0": + version: 6.1.0 + resolution: "@prisma/engines@npm:6.1.0" + dependencies: + "@prisma/debug": 6.1.0 + "@prisma/engines-version": 6.1.0-21.11f085a2012c0f4778414c8db2651556ee0ef959 + "@prisma/fetch-engine": 6.1.0 + "@prisma/get-platform": 6.1.0 + checksum: 368e66a8ef8d045d0c88c09ae1e128a740bcb29e8111245137c24e4878e73a9342ec0b9a74dce6b5df8a5a3af618de681bd52e99c6406c5256ea5a64279ab623 + languageName: node + linkType: hard + "@prisma/fetch-engine@npm:5.8.0": version: 5.8.0 resolution: "@prisma/fetch-engine@npm:5.8.0" @@ -3725,6 +3751,17 @@ __metadata: languageName: node linkType: hard +"@prisma/fetch-engine@npm:6.1.0": + version: 6.1.0 + resolution: "@prisma/fetch-engine@npm:6.1.0" + dependencies: + "@prisma/debug": 6.1.0 + "@prisma/engines-version": 6.1.0-21.11f085a2012c0f4778414c8db2651556ee0ef959 + "@prisma/get-platform": 6.1.0 + checksum: e1f85b54cf99dca01f3303c1c4f0f7d62191a6b44c11dbd3fb4545217f277e268f1d8aa691d7449d7231d30937352212cc5ca78b8059d4ab71097d6b29c7091f + languageName: node + linkType: hard + "@prisma/get-platform@npm:5.8.0": version: 5.8.0 resolution: "@prisma/get-platform@npm:5.8.0" @@ -3734,6 +3771,15 @@ __metadata: languageName: node linkType: hard +"@prisma/get-platform@npm:6.1.0": + version: 6.1.0 + resolution: "@prisma/get-platform@npm:6.1.0" + dependencies: + "@prisma/debug": 6.1.0 + checksum: f849d7c71553d389352447e095a05094cfd4a4280f9479576c800def5ec182a33c33783ac5f2bb1e08d017dca7dab505da50cb3cdb9813b5ad7589b2561b5824 + languageName: node + linkType: hard + "@sideway/address@npm:^4.1.3": version: 4.1.4 resolution: "@sideway/address@npm:4.1.4" @@ -5185,7 +5231,7 @@ __metadata: nunjucks: ^3.2.3 pg-boss: ^10.1.3 pino: 8.15.1 - prisma: ^5.1.1 + prisma: ^6.1.0 resolve: ^1.19.0 sass: ^1.49.9 schmervice: ^1.6.0 @@ -11035,6 +11081,16 @@ __metadata: languageName: node linkType: hard +"fsevents@npm:2.3.3, fsevents@npm:^2.1.2, fsevents@npm:^2.3.2, fsevents@npm:~2.3.2": + version: 2.3.3 + resolution: "fsevents@npm:2.3.3" + dependencies: + node-gyp: latest + checksum: 11e6ea6fea15e42461fc55b4b0e4a0a3c654faa567f1877dbd353f39156f69def97a69936d1746619d656c4b93de2238bf731f6085a03a50cabf287c9d024317 + conditions: os=darwin + languageName: node + linkType: hard + "fsevents@npm:^1.2.7": version: 1.2.13 resolution: "fsevents@npm:1.2.13" @@ -11046,12 +11102,11 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.1.2, fsevents@npm:^2.3.2, fsevents@npm:~2.3.2": +"fsevents@patch:fsevents@2.3.3#~builtin, fsevents@patch:fsevents@^2.1.2#~builtin, fsevents@patch:fsevents@^2.3.2#~builtin, fsevents@patch:fsevents@~2.3.2#~builtin": version: 2.3.3 - resolution: "fsevents@npm:2.3.3" + resolution: "fsevents@patch:fsevents@npm%3A2.3.3#~builtin::version=2.3.3&hash=18f3a7" dependencies: node-gyp: latest - checksum: 11e6ea6fea15e42461fc55b4b0e4a0a3c654faa567f1877dbd353f39156f69def97a69936d1746619d656c4b93de2238bf731f6085a03a50cabf287c9d024317 conditions: os=darwin languageName: node linkType: hard @@ -11066,15 +11121,6 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@^2.1.2#~builtin, fsevents@patch:fsevents@^2.3.2#~builtin, fsevents@patch:fsevents@~2.3.2#~builtin": - version: 2.3.3 - resolution: "fsevents@patch:fsevents@npm%3A2.3.3#~builtin::version=2.3.3&hash=18f3a7" - dependencies: - node-gyp: latest - conditions: os=darwin - languageName: node - linkType: hard - "function-bind@npm:^1.1.1, function-bind@npm:^1.1.2": version: 1.1.2 resolution: "function-bind@npm:1.1.2" @@ -17454,6 +17500,21 @@ __metadata: languageName: node linkType: hard +"prisma@npm:^6.1.0": + version: 6.1.0 + resolution: "prisma@npm:6.1.0" + dependencies: + "@prisma/engines": 6.1.0 + fsevents: 2.3.3 + dependenciesMeta: + fsevents: + optional: true + bin: + prisma: build/index.js + checksum: 062a940927c60a4ffbdb48d36e301bffb5dcfaddcfa4d4b5ae2cb9854bbfd9c5c6fb3e74a0b7242a1d09c743c2ef817552a788c3ed73e85625373ca0eb6f606a + languageName: node + linkType: hard + "prismjs@npm:1.27.0": version: 1.27.0 resolution: "prismjs@npm:1.27.0" From 1beab6adbceb52ae68737126ea4ce111947f8e70 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:42:25 +0000 Subject: [PATCH 09/10] upgrade prisma 6.1.0 --- package.json | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 16c47c709..3f1bcf471 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "lint-staged": "^10.4.2", "magic-string": "^0.25.7", "prettier": "2.1.2", - "prisma": "^5.1.1", + "prisma": "^6.1.0", "typedoc": "~0.23.17", "typescript": "4.9.5" }, diff --git a/yarn.lock b/yarn.lock index 7c9009464..a2e67f10c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8679,7 +8679,7 @@ __metadata: lint-staged: ^10.4.2 magic-string: ^0.25.7 prettier: 2.1.2 - prisma: ^5.1.1 + prisma: ^6.1.0 typedoc: ~0.23.17 typescript: 4.9.5 languageName: unknown From 67bde490d98d1b46f4e615e5f79f4d9ea162b513 Mon Sep 17 00:00:00 2001 From: emilyjevans <30391244+emilyjevans@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:51:58 +0000 Subject: [PATCH 10/10] bump prisma version in queue-model --- queue-model/package.json | 4 ++-- yarn.lock | 21 ++++++--------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/queue-model/package.json b/queue-model/package.json index 0d5c98ef6..7b9563cf5 100644 --- a/queue-model/package.json +++ b/queue-model/package.json @@ -32,10 +32,10 @@ "eslint": "^8.10.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-tsdoc": "^0.2.14", - "prisma": "^5.1.1", + "prisma": "^6.1.0", "typescript": "4.9.5" }, "dependencies": { - "@prisma/client": "5.0.0" + "@prisma/client": "^6.1.0" } } diff --git a/yarn.lock b/yarn.lock index a2e67f10c..ff776aaab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3667,17 +3667,15 @@ __metadata: languageName: node linkType: hard -"@prisma/client@npm:5.0.0": - version: 5.0.0 - resolution: "@prisma/client@npm:5.0.0" - dependencies: - "@prisma/engines-version": 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584 +"@prisma/client@npm:^6.1.0": + version: 6.1.0 + resolution: "@prisma/client@npm:6.1.0" peerDependencies: prisma: "*" peerDependenciesMeta: prisma: optional: true - checksum: 332c2af44e880ffc9dd1223992bf6f45910094c7a3a540cbbfdda45d6caf3e82998376338abdf85e34a12f1082ae932f2385d6396c62fe4bba7ec6b84de54466 + checksum: 1b7e5797ea29f5bdb1c4419894cd3853ef8d3fc35bdc2a296c08a1fa695c50b413bc9f3c495c878198145f0ebe04ae18bb0d2265cba08b2fa982c372f99fcc63 languageName: node linkType: hard @@ -3695,13 +3693,6 @@ __metadata: languageName: node linkType: hard -"@prisma/engines-version@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584": - version: 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584 - resolution: "@prisma/engines-version@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584" - checksum: 8fcbceef3b554ee7fa404bead50be5286412a097b21723272aff298b289caf2802b01b84bb85c4c9f3b592eeac114c8d6e79db083f271dc8c54f453b4a515233 - languageName: node - linkType: hard - "@prisma/engines-version@npm:5.8.0-37.0a83d8541752d7582de2ebc1ece46519ce72a848": version: 5.8.0-37.0a83d8541752d7582de2ebc1ece46519ce72a848 resolution: "@prisma/engines-version@npm:5.8.0-37.0a83d8541752d7582de2ebc1ece46519ce72a848" @@ -5136,13 +5127,13 @@ __metadata: "@babel/eslint-plugin": ^7.22.10 "@babel/preset-env": ^7.23.3 "@babel/preset-typescript": ^7.23.3 - "@prisma/client": 5.0.0 + "@prisma/client": ^6.1.0 "@types/node": ^20.4.6 babel-eslint: ^10.1.0 eslint: ^8.10.0 eslint-plugin-import: ^2.25.4 eslint-plugin-tsdoc: ^0.2.14 - prisma: ^5.1.1 + prisma: ^6.1.0 typescript: 4.9.5 languageName: unknown linkType: soft