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

NTE Integration Test #1649

Merged
merged 10 commits into from
Dec 11, 2024
Merged

NTE Integration Test #1649

merged 10 commits into from
Dec 11, 2024

Conversation

pluckyswan
Copy link
Contributor

@pluckyswan pluckyswan commented Dec 9, 2024

Description

Added a new assertion to test that NTE segment exists after transformation from FHIR to HL7. This was tested by triggering the Automated Staging integration tests. It successfully ran with the right conditions, and successfully broke when the conditions were purposely fiddled with.

Issue

#1424

Checklist

  • I have added tests to cover my changes

Note: You may remove items that are not applicable

Copy link

github-actions bot commented Dec 9, 2024

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

1424 - Partially compliant

Fully compliant requirements:

  • Add a test for RS-E2E that includes an assertion definition.

Not compliant requirements:

  • Add an integration test in RS and RS-E2E to ensure the NTE segment is mapped correctly from FHIR to HL7.
  • Add a test for RS that possibly includes a golden copy test related to NTE segment mapping.
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Assertion Logic
The assertion for the NTE segment mapping needs to verify the correct mapping of the segment, not just the presence of specific notes.

Copy link

github-actions bot commented Dec 9, 2024

PR Code Suggestions ✨

No code suggestions found for the PR.

"MSH-10 = '011'"
],
"rules": [
"NTE-3 = 'note 1'",
Copy link
Contributor

@GilmoreA6 GilmoreA6 Dec 11, 2024

Choose a reason for hiding this comment

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

I understand why we are using this rule but I don't love it since it only works because our HL7 parser only returns the first iteration of each segment/field and there is no indexing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using NTE-3 = input.NTE-3 which would work even if we add indexing

Copy link
Contributor

Choose a reason for hiding this comment

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

Great idea

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 point. Changed it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reran the automation test as well and it works.

"MSH-10 = '011'"
],
"rules": [
"NTE-3 = 'note 1'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using NTE-3 = input.NTE-3 which would work even if we add indexing

@pluckyswan pluckyswan requested a review from GilmoreA6 December 11, 2024 19:13
@pluckyswan pluckyswan merged commit bbdbcce into main Dec 11, 2024
17 checks passed
@pluckyswan pluckyswan deleted the nte-integration-test branch December 11, 2024 19:46
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.

3 participants