Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1693

Drug Regimen portlet is slow to load

    XMLWordPrintable

    Details

    • Complexity:
      Medium
    • Development:

      Description

      The 'patientRegimen' portlet included on the patient dashboard takes too long to render.

      Profiling says that a lot of time is spent in RegimenPortletController.populateModel (much of which is in getConcept(String), so this may be sped up by caching concepts). Also, the drugOrder.js.withjstl file seems to take a non-trivial amount of time to process. (Since this js file is not cached, that's a problem.)

      From my recollection of the code, it is probably worth rewriting the whole portlet rather than trying to optimize it in its current form.

      (Make sure you are looking at a patient that has drug orders, and that the 'dashboard.regimen.displayDrugSetIds' global property is set.)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                darius Darius Jazayeri
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: