Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(modify rai behavior): Go to PENDING_RAI and leave receivedDate on withdraw #466

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

mdial89f
Copy link
Contributor

@mdial89f mdial89f commented Mar 22, 2024

Purpose

This changeset updates our withdraw rai response ruleset and the actions it takes. For all authorities (Medicaid, CHIP, Waivers), on RAI Response withdraw, we put the record back into PENDING_RAI. We also leave the received date in place, to only be overwritten on a re-response.

Linked Issues to Close

Closes https://qmacbis.atlassian.net/jira/software/c/projects/OY2/boards/261/?selectedIssue=OY2-27600

Approach

Background

Previously, for medicaid and waivers, we had been nullifying the received date on rai response withdraw. This had the convenient effect of showing the RAI with a blank received date, ready for re-response. We felt this was acceptable since all of the info is logged to status memo. Business groups communicated that they would prefer to just write the withdraw date on withdraw, and leave the received date in place. In this scenario, the received date will only be overwritten if/when there is a re-response. This makes that change.

In addition, CHIP submissions had been being put into PENDING on withdraw; we had misunderstood, and thought since CHIP can receive more than one RAI, that upon withdraw a CMS resource would create a new RAI if applicable. That isn't the case, per feedback yesterday. The RAI for which the response was withdrawn should still be available for re-response. CMS may choose to issue a new RAI against the CHIP, if applicable, but that's outside our area of concern. For CHIPs (and all other authorities), records go back to PENDING_RAI on withdraw.

To make logging on response verbose, I had to move the safeParsing of the api payload to the top of the function. This is a pattern used for withdrawing the package, and a good pattern to follow. Along with moving safe parsing to the top to fail fast, I removed some 'throws' in favor of returning response codes, also a pattern put in place for withdraw package.

Summary of updated logic:

  • On withdraw, we write the withdraw date, leave the received date in place, log everything to status memo, and set status to PENDING_RAI.
  • On re-response, we write the received date, nullify the withdrawn date, write everything to status memo, and set status to PENDING
  • The rules have been updated, to allow a response to be made if there is no received date or if there is a withdraw date.

Assorted Notes/Considerations/Learning

N/A

@mdial89f mdial89f marked this pull request as draft March 22, 2024 13:33
@mdial89f mdial89f marked this pull request as ready for review March 22, 2024 14:16
@mdial89f mdial89f added type: FEAT Submit new features status: READY PR is ready for review and removed type: FEAT Submit new features labels Mar 22, 2024
console.log("State withdrawing an RAI Response");
if (!document.raiRequestedDate) {
return response({
statusCode: 400,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love that we're building in codes and messaging now!

@mdial89f mdial89f merged commit 8001b17 into master Mar 26, 2024
16 checks passed
Copy link
Contributor

🎉 This PR is included in version 1.5.0-val.20 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @val status: READY PR is ready for review type: FEAT Submit new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants