Skip to content

Data mr - #110

Merged
lmd59 merged 4 commits into
mainfrom
data-mr
Jul 14, 2025
Merged

Data mr#110
lmd59 merged 4 commits into
mainfrom
data-mr

Conversation

@lmd59

@lmd59 lmd59 commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

Summary

A poor man's $submit-data...

Note: This is currently based off of the branch here: #109 and will be rebased once that PR is merged

New Behavior

Adds a submit data button which collates minimum data resources for each patient, adds a data exchange measure report for each (in accordance with https://build.fhir.org/ig/HL7/davinci-deqm/StructureDefinition-datax-measurereport-deqm.html), POSTs that data to the stored evaluation service URL, and enables an evaluate button (currently a stub that opens an empty modal).
The goal is for this to closely reflect a client's use of $submit-data but without actually using the submit data operation.

Code Changes

  • Update resourceCreation.ts util to add createDataExchangeMeasureReport function
  • Update PopulationCalculation.tsx to add two buttons, modal, and functions to do data submission
  • Update tests to handle added dataRequirementsLookupByType async selector

NOTE: many TODOs have been left in to give direction for what to change when this becomes a proper $submit-data as well as a TODO for the evaluate implementation and a TODO for a measure report decision that needs to be verified with server systems at the connectathon.

Testing Guidance

  • npm run check
  • Check the deqm-test-server base /Patient endpoint to see how many patients there are
  • npm run dev
  • Upload to fqm-testify a measure that exists on the internal deployment of the deqm-test-server. (I can share a measure and test cases if needed)
  • Add the deqm-test-server base as the evaluation service url
  • On the next page, upload test cases.
  • Scroll to the bottom of the test case list and click "Submit Data" -> should give a success notification and enable the "Evaluate" button
  • Check the deqm-test-server base /Patient endpoint again to see if patient number has increased by number of test cases. (Note: patient number will only increase if test cases aren't already on the server.) If you want to test again with the same test case(s), change the patient id for those test cases.

@lmd59
lmd59 marked this pull request as ready for review July 9, 2025 15:52
@elsaperelli
elsaperelli self-requested a review July 9, 2025 19:06
@elsaperelli elsaperelli self-assigned this Jul 9, 2025
Update test id

Update contained

Fix tests

@elsaperelli elsaperelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great!!

Comment thread components/calculation/PopulationCalculation.tsx Outdated
* @returns { string[] } the evaluation service ids for POSTed patients (may be different than sent IDs or undefined if send was unsuccessful)
*/
const submitDataToEvaluationService = async (): Promise<(string | undefined)[]> => {
// collect data and POST to evaluation service (TODO: should be $submit-data when available)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have to do this right now, but we should consider having some sort of option to do the "poor man's submit-data" or actual $submit-data...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to do this during the c-thon

Comment thread components/calculation/PopulationCalculation.tsx Outdated
Comment thread components/calculation/PopulationCalculation.tsx
Comment thread components/calculation/PopulationCalculation.tsx Outdated
Comment thread components/calculation/PopulationCalculation.tsx Outdated
@lmd59
lmd59 requested a review from elsaperelli July 14, 2025 15:28

@elsaperelli elsaperelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@lmd59
lmd59 merged commit 6857f92 into main Jul 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants