From 4baba9132014f53556d173dc3a8aa38845179f5b Mon Sep 17 00:00:00 2001 From: James Dinh Date: Fri, 3 Jan 2025 13:17:54 -0800 Subject: [PATCH] correct verbage for med and chip spa --- .../emailTemplates/ChipSpaCMS.tsx | 2 +- .../emailTemplates/ChipSpaState.tsx | 20 +- .../emailTemplates/MedSpaState.tsx | 5 +- .../respondToRai/emailTemplates/MedSpaCMS.tsx | 2 +- .../InitialSubmissionCMS.test.tsx.snap | 10 +- .../InitialSubmissionState.test.tsx.snap | 687 +++++++----------- .../__snapshots__/ResToRaiCMS.test.tsx.snap | 6 +- .../shared-types/events/capitated-initial.ts | 24 +- .../events/contracting-initial.ts | 9 +- 9 files changed, 301 insertions(+), 464 deletions(-) diff --git a/lib/libs/email/content/new-submission/emailTemplates/ChipSpaCMS.tsx b/lib/libs/email/content/new-submission/emailTemplates/ChipSpaCMS.tsx index 663728a594..0713a4b0bd 100644 --- a/lib/libs/email/content/new-submission/emailTemplates/ChipSpaCMS.tsx +++ b/lib/libs/email/content/new-submission/emailTemplates/ChipSpaCMS.tsx @@ -27,7 +27,7 @@ export const ChipSpaCMSEmail = (props: { details={{ "State or Territory": variables.territory, Name: variables.submitterName, - Email: variables.submitterEmail, + "Email Address": variables.submitterEmail, "CHIP SPA Package ID": variables.id, Summary: variables.additionalInformation, }} diff --git a/lib/libs/email/content/new-submission/emailTemplates/ChipSpaState.tsx b/lib/libs/email/content/new-submission/emailTemplates/ChipSpaState.tsx index 54d363bed5..a42913be92 100644 --- a/lib/libs/email/content/new-submission/emailTemplates/ChipSpaState.tsx +++ b/lib/libs/email/content/new-submission/emailTemplates/ChipSpaState.tsx @@ -1,6 +1,6 @@ import { Events } from "shared-types"; import { CommonEmailVariables } from "shared-types"; -import { Text } from "@react-email/components"; +import { Link, Text } from "@react-email/components"; import { PackageDetails, FollowUpNotice, @@ -15,21 +15,22 @@ export const ChipSpaStateEmail = (props: { }) => { const variables = props.variables; const previewText = `CHIP SPA ${variables.id} Submitted`; - const heading = "This response confirms the submission of your CHIP State Plan Amendment to CMS:"; + const heading = + "This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:"; return ( } + // footerContent={} > - + + {" "} + If you have questions or did not expect this email, please contact{" "} + + CHIPSPASubmissionMailBox@CMS.HHS.gov + + ); }; diff --git a/lib/libs/email/content/new-submission/emailTemplates/MedSpaState.tsx b/lib/libs/email/content/new-submission/emailTemplates/MedSpaState.tsx index 9820fa6298..52352ac997 100644 --- a/lib/libs/email/content/new-submission/emailTemplates/MedSpaState.tsx +++ b/lib/libs/email/content/new-submission/emailTemplates/MedSpaState.tsx @@ -22,7 +22,7 @@ export const MedSpaStateEmail = (props: { previewText={previewText} heading={heading} applicationEndpointUrl={variables.applicationEndpointUrl} - footerContent={} + // footerContent={} > {`This response confirms the receipt of your Medicaid State Plan Amendment - (SPA). You can expect a formal response to your submittal to be issued + (SPA or your response to a SPA Request for Additional Information (RAI)). You can expect a formal response to your submittal to be issued within 90 days, before ${formatNinetyDaysDate(variables.timestamp)}.`} + ); }; diff --git a/lib/libs/email/content/respondToRai/emailTemplates/MedSpaCMS.tsx b/lib/libs/email/content/respondToRai/emailTemplates/MedSpaCMS.tsx index 3fa1fec30e..cbdc9cf6a0 100644 --- a/lib/libs/email/content/respondToRai/emailTemplates/MedSpaCMS.tsx +++ b/lib/libs/email/content/respondToRai/emailTemplates/MedSpaCMS.tsx @@ -26,7 +26,7 @@ export const MedSpaCMSEmail = (props: { details={{ "State or Territory": variables.territory, Name: variables.submitterName, - Email: variables.submitterEmail, + "Email Address": variables.submitterEmail, "Medicaid SPA Package ID": variables.id, Summary: variables.additionalInformation, }} diff --git a/lib/libs/email/preview/Initial Submissions/CMS/__snapshots__/InitialSubmissionCMS.test.tsx.snap b/lib/libs/email/preview/Initial Submissions/CMS/__snapshots__/InitialSubmissionCMS.test.tsx.snap index d791263bf4..c17724f95b 100644 --- a/lib/libs/email/preview/Initial Submissions/CMS/__snapshots__/InitialSubmissionCMS.test.tsx.snap +++ b/lib/libs/email/preview/Initial Submissions/CMS/__snapshots__/InitialSubmissionCMS.test.tsx.snap @@ -2047,7 +2047,7 @@ exports[`Initial Submission CMS Email Snapshot Test > renders a Chipspa Preview

- Email + Email Address :

@@ -2754,7 +2754,7 @@ exports[`Initial Submission CMS Email Snapshot Test > renders a Chipspa Preview

- Email + Email Address :

@@ -4101,7 +4101,7 @@ exports[`Initial Submission CMS Email Snapshot Test > renders a Medicaid Spa Pre

- Email + Email Address :

@@ -7137,7 +7137,7 @@ exports[`Initial Submission CMS Email Snapshot Test > renders a TempExt Preview

- Email + Email Address :

@@ -10365,7 +10365,7 @@ exports[`Initial Submission CMS Email Snapshot Test > renders a Waiver Capitated

- Email + Email Address :

diff --git a/lib/libs/email/preview/Initial Submissions/State/__snapshots__/InitialSubmissionState.test.tsx.snap b/lib/libs/email/preview/Initial Submissions/State/__snapshots__/InitialSubmissionState.test.tsx.snap index 61b2eafbae..6666d3eefd 100644 --- a/lib/libs/email/preview/Initial Submissions/State/__snapshots__/InitialSubmissionState.test.tsx.snap +++ b/lib/libs/email/preview/Initial Submissions/State/__snapshots__/InitialSubmissionState.test.tsx.snap @@ -1661,7 +1661,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Chipspa Previe

- This response confirms the submission of your CHIP State Plan Amendment to CMS: + This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:


renders a Chipspa Previe

- Email + Email Address :

@@ -1880,10 +1880,18 @@ exports[`Initial Submission State Email Snapshot Test > renders a Chipspa Previe This response confirms the receipt of your CHIP State Plan Amendment (CHIP SPA). You can expect a formal response to your submittal from CMS at a later date.

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. + + If you have questions or did not expect this email, please contact + + + CHIPSPASubmissionMailBox@CMS.HHS.gov +

renders a Chipspa Previe > - -


- - - - - - -
-

- If you have any questions, please contact - - - CHIPSPASubmissionMailBox@cms.hhs.gov - - or your state lead. -

-
- + @@ -2027,7 +2002,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Chipspa Previe

- This response confirms the submission of your CHIP State Plan Amendment to CMS: + This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:


renders a Chipspa Previe

- Email + Email Address :

@@ -2246,10 +2221,18 @@ exports[`Initial Submission State Email Snapshot Test > renders a Chipspa Previe This response confirms the receipt of your CHIP State Plan Amendment (CHIP SPA). You can expect a formal response to your submittal from CMS at a later date.

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. + + If you have questions or did not expect this email, please contact + + + CHIPSPASubmissionMailBox@CMS.HHS.gov +

renders a Chipspa Previe > - -


- - - - - - -
-

- If you have any questions, please contact - - - CHIPSPASubmissionMailBox@cms.hhs.gov - - or your state lead. -

-
- + @@ -2956,7 +2906,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Medicaid Spa P

- This response confirms the submission of your CHIP State Plan Amendment to CMS: + This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:


renders a Medicaid Spa P

- Email + Email Address :

@@ -3175,10 +3125,18 @@ exports[`Initial Submission State Email Snapshot Test > renders a Medicaid Spa P This response confirms the receipt of your CHIP State Plan Amendment (CHIP SPA). You can expect a formal response to your submittal from CMS at a later date.

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. + + If you have questions or did not expect this email, please contact + + + CHIPSPASubmissionMailBox@CMS.HHS.gov +

renders a Medicaid Spa P > - -


- - - - - - -
-

- If you have any questions, please contact - - - CHIPSPASubmissionMailBox@cms.hhs.gov - - or your state lead. -

-
- + @@ -3614,7 +3539,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Medicaid Spa P style="font-size: 14px; line-height: 1.4; margin: 4px 0px 4px 0px; color: rgb(51, 51, 51);" > This response confirms the receipt of your Medicaid State Plan Amendment - (SPA). You can expect a formal response to your submittal to be issued + (SPA or your response to a SPA Request for Additional Information (RAI)). You can expect a formal response to your submittal to be issued within 90 days, before Apr 1, 2023 @ 11:59pm ET.

renders a Medicaid Spa P This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. Any other correspondence will be disregarded.

+
+ + + + + + +
+

+ If you have any questions or did not expect this email, please contact + + + spa@cms.hhs.gov + + . +

+

@@ -3640,40 +3597,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Medicaid Spa P > - -


- - - - - - -
-

- If you have any questions or did not expect this email, please contact - - - spa@cms.hhs.gov - - or your state lead. -

-
- + @@ -4058,7 +3982,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Medicaid Spa P style="font-size: 14px; line-height: 1.4; margin: 4px 0px 4px 0px; color: rgb(51, 51, 51);" > This response confirms the receipt of your Medicaid State Plan Amendment - (SPA). You can expect a formal response to your submittal to be issued + (SPA or your response to a SPA Request for Additional Information (RAI)). You can expect a formal response to your submittal to be issued within 90 days, before Apr 1, 2023 @ 11:59pm ET.

renders a Medicaid Spa P This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. Any other correspondence will be disregarded.

+
+ + + + + + +
+

+ If you have any questions or did not expect this email, please contact + + + spa@cms.hhs.gov + + . +

+

@@ -4084,40 +4040,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Medicaid Spa P > - -


- - - - - - -
-

- If you have any questions or did not expect this email, please contact - - - spa@cms.hhs.gov - - or your state lead. -

-
- + @@ -4772,7 +4695,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a TempExt Previe

- This response confirms the submission of your CHIP State Plan Amendment to CMS: + This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:


renders a TempExt Previe

- Email + Email Address :

@@ -4991,10 +4914,18 @@ exports[`Initial Submission State Email Snapshot Test > renders a TempExt Previe This response confirms the receipt of your CHIP State Plan Amendment (CHIP SPA). You can expect a formal response to your submittal from CMS at a later date.

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. + + If you have questions or did not expect this email, please contact + + + CHIPSPASubmissionMailBox@CMS.HHS.gov +

renders a TempExt Previe > - -


- - - - - - -
-

- If you have any questions, please contact - - - CHIPSPASubmissionMailBox@cms.hhs.gov - - or your state lead. -

-
- + @@ -5426,19 +5324,51 @@ exports[`Initial Submission State Email Snapshot Test > renders a TempExt Previe -

- This response confirms the receipt of your Medicaid State Plan Amendment - (SPA). You can expect a formal response to your submittal to be issued - within 90 days, before Apr 1, 2023 @ 11:59pm ET. -

-

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. -

+

+ This response confirms the receipt of your Medicaid State Plan Amendment + (SPA or your response to a SPA Request for Additional Information (RAI)). You can expect a formal response to your submittal to be issued + within 90 days, before Apr 1, 2023 @ 11:59pm ET. +

+

+ This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. + Any other correspondence will be disregarded. +

+
+ + + + + + +
+

+ If you have any questions or did not expect this email, please contact + + + spa@cms.hhs.gov + + . +

+

@@ -5456,40 +5386,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a TempExt Previe > - -


- - - - - - -
-

- If you have any questions or did not expect this email, please contact - - - spa@cms.hhs.gov - - or your state lead. -

-
- + @@ -7113,7 +7010,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Waiver Capitat

- This response confirms the submission of your CHIP State Plan Amendment to CMS: + This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:


renders a Waiver Capitat

- Email + Email Address :

@@ -7332,10 +7229,18 @@ exports[`Initial Submission State Email Snapshot Test > renders a Waiver Capitat This response confirms the receipt of your CHIP State Plan Amendment (CHIP SPA). You can expect a formal response to your submittal from CMS at a later date.

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. + + If you have questions or did not expect this email, please contact + + + CHIPSPASubmissionMailBox@CMS.HHS.gov +

renders a Waiver Capitat > - -


- - - - - - -
-

- If you have any questions, please contact - - - CHIPSPASubmissionMailBox@cms.hhs.gov - - or your state lead. -

-
- + @@ -7771,7 +7643,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Waiver Capitat style="font-size: 14px; line-height: 1.4; margin: 4px 0px 4px 0px; color: rgb(51, 51, 51);" > This response confirms the receipt of your Medicaid State Plan Amendment - (SPA). You can expect a formal response to your submittal to be issued + (SPA or your response to a SPA Request for Additional Information (RAI)). You can expect a formal response to your submittal to be issued within 90 days, before Apr 1, 2023 @ 11:59pm ET.

renders a Waiver Capitat This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. Any other correspondence will be disregarded.

+
+ + + + + + +
+

+ If you have any questions or did not expect this email, please contact + + + spa@cms.hhs.gov + + . +

+

@@ -7797,40 +7701,7 @@ exports[`Initial Submission State Email Snapshot Test > renders a Waiver Capitat > - -


- - - - - - -
-

- If you have any questions or did not expect this email, please contact - - - spa@cms.hhs.gov - - or your state lead. -

-
- + @@ -10128,7 +9999,7 @@ exports[`renders a Waiver Contracting Preview Template 1`] = `

- This response confirms the submission of your CHIP State Plan Amendment to CMS: + This is confirmation that you submitted a CHIP State Plan Amendment to CMS for review:


- Email + Email Address :

@@ -10347,10 +10218,18 @@ exports[`renders a Waiver Contracting Preview Template 1`] = ` This response confirms the receipt of your CHIP State Plan Amendment (CHIP SPA). You can expect a formal response to your submittal from CMS at a later date.

- This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted SPAs only. - Any other correspondence will be disregarded. + + If you have questions or did not expect this email, please contact + + + CHIPSPASubmissionMailBox@CMS.HHS.gov +

- -


- - - - - - -
-

- If you have any questions, please contact - - - CHIPSPASubmissionMailBox@cms.hhs.gov - - or your state lead. -

-
- + @@ -10786,7 +10632,7 @@ exports[`renders a Waiver Contracting Preview Template 1`] = ` style="font-size: 14px; line-height: 1.4; margin: 4px 0px 4px 0px; color: rgb(51, 51, 51);" > This response confirms the receipt of your Medicaid State Plan Amendment - (SPA). You can expect a formal response to your submittal to be issued + (SPA or your response to a SPA Request for Additional Information (RAI)). You can expect a formal response to your submittal to be issued within 90 days, before Apr 1, 2023 @ 11:59pm ET.

+


+ + + + + + +
+

+ If you have any questions or did not expect this email, please contact + + + spa@cms.hhs.gov + + . +

+

@@ -10812,40 +10690,7 @@ exports[`renders a Waiver Contracting Preview Template 1`] = ` > - -


- - - - - - -
-

- If you have any questions or did not expect this email, please contact - - - spa@cms.hhs.gov - - or your state lead. -

-
- + diff --git a/lib/libs/email/preview/Respond to Rai/CMS/__snapshots__/ResToRaiCMS.test.tsx.snap b/lib/libs/email/preview/Respond to Rai/CMS/__snapshots__/ResToRaiCMS.test.tsx.snap index 0a6c213a41..723e74c6ae 100644 --- a/lib/libs/email/preview/Respond to Rai/CMS/__snapshots__/ResToRaiCMS.test.tsx.snap +++ b/lib/libs/email/preview/Respond to Rai/CMS/__snapshots__/ResToRaiCMS.test.tsx.snap @@ -4175,7 +4175,7 @@ exports[`Respond To RAI CMS Email Snapshot Test > renders a Medicaid_SPA Preview

- Email + Email Address :

@@ -4818,7 +4818,7 @@ exports[`Respond To RAI CMS Email Snapshot Test > renders a Medicaid_SPA Preview

- Email + Email Address :

@@ -6638,7 +6638,7 @@ exports[`Respond To RAI CMS Email Snapshot Test > renders a Waiver Capitated Pre

- Email + Email Address :

diff --git a/lib/packages/shared-types/events/capitated-initial.ts b/lib/packages/shared-types/events/capitated-initial.ts index 4b67654273..577061a0b2 100644 --- a/lib/packages/shared-types/events/capitated-initial.ts +++ b/lib/packages/shared-types/events/capitated-initial.ts @@ -1,8 +1,5 @@ import { z } from "zod"; -import { - attachmentArraySchema, - attachmentArraySchemaOptional, -} from "../attachments"; +import { attachmentArraySchema, attachmentArraySchemaOptional } from "../attachments"; export const baseSchema = z.object({ event: z.literal("capitated-initial").default("capitated-initial"), @@ -17,19 +14,13 @@ export const baseSchema = z.object({ proposedEffectiveDate: z.number(), attachments: z.object({ bCapWaiverApplication: z.object({ - label: z - .string() - .default( - "1915(b) Comprehensive (Capitated) Waiver Application Pre-print", - ), + label: z.string().default("1915(b) Comprehensive (Capitated) Waiver Application Pre-print"), files: attachmentArraySchema(), }), bCapCostSpreadsheets: z.object({ label: z .string() - .default( - "1915(b) Comprehensive (Capitated) Waiver Cost Effectiveness Spreadsheets", - ), + .default("1915(b) Comprehensive (Capitated) Waiver Cost Effectiveness Spreadsheets"), files: attachmentArraySchema(), }), tribalConsultation: z.object({ @@ -41,16 +32,11 @@ export const baseSchema = z.object({ files: attachmentArraySchemaOptional(), }), }), - additionalInformation: z - .string() - .max(4000) - .nullable() - .default(null) - .optional(), + additionalInformation: z.string().max(4000).nullable().default(null).optional(), }); export const schema = baseSchema.extend({ - actionType: z.string().default("New"), + actionType: z.string().default("Initial"), origin: z.literal("mako").default("mako"), submitterName: z.string(), submitterEmail: z.string().email(), diff --git a/lib/packages/shared-types/events/contracting-initial.ts b/lib/packages/shared-types/events/contracting-initial.ts index 4dfc4bd23e..7962326055 100644 --- a/lib/packages/shared-types/events/contracting-initial.ts +++ b/lib/packages/shared-types/events/contracting-initial.ts @@ -28,16 +28,11 @@ export const baseSchema = z.object({ files: attachmentArraySchemaOptional(), }), }), - additionalInformation: z - .string() - .max(4000) - .nullable() - .default(null) - .optional(), + additionalInformation: z.string().max(4000).nullable().default(null).optional(), }); export const schema = baseSchema.extend({ - actionType: z.string().default("New"), + actionType: z.string().default("Initial"), origin: z.literal("mako").default("mako"), submitterName: z.string(), submitterEmail: z.string().email(),