$ra.resolve should error if approve has not been called first
rob-reynolds opened this issue · comments
Rob Reynolds commented
As a Payer, I need resolve to fail if the CC Coder hasn't run approve.
IS: running resolve completes even if approve has not been run
SHOULD BE: should require approve (i.e., all the most recent DI resources are status = final)
REPRO:
- clone the DaVinci Risk Adjustment IG locally (https://github.com/HL7/davinci-ra/)
- open the RA IG in VS Code
- open the Thunder Client plugin
- in Env, set the Risk Adjustment.RAServer variable to the Public Endpoint value
- run everything in the $ra.coding-gaps folder
- run everything in the $ra.remediate-coding-gaps folder
- run everything in the $ra.resolve-coding-gaps folder
- note that running the $ra.resolve-coding-gaps request does not error (even though approve has not been run)
ACCEPTANCE CRITERIA:
- in the scenario above the resolve operation should fail
- after running the approve operations it should succeed