diff --git a/services/ui-src/src/measures/2023/AABAD/validation.ts b/services/ui-src/src/measures/2023/AABAD/validation.ts index 79b682e5d..770fb58c6 100644 --- a/services/ui-src/src/measures/2023/AABAD/validation.ts +++ b/services/ui-src/src/measures/2023/AABAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/AABCH/validation.ts b/services/ui-src/src/measures/2023/AABCH/validation.ts index 3c90b4787..dbe307d53 100644 --- a/services/ui-src/src/measures/2023/AABCH/validation.ts +++ b/services/ui-src/src/measures/2023/AABCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/ADDCH/validation.ts b/services/ui-src/src/measures/2023/ADDCH/validation.ts index ef89d5a28..bbdb5b08c 100644 --- a/services/ui-src/src/measures/2023/ADDCH/validation.ts +++ b/services/ui-src/src/measures/2023/ADDCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/AMBCH/validation.ts b/services/ui-src/src/measures/2023/AMBCH/validation.ts index 0935ffb63..95fabf925 100644 --- a/services/ui-src/src/measures/2023/AMBCH/validation.ts +++ b/services/ui-src/src/measures/2023/AMBCH/validation.ts @@ -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[] = []; diff --git a/services/ui-src/src/measures/2023/AMBHH/validation.ts b/services/ui-src/src/measures/2023/AMBHH/validation.ts index 53bc1b05f..8b422fa81 100644 --- a/services/ui-src/src/measures/2023/AMBHH/validation.ts +++ b/services/ui-src/src/measures/2023/AMBHH/validation.ts @@ -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) { diff --git a/services/ui-src/src/measures/2023/AMMAD/validation.ts b/services/ui-src/src/measures/2023/AMMAD/validation.ts index b93780a88..66781051d 100644 --- a/services/ui-src/src/measures/2023/AMMAD/validation.ts +++ b/services/ui-src/src/measures/2023/AMMAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/AMRCH/validation.ts b/services/ui-src/src/measures/2023/AMRCH/validation.ts index 6bff81b34..8b2e95ca6 100644 --- a/services/ui-src/src/measures/2023/AMRCH/validation.ts +++ b/services/ui-src/src/measures/2023/AMRCH/validation.ts @@ -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; diff --git a/services/ui-src/src/measures/2023/APMCH/validation.ts b/services/ui-src/src/measures/2023/APMCH/validation.ts index 5738512f0..09fc13b96 100644 --- a/services/ui-src/src/measures/2023/APMCH/validation.ts +++ b/services/ui-src/src/measures/2023/APMCH/validation.ts @@ -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[] = []; diff --git a/services/ui-src/src/measures/2023/APPCH/validation.ts b/services/ui-src/src/measures/2023/APPCH/validation.ts index 605fdb0e0..8235e9675 100644 --- a/services/ui-src/src/measures/2023/APPCH/validation.ts +++ b/services/ui-src/src/measures/2023/APPCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/BCSAD/validation.ts b/services/ui-src/src/measures/2023/BCSAD/validation.ts index 08d406124..44ed11c83 100644 --- a/services/ui-src/src/measures/2023/BCSAD/validation.ts +++ b/services/ui-src/src/measures/2023/BCSAD/validation.ts @@ -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; diff --git a/services/ui-src/src/measures/2023/CBPAD/validation.ts b/services/ui-src/src/measures/2023/CBPAD/validation.ts index e0374da8a..8252c3794 100644 --- a/services/ui-src/src/measures/2023/CBPAD/validation.ts +++ b/services/ui-src/src/measures/2023/CBPAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CBPHH/validation.ts b/services/ui-src/src/measures/2023/CBPHH/validation.ts index 66b5dc57a..3dc8c90e6 100644 --- a/services/ui-src/src/measures/2023/CBPHH/validation.ts +++ b/services/ui-src/src/measures/2023/CBPHH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CCPAD/validation.ts b/services/ui-src/src/measures/2023/CCPAD/validation.ts index 96f56fc9b..2da6ddf5d 100644 --- a/services/ui-src/src/measures/2023/CCPAD/validation.ts +++ b/services/ui-src/src/measures/2023/CCPAD/validation.ts @@ -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[] = []; @@ -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), @@ -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), diff --git a/services/ui-src/src/measures/2023/CCPCH/validation.ts b/services/ui-src/src/measures/2023/CCPCH/validation.ts index b43269a32..e8417585b 100644 --- a/services/ui-src/src/measures/2023/CCPCH/validation.ts +++ b/services/ui-src/src/measures/2023/CCPCH/validation.ts @@ -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[] = []; @@ -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 diff --git a/services/ui-src/src/measures/2023/CCSAD/validation.ts b/services/ui-src/src/measures/2023/CCSAD/validation.ts index 192fb9f82..437bb4883 100644 --- a/services/ui-src/src/measures/2023/CCSAD/validation.ts +++ b/services/ui-src/src/measures/2023/CCSAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CCWAD/validation.ts b/services/ui-src/src/measures/2023/CCWAD/validation.ts index 90c7eee4f..fb7ad29e2 100644 --- a/services/ui-src/src/measures/2023/CCWAD/validation.ts +++ b/services/ui-src/src/measures/2023/CCWAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CCWCH/validation.ts b/services/ui-src/src/measures/2023/CCWCH/validation.ts index fc282b698..714be3563 100644 --- a/services/ui-src/src/measures/2023/CCWCH/validation.ts +++ b/services/ui-src/src/measures/2023/CCWCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CDFAD/validation.ts b/services/ui-src/src/measures/2023/CDFAD/validation.ts index 0a24c96b1..da39f220e 100644 --- a/services/ui-src/src/measures/2023/CDFAD/validation.ts +++ b/services/ui-src/src/measures/2023/CDFAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CDFCH/validation.ts b/services/ui-src/src/measures/2023/CDFCH/validation.ts index d5e7be0c8..3c1cd426d 100644 --- a/services/ui-src/src/measures/2023/CDFCH/validation.ts +++ b/services/ui-src/src/measures/2023/CDFCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CDFHH/validation.ts b/services/ui-src/src/measures/2023/CDFHH/validation.ts index 72238a559..83e61cfb7 100644 --- a/services/ui-src/src/measures/2023/CDFHH/validation.ts +++ b/services/ui-src/src/measures/2023/CDFHH/validation.ts @@ -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) { diff --git a/services/ui-src/src/measures/2023/CHLAD/validation.ts b/services/ui-src/src/measures/2023/CHLAD/validation.ts index 366fa772e..dc25be4a7 100644 --- a/services/ui-src/src/measures/2023/CHLAD/validation.ts +++ b/services/ui-src/src/measures/2023/CHLAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CHLCH/validation.ts b/services/ui-src/src/measures/2023/CHLCH/validation.ts index 867059dee..7898a2872 100644 --- a/services/ui-src/src/measures/2023/CHLCH/validation.ts +++ b/services/ui-src/src/measures/2023/CHLCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/CISCH/validation.ts b/services/ui-src/src/measures/2023/CISCH/validation.ts index 7ad401c70..3dd3965af 100644 --- a/services/ui-src/src/measures/2023/CISCH/validation.ts +++ b/services/ui-src/src/measures/2023/CISCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/COBAD/validation.ts b/services/ui-src/src/measures/2023/COBAD/validation.ts index 1326d53eb..f1b70e793 100644 --- a/services/ui-src/src/measures/2023/COBAD/validation.ts +++ b/services/ui-src/src/measures/2023/COBAD/validation.ts @@ -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; diff --git a/services/ui-src/src/measures/2023/COLAD/validation.ts b/services/ui-src/src/measures/2023/COLAD/validation.ts index fbb30d6c1..128b3ae59 100644 --- a/services/ui-src/src/measures/2023/COLAD/validation.ts +++ b/services/ui-src/src/measures/2023/COLAD/validation.ts @@ -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"; diff --git a/services/ui-src/src/measures/2023/COLHH/validation.ts b/services/ui-src/src/measures/2023/COLHH/validation.ts index ebc9b9993..7ae1a9001 100644 --- a/services/ui-src/src/measures/2023/COLHH/validation.ts +++ b/services/ui-src/src/measures/2023/COLHH/validation.ts @@ -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"; diff --git a/services/ui-src/src/measures/2023/CPUAD/validation.ts b/services/ui-src/src/measures/2023/CPUAD/validation.ts index 3051b7b0e..e0dd3a8a3 100644 --- a/services/ui-src/src/measures/2023/CPUAD/validation.ts +++ b/services/ui-src/src/measures/2023/CPUAD/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/DEVCH/validation.ts b/services/ui-src/src/measures/2023/DEVCH/validation.ts index e2736c820..bd11daa14 100644 --- a/services/ui-src/src/measures/2023/DEVCH/validation.ts +++ b/services/ui-src/src/measures/2023/DEVCH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/FUAAD/validation.ts b/services/ui-src/src/measures/2023/FUAAD/validation.ts index 78ece23d2..6d1897b0f 100644 --- a/services/ui-src/src/measures/2023/FUAAD/validation.ts +++ b/services/ui-src/src/measures/2023/FUAAD/validation.ts @@ -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; @@ -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), diff --git a/services/ui-src/src/measures/2023/FUACH/validation.ts b/services/ui-src/src/measures/2023/FUACH/validation.ts index aea42017e..164a93ef9 100644 --- a/services/ui-src/src/measures/2023/FUACH/validation.ts +++ b/services/ui-src/src/measures/2023/FUACH/validation.ts @@ -8,7 +8,10 @@ import { DefaultFormData as FormData } from "shared/types/FormData"; const FUACHValidation = (data: FormData) => { const ageGroups = PMD.qualifiers; - const performanceMeasureArray = getPerfMeasureRateArray(data, PMD.data); + const performanceMeasureArray = getPerfMeasureRateArray( + data, + PMD.data.performanceMeasure + ); const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING]; const OPM = data[DC.OPM_RATES]; const dateRange = data[DC.DATE_RANGE]; @@ -52,7 +55,10 @@ const FUACHValidation = (data: FormData) => { didCalculationsDeviate, deviationReason ), - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure + ), // OMS Validations ...GV.omsValidations({ diff --git a/services/ui-src/src/measures/2023/FUAHH/validation.ts b/services/ui-src/src/measures/2023/FUAHH/validation.ts index f003fc82b..4d1235bba 100644 --- a/services/ui-src/src/measures/2023/FUAHH/validation.ts +++ b/services/ui-src/src/measures/2023/FUAHH/validation.ts @@ -12,7 +12,10 @@ const FUAHHValidation = (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 sixtyDaysIndex = 2; const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING]; @@ -69,7 +72,10 @@ const FUAHHValidation = (data: FormData) => { ...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data), ...GV.validateRateNotZeroPM(performanceMeasureArray, OPM, ageGroups), ...GV.validateTotalNDR(performanceMeasureArray), - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure + ), // OMS Validations ...GV.omsValidations({ diff --git a/services/ui-src/src/measures/2023/FUHAD/validation.ts b/services/ui-src/src/measures/2023/FUHAD/validation.ts index 2f3c936fe..7978bbcca 100644 --- a/services/ui-src/src/measures/2023/FUHAD/validation.ts +++ b/services/ui-src/src/measures/2023/FUHAD/validation.ts @@ -9,7 +9,10 @@ const FUHValidation = (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]; diff --git a/services/ui-src/src/measures/2023/FUHCH/validation.ts b/services/ui-src/src/measures/2023/FUHCH/validation.ts index 91cbd1e54..76027afaf 100644 --- a/services/ui-src/src/measures/2023/FUHCH/validation.ts +++ b/services/ui-src/src/measures/2023/FUHCH/validation.ts @@ -9,7 +9,10 @@ const FUHValidation = (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]; diff --git a/services/ui-src/src/measures/2023/FUHHH/validation.ts b/services/ui-src/src/measures/2023/FUHHH/validation.ts index 68525a484..0134a9fcd 100644 --- a/services/ui-src/src/measures/2023/FUHHH/validation.ts +++ b/services/ui-src/src/measures/2023/FUHHH/validation.ts @@ -12,7 +12,10 @@ const FUHHHValidation = (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 sixtyDaysIndex = 2; const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING]; @@ -68,7 +71,10 @@ const FUHHHValidation = (data: FormData) => { ...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data), ...GV.validateRateNotZeroPM(performanceMeasureArray, OPM, ageGroups), ...GV.validateTotalNDR(performanceMeasureArray), - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure + ), // OMS Validations ...GV.omsValidations({ diff --git a/services/ui-src/src/measures/2023/FUMAD/validation.ts b/services/ui-src/src/measures/2023/FUMAD/validation.ts index d21755fe8..1f4012c51 100644 --- a/services/ui-src/src/measures/2023/FUMAD/validation.ts +++ b/services/ui-src/src/measures/2023/FUMAD/validation.ts @@ -10,7 +10,10 @@ const FUMADValidation = (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 DefinitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR]; const dateRange = data[DC.DATE_RANGE]; const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES; @@ -63,7 +66,10 @@ const FUMADValidation = (data: FormData) => { ...GV.validateHedisYear(data), ...GV.validateAtLeastOneDefinitionOfPopulation(data), ...GV.validateOPMRates(OPM), - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure + ), ...GV.validateRequiredRadioButtonForCombinedRates(data), ...GV.validateDeviationTextFieldFilled( didCalculationsDeviate, diff --git a/services/ui-src/src/measures/2023/FUMCH/validation.ts b/services/ui-src/src/measures/2023/FUMCH/validation.ts index e13f44381..5b0e7804b 100644 --- a/services/ui-src/src/measures/2023/FUMCH/validation.ts +++ b/services/ui-src/src/measures/2023/FUMCH/validation.ts @@ -9,7 +9,10 @@ const FUMCHValidation = (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]; diff --git a/services/ui-src/src/measures/2023/FUMHH/validation.ts b/services/ui-src/src/measures/2023/FUMHH/validation.ts index c06adc009..4a1699536 100644 --- a/services/ui-src/src/measures/2023/FUMHH/validation.ts +++ b/services/ui-src/src/measures/2023/FUMHH/validation.ts @@ -12,7 +12,10 @@ const FUMHHValidation = (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[] = []; diff --git a/services/ui-src/src/measures/2023/FVAAD/validation.ts b/services/ui-src/src/measures/2023/FVAAD/validation.ts index bf153797f..4fe07a17b 100644 --- a/services/ui-src/src/measures/2023/FVAAD/validation.ts +++ b/services/ui-src/src/measures/2023/FVAAD/validation.ts @@ -7,7 +7,10 @@ import { DefaultFormData as FormData } from "shared/types/FormData"; const FVAADValidation = (data: FormData) => { const ageGroups = PMD.qualifiers; - 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]; diff --git a/services/ui-src/src/measures/2023/HBDAD/validation.ts b/services/ui-src/src/measures/2023/HBDAD/validation.ts index 2347f15b2..2c1ad9ff9 100644 --- a/services/ui-src/src/measures/2023/HBDAD/validation.ts +++ b/services/ui-src/src/measures/2023/HBDAD/validation.ts @@ -11,7 +11,7 @@ const HBDADValidation = (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]; diff --git a/services/ui-src/src/measures/2023/HPCMIAD/validation.ts b/services/ui-src/src/measures/2023/HPCMIAD/validation.ts index 721a09de9..ce2bf1c0e 100644 --- a/services/ui-src/src/measures/2023/HPCMIAD/validation.ts +++ b/services/ui-src/src/measures/2023/HPCMIAD/validation.ts @@ -10,7 +10,10 @@ const HPCMIADValidation = (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; diff --git a/services/ui-src/src/measures/2023/HVLAD/validation.ts b/services/ui-src/src/measures/2023/HVLAD/validation.ts index 685b96643..d1183c703 100644 --- a/services/ui-src/src/measures/2023/HVLAD/validation.ts +++ b/services/ui-src/src/measures/2023/HVLAD/validation.ts @@ -10,7 +10,10 @@ const HVLADValidation = (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; diff --git a/services/ui-src/src/measures/2023/IETAD/validation.ts b/services/ui-src/src/measures/2023/IETAD/validation.ts index 8b7c141fa..8491555f8 100644 --- a/services/ui-src/src/measures/2023/IETAD/validation.ts +++ b/services/ui-src/src/measures/2023/IETAD/validation.ts @@ -10,7 +10,10 @@ const IETValidation = (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 didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES; const deviationReason = data[DC.DEVIATION_REASON]; @@ -77,7 +80,13 @@ const IETValidation = (data: FormData) => { ...filteredSameDenominatorErrors, ...GV.validateRateNotZeroPM(performanceMeasureArray, OPM, ageGroups), ...GV.validateRateZeroPM(performanceMeasureArray, OPM, ageGroups, data), - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data, 0, 1, 2), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure, + 0, + 1, + 2 + ), ...GV.validateAtLeastOneDefinitionOfPopulation(data), // OMS Validations diff --git a/services/ui-src/src/measures/2023/IETHH/validation.ts b/services/ui-src/src/measures/2023/IETHH/validation.ts index 5109a0be6..d49d05920 100644 --- a/services/ui-src/src/measures/2023/IETHH/validation.ts +++ b/services/ui-src/src/measures/2023/IETHH/validation.ts @@ -10,7 +10,10 @@ const IETValidation = (data: FormData) => { const age65PlusIndex = 2; 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]; @@ -57,7 +60,13 @@ const IETValidation = (data: FormData) => { errorArray = [ ...errorArray, - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data, 0, 1, 2), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure, + 0, + 1, + 2 + ), ...GV.validateAtLeastOneRateComplete( performanceMeasureArray, OPM, diff --git a/services/ui-src/src/measures/2023/IMACH/validation.ts b/services/ui-src/src/measures/2023/IMACH/validation.ts index 208508c6f..c364f3c9b 100644 --- a/services/ui-src/src/measures/2023/IMACH/validation.ts +++ b/services/ui-src/src/measures/2023/IMACH/validation.ts @@ -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]; diff --git a/services/ui-src/src/measures/2023/LSCCH/validation.ts b/services/ui-src/src/measures/2023/LSCCH/validation.ts index 788f1f77e..b689393f7 100644 --- a/services/ui-src/src/measures/2023/LSCCH/validation.ts +++ b/services/ui-src/src/measures/2023/LSCCH/validation.ts @@ -11,7 +11,10 @@ const LSCCHValidation = (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[] = []; diff --git a/services/ui-src/src/measures/2023/OEVCH/validation.ts b/services/ui-src/src/measures/2023/OEVCH/validation.ts index ddfc18ee6..cb2564866 100644 --- a/services/ui-src/src/measures/2023/OEVCH/validation.ts +++ b/services/ui-src/src/measures/2023/OEVCH/validation.ts @@ -11,7 +11,10 @@ const OEVCHValidation = (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[] = []; diff --git a/services/ui-src/src/measures/2023/OHDAD/validation.ts b/services/ui-src/src/measures/2023/OHDAD/validation.ts index 98502a3ee..cec2869b2 100644 --- a/services/ui-src/src/measures/2023/OHDAD/validation.ts +++ b/services/ui-src/src/measures/2023/OHDAD/validation.ts @@ -10,7 +10,10 @@ const OHDValidation = (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; diff --git a/services/ui-src/src/measures/2023/OUDAD/validation.ts b/services/ui-src/src/measures/2023/OUDAD/validation.ts index 99f6922db..ca5671208 100644 --- a/services/ui-src/src/measures/2023/OUDAD/validation.ts +++ b/services/ui-src/src/measures/2023/OUDAD/validation.ts @@ -9,7 +9,7 @@ const OUDValidation = (data: FormData) => { const OPM = data[DC.OPM_RATES]; const ageGroups = PMD.qualifiers; const performanceMeasureArray = - GV.getPerfMeasureRateArray(data, PMD.data) ?? []; + 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; diff --git a/services/ui-src/src/measures/2023/OUDHH/validation.ts b/services/ui-src/src/measures/2023/OUDHH/validation.ts index 9509bec45..5dfa02ef7 100644 --- a/services/ui-src/src/measures/2023/OUDHH/validation.ts +++ b/services/ui-src/src/measures/2023/OUDHH/validation.ts @@ -9,7 +9,7 @@ const OUDValidation = (data: FormData) => { const OPM = data[DC.OPM_RATES]; const ageGroups = PMD.qualifiers; const performanceMeasureArray = - GV.getPerfMeasureRateArray(data, PMD.data) ?? []; + 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; diff --git a/services/ui-src/src/measures/2023/PPCAD/validation.ts b/services/ui-src/src/measures/2023/PPCAD/validation.ts index 96297d7d6..462bcccea 100644 --- a/services/ui-src/src/measures/2023/PPCAD/validation.ts +++ b/services/ui-src/src/measures/2023/PPCAD/validation.ts @@ -10,7 +10,7 @@ const PPCADValidation = (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]; diff --git a/services/ui-src/src/measures/2023/PPCCH/validation.ts b/services/ui-src/src/measures/2023/PPCCH/validation.ts index a34750d83..6d1b650ad 100644 --- a/services/ui-src/src/measures/2023/PPCCH/validation.ts +++ b/services/ui-src/src/measures/2023/PPCCH/validation.ts @@ -10,7 +10,7 @@ const PPCCHValidation = (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]; diff --git a/services/ui-src/src/measures/2023/PQI01AD/validation.ts b/services/ui-src/src/measures/2023/PQI01AD/validation.ts index 8ca88b2a9..d069e6e67 100644 --- a/services/ui-src/src/measures/2023/PQI01AD/validation.ts +++ b/services/ui-src/src/measures/2023/PQI01AD/validation.ts @@ -12,7 +12,10 @@ const PQI01Validation = (data: FormData) => { const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES; const deviationReason = data[DC.DEVIATION_REASON]; - const performanceMeasureArray = GV.getPerfMeasureRateArray(data, PMD.data); + const performanceMeasureArray = GV.getPerfMeasureRateArray( + data, + PMD.data.performanceMeasure + ); const age65PlusIndex = 0; const definitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR]; diff --git a/services/ui-src/src/measures/2023/PQI05AD/validation.ts b/services/ui-src/src/measures/2023/PQI05AD/validation.ts index 655523a5d..c46c1d676 100644 --- a/services/ui-src/src/measures/2023/PQI05AD/validation.ts +++ b/services/ui-src/src/measures/2023/PQI05AD/validation.ts @@ -10,7 +10,10 @@ const PQI05Validation = (data: FormData) => { const ageGroups = PMD.qualifiers; const dateRange = data[DC.DATE_RANGE]; const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING]; - 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]; diff --git a/services/ui-src/src/measures/2023/PQI08AD/validation.ts b/services/ui-src/src/measures/2023/PQI08AD/validation.ts index a6e22a231..a89af4bfe 100644 --- a/services/ui-src/src/measures/2023/PQI08AD/validation.ts +++ b/services/ui-src/src/measures/2023/PQI08AD/validation.ts @@ -11,7 +11,10 @@ const PQI08Validation = (data: FormData) => { const dateRange = data[DC.DATE_RANGE]; const definitionOfDenominator = data[DC.DEFINITION_OF_DENOMINATOR]; const whyNotReporting = data[DC.WHY_ARE_YOU_NOT_REPORTING]; - 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]; const validateDualPopInformationArray = [ diff --git a/services/ui-src/src/measures/2023/PQI15AD/validation.ts b/services/ui-src/src/measures/2023/PQI15AD/validation.ts index a5c322dd2..368243d87 100644 --- a/services/ui-src/src/measures/2023/PQI15AD/validation.ts +++ b/services/ui-src/src/measures/2023/PQI15AD/validation.ts @@ -12,7 +12,10 @@ const PQI15Validation = (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) { diff --git a/services/ui-src/src/measures/2023/PQI92HH/validation.ts b/services/ui-src/src/measures/2023/PQI92HH/validation.ts index f5a91b4aa..e5a4a1d0a 100644 --- a/services/ui-src/src/measures/2023/PQI92HH/validation.ts +++ b/services/ui-src/src/measures/2023/PQI92HH/validation.ts @@ -13,7 +13,10 @@ const PQI92Validation = (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) { diff --git a/services/ui-src/src/measures/2023/SAAAD/validation.ts b/services/ui-src/src/measures/2023/SAAAD/validation.ts index 3973d57f7..a8d804add 100644 --- a/services/ui-src/src/measures/2023/SAAAD/validation.ts +++ b/services/ui-src/src/measures/2023/SAAAD/validation.ts @@ -9,7 +9,10 @@ const SAAADValidation = (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]; diff --git a/services/ui-src/src/measures/2023/SFMCH/validation.ts b/services/ui-src/src/measures/2023/SFMCH/validation.ts index dc4fb82eb..61a7b4b70 100644 --- a/services/ui-src/src/measures/2023/SFMCH/validation.ts +++ b/services/ui-src/src/measures/2023/SFMCH/validation.ts @@ -10,7 +10,10 @@ const SFMCHValidation = (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 + ); let errorArray: any[] = []; const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES; const deviationReason = data[DC.DEVIATION_REASON]; diff --git a/services/ui-src/src/measures/2023/SSDAD/validation.ts b/services/ui-src/src/measures/2023/SSDAD/validation.ts index 583ab785a..f535d30d0 100644 --- a/services/ui-src/src/measures/2023/SSDAD/validation.ts +++ b/services/ui-src/src/measures/2023/SSDAD/validation.ts @@ -9,7 +9,10 @@ const SSDValidation = (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]; diff --git a/services/ui-src/src/measures/2023/TFLCH/validation.ts b/services/ui-src/src/measures/2023/TFLCH/validation.ts index c42d26c1e..c73387e89 100644 --- a/services/ui-src/src/measures/2023/TFLCH/validation.ts +++ b/services/ui-src/src/measures/2023/TFLCH/validation.ts @@ -10,7 +10,10 @@ const TFLCHValidation = (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 + ); let errorArray: any[] = []; const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES; const deviationReason = data[DC.DEVIATION_REASON]; @@ -32,9 +35,17 @@ const TFLCHValidation = (data: FormData) => { errorArray = [ ...errorArray, // Dental Services rate cannot be larger than the Dental or Oral Health Services rate - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure + ), // Oral Health Services rate cannot be larger than the Dental or Oral Health Services rate - ...GV.validateOneCatRateHigherThanOtherCatPM(data, PMD.data, 0, 2), + ...GV.validateOneCatRateHigherThanOtherCatPM( + data, + PMD.data.performanceMeasure, + 0, + 2 + ), ...GV.validateAtLeastOneRateComplete( performanceMeasureArray, OPM, diff --git a/services/ui-src/src/measures/2023/W30CH/validation.ts b/services/ui-src/src/measures/2023/W30CH/validation.ts index 878bb240e..7d3f46f8b 100644 --- a/services/ui-src/src/measures/2023/W30CH/validation.ts +++ b/services/ui-src/src/measures/2023/W30CH/validation.ts @@ -9,7 +9,10 @@ const W30CHValidation = (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 + ); let errorArray: any[] = []; const dateRange = data[DC.DATE_RANGE]; const didCalculationsDeviate = data[DC.DID_CALCS_DEVIATE] === DC.YES; diff --git a/services/ui-src/src/measures/2023/WCCCH/validation.ts b/services/ui-src/src/measures/2023/WCCCH/validation.ts index 5ffc16562..fd43d50f7 100644 --- a/services/ui-src/src/measures/2023/WCCCH/validation.ts +++ b/services/ui-src/src/measures/2023/WCCCH/validation.ts @@ -9,7 +9,10 @@ const WCCHValidation = (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]; diff --git a/services/ui-src/src/measures/2023/WCVCH/validation.ts b/services/ui-src/src/measures/2023/WCVCH/validation.ts index e2b42d623..1f0465600 100644 --- a/services/ui-src/src/measures/2023/WCVCH/validation.ts +++ b/services/ui-src/src/measures/2023/WCVCH/validation.ts @@ -10,7 +10,7 @@ const WCVCHValidation = (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];