Skip to content

Commit

Permalink
TRUNK-6242: editing the hydrate() to fetch concepts by id/Uuid/mappin…
Browse files Browse the repository at this point in the history
…gs by replacing ConceptService#getConcept() with ConceptService#getConceptByReference() (#4660)
  • Loading branch information
josephbate authored Jun 10, 2024
1 parent 8f50e49 commit 8d3e65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/org/openmrs/Concept.java
Original file line number Diff line number Diff line change
Expand Up @@ -1436,9 +1436,9 @@ public List<Concept> getPossibleValues() {
* @see org.openmrs.Attributable#hydrate(java.lang.String)
*/
@Override
public Concept hydrate(String s) {
public Concept hydrate(String reference) {
try {
return Context.getConceptService().getConcept(Integer.valueOf(s));
return Context.getConceptService().getConceptByReference(reference);
}
catch (Exception e) {
// pass
Expand Down

0 comments on commit 8d3e65b

Please sign in to comment.