Skip to content

Scope NIRC EHR report assertions to the animal under test - #766

Merged
labkey-martyp merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_scope_report_assertions
Sep 20, 2026
Merged

labkey-martyp merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_scope_report_assertions

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

Three NIRC_EHRTest tests assert against reports that cover the whole folder, so records other tests leave behind get counted as their own: stray active treatment orders inflate the medication schedule and behavior order counts, and clinical cases left open can sit at row 0 of the Active Clinical Cases report, sending a test into the wrong animal's case form.

Related Pull Requests

None.

Changes

  • Filter the medication schedule, active behavior order and active clinical case reports to the animal each test is working with, before counting rows or following a row link.

The medication schedule and active case reports cover the whole folder, so orders and cases left open by other tests were counted against these two tests.
The Active Clinical Cases report is folder-wide, so row 0 could be a case another test left open.

@labkey-martyp labkey-martyp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see green tests!

@labkey-martyp
labkey-martyp merged commit 08c4dfb into release26.7-SNAPSHOT Sep 20, 2026
8 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_scope_report_assertions branch September 20, 2026 11:47
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