# Request for review and guidance: interpretation rule shown under another result component

**URL:** <https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474>\
**Category:** Development\
**Tags:** gsoc\
**Created:** [November 11, 2026, 6:06pm UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474 "2026-11-11T18:06:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmanKS](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/amanks/32/1337_2.png) [@AmanKS](https://talk.openelis-global.org/u/AmanKS)\
**Post date:** [November 11, 2026, 6:06pm UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/1 "2026-11-11T18:06:09Z")

</div>

Hi everyone,

I’m Aman, a new contributor exploring OpenELIS and preparing for GSoC 2027  
if the project participates.

While exploring the Results workflow, I found and reproduced an issue where  
an interpretation rule configured for one result component appears under  
another component that has no rules.

I’ve reported the steps, screenshots, and tested commit here:

> <https://github.com/DIGI-UW/OpenELIS-Global-2/issues/5034>
>
> \### Affected Component / Area
> 
> Frontend (React / Carbon UI)
> 
> \### Description of …the Bug
> 
> On the unified Results page, an interpretation rule configured for one
> result component is displayed under another component when that second
> component has no interpretation rules.
> 
> I reproduced this with a synthetic test containing two numeric components:
> 
> \- Component A has a rule with value match \`\>10\` and the text
> \`TEST ONLY: suggestion for component A\`.
> \- Component B has no interpretation rules.
> 
> On the Results page, Component A's rule appears under Component B.
> When Component B's result is \`20\`, the UI marks Component A's \`\>10\` rule
> as matching B's value. Selecting the suggestion copies A's text into B's
> interpretation field.
> 
> I saved the synthetic result and reloaded the page; the selected text
> remained visible in Component B's interpretation field. I did not check a
> final patient report.
> 
> This could lead a user to select and save an interpretation intended for a
> different result component.
> 
> \### Possible cause
> 
> In \`InterpretationSection.tsx\`, rules are filtered by \`componentId\`, but the
> component falls back to all rules when the filtered list is empty:
> 
> \`setBuckets(scoped.length \> 0 ? scoped : all);\`
> 
> The existing fallback for rows without a component ID may be needed for
> single-component or legacy cases and should be considered when fixing this.
> 
> \### Contribution
> 
> I reproduced this locally and would like to work on a fix. \*\*Could a
> maintainer please assess this issue and assign it to me if appropriate\*\*?
> 
> \### Steps to Reproduce
> 
> 1. In Test Catalogue, create a synthetic clinical test with two numeric
> result components: Component A and Component B.
> 
> 2. Add an interpretation rule to Component A:
> - Value match: \`\>10\`
> - Interpretation: \`TEST ONLY: suggestion for component A\`
>    
> \<img width="1214" height="463" alt="image" src="https://github.com/user-attachments/assets/160a0ad9-eccb-47f0-9a1f-d9eeab9090fb" /\>
> 
> 3. Leave Component B without interpretation rules.
> 
> 4. Create a synthetic order containing the test and release it for testing.
> 
> 5. Open the order on the unified Results page.
> 
> 6. Expand the Component B row, enter \`20\` as its result, and open
> Interpretation.
> 
> 7. Observe that Component A's rule appears and is marked as matching
> Component B's value.
> 
> \<img width="1684" height="765" alt="image" src="https://github.com/user-attachments/assets/21e37b6c-d410-4794-a7ea-d4e9f2451a56" /\>
> 
> 8. Select the rule. Its text is copied into Component B's interpretation
> field.
> 
> 9. Save the synthetic result, reload the page, and reopen Component B's
> Interpretation section. The selected text remains visible in the field.
> 
> On Results, Component A's suggestion appears under Component B:
> 
> 
> 
> \### URL
> 
> \_No response\_
> 
> \### Expected Behavior
> 
> A component with no configured interpretation rules should not display or
> evaluate a rule configured specifically for another component.
> 
> If a Results row has no component ID, any intended single-component or
> legacy fallback should continue to work.
> 
> \### Severity Rating
> 
> Level 2: Minor / medium (difficult or confusing, but workaround exists)
> 
> \### Environment Info
> 
> OpenELIS Global: 3.4.0-SNAPSHOT
> Environment: isolated local light development stack; synthetic test and order
> Latest upstream develop commit tested: 864aa0e0e3df0eab557a31dc329966ff86588c9e
> Verified in the running Results UI using Playwright. The live frontend used Vite 8.3.2 from the development image; focused React tests used the checkout’s locked Vite 8.3.6.
> A final patient report was not generated or checked.
> 
> \### Checklist
> 
> \- \[x\] I have verified this bug exists on the latest develop branch.
> \- \[x\] I have searched for existing issues to avoid duplicates.

Could a maintainer please review whether this is a valid issue? I’d like to  
work on a fix and learn from the contribution. If appropriate, could the issue  
be assigned to me?

Thank you!

---

<div class="post-metadata">

**Author:** ![AmanKS](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/amanks/32/1337_2.png) [@AmanKS](https://talk.openelis-global.org/u/AmanKS)\
**Post date:** [November 11, 2026, 6:12pm UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/2 "2026-11-11T18:12:06Z")

</div>

Hi @Agaba_Derrick_Junior ,

Could you please help me confirm whether the behavior described in [issue #5034](https://github.com/DIGI-UW/OpenELIS-Global-2/issues/5034) is a bug or an intended feature?

I reproduced it on the latest `develop` using a synthetic test: an interpretation rule configured for one result component appeared under another component that had no rules.

If this is a valid issue, I’d like to work on a fix. Could you please advise on getting it assessed and assigned to me? I’d be happy to submit a PR after confirmation.

Thank you!

---

<div class="post-metadata">

**Author:** ![Moses\_Mutesasira](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/moses_mutesasira/32/72_2.png) [@Moses\_Mutesasira](https://talk.openelis-global.org/u/Moses_Mutesasira)\
**Post date:** [November 12, 2026, 7:24am UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/3 "2026-11-12T07:24:33Z")

</div>

Thanks @AmanKS for reporting and documenting this issue .  
Ill try to reporduce and approve it.  
Keep up the good work.

---

<div class="post-metadata">

**Author:** ![AmanKS](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/amanks/32/1337_2.png) [@AmanKS](https://talk.openelis-global.org/u/AmanKS)\
**Post date:** [November 12, 2026, 8:38am UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/4 "2026-11-12T08:38:05Z")

</div>

Thank you, @Moses_Mutesasira ! I appreciate you taking the time to check it.

I’d be happy to work on a fix once the issue is confirmed. If appropriate, could it please be assigned to me? I’ll wait for your guidance before starting the PR.

Thanks!

---

<div class="post-metadata">

**Author:** ![AmanKS](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/amanks/32/1337_2.png) [@AmanKS](https://talk.openelis-global.org/u/AmanKS)\
**Post date:** [November 14, 2026, 8:25pm UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/5 "2026-11-14T20:25:49Z")

</div>

Hi @Moses_Mutesasira , thank you again for reproducing the issue and assigning it to me.

I’ve opened a PR for the fix: [fix(results): scope interpretation suggestions to component (#5034) by JardaniJovonovich6 · Pull Request #5083 · DIGI-UW/OpenELIS-Global-2 · GitHub](https://github.com/DIGI-UW/OpenELIS-Global-2/pull/5083)

It follows your suggested approach and includes component tests and screenshots from the manual check. The GitHub workflows are currently awaiting approval. When you have time, could you please review it and let me know if any changes are needed ? Thank you !

---

<div class="post-metadata">

**Author:** ![AmanKS](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/amanks/32/1337_2.png) [@AmanKS](https://talk.openelis-global.org/u/AmanKS)\
**Post date:** [November 21, 2026, 1:26pm UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/6 "2026-11-21T13:26:39Z")

</div>

Hi @Moses_Mutesasira and @Agaba_Derrick_Junior , I hope you’re doing well!

I wanted to follow up on my PR for issue #5034: [fix(results): scope interpretation suggestions to component (#5034) by JardaniJovonovich6 · Pull Request #5083 · DIGI-UW/OpenELIS-Global-2 · GitHub](https://github.com/DIGI-UW/OpenELIS-Global-2/pull/5083)

I’ve addressed Agaba’s suggestions and updated the tests. When you have time, could you please review the changes and let me know if anything else needs to be done?

Thank you for your guidance!

---

<div class="post-metadata">

**Author:** ![AmanKS](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/amanks/32/1337_2.png) [@AmanKS](https://talk.openelis-global.org/u/AmanKS)\
**Post date:** [November 26, 2026, 8:08am UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/7 "2026-11-26T08:08:12Z")

</div>

Hi everyone! My first contribution to OpenELIS Global, PR #5083, has been merged. It was a great learning experience, and I’m grateful to the reviewers and maintainers who helped me along the way.

I’m continuing to learn Java and Spring, and I’m especially interested in contributing to backend improvements. I’m looking forward to learning from the community and helping with more contributions.

@Moses_Mutesasira @Agaba_Derrick_Junior

---

<div class="post-metadata">

**Author:** ![Agaba\_Derrick\_Junior](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/agaba_derrick_junior/32/503_2.png) [@Agaba\_Derrick\_Junior](https://talk.openelis-global.org/u/Agaba_Derrick_Junior)\
**Post date:** [November 26, 2026, 12:39pm UTC](https://talk.openelis-global.org/t/request-for-review-and-guidance-interpretation-rule-shown-under-another-result-component/2474/8 "2026-11-26T12:39:04Z")

</div>

thnak you @AmanKS , keep up the good work !
