Skip to content

issue-4114: Fix unassigned sample referral lookup - #4128

Open
soumajitgh wants to merge 1 commit into
DIGI-UW:developfrom
soumajitgh:issue-4114
Open

issue-4114: Fix unassigned sample referral lookup#4128
soumajitgh wants to merge 1 commit into
DIGI-UW:developfrom
soumajitgh:issue-4114

Conversation

@soumajitgh

Copy link
Copy Markdown

Summary

Fixes the invalid referral property and mapped-association joins used when finding an unassigned sample by accession number.

Changes

  • Filter referrals with valid ReferralStatus values, excluding canonical CANCELLED and legacy CANCELED states.
  • Traverse the mapped Referral, Analysis, SampleItem, and Sample associations so Hibernate generates valid SQL.
  • Add database-backed regression coverage for eligible, cancelled, assigned, and nonexistent samples.

Verification

  • mvn test -Dtest=SampleDAOImplTest: 4 passed
  • mvn spotless:check: passed

Issue

Fixes #4114
#4114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Fix SampleDAOImpl.getUnassignedSampleByAccessionNumber — invalid HQL property r.canceled

1 participant