Skip to content

Commit f6ea586

Browse files
VIA-184 SB/EO Add Flu for adults vaccine page. Missing callout and recommendation
1 parent bb05f75 commit f6ea586

File tree

2 files changed

+103
-70
lines changed

2 files changed

+103
-70
lines changed

src/models/vaccine.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum VaccineType {
2121
HIB_MENC = "HIB_MENC",
2222
FLU_IN_PREGNANCY = "FLU_IN_PREGNANCY",
2323
COVID_19 = "COVID_19",
24+
FLU_FOR_ADULTS = "FLU_FOR_ADULTS",
2425
}
2526

2627
export type VaccineDetails = {
@@ -319,6 +320,22 @@ const VaccineInfo: Record<VaccineType, VaccineDetails> = {
319320
cacheFilename: "covid-19-vaccine.json" as Filename,
320321
nbsPath: "covid-19-vaccine" as UrlPathFragment, // TODO VIA-603: Is this correct?
321322
},
323+
[VaccineType.FLU_FOR_ADULTS]: {
324+
urlPath: "flu-vaccine" as UrlPathFragment,
325+
displayName: {
326+
titleCase: "Flu",
327+
midSentenceCase: "flu",
328+
indefiniteArticle: "a",
329+
},
330+
heading: "Flu vaccine",
331+
cardLinkTitle: "Flu",
332+
nhsWebpageLink: new URL("https://www.nhs.uk/vaccinations/flu-vaccine/"),
333+
nhsHowToGetWebpageLink: new URL("https://www.nhs.uk/vaccinations/flu-vaccine/#how-to-get-it"),
334+
personalisedEligibilityStatusRequired: false,
335+
contentPath: "vaccinations/flu-vaccine" as UrlPathFragment,
336+
cacheFilename: "flu-vaccine.json" as Filename,
337+
nbsPath: "path-to-be-removed" as UrlPathFragment,
338+
},
322339
};
323340

324341
const vaccineUrlPathToVaccineType = new Map<UrlPathFragment, VaccineType>();
@@ -327,10 +344,11 @@ Object.entries(VaccineInfo).forEach(([vaccineType, vaccineDetails]) => {
327344
});
328345

329346
const adultVaccines: VaccineType[] = [
347+
VaccineType.COVID_19,
348+
VaccineType.FLU_FOR_ADULTS,
330349
VaccineType.RSV,
331350
VaccineType.SHINGLES,
332351
VaccineType.PNEUMOCOCCAL,
333-
VaccineType.COVID_19,
334352
];
335353

336354
const pregnancyVaccines: VaccineType[] = [

0 commit comments

Comments
 (0)