Skip to content

Commit

Permalink
validation cleanup 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
ailZhou committed Jan 15, 2025
1 parent 2c64672 commit 49b621f
Show file tree
Hide file tree
Showing 63 changed files with 292 additions and 76 deletions.
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/AABAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const AABADValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const age65PlusIndex = 1;
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
let errorArray: any[] = [];
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/AABCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { DefaultFormData as FormData } from "shared/types/FormData";
const AABCHValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/ADDCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { DefaultFormData as FormData } from "shared/types/FormData";

const ADDCHValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const performanceMeasureArray = getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
let errorArray: any[] = [];
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/AMBCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const AMBCHValidation = (data: FormData) => {
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];

let errorArray: any[] = [];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/AMBHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ const AMBHHValidation = (data: FormData) => {
const deviationReason = data[DC.DEVIATION_REASON];
const dateRange = data[DC.DATE_RANGE];

const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
let errorArray: any[] = [];

if (data[DC.DID_REPORT] === DC.NO) {
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/AMMAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const AMMADValidation = (data: FormData) => {
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const deviationReason = data[DC.DEVIATION_REASON];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];

Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/AMRCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { DefaultFormData as FormData } from "shared/types/FormData";
const AMRCHValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/APMCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const APMCHValidation = (data: FormData) => {
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];

let errorArray: any[] = [];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/APPCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const APPCHValidation = (data: FormData) => {
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const dateRange = data[DC.DATE_RANGE];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];

Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/BCSAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const BCSValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CBPAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ const CBPValidation = (data: FormData) => {
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];

Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CBPHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const CBPValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
17 changes: 14 additions & 3 deletions services/ui-src/src/measures/2023/CCPAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const CCPADValidation = (data: FormData) => {
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];

let errorArray: any[] = [];
Expand All @@ -32,7 +35,12 @@ const CCPADValidation = (data: FormData) => {
...GV.validateBothDatesCompleted(dateRange),
...GV.validateYearFormat(dateRange),
...GV.validateOPMRates(OPM),
...GV.validateOneQualRateHigherThanOtherQualPM(data, PMD.data, 1, 0),
...GV.validateOneQualRateHigherThanOtherQualPM(
data,
PMD.data.performanceMeasure,
1,
0
),
...GV.validateEqualCategoryDenominatorsPM(data, PMD.categories),
...GV.validateAtLeastOneDataSource(data),
...GV.validateAtLeastOneDataSourceType(data),
Expand All @@ -47,7 +55,10 @@ const CCPADValidation = (data: FormData) => {
OPM,
ageGroups
),
...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data),
...GV.validateOneCatRateHigherThanOtherCatPM(
data,
PMD.data.performanceMeasure
),
...GV.validateRequiredRadioButtonForCombinedRates(data),
...GV.validateAtLeastOneDeliverySystem(data),
...GV.validateFfsRadioButtonCompletion(data),
Expand Down
17 changes: 14 additions & 3 deletions services/ui-src/src/measures/2023/CCPCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const CCPCHValidation = (data: FormData) => {
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];

let errorArray: any[] = [];
Expand Down Expand Up @@ -48,9 +51,17 @@ const CCPCHValidation = (data: FormData) => {
OPM,
ageGroups
),
...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data),
...GV.validateOneCatRateHigherThanOtherCatPM(
data,
PMD.data.performanceMeasure
),
...GV.validateRequiredRadioButtonForCombinedRates(data),
...GV.validateOneQualRateHigherThanOtherQualPM(data, PMD.data, 1, 0),
...GV.validateOneQualRateHigherThanOtherQualPM(
data,
PMD.data.performanceMeasure,
1,
0
),
...GV.validateAtLeastOneDefinitionOfPopulation(data),

// OMS Specific Validations
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2023/CCSAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const CCSADValidation = (data: FormData) => {
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray =
GV.getPerfMeasureRateArray(data, PMD.data) ?? [];
GV.getPerfMeasureRateArray(data, PMD.data.performanceMeasure) ?? [];
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CCWAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const CCWADValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CCWCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const CCWCHValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CDFAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const CDFADValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CDFCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const CDFCHValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CDFHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const CDFHHValidation = (data: FormData) => {
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
const dateRange = data[DC.DATE_RANGE];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
let errorArray: any[] = [];

if (data[DC.DID_REPORT] === DC.NO) {
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CHLAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const CHLValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CHLCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const CHLValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2023/CISCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const CISCHValidation = (data: FormData) => {
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray =
GV.getPerfMeasureRateArray(data, PMD.data) ?? [];
GV.getPerfMeasureRateArray(data, PMD.data.performanceMeasure) ?? [];
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/COBAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const COBADValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/COLAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const COLADValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const errorReplacementText = "Ages 65 to 75";
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/COLHH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const COLHHValidation = (data: FormData) => {
const age65PlusIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const errorReplacementText = "Ages 65 to 75";
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/CPUAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { DefaultFormData as FormData } from "shared/types/FormData";
const CPUADValidation = (data: FormData) => {
const carePlans = PMD.qualifiers;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);

let errorArray: any[] = [];
const OPM = data[DC.OPM_RATES];
Expand Down
5 changes: 4 additions & 1 deletion services/ui-src/src/measures/2023/DEVCH/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const DEVCHValidation = (data: FormData) => {
const ageGroups = PMD.qualifiers;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
const deviationReason = data[DC.DEVIATION_REASON];
Expand Down
10 changes: 8 additions & 2 deletions services/ui-src/src/measures/2023/FUAAD/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const FUAADValidation = (data: FormData) => {
const sixtyDaysIndex = 1;
const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING];
const OPM = data[DC.OPM_RATES];
const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data);
const performanceMeasureArray = GV.getPerfMeasureRateArray(
data,
PMD.data.performanceMeasure
);
const dateRange = data[DC.DATE_RANGE];
const DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR];
const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES;
Expand Down Expand Up @@ -49,7 +52,10 @@ const FUAADValidation = (data: FormData) => {
),
...GV.validateRateNotZeroPM(performanceMeasureArray, OPM, ageGroups),
...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data),
...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data),
...GV.validateOneCatRateHigherThanOtherCatPM(
data,
PMD.data.performanceMeasure
),
...GV.validateRequiredRadioButtonForCombinedRates(data),
...GV.validateDateRangeRadioButtonCompletion(data),
...GV.validateAtLeastOneDeliverySystem(data),
Expand Down
Loading

0 comments on commit 49b621f

Please sign in to comment.