Skip to content

Improve scoop - #2065

Merged
dczulada merged 5 commits into
masterfrom
improve_scoop
Jul 28, 2026
Merged

Improve scoop#2065
dczulada merged 5 commits into
masterfrom
improve_scoop

Conversation

@dczulada

@dczulada dczulada commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Pull requests into Cypress require the following. Submitter and reviewer should ✅ when done. For items that are not-applicable, note it's not-applicable ("N/A") and ✅.

Submitter:

  • This pull request describes why these changes were made.
  • Internal ticket for this PR:
  • Internal ticket links to this PR
  • Code diff has been done and been reviewed
  • Tests are included and test edge cases
  • Tests have been run locally and pass

Reviewer 1:

Name:

  • Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
  • The tests appropriately test the new code, including edge cases
  • You have tried to break the code

Reviewer 2:

Name:

  • Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
  • The tests appropriately test the new code, including edge cases
  • You have tried to break the code

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.41667% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.66%. Comparing base (97703ee) to head (b8a674d).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
lib/cypress/scoop_and_filter.rb 83.72% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2065      +/-   ##
==========================================
+ Coverage   91.63%   91.66%   +0.03%     
==========================================
  Files         159      159              
  Lines        7340     7369      +29     
==========================================
+ Hits         6726     6755      +29     
  Misses        614      614              

☔ View full report in Codecov by Harness.
📢 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.

@dczulada
dczulada force-pushed the improve_scoop branch 2 times, most recently from 539cea9 to 3ca4310 Compare July 15, 2026 18:20

@elsaperelli elsaperelli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One typo and one question!

Comment thread lib/cypress/scoop_and_filter.rb Outdated
data_element.fields.keys.each do |field_name|
next if data_element[field_name].nil?

# Dianoses and Facility Locations are unique because they are arrays

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# Dianoses and Facility Locations are unique because they are arrays
# Diagnoses and Facility Locations are unique because they are arrays

Comment thread test/unit/lib/patient_zipper_test.rb Outdated
doc.root.add_namespace_definition('sdtc', 'urn:hl7-org:sdtc')
# There should be 1 entry with encounter ids. The fixture measures do not have PhysicalExamPerformed criteria, so that entry will be filtered out
assert_equal 1, doc.xpath('//sdtc:templateId[@root="2.16.840.1.113883.10.20.24.3.150"]').size, 'There should be 1 entry with encounter ids'
assert_equal 2, doc.xpath('//sdtc:templateId[@root="2.16.840.1.113883.10.20.24.3.150"]').size, 'There should be 1 entry with encounter ids'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should this still say "There should be 1 entry with encounter ids" even though we are doing assert_equal 2?

@elsaperelli elsaperelli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One more small comment!

Comment thread test/unit/lib/patient_zipper_test.rb Outdated
doc.root.add_namespace_definition('sdtc', 'urn:hl7-org:sdtc')
# There should be 1 entry with encounter ids. The fixture measures do not have PhysicalExamPerformed criteria, so that entry will be filtered out
assert_equal 1, doc.xpath('//sdtc:templateId[@root="2.16.840.1.113883.10.20.24.3.150"]').size, 'There should be 1 entry with encounter ids'
assert_equal 2, doc.xpath('//sdtc:templateId[@root="2.16.840.1.113883.10.20.24.3.150"]').size, 'There should be 2 entry with encounter ids'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
assert_equal 2, doc.xpath('//sdtc:templateId[@root="2.16.840.1.113883.10.20.24.3.150"]').size, 'There should be 2 entry with encounter ids'
assert_equal 2, doc.xpath('//sdtc:templateId[@root="2.16.840.1.113883.10.20.24.3.150"]').size, 'There should be 2 entries with encounter ids'

@dczulada
dczulada requested a review from elsaperelli July 28, 2026 14:43
@dczulada
dczulada merged commit 5b85907 into master Jul 28, 2026
11 checks passed
@dczulada
dczulada deleted the improve_scoop branch August 5, 2026 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.

2 participants