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 $approve operation #662

Closed
6 tasks done
rob-reynolds opened this issue Nov 9, 2022 · 2 comments
Closed
6 tasks done

Implement the RA $approve operation #662

rob-reynolds opened this issue Nov 9, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request ra Da Vinci Risk Adjustment module

Comments

@rob-reynolds
Copy link

rob-reynolds commented Nov 9, 2022

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:

Image

  • implement the following functionality:

For the subject, Measure Id parameters:

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

  • the API is:
    Image

  • all the Clinical Evaluation type DetectedIssue resources have a status of either final or cancelled

  • 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 and cancelled.

@rob-reynolds
Copy link
Author

Pending Rob having a meeting with the RA leads.

@rob-reynolds
Copy link
Author

Ready to implement.

rob-reynolds pushed a commit that referenced this issue Nov 29, 2022
* 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>
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