From 21251fef91f39e278a4d14f058f29fa7960a449b Mon Sep 17 00:00:00 2001 From: Jack Wong <108699279+bergomi02@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:48:37 -0800 Subject: [PATCH] initial commit --- .../college-certification-form.component.ts | 5 +++-- .../src/app/shared/enums/college-licence-grouping.enum.ts | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/prime-angular-frontend/src/app/shared/components/forms/college-certification-form/college-certification-form.component.ts b/prime-angular-frontend/src/app/shared/components/forms/college-certification-form/college-certification-form.component.ts index d1db9a5128..a8465ad96c 100644 --- a/prime-angular-frontend/src/app/shared/components/forms/college-certification-form/college-certification-form.component.ts +++ b/prime-angular-frontend/src/app/shared/components/forms/college-certification-form/college-certification-form.component.ts @@ -16,7 +16,7 @@ import { CollegeLicenceClassEnum } from '@shared/enums/college-licence-class.enu import { PrescriberIdTypeEnum } from '@shared/enums/prescriber-id-type.enum'; import { CollegeCertification } from '@enrolment/shared/models/college-certification.model'; import { EnrolmentService } from '@enrolment/shared/services/enrolment.service'; -import { LicenseGrouping } from '@shared/enums/college-licence-grouping.enum'; +import { LicenseGrouping, NursingLicenseGrouping } from '@shared/enums/college-licence-grouping.enum'; @Component({ selector: 'app-college-certification-form', @@ -63,6 +63,7 @@ export class CollegeCertificationFormComponent implements OnInit { public PrescriberIdTypeEnum = PrescriberIdTypeEnum; public licenseGrouping = LicenseGrouping; + public nursingLicenseGrouping = NursingLicenseGrouping; /** * 21 - College of Health and Care Professionals of BC @@ -242,7 +243,7 @@ export class CollegeCertificationFormComponent implements OnInit { ) ) .subscribe((collegeLicenseGroupingCode: number) => { - if (this.licenseGrouping.some(g => g === collegeLicenseGroupingCode)) { + if (this.nursingLicenseGrouping.some(g => g === collegeLicenseGroupingCode)) { this.setNursingCategoryValidators(); } this.loadLicensesByCategory(collegeLicenseGroupingCode); diff --git a/prime-angular-frontend/src/app/shared/enums/college-licence-grouping.enum.ts b/prime-angular-frontend/src/app/shared/enums/college-licence-grouping.enum.ts index 190e167e9e..96ce582868 100644 --- a/prime-angular-frontend/src/app/shared/enums/college-licence-grouping.enum.ts +++ b/prime-angular-frontend/src/app/shared/enums/college-licence-grouping.enum.ts @@ -25,6 +25,14 @@ export enum CollegeLicenceGroupingEnum { HealthProfessionOfTraditionalChineseMedicineAcupuncture = 24 } +export const NursingLicenseGrouping: number[] = [ + CollegeLicenceGroupingEnum.LPN, + CollegeLicenceGroupingEnum.RN, + CollegeLicenceGroupingEnum.RPN, + CollegeLicenceGroupingEnum.NP, + CollegeLicenceGroupingEnum.MW, +] + export const LicenseGrouping: number[] = [ CollegeLicenceGroupingEnum.LPN, CollegeLicenceGroupingEnum.RN,