Skip to content

Commit

Permalink
fixed duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
fil512 committed Mar 8, 2019
1 parent 2ab52ed commit 49d257c
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -503,10 +503,12 @@ public void testHasParameterChained() {

SearchParameterMap params;

params = new SearchParameterMap();
params.setLoadSynchronous(true);
params.add("_has", new HasParam("Observation", "subject", "device.identifier", "urn:system|DEVICEID"));
assertThat(toUnqualifiedVersionlessIdValues(myPatientDao.search(params)), contains(pid0.getValue()));
// KHS JA When we switched _has from two queries to a nested subquery, we broke support for chains within _has
// We have decided for now to prefer the performance optimization of the subquery over the slower full capability
// params = new SearchParameterMap();
// params.setLoadSynchronous(true);
// params.add("_has", new HasParam("Observation", "subject", "device.identifier", "urn:system|DEVICEID"));
// assertThat(toUnqualifiedVersionlessIdValues(myPatientDao.search(params)), contains(pid0.getValue()));

// No targets exist
params = new SearchParameterMap();
Expand Down

0 comments on commit 49d257c

Please sign in to comment.