Skip to content

Commit

Permalink
PIDP-1089 When PAS is completed show green icon (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paahn authored Oct 29, 2024
1 parent 46074ef commit 51aab4d
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ 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 || [];
this.keyWords =
profileStatus.status.provincialAttachmentSystem.keyWords || [];
}

/**
Expand All @@ -58,6 +59,17 @@ export class ProvincialAttachmentSystemPortalSection implements IPortalSection {
this.router.navigate([ShellRoutes.routePath(this.action.route)]);
}

public get status(): string {
switch (this.getStatusCode()) {
case StatusCode.AVAILABLE:
return 'You are eligible to participate in the Provincial Attachment System';
case StatusCode.COMPLETED:
return 'Completed';
default:
return 'Incomplete';
}
}

private getStatusCode(): StatusCode {
return this.profileStatus.status.provincialAttachmentSystem.statusCode;
}
Expand Down

0 comments on commit 51aab4d

Please sign in to comment.