Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDCT-2765 Pt. III: Add New Delivery Systems Validations #1909

Merged
merged 3 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AABAD/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).not.toHaveBeenCalled();
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -196,6 +198,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateAtLeastOneDataSourceType).toHaveBeenCalled();
expect(V.validateAtLeastOneDeviationFieldFilled).toHaveBeenCalled();
expect(V.validateNumeratorLessThanDenominatorOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AABAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const AABADValidation = (data: FormData) => {
...GV.validateHedisYear(data),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDeviationFieldFilled(
didCalculationsDeviate,
deviationReason
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AABCH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(
V.validateRequiredRadioButtonForCombinedRates
).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -201,6 +203,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateRequiredRadioButtonForCombinedRates).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AABCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const AABCHValidation = (data: FormData) => {
PMD.qualifiers
),
...GV.validateRequiredRadioButtonForCombinedRates(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDefinitionOfPopulation(data),

// OMS Validations
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/ADDCH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
).not.toHaveBeenCalled();
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -206,6 +208,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateOneQualDenomHigherThanOtherDenomOMS).toHaveBeenCalled();
expect(V.validateRateZeroOMS).toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/ADDCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const ADDCHValidation = (data: FormData) => {
didCalculationsDeviate,
deviationReason
),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDefinitionOfPopulation(data),

// OMS Validations
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AIFHH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.ComplexValidateNDRTotals).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -195,6 +197,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateAtLeastOneDataSource).toHaveBeenCalled();
expect(V.validateAtLeastOneDataSourceType).toHaveBeenCalled();
expect(V.ComplexValidateNDRTotals).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AIFHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const AIFHHValidation = (data: FormData) => {
...GV.validateBothDatesCompleted(dateRange),
...GV.validateYearFormat(dateRange),
...GV.validateOPMRates(OPM),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDefinitionOfPopulation(data),

...GV.ComplexValidateDualPopInformation(
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AMBCH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateEqualQualifierDenominatorsOMS).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -207,6 +209,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateEqualQualifierDenominatorsOMS).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AMBCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const AMBCHValidation = (data: FormData) => {
...GV.validateHedisYear(data),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDeviationFieldFilled(
didCalculationsDeviate,
deviationReason
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AMBHH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -202,6 +204,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
3 changes: 3 additions & 0 deletions services/ui-src/src/measures/2023/AMBHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ const AMBHHValidation = (data: FormData) => {
...GV.validateYearFormat(dateRange),
...GV.validateOPMRates(OPM),
...GV.validateHedisYear(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),

...GV.validateAtLeastOneDefinitionOfPopulation(data),
// Performance Measure Validations
...GV.validateAtLeastOneRateComplete(
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AMMAD/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).not.toHaveBeenCalled();
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -205,6 +207,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).toHaveBeenCalled();
expect(V.validateRateZeroOMS).toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AMMAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ const AMMADValidation = (data: FormData) => {
...GV.validateHedisYear(data),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDeviationFieldFilled(
didCalculationsDeviate,
deviationReason
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AMRAD/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -203,6 +205,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AMRAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const AMRADValidation = (data: FormData) => {
...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateNumeratorsLessThanDenominatorsPM(
performanceMeasureArray,
OPM,
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/AMRCH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -205,6 +207,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/AMRCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const AMRCHValidation = (data: FormData) => {
...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateNumeratorsLessThanDenominatorsPM(
performanceMeasureArray,
OPM,
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/APMCH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateEqualQualifierDenominatorsOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -207,6 +209,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateEqualQualifierDenominatorsOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/APMCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const APMCHValidation = (data: FormData) => {
),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateNumeratorsLessThanDenominatorsPM(
performanceMeasureArray,
OPM,
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/APPCH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -205,6 +207,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/APPCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const APPCHValidation = (data: FormData) => {
...GV.validateYearFormat(dateRange),
...GV.validateHedisYear(data),
...GV.validateOPMRates(OPM),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDeviationFieldFilled(
didCalculationsDeviate,
deviationReason
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/BCSAD/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).not.toHaveBeenCalled();
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -200,6 +202,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).toHaveBeenCalled();
expect(V.validateRateZeroOMS).toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/BCSAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const BCSValidation = (data: FormData) => {
),
...GV.validateRateNotZeroPM(performanceMeasureArray, OPM, ageGroups),
...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDefinitionOfPopulation(data),

// OMS Validations
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/CBPAD/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).not.toHaveBeenCalled();
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -200,6 +202,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).toHaveBeenCalled();
expect(V.validateRateZeroOMS).toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/CBPAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const CBPValidation = (data: FormData) => {
...GV.validateBothDatesCompleted(dateRange),
...GV.validateYearFormat(dateRange),
...GV.validateHedisYear(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateOPMRates(OPM),
...GV.validateAtLeastOneDefinitionOfPopulation(data),
...GV.omsValidations({
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/CBPHH/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateTotalNDR).not.toHaveBeenCalled();
expect(V.validateOMSTotalNDR).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -203,6 +205,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateTotalNDR).toHaveBeenCalled();
expect(V.validateOMSTotalNDR).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
2 changes: 2 additions & 0 deletions services/ui-src/src/measures/2023/CBPHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const CBPValidation = (data: FormData) => {
...GV.validateYearFormat(dateRange),
...GV.validateHedisYear(data),
...GV.validateOPMRates(OPM),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
...GV.validateAtLeastOneDefinitionOfPopulation(data),
...GV.validateTotalNDR(performanceMeasureArray),
...GV.omsValidations({
Expand Down
4 changes: 4 additions & 0 deletions services/ui-src/src/measures/2023/CCPAD/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).not.toHaveBeenCalled();
expect(V.validateRateZeroOMS).not.toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).not.toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).not.toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).not.toHaveBeenCalled();
});

Expand All @@ -206,6 +208,8 @@ describe(`Test FFY ${year} ${measureAbbr}`, () => {
expect(V.validateNumeratorLessThanDenominatorOMS).toHaveBeenCalled();
expect(V.validateRateZeroOMS).toHaveBeenCalled();
expect(V.validateRateNotZeroOMS).toHaveBeenCalled();
expect(V.validateAtLeastOneDeliverySystem).toHaveBeenCalled();
expect(V.validateFfsRadioButtonCompletion).toHaveBeenCalled();
expect(V.validateAtLeastOneDefinitionOfPopulation).toHaveBeenCalled();
});

Expand Down
Loading
Loading