Skip to content

Commit

Permalink
fix target id to be mapped to the correct reference within the value …
Browse files Browse the repository at this point in the history
…reference
  • Loading branch information
mherman22 committed Sep 9, 2024
1 parent 16e8935 commit f3ef268
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ public IBundleProvider getPatientsByPIX(String sourceIdentifier, String sourceId
}

Parameters crMatchingParams = identifiersRequest.useHttpGet().execute();
List<String> crIdentifiers = crMatchingParams.getParameter().stream()
.filter(param -> Objects.equals(param.getName(), "targetId")).map(param -> param.getValue().toString())
.collect(Collectors.toList());
List<String> crIdentifiers = crMatchingParams.getParameter().stream().filter(param -> Objects.equals(param.getName(), "targetId"))
.map(param -> ((Reference) param.getValue()).getReference()).collect(Collectors.toList());

if (crIdentifiers.isEmpty()) {
return new CRSearchBundleProvider(Collections.emptyList(), globalPropertyService);
Expand Down

0 comments on commit f3ef268

Please sign in to comment.