diff --git a/lib/libs/email/content/new-submission.ts b/lib/libs/email/content/new-submission.ts index 2e578837b2..b7c522200b 100644 --- a/lib/libs/email/content/new-submission.ts +++ b/lib/libs/email/content/new-submission.ts @@ -248,282 +248,132 @@ Thank you!`, }; }, }, - [Authority["1915b"]]: { - cms: async (variables: OneMac & CommonVariables) => { - return { - subject: `${variables.authority} ${variables.id} Submitted`, - html: ` -

The OneMAC Submission Portal received a 1915(b) ${ - variables.actionType - } Submission:

- -

-
State or territory: ${variables.territory} -
Name: ${variables.submitterName} -
Email Address: ${variables.submitterEmail} -
${variables.actionType} Number: ${variables.id} -

Waiver Authority: ${variables.authority} -
Proposed Effective Date: ${DateTime.fromMillis( - variables.notificationMetadata?.proposedEffectiveDate!, - ).toFormat("DDDD")} -

- Summary: -
${variables.additionalInformation} -
-
Files: -
${formatAttachments("html", variables.attachments)} -
-

If the contents of this email seem suspicious, do not open them, and instead - forward this email to SPAM@cms.hhs.gov.

-

Thank you!

`, - text: ` - The OneMAC Submission Portal received a 1915(b) ${ - variables.actionType - } submission: - - The submission can be accessed in the OneMAC application, which you - can find at ${variables.applicationEndpointUrl}. - - If you are not already logged in, please click the "Login" link - at the top of the page and log in using your Enterprise User - Administration (EUA) credentials. - - After you have logged in, you will be taken to the OneMAC application. - The submission will be listed on the dashboard page, and you can view its - details by clicking on its ID number. - - - State or territory: ${variables.territory} - Name: ${variables.submitterName} - Email: ${variables.submitterEmail} - ${variables.actionType} Number: ${variables.id} - - Waiver Authority: ${variables.authority} - Proposed Effective Date: ${DateTime.fromMillis( - variables.notificationMetadata?.proposedEffectiveDate!, - ).toFormat("DDDD")} - - Summary: - ${variables.additionalInformation} - - Files: - ${formatAttachments("html", variables.attachments)} - - If the contents of this email seem suspicious, do not open them, and instead - forward this email to SPAM@cms.hhs.gov. - - Thank you!`, - }; - }, - state: async (variables: OneMac & CommonVariables) => { - return { - subject: `Your ${variables.actionType} ${variables.id} has been submitted to CMS`, - html: ` -

This response confirms the submission of your 1915(b) ${ - variables.actionType - } to CMS for review:

-

-
State or territory: ${variables.territory} -
Name: ${variables.submitterName} -
Email Address: ${variables.submitterEmail} -
${variables.actionType} Number: ${variables.id} -
Waiver Authority: ${variables.authority} -
Proposed Effective Date: ${DateTime.fromMillis( - variables.notificationMetadata?.proposedEffectiveDate!, - ).toFormat("DDDD")} -
90th Day Deadline: ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )} -

- Summary: -
${variables.additionalInformation} -
-

This response confirms the receipt of your Waiver request or your response - to a Waiver Request for Additional Information (RAI). You can expect a formal - response to your submittal to be issued within 90 days, - before ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )}.

-

This mailbox is for the submittal of Section 1915(b) and 1915(c) Waivers, - responses to Requests for Additional Information (RAI) on Waivers, - and extension requests on Waivers only. Any other correspondence will be disregarded

-

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

-

Thank you!

`, - text: ` - This response confirms the submission of your 1915(b) ${ - variables.actionType - } to CMS for review: - - State or territory: ${variables.territory} - Name: ${variables.submitterName} - Email Address: ${variables.submitterEmail} - ${variables.actionType} Number: ${variables.id} - Waiver Authority: ${variables.authority} - Proposed Effective Date: ${DateTime.fromMillis( - variables.notificationMetadata?.proposedEffectiveDate!, - ).toFormat("DDDD")} - 90th Day Deadline: ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )} - - Summary: - ${variables.additionalInformation} - - This response confirms the receipt of your Waiver request or your response - to a Waiver Request for Additional Information (RAI). You can expect a formal - response to your submittal to be issued within 90 days, - before ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )}. - - This mailbox is for the submittal of Section 1915(b) and 1915(c) Waivers, - responses to Requests for Additional Information (RAI) on Waivers, - and extension requests on Waivers only. Any other correspondence will be disregarded - - If you have questions or did not expect this email, please contact - spa@cms.hhs.gov or your state lead. - - Thank you!`, - }; - }, - }, + [Authority["1915c"]]: { cms: async (variables: OneMac & CommonVariables) => { return { subject: `1915(c) ${variables.id} Submitted`, html: ` -

