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

Write a medication order

    XMLWordPrintable

Details

    Description

      Story

      As a doctor, I want to write a new electronic drug order for the patient, so that we can record his/her treatment, and dispense drugs to him/her.

      Scope

      We are not addressing "status" as part of this story. For now (as in 1.9.x) this will be inferred based on startDate, autoExpireDate, and stopDate

      Acceptance Criteria:

      • I am able to specify
        • the care setting, i.e. if the patient is an in-patient or out-patient
        • the type of drug
        • the dosage and method to admister the drug
        • the instructions for a simple dosage
        • any instructions if the dosage is considered complex

      Questions

      Is it sufficient for Bahmni and KE EMR that in the first iteration drug orders always specify a formulary Drug (not just a Concept)?

      TODOs

      • Before proceeding, please ensure that all sub tasks of this ticket are done
      • Add the method below to OrderEntryService
        //careSetting is required
        //should it set startDate to now?
        //should not allow editing
        public Order saveNewOrder(Order order, CareSetting careSetting)
        

      Dev Notes

      • We need a simple placeholder for CareSetting, e.g. an enum that can be INPATIENT or OUTPATIENT
      • We're going to be using a Concept for units: ask CIEL to define the reference set of units
      • Create an order_frequency table (see other ticket). Ask CIEL to define the reference set of frequencies (including "other non-coded")

      Gliffy Diagrams

        Attachments

          Issue Links

            1.
            Rename drug_order.complex to drug_order.dosing_type Sub-task Closed Sushmitha Rao

            100%

            Original Estimate - 5 hours Original Estimate - 5 hours
            Time Spent - 1 day, 6 hours
            2.
            Add duration and durationUnits properties to DrugOrder class Sub-task Closed Kaweesi Joseph

            60%

            Original Estimate - 5 hours
            Time Spent - 3 hours Remaining Estimate - 2 hours
            3.
            Add orderNumber property to Order class Sub-task Closed Wyclif Luyima

            100%

            Original Estimate - 1 day, 2 hours
            Time Spent - 1 day, 2 hours
            4.
            Add comments_to_fulfiller column to orders table Sub-task Closed Vinkesh Banka

            66%

            Original Estimate - 3 hours
            Time Spent - 2 hours Remaining Estimate - 1 hour
            5.
            Add OrderFrequency to the data model Sub-task Closed Kaweesi Joseph

            83%

            Original Estimate - 3 hours
            Time Spent - 2 hours, 30 minutes Remaining Estimate - 30 minutes
            6.
            Rename drug_order.prn to drug_order.as_needed and add drug_order.as_needed_condition Sub-task Closed Wyclif Luyima

            50%

            Original Estimate - 4 hours
            Time Spent - 2 hours Remaining Estimate - 2 hours
            7.
            Modify datatype of drug_order.quantity column and add quantity_units column to drug_order Sub-task Closed Rafal Korytkowski

            100%

            Original Estimate - 4 hours Original Estimate - 4 hours
            Time Spent - 1 day
            8.
            Add numRefills and administrationInstructions properties to DrugOrder class Sub-task Closed Kaweesi Joseph

            50%

            Original Estimate - 4 hours
            Time Spent - 2 hours Remaining Estimate - 2 hours
            9.
            Add DrugOrder.route and remove DrugOrder.equivalentDailyDose property Sub-task Closed Kaweesi Joseph

            50%

            Original Estimate - 4 hours
            Time Spent - 2 hours Remaining Estimate - 2 hours
            10.
            Add dosingInstructions property to DrugOrder Sub-task Closed Vinkesh Banka

            75%

            Original Estimate - 4 hours
            Time Spent - 3 hours Remaining Estimate - 1 hour
            11.
            Add OrderAction enum and orderAction property to Order class Sub-task Closed Mujir Shaikh

            100%

            Original Estimate - 6 hours
            Time Spent - 6 hours
            12.
            Modify DrugOrder.frequency Sub-task Closed Rafal Korytkowski

            100%

            Original Estimate - 1 day Original Estimate - 1 day
            Time Spent - 2 days
            13.
            Add careSetting property to Order class Sub-task Closed Vinay Venu

            88%

            Original Estimate - 6 hours Original Estimate - 6 hours
            Time Spent - 2 days Remaining Estimate - 2 hours
            14.
            The API should assign order numbers to new orders Sub-task Closed Daniel Kayiwa

            100%

            Original Estimate - 2 days
            Time Spent - 2 days
            15.
            Rename drug_order.units to dose_units and modify the datatype Sub-task Closed Vinkesh Banka

            100%

            Original Estimate - 1 day
            Time Spent - 1 day
            16.
            Add a liquibase changeset that checks that all text units are mapped to concepts Sub-task Closed Wyclif Luyima

            100%

            Original Estimate - 1 day, 2 hours Original Estimate - 1 day, 2 hours
            Time Spent - 1 day, 3 hours
            17.
            Setting order numbers in the api needs to be safe in a clustered environment Sub-task Closed Daniel Kayiwa

            60%

            Original Estimate - 6 hours Original Estimate - 6 hours
            Time Spent - 6 hours Remaining Estimate - 4 hours
            18.
            Convert Order.orderer to be a Provider Sub-task Closed Kaweesi Joseph

            79%

            Original Estimate - 1 day, 4 hours
            Time Spent - 1 day, 1 hour, 30 minutes Remaining Estimate - 2 hours, 30 minutes

            Activity

              People

                wyclif Wyclif Luyima
                darius Darius Jazayeri
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 5 weeks, 4 days, 6 hours Original Estimate - 5 weeks, 4 days, 6 hours
                    5w 4d 6h
                    Remaining:
                    Time Spent - 3 weeks, 2 days, 1 hour Remaining Estimate - 3 weeks, 2 days, 3 hours
                    3w 2d 3h
                    Logged:
                    Time Spent - 3 weeks, 2 days, 1 hour Remaining Estimate - 3 weeks, 2 days, 3 hours
                    3w 2d 1h