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

[QMR] All Child and Adult Measures - In line warning banner (Data Source) #2239

Merged
merged 13 commits into from
May 29, 2024
4 changes: 4 additions & 0 deletions services/ui-src/src/labels/2024/commonQuestionsLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export const commonQuestionsLabel = {
srcExplanation: "Data Source Explanation",
srcExplanationText:
"For each data source selected above, describe which reporting entities used each data source (e.g., health plans, FFS). If the data source differed across health plans or delivery systems, identify the number of plans or delivery systems that used each data source.",
otherDataSourceWarning:
"If you report using Other Data Source, CMS will not be able to produce a combined Medicaid & CHIP rate for public reporting. If the information reported in the Data Source field is accurate, please continue reporting this measure.",
warning: {
[DC.ELECTRONIC_CLINIC_DATA_SYSTEMS]:
"If you report using Electronic Clinical Data Systems (ECDS), CMS will not be able to produce a combined Medicaid & CHIP rate for public reporting for FFY 2024. If the information reported in the Data Source field is accurate, please continue reporting this measure.",
Expand All @@ -60,6 +62,8 @@ export const commonQuestionsLabel = {
DataSourceCahps: {
describeDataSrc:
"Describe the data source (<em>text in this field is included in publicly-reported state-specific comments</em>):",
otherDataSourceWarning:
"If you report using Other Data Source, CMS will not be able to produce a combined Medicaid & CHIP rate for public reporting. If the information reported in the Data Source field is accurate, please continue reporting this measure.",
},
DefinitionsOfPopulation: {
defineDenomOther:
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AABAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const AABAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AABCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const AABCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/ADDCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const ADDCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AMBCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const AMBCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AMMAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const AMMAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AMRAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const AMRAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{/* Show Performance Measure when HEDIS is selected from DataSource */}
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AMRCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const AMRCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/APMCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const APMCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/APPCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const APPCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/BCSAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const BCSAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CBPAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CBPAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation hybridMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CCPAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CCPAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="OPA" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CCPCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const CCPCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="OPA" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CCSAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CCSAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation hybridMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CCWAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CCWAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="OPA" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CCWCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CCWCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="OPA" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CDFAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CDFAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="CMS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CDFCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CDFCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="CMS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure={true} />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CHLAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CHLAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CHLCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CHLCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure={true} />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CISCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const CISCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure hybridMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/COBAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const COBAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="PQA" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/COLAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const COLAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CPAAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const CPAAD = ({
<>
<Q.HowDidYouReport />
<CMQ.MeasurementSpecification type="AHRQ-NCQA" />
<Q.DataSource />
<Q.DataSource type="adult" />
<Q.DefinitionOfPopulation />
<Q.PerformanceMeasure />
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ import * as QMR from "components";
import * as CUI from "@chakra-ui/react";
import { useCustomRegister } from "hooks/useCustomRegister";
import { FormData } from "../types";
import SharedContext from "shared/SharedContext";
import { useContext } from "react";
import { Alert } from "@cmsgov/design-system";

export const DataSource = () => {
interface DataSourceProps {
type?: string;
}

export const DataSource = ({ type }: DataSourceProps) => {
const register = useCustomRegister<FormData>();
const labels: any = useContext(SharedContext);

return (
<QMR.CoreQuestionWrapper testid="data-source" label="Data Source">
Expand Down Expand Up @@ -32,6 +40,16 @@ export const DataSource = () => {
}
{...register("DataSource-CAHPS-Version-Other")}
/>,
(type === "adult" || type === "child") &&
labels?.DataSourceCahps.otherDataSourceWarning && (
<CUI.Box mt="8">
<Alert heading="Please Note" variation="warn">
<CUI.Text>
{labels.DataSourceCahps.otherDataSourceWarning}
</CUI.Text>
</Alert>
</CUI.Box>
),
],
},
]}
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CPCCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const CPCCH = ({
<>
<Q.HowDidYouReport />
<CMQ.MeasurementSpecification type="AHRQ-NCQA" />
<Q.DataSource />
<Q.DataSource type="child" />
<Q.DefinitionOfPopulation />
<Q.PerformanceMeasure />
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ import * as QMR from "components";
import * as CUI from "@chakra-ui/react";
import { useCustomRegister } from "hooks/useCustomRegister";
import { FormData } from "../types";
import { Alert } from "@cmsgov/design-system";
import { useContext } from "react";
import SharedContext from "shared/SharedContext";

export const DataSource = () => {
interface DataSourceProps {
type?: string;
}

export const DataSource = ({ type }: DataSourceProps) => {
const register = useCustomRegister<FormData>();
const labels: any = useContext(SharedContext);

return (
<QMR.CoreQuestionWrapper testid="data-source" label="Data Source">
Expand All @@ -20,9 +28,19 @@ export const DataSource = () => {
value: "Other",
children: [
<QMR.TextArea
label="Describe the Data Soure:"
label="Describe the Data Source:"
{...register("DataSource-CAHPS-Version-Other")}
/>,
(type === "adult" || type === "child") &&
labels?.DataSourceCahps.otherDataSourceWarning && (
<CUI.Box mt="8">
<Alert heading="Please Note" variation="warn">
<CUI.Text>
{labels.DataSourceCahps.otherDataSourceWarning}
</CUI.Text>
</Alert>
</CUI.Box>
),
],
},
]}
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/CPUAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const CPUAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation populationSampleSize />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/DEVCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const DEVCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="OHSU" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure hybridMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/FUAAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const FUAAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/FUACH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const FUACH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/FUHAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const FUHAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/FUHCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const FUHCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure={true} />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/FUMAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const FUMAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/FUMCH/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const FUMCH = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource />
<CMQ.DataSource type="child" />
<CMQ.DateRange type="child" />
<CMQ.DefinitionOfPopulation childMeasure={true} />
{isPrimaryMeasureSpecSelected && (
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/HBDAD/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const HBDAD = ({
<>
<CMQ.StatusOfData />
<CMQ.MeasurementSpecification type="HEDIS" />
<CMQ.DataSource data={PMD.dataSourceData} />
<CMQ.DataSource data={PMD.dataSourceData} type="adult" />
<CMQ.DateRange type="adult" />
<CMQ.DefinitionOfPopulation hybridMeasure />
{isPrimaryMeasureSpecSelected && (
Expand Down
Loading