@@ -20,6 +20,7 @@ enum VaccineType {
2020 WHOOPING_COUGH = "WHOOPING_COUGH" ,
2121 HIB_MENC = "HIB_MENC" ,
2222 FLU_IN_PREGNANCY = "FLU_IN_PREGNANCY" ,
23+ COVID_19 = "COVID_19" ,
2324}
2425
2526export type VaccineDetails = {
@@ -302,14 +303,36 @@ const VaccineInfo: Record<VaccineType, VaccineDetails> = {
302303 nbsPath : "flu-vaccine-in-pregnancy" as UrlPathFragment ,
303304 moreInformationHeadersFromContentApi : true ,
304305 } ,
306+ [ VaccineType . COVID_19 ] : {
307+ urlPath : "covid-19-vaccine" as UrlPathFragment ,
308+ displayName : {
309+ titleCase : "COVID-19" ,
310+ midSentenceCase : "COVID-19" ,
311+ indefiniteArticle : "a" ,
312+ } ,
313+ heading : "COVID-19 vaccine" ,
314+ cardLinkTitle : "COVID-19" ,
315+ nhsWebpageLink : new URL ( "https://www.nhs.uk/vaccinations/covid-19-vaccine/" ) ,
316+ nhsHowToGetWebpageLink : new URL ( "https://www.nhs.uk/vaccinations/covid-19-vaccine/#how-to-get-it" ) ,
317+ personalisedEligibilityStatusRequired : false ,
318+ contentPath : "vaccinations/covid-19-vaccine" as UrlPathFragment ,
319+ cacheFilename : "covid-19-vaccine.json" as Filename ,
320+ nbsPath : "covid-19-vaccine" as UrlPathFragment , // TODO VIA-603: Is this correct?
321+ } ,
305322} ;
306323
307324const vaccineUrlPathToVaccineType = new Map < UrlPathFragment , VaccineType > ( ) ;
308325Object . entries ( VaccineInfo ) . forEach ( ( [ vaccineType , vaccineDetails ] ) => {
309326 vaccineUrlPathToVaccineType . set ( vaccineDetails . urlPath , vaccineType as VaccineType ) ;
310327} ) ;
311328
312- const adultVaccines : VaccineType [ ] = [ VaccineType . RSV , VaccineType . SHINGLES , VaccineType . PNEUMOCOCCAL ] ;
329+ const adultVaccines : VaccineType [ ] = [
330+ VaccineType . RSV ,
331+ VaccineType . SHINGLES ,
332+ VaccineType . PNEUMOCOCCAL ,
333+ VaccineType . COVID_19 ,
334+ ] ;
335+
313336const pregnancyVaccines : VaccineType [ ] = [
314337 VaccineType . WHOOPING_COUGH ,
315338 VaccineType . RSV_PREGNANCY ,
0 commit comments