The OneMAC Submission Portal received a 1915(c) Appendix K Amendment Submission:

- -

-
State or territory: ${variables.territory} -
Name: ${variables.submitterName} -
Email Address: ${variables.submitterEmail} -
Amendment Title: ${variables.appkTitle} -
Waiver Amendment Number: ${variables.id} -
Waiver Authority: 1915(c) -
Proposed Effective Date: ${formatDate( - variables.notificationMetadata?.proposedEffectiveDate!, - )} -

-Summary: -
${variables.additionalInformation} -
Files: -
${formatAttachments("html", variables.attachments)} -

If the contents of this email seem suspicious, do not open them, and instead -forward this email to SPAM@cms.hhs.gov.

-

Thank you!

`, +

The OneMAC Submission Portal received a 1915(c) Appendix K Amendment Submission:

+ +

+
State or territory: ${variables.territory} +
Name: ${variables.submitterName} +
Email Address: ${variables.submitterEmail} +
Amendment Title: ${variables.appkTitle} +
Waiver Amendment Number: ${variables.id} +
Waiver Authority: 1915(c) +
Proposed Effective Date: ${formatDate( + variables.notificationMetadata?.proposedEffectiveDate!, + )} +

+ Summary: +
${variables.additionalInformation} +
Files: +
${formatAttachments("html", variables.attachments)} +

If the contents of this email seem suspicious, do not open them, and instead + forward this email to SPAM@cms.hhs.gov.

+

Thank you!

`, text: ` -This response confirms the submission of your [insert Waiver Action] to CMS for review: + This response confirms the submission of your [insert Waiver Action] to CMS for review: -State or territory: ${variables.territory} -Name: ${variables.submitterName} -Email Address: ${variables.submitterEmail} -Amendment Title: ${variables.appkTitle} -Waiver Amendment Number: ${variables.id} -Waiver Authority: 1915(c) -Proposed Effective Date: ${formatDate( - variables.notificationMetadata?.proposedEffectiveDate!, - )} + State or territory: ${variables.territory} + Name: ${variables.submitterName} + Email Address: ${variables.submitterEmail} + Amendment Title: ${variables.appkTitle} + Waiver Amendment Number: ${variables.id} + Waiver Authority: 1915(c) + Proposed Effective Date: ${formatDate( + variables.notificationMetadata?.proposedEffectiveDate!, + )} -Summary: -${variables.additionalInformation} + Summary: + ${variables.additionalInformation} -Files: -${formatAttachments("html", variables.attachments)} + Files: + ${formatAttachments("html", variables.attachments)} -If the contents of this email seem suspicious, do not open them, and instead forward this email to SPAM@CMS.HHS.gov + If the contents of this email seem suspicious, do not open them, and instead forward this email to SPAM@CMS.HHS.gov -Thank you! -`, + Thank you! + `, }; }, state: async (variables: OneMac & CommonVariables) => { return { subject: `Your 1915(c) ${variables.id} has been submitted to CMS`, html: ` -

This response confirms the submission of your 1915(c) Waiver to CMS for review:

-

-
State or territory: ${variables.territory} -
Name: ${variables.submitterName} -
Email Address: ${variables.submitterEmail} -
Initial Waiver Number: ${variables.id} -
Waiver Authority: 1915(c) -
Proposed Effective Date: ${formatDate( - variables.notificationMetadata?.proposedEffectiveDate!, - )} -
90th Day Deadline: ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )} -

-Summary: -
${variables.additionalInformation} -

-This response confirms the receipt of your Waiver request or your response -to a Waiver Request for Additional Information (RAI). You can expect a formal -response to your submittal to be issued within 90 days, before ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )}. -

