diff --git a/workspace/apps/pidp/src/app/features/access/pages/access-requests-page/access-requests.page.ts b/workspace/apps/pidp/src/app/features/access/pages/access-requests-page/access-requests.page.ts index 146d0d4b7..1abdc2fed 100644 --- a/workspace/apps/pidp/src/app/features/access/pages/access-requests-page/access-requests.page.ts +++ b/workspace/apps/pidp/src/app/features/access/pages/access-requests-page/access-requests.page.ts @@ -110,7 +110,8 @@ export class AccessRequestsPage implements OnInit, OnDestroy { this.filteredAccessSections = access?.filter( (section) => section.heading.toLowerCase().includes(text.toLowerCase()) || - section.description.toLowerCase().includes(text.toLowerCase()), + section.description.toLowerCase().includes(text.toLowerCase()) || + section.keyWords?.includes(text.toLocaleLowerCase()) ); }); } diff --git a/workspace/apps/pidp/src/app/features/portal/state/access-section.model.ts b/workspace/apps/pidp/src/app/features/portal/state/access-section.model.ts index 9a7cfd375..4b7c48e8a 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access-section.model.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access-section.model.ts @@ -61,4 +61,9 @@ export interface IAccessSection { * Icon to be displayed on the card. */ icon: IconProp; + /** + @description + * Hidden Keywords for the card. + */ + keyWords?: string[]; } diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/account-linking-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/account-linking-portal-section.class.ts index 6b9223cb0..55af20219 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/account-linking-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/account-linking-portal-section.class.ts @@ -22,6 +22,7 @@ export class AccountLinkingPortalSection implements IPortalSection { public description: string; public faUserCheck = faUserCheck; public faLink = faLink; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -30,6 +31,7 @@ export class AccountLinkingPortalSection implements IPortalSection { this.key = 'accountLinking'; this.heading = 'Account Linking'; this.description = 'Link different credentials together in OneHealthID'; + this.keyWords = profileStatus.status.accountLinking.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/bc-provider-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/bc-provider-portal-section.class.ts index a4c3c5297..39431673b 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/bc-provider-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/bc-provider-portal-section.class.ts @@ -23,6 +23,7 @@ export class BcProviderPortalSection implements IPortalSection { public description: string; public faFileLines = faFileLines; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -31,6 +32,7 @@ export class BcProviderPortalSection implements IPortalSection { this.key = 'bcProvider'; this.heading = 'BC Provider Account'; this.description = `A reusable credential for access to health data in BC.`; + this.keyWords = profileStatus.status.bcProvider.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/driver-fitness-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/driver-fitness-portal-section.class.ts index 226273935..29d0a8a0f 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/driver-fitness-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/driver-fitness-portal-section.class.ts @@ -22,6 +22,7 @@ export class DriverFitnessPortalSection implements IPortalSection { public description: string; public faCar = faCar; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -30,6 +31,7 @@ export class DriverFitnessPortalSection implements IPortalSection { this.key = 'driverFitness'; this.heading = 'Driver Fitness Practitioner Portal'; this.description = `Register as a Medical Practitioner (or Designate) to the RoadSafetyBC Medical Practitioner Portal.`; + this.keyWords = profileStatus.status.driverFitness.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/hcim-account-transfer-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/hcim-account-transfer-portal-section.class.ts index f899b81d6..a13bf4488 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/hcim-account-transfer-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/hcim-account-transfer-portal-section.class.ts @@ -22,6 +22,7 @@ export class HcimAccountTransferPortalSection implements IPortalSection { public description: string; public faArrowsRotate = faArrowsRotate; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -30,6 +31,7 @@ export class HcimAccountTransferPortalSection implements IPortalSection { this.key = 'hcimAccountTransfer'; this.heading = 'HCIMWeb Account Transfer'; this.description = `For existing users of HCIMWeb application to transfer their HNETBC account credential to their organization credential.`; + this.keyWords = profileStatus.status.hcimAccountTransfer.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/immsbc-eforms-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/immsbc-eforms-portal-section.class.ts index 2d6a4b125..a606eacc6 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/immsbc-eforms-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/immsbc-eforms-portal-section.class.ts @@ -22,6 +22,7 @@ export class ImmsBCEformsPortalSection implements IPortalSection { public description: string; public faSyringe = faSyringe; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -30,6 +31,7 @@ export class ImmsBCEformsPortalSection implements IPortalSection { this.key = 'immsBCEforms'; this.heading = 'Immunization Entry eForm'; this.description = `Enrol here for access to the Immunization Entry eForm application.`; + this.keyWords = profileStatus.status.immsBCEforms.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-clinic-member-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-clinic-member-portal-section.class.ts index 2405ca99c..e72b5bce2 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-clinic-member-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-clinic-member-portal-section.class.ts @@ -22,6 +22,7 @@ export class MsTeamsClinicMemberPortalSection implements IPortalSection { public description: string; public faPeopleGroup = faPeopleGroup; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -30,6 +31,7 @@ export class MsTeamsClinicMemberPortalSection implements IPortalSection { this.key = 'msTeamsClinicMember'; this.heading = 'MS Teams for Clinic Members'; this.description = `Clinic Member enrol here for clinic access for MS Teams with Fraser Health.`; + this.keyWords = profileStatus.status.msTeamsClinicMember.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-privacy-officer-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-privacy-officer-portal-section.class.ts index 36db9809a..f8bfd5f1d 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-privacy-officer-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/ms-teams-privacy-officer-portal-section.class.ts @@ -22,6 +22,7 @@ export class MsTeamsPrivacyOfficerPortalSection implements IPortalSection { public description: string; public faUserGroup = faUserGroup; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -30,6 +31,7 @@ export class MsTeamsPrivacyOfficerPortalSection implements IPortalSection { this.key = 'msTeamsPrivacyOfficer'; this.heading = 'MS Teams for Clinical Use'; this.description = `Privacy Officer enrol here for clinic access for MS Teams with Fraser Health.`; + this.keyWords = profileStatus.status.msTeamsPrivacyOfficer.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/prescription-refill-eforms-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/prescription-refill-eforms-portal-section.class.ts index 50d0a4b2f..003e5918b 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/prescription-refill-eforms-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/prescription-refill-eforms-portal-section.class.ts @@ -26,6 +26,7 @@ export class PrescriptionRefillEformsPortalSection implements IPortalSection { public description: string; public faPrescriptionBottleMedical = faPrescriptionBottleMedical; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -34,6 +35,7 @@ export class PrescriptionRefillEformsPortalSection implements IPortalSection { this.key = 'prescriptionRefillEforms'; this.heading = 'Provincial Prescription Renewal Support Service eForm'; this.description = `Enrol here for access to the Provincial Prescription Renewal Support Service eForm`; + this.keyWords = profileStatus.status.prescriptionRefillEforms.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/provider-reporting-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/provider-reporting-portal-section.class.ts index 189ed4645..9f727c650 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/provider-reporting-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/provider-reporting-portal-section.class.ts @@ -23,6 +23,7 @@ export class ProviderReportingPortalSection implements IPortalSection { public description: string; public faUsers = faUsers; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -31,6 +32,7 @@ export class ProviderReportingPortalSection implements IPortalSection { this.key = 'providerReportingPortal'; this.heading = 'Provider Reporting Portal'; this.description = `Enrol here for access to the Provider Reporting Portal`; + this.keyWords = profileStatus.status.providerReportingPortal.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/provincial-attachment-system-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/provincial-attachment-system-portal-section.class.ts index d5497f09f..a35a046c7 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/provincial-attachment-system-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/provincial-attachment-system-portal-section.class.ts @@ -21,6 +21,7 @@ export class ProvincialAttachmentSystemPortalSection implements IPortalSection { private readonly provincialAttachmentSystemWebsite: string; public faChartSimple = faChartSimple; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -32,6 +33,7 @@ export class ProvincialAttachmentSystemPortalSection implements IPortalSection { 'The Provincial Attachment System (PAS) is an online tool used by primary care providers throughout the province to indicate their ability to take on new patients. Through PAS, Attachment Coordinators help match patients to family physicians and nurse practitioners in their communities.'; this.provincialAttachmentSystemWebsite = 'https://bchealthprovider.ca'; + this.keyWords = profileStatus.status.provincialAttachmentSystem.keyWords || []; } /** diff --git a/workspace/apps/pidp/src/app/features/portal/state/access/sa-eforms-portal-section.class.ts b/workspace/apps/pidp/src/app/features/portal/state/access/sa-eforms-portal-section.class.ts index bcfe9be67..08db58d06 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/access/sa-eforms-portal-section.class.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/access/sa-eforms-portal-section.class.ts @@ -23,6 +23,7 @@ export class SaEformsPortalSection implements IPortalSection { public description: string; public faFileLines = faFileLines; public faUserCheck = faUserCheck; + public keyWords: string[]; public constructor( private profileStatus: ProfileStatus, @@ -31,6 +32,7 @@ export class SaEformsPortalSection implements IPortalSection { this.key = 'saEforms'; this.heading = 'Special Authority eForms'; this.description = `Enrol here for access to PharmaCare's Special Authority eForms application.`; + this.keyWords = profileStatus.status.saEforms.keyWords || []; } public get hint(): string { diff --git a/workspace/apps/pidp/src/app/features/portal/state/section.model.ts b/workspace/apps/pidp/src/app/features/portal/state/section.model.ts index d108470df..e8d551a80 100644 --- a/workspace/apps/pidp/src/app/features/portal/state/section.model.ts +++ b/workspace/apps/pidp/src/app/features/portal/state/section.model.ts @@ -6,4 +6,5 @@ import { StatusCode } from '../enums/status-code.enum'; */ export interface Section { statusCode: StatusCode; + keyWords?: string[]; }