Skip to content

Commit

Permalink
combined my changes with Angela's
Browse files Browse the repository at this point in the history
  • Loading branch information
ailZhou committed Dec 4, 2024
1 parent 55e94d8 commit 5947daf
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 120 deletions.
120 changes: 4 additions & 116 deletions services/app-api/forms/qm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,25 +186,14 @@ export const qmReportTemplate: ReportTemplate = {
stratified: false,
measureTemplate: MeasureTemplateName["LTSS-8"],
},
{
cmit: 234,
required: false,
stratified: false,
measureTemplate: MeasureTemplateName.StandardMeasure,
},
{
cmit: 960,
required: true,
stratified: false,
measureTemplate: MeasureTemplateName.StandardMeasure,
},
],
},
measureTemplates: {
[MeasureTemplateName.StandardMeasure]: {
id: "req-measure-report",
title: "Example Measure",
[MeasureTemplateName["LTSS-1"]]: {
id: "LTSS-1",
title: "LTSS-1: Comprehensive Assessment and Update",
type: PageType.Measure,
substitutable: true,
sidebar: false,
elements: [
{
Expand Down Expand Up @@ -290,107 +279,6 @@ export const qmReportTemplate: ReportTemplate = {
},
],
},
[MeasureTemplateName.QualityMeasure]: {
id: "req-measure-result-report",
title: "Example Measure Result",
type: PageType.Measure,
sidebar: false,
elements: [
{
type: ElementType.ButtonLink,
label: "Return to Required Measures Results Dashboard",
to: "req-measure-report",
},
{
type: ElementType.Header,
text: "{measureName}",
},
{
type: ElementType.Accordion,
label: "Instructions",
value:
"[Optional instructional content that could support the user in completing this page]",
},
{
type: ElementType.SubHeader,
text: "Measure Information",
},
{
type: ElementType.Textbox,
label:
"What is the [two years in the future] state performance target for this measure established by the state?",
},
{
type: ElementType.Radio,
label:
"Did the calculation of the measure results device from the measure technical specification?",
value: [
{ label: "No", value: "no" },
{ label: "Yes", value: "yes" },
],
},
{
type: ElementType.Radio,
label: "Were the reported measure results audited or validated?",
value: [
{ label: "No", value: "no" },
{ label: "Yes", value: "yes" },
],
},
{
type: ElementType.Textbox,
label: "Additional notes/comments",
helperText:
"If applicable, add any notes or comments to provide context to the reported measure results.",
},
{
type: ElementType.SubHeader,
text: "Measure Results",
},
{
type: ElementType.Paragraph,
title: "Overall Measure results",
text: "What are the overall results for this measure? To calculate the aggregate based on population weight, please use this template.",
},
{
type: ElementType.Textbox,
label: "Numerator",
},
{
type: ElementType.Textbox,
label: "Denominator",
},
{
type: ElementType.Textbox,
helperText: "Auto-calculates",
label: "Rate",
},
{
type: ElementType.SubHeader,
text: "Measure Stratification",
},
{
type: ElementType.Paragraph,
text: "If the stratification factor applies to this measure, select it and enter the stratified measure results specific to the demographic group. Do not select categories and sub-classifications for which you will not be reporting any data",
},
{
type: ElementType.Radio,
label: "Are you reporting measure stratification for this measure?",
value: [
{ label: "Yes", value: "yes" },
{ label: "No", value: "no" },
],
},
],
},
[MeasureTemplateName["LTSS-1"]]: {
id: "LTSS-1",
title: "LTSS-1: Comprehensive Assessment and Update",
type: PageType.Measure,
substitutable: true,
sidebar: false,
elements: [],
},
[MeasureTemplateName["LTSS-2"]]: {
id: "LTSS-2",
title: "LTSS-2: Comprehensive Person-Centered Plan and Update",
Expand Down
2 changes: 0 additions & 2 deletions services/app-api/types/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export interface MeasureOptions {
}

export enum MeasureTemplateName {
StandardMeasure,
QualityMeasure,
"LTSS-1",
"LTSS-2",
"LTSS-6",
Expand Down
26 changes: 25 additions & 1 deletion services/ui-src/src/components/report/ReportPageWrapper.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const testReport: Report = {
],
measureLookup: { defaultMeasures: [], optionGroups: {} },
measureTemplates: {
[MeasureTemplateName.StandardMeasure]: {
[MeasureTemplateName["LTSS-1"]]: {
id: "req-measure-report",
title: "Example Measure",
type: PageType.Measure,
Expand All @@ -66,6 +66,30 @@ const testReport: Report = {
},
],
},
[MeasureTemplateName["LTSS-2"]]: {
id: "",
title: "",
type: PageType.Measure,
elements: [],
},
[MeasureTemplateName["LTSS-6"]]: {
id: "",
title: "",
type: PageType.Measure,
elements: [],
},
[MeasureTemplateName["LTSS-7"]]: {
id: "",
title: "",
type: PageType.Measure,
elements: [],
},
[MeasureTemplateName["LTSS-8"]]: {
id: "",
title: "",
type: PageType.Measure,
elements: [],
},
},
};

Expand Down
6 changes: 5 additions & 1 deletion services/ui-src/src/types/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ export interface MeasureOptions {
}

export enum MeasureTemplateName {
StandardMeasure,
"LTSS-1",
"LTSS-2",
"LTSS-6",
"LTSS-7",
"LTSS-8",
}

export interface FormComponent {
Expand Down

0 comments on commit 5947daf

Please sign in to comment.