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

Implement the $ra.resolve-coding-gaps operation (replace existing) #641

Closed
6 tasks done
rob-reynolds opened this issue Oct 17, 2022 · 4 comments
Closed
6 tasks done
Assignees
Labels
enhancement New feature or request ra Da Vinci Risk Adjustment module

Comments

@rob-reynolds
Copy link

rob-reynolds commented Oct 17, 2022

Note: the spec has been updated. The spec takes precedence where it conflicts with these requirements.

As a Payer, I need the MeasureReport/$ra.resolve-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

The $davinci-ra.resolve operation of the CQF Ruler (https://github.com/DBCG/cqf-ruler/blob/74fd64d830d3675c82b38bb587fe8469b7d98696/plugin/ra/src/main/java/org/opencds/cqf/ruler/ra/r4/ResolveProvider.java#L47) has been implemented, but it currently implements the functionality of the Remediation stage, not the Resolution stage.

The spec has been updated. The CQF Ruler needs to be updated correspondingly.

Preconditions:
The operation errors if the following precondition is violated:
for each group in the MR there is at most one ClinicalEvaluation DetectedIssue with a status of 'final'.

Changes:

Image

  • implement the following functionality:

For the subject, Measure Id parameters:

Request Type Mapping:

Image

Note: everything from the queried Coding Gap Document is retained, as is, except:

  • new Bundle (document), with new id
  • existing Composition gets status set to final
  • existing MeasureReport.group(s) get updated
  • existing MeasureReport.evaluatedResource(s) get updated

Note, the spec is currently a work in progress so where the information above conflicts with the spec, the information above takes precedence.

ACCEPTANCE CRITERIA:

  • the operation is named MeasureReport/$ra.resolve-coding-gaps

  • the API is:
    Image

  • Given a the ThunderClient Risk Adjustment Collection.Resolve.Config requests have been posted, the corresponding $ra.resolve-coding-gaps request returns a valid Risk Adjustment Coding Gap Document, with an updated MeasureReport, and the Bundle and Composition are final

@rob-reynolds rob-reynolds changed the title Implement the $davinci-ra.resolve operation (replace existing) Implement the $ra.resolve-cc-gaps operation (replace existing) Nov 9, 2022
@rob-reynolds rob-reynolds changed the title Implement the $ra.resolve-cc-gaps operation (replace existing) Implement the $ra.resolve-coding-gaps operation (replace existing) Nov 9, 2022
@rob-reynolds
Copy link
Author

Pending Rob having a meeting with the RA leads.

@rob-reynolds
Copy link
Author

Ready for implementation.

c-schuler added a commit that referenced this issue Nov 15, 2022
…-measure operation and tests, updated evidence status date extension
c-schuler added a commit that referenced this issue Nov 16, 2022
…rdering to tests and updated dates to ensure the correct bundle is being fetched
@rob-reynolds
Copy link
Author

The work is done. Just need to get the following branch merged once the master branch (and this PR branch) are running: https://github.com/DBCG/cqf-ruler/tree/Branch_38c89957.

@rob-reynolds
Copy link
Author

Completed. (superseded by #669 RA Approve operation implementation](#669)

rob-reynolds pushed a commit that referenced this issue Nov 30, 2022
* #641: added resolve operation, updated constants, updated ra.evaluate-measure operation and tests, updated evidence status date extension

* #641: Added closure request test and fixed MR group update logic

* #641: added invalidation and creation tests

* #641: Added creation error and precondition tests and logic - added ordering to tests and updated dates to ensure the correct bundle is being fetched

* RA Approve operation implementation (#669)

* Added Composition.author as a Bundle.entry to prevent error in building IG (document type Bundle requires Composition.author to be an entry)
Added fullUrl values for all Bundle.entry to prevent errors in building IG (document type Bundle requires fullUrl)
Removed http://hl7.org/fhir/us/davinci-ra/StructureDefinition/ra-groupReference extension from the DetectedIssue.detail to prevent errors in building IG (extension not valid for that element)
Updated profile for Composition to match IG

* Updated the id for remediate bundle
Fixed bug with getting remediate issues
Fixed bug where updating the DetectedIssue detail references to remove the group extension was removing the group extension from the MR
Updated DetectedIssue.code to be the HCC code

* Updated report profile to fix errors in IG (the Bundle profile was being used instead of the MR profile)
Added author to Bundle.entry for remediate and resolve to fix errors in IG (Composition.author is required to be in the Bundle when the type is document)
Updated evaluate to use the bundle profile instead of the mr profile

* #662: implemented approve operation logic and tests - fixed build

* Fixing build and tests

* Update tests to account for author Organization

* Add required Composition.author and Organization to fix tests

* Fix error message for missing Composition.author

* Protect the Composition author value

* Added protection for creating fullUrls
Increased test counts to account for updates to RA operations
Added ids to test resources to fix tests

* applied feedback

* applied feedback - fixed tests

* #670: fixed resolve operation precondition chek and updated tests

* Undo unintentional update of launch file

Co-authored-by: rob-reynolds <rob@alphora.com>

Co-authored-by: Jonathan Percival <jonathan.i.percival@gmail.com>
Co-authored-by: rob-reynolds <rob@alphora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ra Da Vinci Risk Adjustment module
Projects
None yet
Development

No branches or pull requests

2 participants