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

NIAD-2846: new RCMR_IN030000UK07 compatibility test #318

Merged
merged 23 commits into from
Oct 5, 2023
Merged

Conversation

ole4ryb
Copy link
Contributor

@ole4ryb ole4ryb commented Sep 28, 2023

What

Adding an additional test to make sure that existing codebase can handle RCMR_IN030000UK07 xml type

Why

The current implementation works with RCMR_IN030000UK06 xml type. The change adds a new test to make sure that the current codebase can handle RCMR_IN030000UK07 type without any errors.

Checklist:

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the Changelog with details of my change in the UNRELEASED section if this change will affect end users

@ole4ryb ole4ryb marked this pull request as ready for review October 4, 2023 09:31
@ole4ryb ole4ryb changed the title NIAD-2846: adding RCMR_IN030000UK07 test NIAD-2846: new RCMR_IN030000UK07 compatibility test Oct 4, 2023
private RCMRMT030101UK04EhrFolder getEhrFolder(RCMRIN030000UK06Message xmlMessage) {
return xmlMessage.getControlActEvent().getSubject().getEhrExtract().getComponent().get(0).getEhrFolder();
private RCMRMT030101UK04EhrFolder getEhrFolder(RCMRIN030000UKMessage xmlMessage) {
if (xmlMessage instanceof RCMRIN030000UK07Message) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the plan for this if statements (and others), they look a bit grim are them temprary?

@ole4ryb ole4ryb merged commit 8592bbc into main Oct 5, 2023
@ole4ryb ole4ryb deleted the NIAD-2846 branch October 5, 2023 12:42
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