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

Make Global Property parsed and cached (not fetching and parsing every time)

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      TODO: this (GP_ENCOUNTER_TYPE_TO_VISIT_TYPE_MAPPING) Global Property should be parsed and cached (as a map) instead of fetching it and parsing it every time. (And we should have a global property change listener to recalculate it when that Global Property is changed.)
      File: /api/src/main/java/org/openmrs/api/handler/ExistingOrNewVisitAssignmentHandler.java
      Line: 80

      You can look at: org.openmrs.api.GlobalPropertyListener and org.openmrs.api.impl.GlobalLocaleList

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lluismf Lluis Martinez
              Reporter:
              nullakilla Anton Alekseiev
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h