-

-This mailbox is for the submittal of Section 1915(b) and 1915(c) Waivers, -responses to Requests for Additional Information (RAI) on Waivers, and -extension requests on Waivers only. Any other correspondence will be disregarded. -

-

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

-

Thank you!

`, +

This response confirms the submission of your 1915(c) Waiver to CMS for review:

+

+
State or territory: ${variables.territory} +
Name: ${variables.submitterName} +
Email Address: ${variables.submitterEmail} +
Initial Waiver Number: ${variables.id} +
Waiver Authority: 1915(c) +
Proposed Effective Date: ${formatDate( + variables.notificationMetadata?.proposedEffectiveDate!, + )} +
90th Day Deadline: ${formatNinetyDaysDate( + variables.notificationMetadata?.submissionDate, + )} +

+ Summary: +
${variables.additionalInformation} +

+ This response confirms the receipt of your Waiver request or your response + to a Waiver Request for Additional Information (RAI). You can expect a formal + response to your submittal to be issued within 90 days, before ${formatNinetyDaysDate( + variables.notificationMetadata?.submissionDate, + )}. +

+

+ This mailbox is for the submittal of Section 1915(b) and 1915(c) Waivers, + responses to Requests for Additional Information (RAI) on Waivers, and + extension requests on Waivers only. Any other correspondence will be disregarded. +

+

If you have questions, please contact + spa@cms.hhs.gov or your state lead.

+

Thank you!

`, text: ` -This response confirms the submission of your 1915(c) Waiver to CMS for review: - -State or territory:${variables.territory} -Name: ${variables.submitterName} -Email Address: ${variables.submitterEmail} -Initial Waiver Number: ${variables.id} -Waiver Authority: 1915(c) -Proposed Effective Date: ${formatDate( - variables.notificationMetadata?.proposedEffectiveDate!, - )} -90th Day Deadline: ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )} - -Summary: -${variables.additionalInformation} - -This response confirms the receipt of your Waiver request or your response -to a Waiver Request for Additional Information (RAI). You can expect a formal -response to your submittal to be issued within 90 days, before ${formatNinetyDaysDate( - variables.notificationMetadata?.submissionDate, - )}. - -This mailbox is for the submittal of Section 1915(b) and 1915(c) Waivers, -responses to Requests for Additional Information (RAI) on Waivers, and -extension requests on Waivers only. Any other correspondence will be disregarded. - -If you have questions, please contact SPA@cms.hhs.gov or your state lead. - -Thank you!`, + This response confirms the submission of your 1915(c) Waiver to CMS for review: + + State or territory:${variables.territory} + Name: ${variables.submitterName} + Email Address: ${variables.submitterEmail} + Initial Waiver Number: ${variables.id} + Waiver Authority: 1915(c) + Proposed Effective Date: ${formatDate( + variables.notificationMetadata?.proposedEffectiveDate!, + )} + 90th Day Deadline: ${formatNinetyDaysDate( + variables.notificationMetadata?.submissionDate, + )} + + Summary: + ${variables.additionalInformation} + + This response confirms the receipt of your Waiver request or your response + to a Waiver Request for Additional Information (RAI). You can expect a formal + response to your submittal to be issued within 90 days, before ${formatNinetyDaysDate( + variables.notificationMetadata?.submissionDate, + )}. + + This mailbox is for the submittal of Section 1915(b) and 1915(c) Waivers, + responses to Requests for Additional Information (RAI) on Waivers, and + extension requests on Waivers only. Any other correspondence will be disregarded. + + If you have questions, please contact SPA@cms.hhs.gov or your state lead. + + Thank you!`, }; }, }, diff --git a/lib/libs/email/content/respondToRai.ts b/lib/libs/email/content/respondToRai.ts index 45e22e7c54..8f95895d13 100644 --- a/lib/libs/email/content/respondToRai.ts +++ b/lib/libs/email/content/respondToRai.ts @@ -228,7 +228,7 @@ Thank you!`, return { subject: `Waiver RAI Response for ${variables.id} Submitted`, html: ` -

The OneMAC Submission Portal received a 1915(b) Waiver RAI Response Submission:

+

The OneMAC Submission Portal received a ${variables.authority} Waiver RAI Response Submission: