Skip to content

Commit

Permalink
[BI-2047] - added studyDbId translation
Browse files Browse the repository at this point in the history
  • Loading branch information
mlm483 committed Feb 18, 2025
1 parent c988d88 commit 8d41a91
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ public List<BrAPIObservation> getObservationsByFilters(Program program, String s
// Translate ObservationId.
o.setObservationDbId(Utilities.getExternalReference(o.getExternalReferences(), observationSource)
.orElseThrow(() -> new RuntimeException("observation xref not found on observation")).getReferenceId());
// Translate StudyDbId.
o.setStudyDbId(Utilities.getExternalReference(o.getExternalReferences(), studySource)
.orElseThrow(() -> new RuntimeException("study xref not found on observation")).getReferenceId());
// TODO: consider translating germplasmDbId in BI-2506.
}).collect(Collectors.toList());
}
Expand Down

0 comments on commit 8d41a91

Please sign in to comment.