Skip to content

Commit

Permalink
Pidp 897 add keywords for cards (#607)
Browse files Browse the repository at this point in the history
search by keywords logic added for the cards.
  • Loading branch information
kakarlavinodkumar authored Oct 18, 2024
1 parent b29905a commit b57a5df
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ export interface IAccessSection {
* Icon to be displayed on the card.
*/
icon: IconProp;
/**
@description
* Hidden Keywords for the card.
*/
keyWords?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 || [];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ import { StatusCode } from '../enums/status-code.enum';
*/
export interface Section {
statusCode: StatusCode;
keyWords?: string[];
}

0 comments on commit b57a5df

Please sign in to comment.