From c311818dd56349f834457fa2e1c2a12833bcaa79 Mon Sep 17 00:00:00 2001 From: Bangbay Siboliban Date: Wed, 6 Nov 2024 11:26:25 -0500 Subject: [PATCH] Fix validateDOM warnings (#11915) --- services/app-api/forms/mcpar.json | 8 +- services/app-api/forms/mlr.json | 15 +- .../completionStatus/mcpar-template.test.json | 8 +- .../ui-src/src/verbiage/pages/accordion.ts | 200 +++++++++--------- services/ui-src/src/verbiage/pages/help.ts | 123 ++++++----- .../verbiage/pages/mcpar/mcpar-dashboard.ts | 31 ++- .../pages/mcpar/mcpar-review-and-submit.ts | 2 +- .../pages/mlr/mlr-review-and-submit.ts | 2 +- tests/cypress/e2e/mcpar/mcpar-copy.json | 8 +- 9 files changed, 200 insertions(+), 197 deletions(-) diff --git a/services/app-api/forms/mcpar.json b/services/app-api/forms/mcpar.json index 5a1d47515..708f5a32c 100644 --- a/services/app-api/forms/mcpar.json +++ b/services/app-api/forms/mcpar.json @@ -28,8 +28,12 @@ }, "praDisclosure": [ { - "type": "span", - "content": "PRA Disclosure Statement
According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" + "type": "p", + "content": "PRA Disclosure Statement" + }, + { + "type": "p", + "content": "According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" } ] }, diff --git a/services/app-api/forms/mlr.json b/services/app-api/forms/mlr.json index 47d4f1efe..a39841aad 100644 --- a/services/app-api/forms/mlr.json +++ b/services/app-api/forms/mlr.json @@ -22,16 +22,11 @@ "praDisclosure": [ { "type": "p", - "children": [ - { - "type": "html", - "content": "PRA Disclosure Statement" - }, - { - "type": "p", - "content": "According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" - } - ] + "content": "PRA Disclosure Statement" + }, + { + "type": "p", + "content": "According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" } ] }, diff --git a/services/app-api/utils/testing/fixtures/completionStatus/mcpar-template.test.json b/services/app-api/utils/testing/fixtures/completionStatus/mcpar-template.test.json index 4659fb402..2ff54719f 100644 --- a/services/app-api/utils/testing/fixtures/completionStatus/mcpar-template.test.json +++ b/services/app-api/utils/testing/fixtures/completionStatus/mcpar-template.test.json @@ -28,8 +28,12 @@ }, "praDisclosure": [ { - "type": "span", - "content": "PRA Disclosure Statement
According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" + "type": "p", + "content": "PRA Disclosure Statement" + }, + { + "type": "p", + "content": "According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" } ] }, diff --git a/services/ui-src/src/verbiage/pages/accordion.ts b/services/ui-src/src/verbiage/pages/accordion.ts index a266a7c37..f076a9b4b 100644 --- a/services/ui-src/src/verbiage/pages/accordion.ts +++ b/services/ui-src/src/verbiage/pages/accordion.ts @@ -3,70 +3,65 @@ export default { adminDashboard: { buttonLabel: "Instructions", intro: [ + { + type: "p", + content: "State User Instructions", + }, { type: "p", children: [ { - type: "p", - content: "State User Instructions", - }, - { - type: "p", - children: [ - { - type: "html", - content: "As described at ", - }, - { - type: "externalLink", - content: "42 CFR § 438.74", - props: { - href: "https://www.ecfr.gov/current/title-42/chapter-IV/subchapter-C/part-438/subpart-B/section-438.74", - target: "_blank", - "aria-label": "42 CFR § 438.74 (link opens in new tab)", - }, - }, - { - type: "html", - content: - ", states are required to report summary Medical Loss Ratio (MLR) reports to the Centers for Medicare & Medicaid Services (CMS). The summary MLR report submission coincides with the state’s submission of the annual base rate certification. The summary reports are based on the plans’ annual MLR reports to the state required under ", - }, - { - type: "externalLink", - content: "42 CFR § 438.8(k)", - props: { - href: "https://www.ecfr.gov/current/title-42/chapter-IV/subchapter-C/part-438/subpart-A/section-438.8#p-438.8(k)", - target: "_blank", - "aria-label": "42 CFR § 438.8(k) (link opens in new tab)", - }, - }, - { - type: "html", - content: - ". If the state needs to revise MLR reports previously submitted using the online form, ask your CMS contact to reopen the related submission, which will change it to an “In revision” status. If the state needs to revise MLR reports previously submitted using the Excel Workbook or other format, reach out to your CMS contact to discuss next steps. ", - }, - { - type: "externalLink", - content: "Learn more about the Medical Loss Ratio report", - props: { - href: "https://www.medicaid.gov/medicaid/managed-care/guidance/medicaid-and-chip-managed-care-reporting/index.html#MLR", - target: "_blank", - "aria-label": - "Learn more about the Medical Loss Ratio report (link opens in new tab)", - }, - }, - { - type: "html", - content: ".", - }, - ], - }, - { - type: "p", - content: "CMS Admin Instructions", + type: "html", + content: "As described at ", + }, + { + type: "externalLink", + content: "42 CFR § 438.74", + props: { + href: "https://www.ecfr.gov/current/title-42/chapter-IV/subchapter-C/part-438/subpart-B/section-438.74", + target: "_blank", + "aria-label": "42 CFR § 438.74 (link opens in new tab)", + }, + }, + { + type: "html", + content: + ", states are required to report summary Medical Loss Ratio (MLR) reports to the Centers for Medicare & Medicaid Services (CMS). The summary MLR report submission coincides with the state’s submission of the annual base rate certification. The summary reports are based on the plans’ annual MLR reports to the state required under ", + }, + { + type: "externalLink", + content: "42 CFR § 438.8(k)", + props: { + href: "https://www.ecfr.gov/current/title-42/chapter-IV/subchapter-C/part-438/subpart-A/section-438.8#p-438.8(k)", + target: "_blank", + "aria-label": "42 CFR § 438.8(k) (link opens in new tab)", + }, + }, + { + type: "html", + content: + ". If the state needs to revise MLR reports previously submitted using the online form, ask your CMS contact to reopen the related submission, which will change it to an “In revision” status. If the state needs to revise MLR reports previously submitted using the Excel Workbook or other format, reach out to your CMS contact to discuss next steps. ", + }, + { + type: "externalLink", + content: "Learn more about the Medical Loss Ratio report", + props: { + href: "https://www.medicaid.gov/medicaid/managed-care/guidance/medicaid-and-chip-managed-care-reporting/index.html#MLR", + target: "_blank", + "aria-label": + "Learn more about the Medical Loss Ratio report (link opens in new tab)", + }, + }, + { + type: "html", + content: ".", }, ], }, + { + type: "p", + content: "CMS Admin Instructions", + }, ], list: [ "To allow a state to make corrections or edits to a submission use “Unlock” to release the submission. The status will change to “In revision”.", @@ -158,29 +153,29 @@ export default { content: ". States have the option of reporting these data for each managed care program, statewide, or at another level of aggregation (e.g., eligibility groups). Managed care program is defined by a specified set of benefits and eligibility criteria that are articulated in a contract between the state and managed care plans. In general, MLR data should not be aggregated across programs; however, if a managed care plan participates in more than one program with the state—the state can report the plan's MLRs for each program separately or combine the plan's results across managed care programs. If a state combines the plan's reporting across programs, the report must use a consistent MLR reporting year.", }, + ], + }, + { + type: "p", + children: [ { - type: "p", - children: [ - { - type: "html", - content: - "States must report MLRs for both credible and non-credible MCOs, PIHPs, and PAHPs. There is no exception for MLR reporting for non-credible managed care plans. Under ", - }, - { - type: "externalLink", - content: "42 CFR § 438.8(l)", - props: { - href: "https://www.ecfr.gov/current/title-42/chapter-IV/subchapter-C/part-438/subpart-A/section-438.8#p-438.8(l)", - target: "_blank", - "aria-label": "42 CFR § 438.8(l) (link opens in new tab)", - }, - }, - { - type: "html", - content: - " a state may exclude a plan that is newly contracted with the state from this reporting for the first year of the plan's operation. These “new experience” plans must report MLRs during the next MLR reporting year in which the plan is in business with the state, even if the first year was not a full 12 months.", - }, - ], + type: "html", + content: + "States must report MLRs for both credible and non-credible MCOs, PIHPs, and PAHPs. There is no exception for MLR reporting for non-credible managed care plans. Under ", + }, + { + type: "externalLink", + content: "42 CFR § 438.8(l)", + props: { + href: "https://www.ecfr.gov/current/title-42/chapter-IV/subchapter-C/part-438/subpart-A/section-438.8#p-438.8(l)", + target: "_blank", + "aria-label": "42 CFR § 438.8(l) (link opens in new tab)", + }, + }, + { + type: "html", + content: + " a state may exclude a plan that is newly contracted with the state from this reporting for the first year of the plan's operation. These “new experience” plans must report MLRs during the next MLR reporting year in which the plan is in business with the state, even if the first year was not a full 12 months.", }, ], }, @@ -191,37 +186,32 @@ export default { detailIntro: { buttonLabel: "Instructions", intro: [ + { + type: "p", + content: + "States must report the five required MLR summary elements. Note that the form fields do not automatically calculate the MLR numerator, denominator, or MLR percentage. Each element must be entered manually. Fields marked as “optional” are included to allow states to report additional MLR data that states currently collect from MCOs, PIHPs, or PAHPs.", + }, { type: "p", children: [ { - type: "p", + type: "html", content: - "States must report the five required MLR summary elements. Note that the form fields do not automatically calculate the MLR numerator, denominator, or MLR percentage. Each element must be entered manually. Fields marked as “optional” are included to allow states to report additional MLR data that states currently collect from MCOs, PIHPs, or PAHPs.", - }, - { - type: "p", - children: [ - { - type: "html", - content: - "Note: States that are reporting non-credible plans should enter member month values in section 3.1 as described below. States should report all other required MLR reporting elements (sections 1.3, 2.3, 3.4) with the value 0, and answer “No” for section 4.1 when reporting non-credible plan information. Reporting in this way will ensure that the progress indicators result in a “complete” status. Information on non-credible plans and credibility adjustment calculations is available from ", - }, - { - type: "externalLink", - content: "CMCS Informational Bulletin dated July 31, 2017", - props: { - href: "https://www.medicaid.gov/federal-policy-guidance/downloads/cib073117.pdf", - target: "_blank", - "aria-label": - "CMCS Informational Bulletin dated July 31, 2017 (link opens in new tab)", - }, - }, - { - type: "html", - content: ".", - }, - ], + "Note: States that are reporting non-credible plans should enter member month values in section 3.1 as described below. States should report all other required MLR reporting elements (sections 1.3, 2.3, 3.4) with the value 0, and answer “No” for section 4.1 when reporting non-credible plan information. Reporting in this way will ensure that the progress indicators result in a “complete” status. Information on non-credible plans and credibility adjustment calculations is available from ", + }, + { + type: "externalLink", + content: "CMCS Informational Bulletin dated July 31, 2017", + props: { + href: "https://www.medicaid.gov/federal-policy-guidance/downloads/cib073117.pdf", + target: "_blank", + "aria-label": + "CMCS Informational Bulletin dated July 31, 2017 (link opens in new tab)", + }, + }, + { + type: "html", + content: ".", }, ], }, diff --git a/services/ui-src/src/verbiage/pages/help.ts b/services/ui-src/src/verbiage/pages/help.ts index 85123d35b..249ba0ee0 100644 --- a/services/ui-src/src/verbiage/pages/help.ts +++ b/services/ui-src/src/verbiage/pages/help.ts @@ -66,84 +66,95 @@ export default { type: "html", content: ").

", }, + ], + }, + { + type: "p", + content: + "Please follow these section-by-section instructions for PCCM-Es:", + }, + { + type: "ul", + content: "", + children: [ + { + type: "li", + children: [ + { + type: "html", + content: + "In section A.7, Program Information, write the name of the PCCM-E as the Plan.", + }, + { + type: "html", + content: "

", + }, + ], + }, + { + type: "li", + children: [ + { + type: "html", + content: + "In section C1.I.3 Topic 1, Program Characteristics, the radio button for PCCM-E will be pre-selected.", + }, + { + type: "html", + content: "

", + }, + ], + }, { - type: "p", + type: "li", children: [ { type: "html", content: - "Please follow these section-by-section instructions for PCCM-Es:
", + "In section D.VIII, Sanctions, PCCM-Es should describe sanctions the state has issued against the PCCM-E itself.", }, { - type: "ul", - content: "", - children: [ - { - type: "li", - children: [ - { - type: "html", - content: - "In section A.7, Program Information, write the name of the PCCM-E as the Plan.

", - }, - ], - }, - { - type: "li", - children: [ - { - type: "html", - content: - "In section C1.I.3 Topic 1, Program Characteristics, the radio button for PCCM-E will be pre-selected.

", - }, - ], - }, - { - type: "li", - children: [ - { - type: "html", - content: - "In section D.VIII, Sanctions, PCCM-Es should describe sanctions the state has issued against the PCCM-E itself.

", - }, - ], - }, - { - type: "li", - children: [ - { - type: "span", - content: - "Report all known actions across the following domains: sanctions, administrative penalties, corrective action plans, other. Include any pending or unresolved actions.", - }, - ], - }, - ], + type: "html", + content: "

", }, ], }, { - type: "p", + type: "li", children: [ { type: "html", - as: "b", content: - "
Please note: States can voluntarily report additional information about their PCCM-Es beyond the designated sections in the PCCM-E specific form. If a state wants to report additional information, please contact ", + "Report all known actions across the following domains: sanctions, administrative penalties, corrective action plans, other. Include any pending or unresolved actions.", }, { - type: "externalLink", - content: "ManagedCareTA@cms.hhs.gov", - props: { - href: "mailto:ManagedCareTA@cms.hhs.gov", - target: "_blank", - "aria-label": "Mail to ManagedCareTA@cms.hhs.gov", - }, + type: "html", + content: "

", }, ], }, ], }, + { + type: "p", + children: [ + { + type: "html", + as: "b", + content: + "Please note: States can voluntarily report additional information about their PCCM-Es beyond the designated sections in the PCCM-E specific form. If a state wants to report additional information, please contact ", + }, + { + type: "externalLink", + content: "ManagedCareTA@cms.hhs.gov", + props: { + href: "mailto:ManagedCareTA@cms.hhs.gov", + target: "_blank", + "aria-label": "Mail to ManagedCareTA@cms.hhs.gov", + }, + }, + ], + }, ], }, ], diff --git a/services/ui-src/src/verbiage/pages/mcpar/mcpar-dashboard.ts b/services/ui-src/src/verbiage/pages/mcpar/mcpar-dashboard.ts index a2646252d..03950eb2f 100644 --- a/services/ui-src/src/verbiage/pages/mcpar/mcpar-dashboard.ts +++ b/services/ui-src/src/verbiage/pages/mcpar/mcpar-dashboard.ts @@ -2,31 +2,26 @@ export default { intro: { header: "Managed Care Program Annual Report (MCPAR)", body: [ + { + type: "p", + content: + "One MCPAR is required for every managed care program in your state.", + }, { type: "p", children: [ { type: "html", - content: - "One MCPAR is required for every managed care program in your state.", + content: "MCPAR is required by 42 CFR § 438.66(e). ", }, { - type: "p", - children: [ - { - type: "html", - content: "MCPAR is required by 42 CFR § 438.66(e). ", - }, - { - type: "externalLink", - content: "Learn more", - props: { - href: "https://www.medicaid.gov/medicaid/managed-care/guidance/medicaid-and-chip-managed-care-reporting/index.html#AMCPR", - target: "_blank", - "aria-label": "Learn more (link opens in new tab)", - }, - }, - ], + type: "externalLink", + content: "Learn more", + props: { + href: "https://www.medicaid.gov/medicaid/managed-care/guidance/medicaid-and-chip-managed-care-reporting/index.html#AMCPR", + target: "_blank", + "aria-label": "Learn more (link opens in new tab)", + }, }, ], }, diff --git a/services/ui-src/src/verbiage/pages/mcpar/mcpar-review-and-submit.ts b/services/ui-src/src/verbiage/pages/mcpar/mcpar-review-and-submit.ts index fdbca9940..b2c6cca56 100644 --- a/services/ui-src/src/verbiage/pages/mcpar/mcpar-review-and-submit.ts +++ b/services/ui-src/src/verbiage/pages/mcpar/mcpar-review-and-submit.ts @@ -10,7 +10,7 @@ export default { infoHeader: "Ready to Submit?", info: [ { - type: "p", + type: "span", children: [ { type: "html", diff --git a/services/ui-src/src/verbiage/pages/mlr/mlr-review-and-submit.ts b/services/ui-src/src/verbiage/pages/mlr/mlr-review-and-submit.ts index f99741103..737c02655 100644 --- a/services/ui-src/src/verbiage/pages/mlr/mlr-review-and-submit.ts +++ b/services/ui-src/src/verbiage/pages/mlr/mlr-review-and-submit.ts @@ -10,7 +10,7 @@ export default { infoHeader: "Ready to Submit?", info: [ { - type: "p", + type: "span", children: [ { type: "html", diff --git a/tests/cypress/e2e/mcpar/mcpar-copy.json b/tests/cypress/e2e/mcpar/mcpar-copy.json index 1999a6e8f..3b8c237ca 100644 --- a/tests/cypress/e2e/mcpar/mcpar-copy.json +++ b/tests/cypress/e2e/mcpar/mcpar-copy.json @@ -28,8 +28,12 @@ }, "praDisclosure": [ { - "type": "span", - "content": "PRA Disclosure Statement
According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" + "type": "p", + "content": "PRA Disclosure Statement" + }, + { + "type": "p", + "content": "According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless it displays a valid OMB control number. The valid OMB control number for this information collection is 0938-0920 (Expires: June 30, 2024). The time required to complete this information collection is estimated to average 6 hours per response, including the time to review instructions, search existing data resources, gather the data needed, and complete and review the information collection. If you have comments concerning the accuracy of the time estimate(s) or suggestions for improving this form, please write to: CMS, 7500 Security Boulevard, Attn: PRA Reports Clearance Officer, Mail Stop C4-26-05, Baltimore, Maryland 21244-1850" } ] },