diff --git a/src/packages/shared-types/action-types/new-submission.ts b/src/packages/shared-types/action-types/new-submission.ts
index 1be83d315..0b4aba66c 100644
--- a/src/packages/shared-types/action-types/new-submission.ts
+++ b/src/packages/shared-types/action-types/new-submission.ts
@@ -1,5 +1,6 @@
import { z } from "zod";
import { attachmentSchema } from "../attachments";
+import { notificationMetadataSchema } from "../notification-metadata";
// This is the event schema for ne submissions from our system
export const onemacSchema = z.object({
@@ -13,12 +14,7 @@ export const onemacSchema = z.object({
submitterEmail: z.string(),
attachments: z.array(attachmentSchema).nullish(),
raiWithdrawEnabled: z.boolean().default(false),
- notificationMetadata: z
- .object({
- proposedEffectiveDate: z.number().nullish(),
- submissionDate: z.number().nullish(),
- })
- .nullish(),
+ notificationMetadata: notificationMetadataSchema.nullish(),
// these are specific to TEs... should be broken into its own schema
statusDate: z.number().optional(),
submissionDate: z.number().optional(),
diff --git a/src/packages/shared-types/action-types/respond-to-rai.ts b/src/packages/shared-types/action-types/respond-to-rai.ts
index d66a7be67..91c821f45 100644
--- a/src/packages/shared-types/action-types/respond-to-rai.ts
+++ b/src/packages/shared-types/action-types/respond-to-rai.ts
@@ -1,5 +1,6 @@
import { z } from "zod";
import { attachmentSchema } from "../attachments";
+import { notificationMetadataSchema } from "../notification-metadata";
export const raiResponseSchema = z.object({
id: z.string(),
@@ -11,5 +12,6 @@ export const raiResponseSchema = z.object({
additionalInformation: z.string().nullable().default(null),
submitterName: z.string(),
submitterEmail: z.string(),
+ notificationMetadata: notificationMetadataSchema.nullish(),
});
export type RaiResponse = z.infer
Email Address: {{submitterEmail}}
Medicaid SPA ID: {{id}}
Proposed Effective Date: {{proposedEffectiveDateNice}}
-
90th Day Deadline: {{ninetyDaysDateNice}}
+
90th Day Deadline: {{ninetyDaysDate}}
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 {{ninetyDaysDateNice}}.
+before {{ninetyDaysDate}}.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.
@@ -101,7 +101,7 @@ Name: {{submitterName}} Email Address: {{submitterEmail}} Medicaid SPA ID: {{id}} Proposed Effective Date: {{proposedEffectiveDateNice}} -90th Day Deadline: {{ninetyDaysDateNice}} +90th Day Deadline: {{ninetyDaysDate}} Summary: {{additionalInformation}} @@ -109,7 +109,7 @@ Summary: 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 {{ninetyDaysDateNice}}. +before {{ninetyDaysDate}}. 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. @@ -118,6 +118,144 @@ Any other correspondence will be disregarded. If you have questions or did not expect this email, please contact SPA@cms.hhs.gov. +Thank you!`, +}, +{ + name: "new-submission-1915b-cms", + subject: "{{authority}} {{id}} Submitted", + html: ` +The OneMAC Submission Portal received a 1915(b) initial waiver submission:
+
+
State or territory: {{territory}}
+
Name: {{submitterName}}
+
Email: {{submitterEmail}}
+
Initial Waiver Number: {{id}}
+
Waiver Authority: {{authority}}
+
Proposed Effective Date: {{proposedEffectiveDateNice}}
+
+
Files:
+
{{formattedFileList}}
+
+
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) initial waiver submission: + +The submission can be accessed in the OneMAC application, which you +can find at this link. + +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: {{territory}} +Name: {{submitterName}} +Email: {{submitterEmail}} +Initial Waiver Number: {{id}} +Waiver Authority: {{authority}} +Proposed Effective Date: {{proposedEffectiveDateNice}} + +Summary: +{{additionalInformation}} + +Files: +{{formattedFileList}} + +If the contents of this email seem suspicious, do not open them, and instead +forward this email to SPAM@cms.hhs.gov. + +Thank you!`, +}, +{ + name: "new-submission-1915b-state", + subject: "Your {{authority}} {{id}} has been submitted to CMS", + html: ` +This response confirms the submission of your Initial Waiver to CMS for review:
+
+
State or territory: {{territory}}
+
Name: {{submitterName}}
+
Email Address: {{submitterEmail}}
+
Initial Waiver Number: {{id}}
+
Waiver Authority: {{authority}}
+
Proposed Effective Date: {{proposedEffectiveDateNice}}
+
90th Day Deadline: {{ninetyDaysDate}}
+
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 {{ninetyDaysDate}}.
+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 Initial Waiver to CMS for review: + +State or territory: {{territory}} +Name: {{submitterName}} +Email Address: {{submitterEmail}} +Initial Waiver Number: {{id}} +Waiver Authority: {{authority}} +Proposed Effective Date: {{proposedEffectiveDateNice}} +90th Day Deadline: {{ninetyDaysDate}} + +Summary: +{{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 {{ninetyDaysDate}}. + +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!`, + }, +{ + name: "withdraw-package-1915b-state", + subject: "1915(b) Waiver {{id}} Withdrawal Confirmation", + html: ` +This email is to confirm 1915(b) Waiver {{id}} was withdrawn +by {{submitterName}}. The review of 1915(b) Waiver {{id}} has concluded.
+If you have questions, please contact +spa@cms.hhs.gov or your state lead.
+Thank you!
`, + text: ` +This email is to confirm 1915(b) Waiver {{id}} was withdrawn by {{submitterName}}. +The review of 1915(b) Waiver {{id}} has concluded. + +If you have questions, please contact spa@cms.hhs.gov or your state lead. + Thank you!`, }, { @@ -191,7 +329,7 @@ Thank you!`,This response confirms 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 {{ninetyDaysLookupNice}}.
+before {{ninetyDaysDate}}.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.
@@ -213,7 +351,7 @@ State or territory: {{territory}} Name: {{submitterName}} Email Address: {{submitterEmail}} Medicaid SPA ID: {{id}} -90th Day Deadline: {{ninetyDaysLookupNice}} +90th Day Deadline: {{ninetyDaysDate}} Summary: {{additionalInformation}} @@ -221,7 +359,7 @@ Summary: This response confirms 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 {{ninetyDaysLookupNice}}. +before {{ninetyDaysDate}}. This mailbox is for the submittal of State Plan Amendments and non-web based responses to Requests for Additional Information (RAI) on submitted @@ -347,37 +485,19 @@ Thank you!`, }, { name: "withdraw-package-medicaid-spa-state", - subject: "SPA Package {{id}} Withdraw Request", + subject: "Medicaid SPA Package {{id}} Withdrawal Confirmation", html: ` -This is confirmation that you have requested to withdraw the package below. -The package will no longer be considered for CMS review:
-
-
State or territory: {{territory}}
-
Name: {{submitterName}}
-
Email Address: {{submitterEmail}}
-
Medicaid SPA ID: {{id}}
-
This email is to confirm Medicaid SPA {{id}} was withdrawn +by {{submitterName}}. The review of Medicaid SPA {{id}} has concluded.
If you have questions or did not expect this email, please contact SPA@cms.hhs.gov.
Thank you!
`, text: ` -This is confirmation that you have requested to withdraw the package below. -The package will no longer be considered for CMS review: - -State or territory: {{territory}} -Name: {{submitterName}} -Email Address: {{submitterEmail}} -Medicaid SPA ID: {{id}} - -Summary: -{{additionalInformation}} - -If you have questions or did not expect this email, please contact -spa@cms.hhs.gov. - -Thank you!`, +This email is to confirm Medicaid SPA {{id}} was withdrawn +by {{submitterName}}. The review of Medicaid SPA {{id}} has concluded. +If you have questions or did not expect this email, please contact +SPA@cms.hhs.gov.
+Thank you!
`, }, // CHIP SPA email template group @@ -553,7 +673,7 @@ Thank you!`,This response confirms receipt of your CHIP 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 {{ninetyDaysLookupNice}}.
+before {{ninetyDaysDate}}.If you have questions, please contact CHIPSPASubmissionMailbox@cms.hhs.gov or your state lead.
@@ -573,7 +693,7 @@ State or territory: {{territory}} Name: {{submitterName}} Email Address: {{submitterEmail}} CHIP SPA Package ID: {{id}} -90th Day Deadline: {{ninetyDaysLookupNice}} +90th Day Deadline: {{ninetyDaysDate}} Summary: {{additionalInformation}} @@ -581,7 +701,7 @@ Summary: This response confirms receipt of your CHIP 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 {{ninetyDaysLookupNice}}. +before {{ninetyDaysDate}}. If you have questions, please contact CHIPSPASubmissionMailbox@cms.hhs.gov or your state lead. @@ -667,6 +787,173 @@ Summary: If you have any questions, please contact CHIPSPASubmissionMailbox@cms.hhs.gov or your state lead. +Thank you!`, +}, +{ + name: "withdraw-package-chip-spa-cms", + subject: "CHIP SPA Package {{id}} Withdraw Request", + html: ` +The OneMAC Submission Portal received a request to withdraw the package below. +The package will no longer be considered for CMS review:
+
+
State or territory: {{territory}}
+
Name: {{submitterName}}
+
Email Address: {{submitterEmail}}
+
CHIP SPA Package ID: {{id}}
+
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 request to withdraw the package below. +The package will no longer be considered for CMS review: + +State or territory: {{territory}} +Name: {{submitterName}} +Email Address: {{submitterEmail}} +CHIP SPA Package ID: {{id}} + +Summary: +{{additionalInformation}} + +If the contents of this email seem suspicious, do not open them, and instead forward this email to SPAM@cms.hhs.gov' + +Thank you!`, +}, +{ + name: "withdraw-package-chip-spa-state", + subject: "CHIP SPA Package {{id}} Withdrawal Confirmation", + html: ` +This email is to confirm CHIP SPA {{id}} was withdrawn +by {{submitterName}}. The review of CHIP SPA {{id}} has concluded.
+If you have any questions, please contact +CHIPSPASubmissionMailbox@cms.hhs.gov +or your state lead.
+Thank you!
`, + text: ` +This email is to confirm CHIP SPA {{id}} was withdrawn +by {{submitterName}}. The review of CHIP SPA {{id}} has concluded. + +If you have any questions, please contact CHIPSPASubmissionMailbox@cms.hhs.gov or your state lead. + +Thank you!`, + }, +{ + name: "respond-to-rai-1915b-cms", + subject: "Waiver RAI Response for {{id}} Submitted", + html: ` +The OneMAC Submission Portal received a 1915(b) Waiver RAI Response Submission:
+
+
State or territory: {{territory}}
+
Name: {{submitterName}}
+
Email Address: {{submitterEmail}}
+
Waiver Number: {{id}}
+
+
Files:
+
{{formattedFileList}}
+
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) Waiver RAI Response Submission: + +- The submission can be accessed in the OneMAC application, which you can + find at {{applicationEndpoint}}. +- 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: {{territory}} +Name: {{submitterName}} +Email Address: {{submitterEmail}} +Waiver Number: {{id}} + +Summary: +{{additionalInformation}} + +Files: +{{textFileList}} + +If the contents of this email seem suspicious, do not open them, and instead +forward this email to SPAM@cms.hhs.gov. + +Thank you!`, +}, +{ + name: "respond-to-rai-1915b-state", + subject: "Your 1915(b) Waiver RAI Response for {{id}} has been submitted to CMS", + html: ` +This response confirms the submission of your 1915(b) Waiver RAI Response to CMS for review:
+
+
State or territory: {{territory}}
+
Name: {{submitterName}}
+
Email Address: {{submitterEmail}}
+
Initial Waiver Number: {{id}}
+
Waiver Authority: {{authority}}
+
90th Day Deadline: {{ninetyDaysDate}}
+
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 {{ninetyDaysDate}}.
+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 +CHIPSPASubmissionMailbox@cms.hhs.gov +or your state lead.
+Thank you!
`, + text: ` +This response confirms the submission of your 1915(b) Waiver RAI Response to CMS for review: + +State or territory: {{territory}} +Name: {{submitterName}} +Email Address: {{submitterEmail}} +Initial Waiver Number: {{id}} +Waiver Authority: {{authority}} +90th Day Deadline: {{ninetyDaysDate}} + +Summary: +{{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 {{ninetyDaysDate}}. + +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 +CHIPSPASubmissionMailbox@cms.hhs.gov +or your state lead. + Thank you!`, } ]; \ No newline at end of file