Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | 283x 18x 1x 17x 17x 1x 1x 2x 1x 1x 2x 2x 1x 1x 1x 1x 3x 3x | import { Action } from "shared-types";
// Resolve the action type based on the GSI1pk
export const getLegacyEventType = (gsi1pk: string, waiverAuthority?: string | null | undefined) => {
if (gsi1pk === "") {
return undefined;
}
const submitType = gsi1pk.split("OneMAC#submit")?.[1] || "";
switch (submitType) {
case "chipspa":
return "new-chip-submission";
case "medicaidspa":
return "new-medicaid-submission";
case "waiveramendment":
return waiverAuthority === "1915(b)" ? "capitated-amendment" : "contracting-amendment"; //legacy uses 1915(b) for capitated and 1915(b)(4) for contracting
case "waiverappk":
return "app-k";
case "waiverextension":
case "waiverextensionb":
case "waiverextensionc":
return "temporary-extension";
case "waivernew":
return waiverAuthority === "1915(b)" ? "capitated-initial" : "contracting-initial"; //legacy uses 1915(b) for capitated and 1915(b)(4) for contracting
case "waiverrenewal":
return waiverAuthority === "1915(b)" ? "capitated-renewal" : "contracting-renewal"; //legacy uses 1915(b) for capitated and 1915(b)(4) for contracting
case "chipsparai":
case "medicaidsparai":
case "waiveramendmentrai":
case "waiverappkrai":
case "waiverrai":
return Action.RESPOND_TO_RAI;
case "chipspawithdraw":
case "medicaidspawithdraw":
case "waiveramendmentwithdraw":
case "waiverappkwithdraw":
case "waivernewwithdraw":
case "waiverrenewalwithdraw":
return Action.WITHDRAW_PACKAGE;
case "rairesponsewithdraw":
return Action.LEGACY_WITHDRAW_RAI_REQUEST;
case "medicaidspasubsequent":
case "chipspasubsequent":
case "waiverappksubsequent":
case "waivernewsubsequent":
case "waiverrenewalsubsequent":
case "waiveramendmentsubsequent":
return Action.UPLOAD_SUBSEQUENT_DOCUMENTS;
default:
console.log(`Unhandled event type for ${submitType}. Doing nothing and continuing.`);
return undefined;
}
};
|