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

Loosen validation requirement for quantity, units, and refills on outpatient drug orders

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      There have been many examples of users who have run into issues with the validation rules in Order Entry that require all Drug Orders with careSetting = 'OUTPATIENT' to have non-null quantity, quantityUnits, and numRefills specified.

      The typical suggested workaround is for these users to build custom application handling that hides these fields and sets them all to "0".  This indicates clearly that there are use cases in which this validation should be loosened, and users / implementations should be able to opt out of it if desired.  The suggestion is also difficult due to the additional validation that non-null quantity (eg. 0) requires a non-null quantityUnits (which must refer to a valid concept, and this concept must exist within a defined concept set, and this must be configured in a global property).  So it's a lot to ask and not a great situation.

      This ticket is to change the validation as follows:

      1. Add a new global property:  "drugOrder.requireOutpatientQuantity" which defaults to true (for backwards-compatibility)
      2. Modify the DrugOrderValidator.validateFieldsForOutpatientCareSettingType method to skip validation if the value of the above global property = false.

      Burke Mamlin FYI

      See slack conversation:

      https://openmrs.slack.com/archives/CHP5QAE5R/p1602776894132300?thread_ts=1602776135.130400&cid=CHP5QAE5R

      See talk thread:

      https://talk.openmrs.org/t/can-drug-orders-continue-indefinitely-until-explicitly-stopped/3492/7?u=mseaton

      FYI - I will have a need to backport this into the 2.3.x line, in addition to master

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              mseaton Mike Seaton
              Reporter:
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: