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

Changesets that convert units from text to concept should use a file and not a global property

    XMLWordPrintable

    Details

      Description

      The migration scripts use the value of the OpenmrsConstants.GP_ORDER_ENTRY_UNITS_TO_CONCEPTS_MAPPINGS global property when converting text units(dose, frequency etc)

      • Update DatabaseUtil.getConceptIdForUnits() read the mappings from a text file named order_entry_upgrade_settings.txt in the application data directory, In entries in order_entry_upgrade_settings.txt should be like a properties file of the form below
        mgs=concept_id1
        tabs=concept_id2
        once a day=concept_id3
        
      • Get rid of global property and the constant OpenmrsConstants.GP_ORDER_ENTRY_UNITS_TO_CONCEPTS_MAPPINGS

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              kkaczmarczyk Krzysztof Kaczmarczyk
              Reporter:
              wyclif Wyclif Luyima
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 6 hours Original Estimate - 6 hours
                  6h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 7 hours
                  2d 7h