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

Dosing, quantity, dispensing and duration units concepts should be defined via global properties

    XMLWordPrintable

Details

    Description

      TODOS:

      • Add the following global properties; drugorder.dosingUnits and drugorder.getDispensingUnits where their values are uuids for concepts which must be a Sets, the idea is that the set members constitute the list of concepts to be returned by the following methods that need to be added too, (see how OrderService.getDrugRoutes() was implemented). It would be nice if these method cache these lists of concepts and update them via the GlobalPropertyListener mechanism
        List<Concept> getDrugDosingUnits() 
        List<Concept> getDispensingUnits();
        
      • Remove the changeset that adds Units Of Measurement concept class
      • Remove org.openmrs.ConceptClass.UNIT_OF_MEASUREMENT_UUID
      • Update DrugOrderValidator to validate the concept for doseUnits and quantityUnits to ensure it is among those specified by the global property.
      • Update MigrateDrugOrderUnitsToCodedDoseUnitsChangeset to ensure that mapped concepts match those listed for their respective global properties

      Extra Credit:

      • Update the 1.10 upgrade helper module to not use the units of measure concept class and probably use these global properties too.
      • Update order entry UI module to use the concepts returned by these methods to populate the dosing Units and dispensing quantity fields instead of concept classes.

      Gliffy Diagrams

        Attachments

          Activity

            People

              raff Rafal Korytkowski
              wyclif Wyclif Luyima
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h