fix quantity search parameter test to pass

This commit is contained in:
Long Ma 2024-07-23 10:52:47 -06:00
parent 84dd45018d
commit 50ddb7e34e
1 changed files with 3 additions and 1 deletions

View File

@ -663,7 +663,9 @@ public abstract class QuantitySearchParameterTestCases implements ITestDataBuild
.getIdPart(); // 70_000 .getIdPart(); // 70_000
// this search is not freetext because there is no freetext-known parameter name // this search is not freetext because there is no freetext-known parameter name
List<String> allIds = myTestDaoSearch.searchForIds("/Observation?_sort=value-quantity"); // search by value quantity was added here because empty search params would cause the search to go through jpa search which does not
// support normalized quantity sorting.
List<String> allIds = myTestDaoSearch.searchForIds("/Observation?value-quantity=ge0&_sort=value-quantity");
assertThat(allIds, contains(idAlpha2, idAlpha1, idAlpha3)); assertThat(allIds, contains(idAlpha2, idAlpha1, idAlpha3));
} }
} }