-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(update RAI withdraw behavior): Update RAI withdraw behavior to a…
…ccommodate Medicaid specific biz logic (#357) * change rai behavior for medicaid * Update rule for issue rai * Set withdrawn date for medicaid and adjust rules, per AC. * Correct issue rai behavior for medicaid * fix timestamps * hide issue rai for chip when rai withdraw is enabled
- Loading branch information
Showing
4 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
export function buildStatusMemoQuery(id: string, msg: string) { | ||
const printable = new Date().toLocaleString("en-US", { | ||
timeZone: "America/New_York", | ||
}); | ||
return ` | ||
UPDATE SEA.dbo.State_Plan | ||
SET | ||
Status_Memo = '- OneMAC Activity: ' + FORMAT(DATEADD(SECOND, CAST('${Date.now()}' AS BIGINT) / 1000, '1970-01-01'), 'MM/dd/yyyy HH:mm') + ' - ' + '${msg} ' + '\r' + CAST(ISNULL(Status_Memo, '') AS VARCHAR(MAX)) | ||
Status_Memo = '- OneMAC Activity: ${printable} - ${msg} \r' + CAST(ISNULL(Status_Memo, '') AS VARCHAR(MAX)) | ||
WHERE ID_Number = '${id}' | ||
`; | ||
} |