Skip to content

Conversation

@mcmcgrath13
Copy link
Contributor

@mcmcgrath13 mcmcgrath13 commented May 12, 2025

PULL REQUEST

Summary

Add the process-ecr endpoint to the viewer. Similar to the process-zip endpoint for the viewer, hardcode the fields that are known and only ask for the data. The message endpoint supports both form and json data (because Rhapsody 6 can't do forms in a sane way 😭 ).

Rewrite process-zip requests into process-ecr via middleware and have the logic for getting the data and putting it in the right place over on process-ecr. Left a readme to that effect in the api folder so that lost souls might find their way.

Related Issue

Fixes #698

Acceptance Criteria

New /process-message endpoint exists on eCR Viewer
New endpoint should:
Accept eICR and RR in the request body, like orchestration does today
Determine which orchestration configuration is applicable based on eCR Viewer environment variables (AWS, Azure, integrated, non-integrated, etc)
Send the eCR and RR to the orchestration service for processing
Accept the orchestration response
Save eCR data from orchestration (to S3, SQL Server, etc)

@codecov-commenter
Copy link

codecov-commenter commented May 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.09%. Comparing base (c596a72) to head (89ccd52).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #712      +/-   ##
==========================================
+ Coverage   87.55%   91.09%   +3.53%     
==========================================
  Files         274      140     -134     
  Lines       14215     5311    -8904     
  Branches      903      915      +12     
==========================================
- Hits        12446     4838    -7608     
+ Misses       1752      456    -1296     
  Partials       17       17              
Flag Coverage Δ
ecr-viewer 93.07% <100.00%> (+0.06%) ⬆️
fhir-converter ?
ingestion ?
message-parser ?
message-refiner ?
orchestration 85.45% <ø> (ø)
record-linkage ?
trigger-code-reference ?
validation ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcmcgrath13 mcmcgrath13 changed the title feat: wip - process-zip endpoint feat: wip - process-message endpoint May 12, 2025
@mcmcgrath13 mcmcgrath13 changed the title feat: wip - process-message endpoint feat: process-message api endpoint May 13, 2025
@mcmcgrath13 mcmcgrath13 marked this pull request as ready for review May 13, 2025 15:18
@mcmcgrath13 mcmcgrath13 requested a review from a team as a code owner May 13, 2025 15:18
@mcmcgrath13 mcmcgrath13 requested review from JNygaard-Skylight and akasper and removed request for a team May 13, 2025 15:18
@mcmcgrath13 mcmcgrath13 marked this pull request as draft May 15, 2025 16:53
@mcmcgrath13 mcmcgrath13 changed the title feat: process-message api endpoint feat: process-ecr api endpoint May 15, 2025
@mcmcgrath13 mcmcgrath13 marked this pull request as ready for review May 15, 2025 18:27
Copy link
Contributor

@JNygaard-Skylight JNygaard-Skylight left a comment

Choose a reason for hiding this comment

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

LGTM!

@mcmcgrath13 mcmcgrath13 added this pull request to the merge queue May 19, 2025
Merged via the queue into main with commit 7dc111c May 19, 2025
17 checks passed
@mcmcgrath13 mcmcgrath13 deleted the mcm/feat-api-process-message branch May 19, 2025 15:52
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.

Add process-message route to viewer

5 participants