Anthony-Nolan / Atlas

A free & open-source Donor Search Algorithm Service
GNU General Public License v3.0
9 stars 5 forks source link

Add MatchDenominator to Search Results model #885

Closed zabeen closed 1 year ago

zabeen commented 1 year ago

Testing

Matching only, No Scoring

Given a valid 10/10 donor search request with match prediction enabled,
And no scoring requested, When the request has completed successfully,
Then the search result set should have a MatchCriteriaDenominator value of 10,
And a ScoringCriteriaDenominator that is null.

Given a valid 4/8 cord search request with match prediction enabled,
And no scoring requested, When the request has completed successfully,
Then the search result set should have a MatchCriteriaDenominator value of 8,
And a ScoringCriteriaDenominator that is null.

Matching with Scoring at all Loci

Given a valid 10/10 donor search request
With match prediction enabled,
And scoring requested at all 6 loci,
And DPB1 excluded from the aggregated score,
When the request has completed successfully,
Then the search result set should have a MatchCriteriaDenominator value of 10,
And a ScoringCriteriaDenominator of 10.

Given a valid 4/8 cord search request,
With match prediction enabled,
And scoring requested at all 6 loci,
And DPB1 excluded from the aggregated score,
When the request has completed successfully,
Then the search result set should have a MatchCriteriaDenominator value of 8,
And a ScoringCriteriaDenominator of 10.

Matching with Scoring only at DPB1

Given a valid 10/10 donor search request
With match prediction enabled,
And scoring requested at DPB1, When the request has completed successfully,
Then the search result set should have a MatchCriteriaDenominator value of 10,
And a ScoringCriteriaDenominator of 2.

Given a valid 4/8 cord search request,
With match prediction enabled,
And scoring requested at DPB1,
When the request has completed successfully,
Then the search result set should have a MatchCriteriaDenominator value of 8,
And a ScoringCriteriaDenominator of 2.

Summary

Testing Passed ✅