Skip to content

Commit 224a879

Browse files
committed
formating the concpet id value to a numeric string
1 parent 66da78e commit 224a879

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

omod/src/main/java/org/openmrs/web/dwr/DWRConceptService.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,7 @@ public List<Object> findBatchOfConcepts(String phrase, boolean includeRetired, L
236236
* @param conceptId the id to look for
237237
* @return a {@link ConceptListItem} or null if conceptId is not found
238238
*/
239-
public ConceptListItem getConcept(String phrase) {
240-
241-
//trimming off unnecesarry characters to remain with a Pure Numeric String that can be converted to ConceptId
242-
String numeric_phrase = phrase.replaceAll("Concept #", "").trim();
243-
Integer conceptId = Integer.valueOf(numeric_phrase);
239+
public ConceptListItem getConcept(Integer conceptId) {
244240
Locale locale = Context.getLocale();
245241
ConceptService cs = Context.getConceptService();
246242
Concept c = cs.getConcept(conceptId);

0 commit comments

Comments
 (0)