Move conceptdatatype and conceptclass lookup to utils

Description

related pull request:
https://github.com/Raxa/Raxa-JSS/pull/258/files#r1989232

notes:
"
nathanleiby repo collab 2 days ago
@johnstoecker would this be possible to fix now? When I browsed this code earlier, I didn't see any problem with fetching and saving these during startup instead of here. Would be nice to put all "OpenMRS setup" in one place, rather than doing anything dynamically (like fetching drug concept)
nathanleiby repo collab 2 days ago
Rather, I mean, can we move this? It doesn't have to happen now , but I can make a ticket for it if it's do-able
"

Environment

None

Activity

Show:
John V Stoecker
November 2, 2012, 3:46 PM

Searching on conceptclass and conceptdatatype is still not allowed in OpenMRS. We need to make sure that concept class has no search term, so ..../rest/v1/conceptclass and not ..../rest/v1/conceptclass?q=

So in getAttributeFromREST there could be a check – if no search term, don't add the "?q=" to the url

Then, we just make sure the displayname is exactly what we want.

Assignee

Unassigned

Reporter

Nathan Leiby

Labels

None

Affects versions

Priority

Minor
Configure