Uploaded image for project: 'EMR API'
  1. EMR API
  2. EA-165

Enable Diagnosis Search in user locale or as specified by query parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: 1.24.5, 1.30.0
    • Fix Version/s: 1.31.0, 1.24.8
    • Labels:
      None

      Description

      The EMR API to search diagnosis (GET /emrapi/concept) does not consider the user locale, and therefore it is unable to search in other languages apart from default Locale.

      For example, if the default locale is "en", then the search will always be in "en", whether the user wants to search (in session context) in "fr". 

       

      Technical Aspects

      From the code it seems like this line of code here should be changed to use "Context.getLocale()" so that if the user session has a particular "locale" set, then the search can leverage so. 

      At the same time, it will be good to pass a parameter for locale in the request object. This is for the cases, where 1) Search in other locales without changing the user's session locale 2) where frontend apps are using REST APIs to login. (and not using the POST call to set user locale)

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              angshuonline Angshuman Sarkar
              Reporter:
              angshuonline Angshuman Sarkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified