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

Check that RR isn't already present before attempting to merge with eICR #870

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

emmastephenson
Copy link
Collaborator

@emmastephenson emmastephenson commented Oct 17, 2023

PULL REQUEST

Summary

Checks to see if RR data has already been extracted and inserted into the eCR before merging RR data into eCR.

Related Issue

Fixes #844

Additional Information

The original PR (#866) checked for the value 2.16.840.1.113883.6.1, which turns out to be the unique ID for the LOINC system as a whole 😅 This updated branch instead checks for the specific RR code, 88085-6. Integration tests caught this once it was merged to main, because they were using more robust sample eICR/RR files - those eICRs already had LOINC codes elsewhere for other fields, so failed to merge the eICRs and thus failed the tests. Going to spend a little time looking into importing the "current" version of the SDK for integration tests, so we don't just catch it after merge to main, but that's for a different PR!

Note - I manually checked the integration tests (installing phdi@current commit) and they do work with this version.

Checklist

  • If this code affects the other scrum team, have they been notified? (In Slack, as reviewers, etc.)

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #870 (451da0c) into main (2220437) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #870   +/-   ##
=======================================
  Coverage   96.37%   96.37%           
=======================================
  Files          46       46           
  Lines        2645     2648    +3     
=======================================
+ Hits         2549     2552    +3     
  Misses         96       96           
Flag Coverage Δ
unit-tests 96.37% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
phdi/fhir/conversion/convert.py 99.12% <100.00%> (+0.02%) ⬆️

Copy link
Member

@nickclyde nickclyde left a comment

Choose a reason for hiding this comment

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

Looks good!

@emmastephenson emmastephenson merged commit 9f9ad69 into main Oct 18, 2023
20 checks passed
@emmastephenson emmastephenson deleted the emma/844-rr-check branch October 18, 2023 18:19
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.

Update add_rr_data_to_eicr to check if RR data is already present
2 participants