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

ETOR Processing Tag #844

Merged
merged 46 commits into from
Feb 12, 2024
Merged

ETOR Processing Tag #844

merged 46 commits into from
Feb 12, 2024

Conversation

jorg3lopez
Copy link
Contributor

@jorg3lopez jorg3lopez commented Feb 5, 2024

ETOR Processing Tag

This PR adds a tag to the meta section of the messageHeader resource so that RS knows not to send back the messages that we (TI) have processed. This is an essential part for fixing the sending loop.

Issue

Checklist

  • I have added tests to cover my changes
  • I have added logging where useful (with appropriate log level)
  • I have added JavaDocs where required
  • I have updated the documentation accordingly

@jorg3lopez
Copy link
Contributor Author

The mock_credentials PR was merged into this branch as I needed those changes for the API to work.

HapiHelper.resourcesInBundle(messageBundle, MessageHeader.class).findFirst();
if (messageHeaderOptional.isPresent()) {
var messageHeader = messageHeaderOptional.get();
var meta = messageHeader.hasMeta() ? messageHeader.getMeta() : new Meta();
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add a Meta constructor that takes a Coding object so we don't have to call setMeta after?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion. The Meta class is from the fhir library. If we want to overload its constructor, we will have to submit the request in their repo

@jcrichlake
Copy link
Contributor

Really nice stuff! It looks like there is a checkbox in the run configuration for the remote JVM debug that would allow you to store that configuration as a project file. What are your thoughts on checking that in to the repo for everyone to just have access to it?

@jorg3lopez jorg3lopez marked this pull request as ready for review February 10, 2024 00:02
@jorg3lopez jorg3lopez marked this pull request as draft February 10, 2024 00:13
@jorg3lopez
Copy link
Contributor Author

We still need e2e

@jorg3lopez jorg3lopez marked this pull request as ready for review February 10, 2024 19:03
Copy link
Contributor

@basiliskus basiliskus left a comment

Choose a reason for hiding this comment

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

Great work! Just left a couple of comments

Copy link

@jorg3lopez jorg3lopez merged commit cdc1b14 into main Feb 12, 2024
16 checks passed
@jorg3lopez jorg3lopez deleted the stream2-add-processing-tag-to-message branch February 12, 2024 17:56
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.

4 participants