Implement the RA $approve operation
rob-reynolds opened this issue · comments
As a CC Coder, I need the MeasureReport/$ra.approve-coding-gaps operation implemented per the spec.
DESCRIPTION:
The Da Vinci Risk Adjustment IG (http://build.fhir.org/ig/HL7/davinci-ra/) has been updated to include the following stages:
- Report Generation
- Remediation
- Resolution
Preconditions:
A valid set of $remediate result(s) exists in the FHIR server.
Implementation:
- The API is: https://build.fhir.org/ig/HL7/davinci-ra/OperationDefinition-ra.approve-coding-gaps.html
- implement the following functionality:
For the subject, Measure Id parameters:
-
Given a set of Risk Adjustment Coding Gap Document resource(s) (http://build.fhir.org/ig/HL7/davinci-ra/StructureDefinition-ra-coding-gap-bundle.html), the result of $ra.approve-coding-gaps:
-
for each most recent Clinical Evaluation DetectedIssue (http://build.fhir.org/ig/HL7/davinci-ra/StructureDefinition-ra-coding-gap-clinical-evaluation-detectedissue.html) entry in the bundle, of each coding gap
-
update the most recent Clinical Data DetectedIssue (if any) status to 'final'
-
update all other Clinical Data DetectedIssue (if any) status to 'cancelled'
Note: everything from the queried Coding Gap Document is retained, as is, except:
- new Bundle (document), with new id
- existing Composition
- existing DetectedIssues (updated as above)
- existing bundle entries
ACCEPTANCE CRITERIA:
-
the operation is named MeasureReport/$ra.approve-coding-gaps
-
all the Clinical Evaluation type DetectedIssue resources have a status of either
final
orcancelled
-
Given a the ThunderClient Risk Adjustment Collection.Approve.Config requests have been posted, the corresponding $ra.resolve-coding-gaps request returns a valid Risk Adjustment Coding Gap Document, with the appropriate DetectedIssues status set to
final
andcancelled
.
Pending Rob having a meeting with the RA leads.
Ready to implement.