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
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as QMR from "components";
import { useCustomRegister } from "hooks/useCustomRegister";
import { FormData } from "../types";
import { Alert } from "@cmsgov/design-system";
import * as CUI from "@chakra-ui/react";

export const DataSource = () => {
const register = useCustomRegister<FormData>();
Expand Down Expand Up @@ -31,6 +33,16 @@ export const DataSource = () => {
}
{...register("DataSource-CAHPS-Version-Other")}
/>,
<CUI.Box mt="8">
<Alert heading="Please Note" variation="warn">
<p className="ds-c-alert__text">
ajaitasaini marked this conversation as resolved.
Show resolved Hide resolved
{
"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."
}
</p>
</Alert>
,
</CUI.Box>,
],
},
]}
Expand Down
12 changes: 11 additions & 1 deletion services/ui-src/src/shared/commonQuestions/DataSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { parseLabelToHTML } from "utils/parser";
import { useContext } from "react";
import SharedContext from "shared/SharedContext";
import { AnyObject } from "types";
import { Alert } from "@cmsgov/design-system";

interface DataSourceProps {
data?: DataSourceData;
Expand Down Expand Up @@ -79,7 +80,16 @@ const buildDataSourceOptions: DSCBFunc = ({ data = [], parentName }) => {
label={parseLabelToHTML(node.hint!)}
name={`${DC.DATA_SOURCE_SELECTIONS}.${adjustedParentName}.${DC.DESCRIPTION}`}
key={`${DC.DATA_SOURCE_SELECTIONS}.${adjustedParentName}.${DC.DESCRIPTION}`}
/>
/>,
<CUI.Box mt="8">
<Alert heading="Please Note" variation="warn">
<p className="ds-c-alert__text">
ajaitasaini marked this conversation as resolved.
Show resolved Hide resolved
{
"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."
}
</p>
</Alert>
</CUI.Box>
);
}

Expand Down
12 changes: 12 additions & 0 deletions services/ui-src/src/shared/commonQuestions/DataSourceCahps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { DataSourceData, defaultData } from "../types/TypeDataSourceCahps";
import { parseLabelToHTML } from "utils/parser";
import * as DC from "dataConstants";
import SharedContext from "shared/SharedContext";
import { Alert } from "@cmsgov/design-system";
import * as CUI from "@chakra-ui/react";

interface DataSourceProps {
data?: DataSourceData;
Expand Down Expand Up @@ -44,6 +46,16 @@ export const DataSourceRadio = ({ data = defaultData }: DataSourceProps) => {
fontSize: "normal",
}}
/>,
<CUI.Box mt="8">
<Alert heading="Please Note" variation="warn">
<p className="ds-c-alert__text">
ajaitasaini marked this conversation as resolved.
Show resolved Hide resolved
{
"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."
}
</p>
</Alert>
,
</CUI.Box>,
],
},
]}
Expand Down