-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CPC-CH Set to Autocomplete + Content update (#2083)
- Loading branch information
Showing
16 changed files
with
29 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,20 @@ | ||
import * as Q from "./questions"; | ||
import * as QMR from "components"; | ||
import * as CMQ from "measures/2024/shared/CommonQuestions"; | ||
import { useParams } from "react-router-dom"; | ||
import * as Types from "measures/2024/shared/CommonQuestions/types"; | ||
import { useFormContext } from "react-hook-form"; | ||
import { validationFunctions } from "./validation"; | ||
import { useEffect } from "react"; | ||
|
||
export const CPCCH = ({ | ||
name, | ||
year, | ||
setValidationFunctions, | ||
}: QMR.MeasureWrapperProps) => { | ||
const { watch } = useFormContext<Types.DefaultFormData>(); | ||
const { coreSetId } = useParams(); | ||
const data = watch(); | ||
|
||
useEffect(() => { | ||
if (setValidationFunctions) { | ||
setValidationFunctions(validationFunctions); | ||
} | ||
}, [setValidationFunctions]); | ||
interface Props { | ||
name: string; | ||
year: string; | ||
} | ||
|
||
export const CPCCH = ({ name, year }: Props) => { | ||
return ( | ||
<> | ||
<Q.Reporting | ||
reportingYear={year} | ||
measureName={name} | ||
measureAbbreviation={coreSetId as string} | ||
/> | ||
{data["DidCollect"] !== "no" && ( | ||
<> | ||
<Q.HowDidYouReport /> | ||
<CMQ.MeasurementSpecification type="AHRQ-NCQA" /> | ||
<Q.DataSource /> | ||
<Q.DefinitionOfPopulation /> | ||
<Q.PerformanceMeasure /> | ||
</> | ||
)} | ||
<CMQ.AdditionalNotes /> | ||
</> | ||
<QMR.AutocompletedMeasureTemplate | ||
year={year} | ||
measureTitle={`CPC-CH - ${name}`} | ||
performanceMeasureText="The measure provides information on parents' experiences with their child's health care. Results summarize children's experiences through ratings, composites, and individual question summary rates." | ||
performanceMeasureSubtext={[ | ||
"The Children with Chronic Conditions Supplemental Items provides information on parents' experience with their child's health care for the population of children with chronic conditions", | ||
"To reduce state burden and streamline reporting, CMS will calculate state-level performance results for this measure using data submitted to the AHRQ CAHPS Health Plan Survey Database", | ||
]} | ||
/> | ||
); | ||
}; |
86 changes: 0 additions & 86 deletions
86
services/ui-src/src/measures/2024/CPCCH/questions/DataSource.tsx
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
services/ui-src/src/measures/2024/CPCCH/questions/DefinitionOfPopulation.tsx
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
services/ui-src/src/measures/2024/CPCCH/questions/HowDidYouReport.tsx
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
services/ui-src/src/measures/2024/CPCCH/questions/PerformanceMeasure.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.