Uploaded image for project: 'EMR API'
  1. EMR API
  2. EA-1

Add support for placing, discontinuing and revising orders via REST

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • 1.10

    Description

      Add REST Web Services for discontinuing orders

      See http://notes.openmrs.org/Design-Forum-2014-01-13

      The encountertransaction REST web service lets you create new orders, e.g.:
      POST....

      encountertransaction {
          ...,
          drugOrders: [
              // creates a new order
              { careSetting: "OUTPATIENT", frequency: ..., etc }
              
              // discontinues an existing order
              { action: "DISCONTINUE", existingUuid: "abc-123", orderReason: "concept-for-Adverse-Reaction" } // optional date also
              
              // note that you can also do this:
              { action: "DISCONTINUE", drug: "uuid-for-ampicillin-100mg", orderReason: "concept-for-Adverse-Reaction" }
              // if there is active Ampicillin 100mg order, it is stopped, if not, this still
              // creates a new DC order
      
              // revises an existing order
              { action: "REVISE", existingUuid: "abc-123", ... }
              // under the hood, this will fetch abc-123 and call cloneForRevision() on it
              // so you only need to specify revised properties here (though you are allowed
              // to specify all)
              // All API constraints must still be maintained or an error is thrown, e.g. you
              // cannot change the drug/concept while doing a revision; you must have an
              // existing order; etc.
          ]
      }
      

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                vinay Vinay Venu
                wyclif Wyclif Luyima
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 3 days Original Estimate - 3 days
                    3d
                    Remaining:
                    Time Spent - 3 days Remaining Estimate - 1 day
                    1d
                    Logged:
                    Time Spent - 3 days Remaining Estimate - 1 day
                    3d