Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bergomi02 committed Nov 8, 2024
1 parent 90268ec commit 21251fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 21251fe

Please sign in to comment.