Details
-
Story
-
Status: Closed
-
Must
-
Resolution: Fixed
-
None
-
None
-
Low
-
Order Entry 1.10 Iteration 2, Order Entry 1.10 Iteration 3
Description
Story
As a client of the API
I want to be able to discontinue an active drug of a patient
So that i can change his medications based on his current condition
Scenario
1) Stop a medicine to a reaction/not needed any more
2) Discontinue drug that is past the auto_expire date?
Potential impacted components
openmrs core, webservices rest, emr api
Potential impacted objects
orders
TODOs:
Add the method below to Order
//Creates a DC order, sets the previousOrder and action fields public Order cloneForDiscontinuing(Order orderToDiscontinue)
Add the method below to OrderService and implement it:
//Should fail if orderToDiscontinue is a DC order public Order discontinueOrder(Order orderToDiscontinue, Concept reasonCoded, Date discontinueDate); public Order discontinueOrder(Order orderToDiscontinue, String reasonNonCoded, Date discontinueDate);
Also, the following should work:
Order o = new Order(); o.setAction(Order.Action.DISCONTINUE); o.setDrug(ampicillin100mg); orderService.saveOrder(o); // if there is an active Ampicillin 100mg order, then the API will set o.previousOrder to be that // and it will stop o.previousOrder. (Note that there should only ever a single active order for // a given orderable.)
Also EA-1 needs to worked as part of this effort
Gliffy Diagrams
Attachments
Issue Links
- is depended on by
-
EA-1 Add support for placing, discontinuing and revising orders via REST
-
- Closed
-
- relates to
-
TRUNK-4219 Discontinue an Order - UI
-
- Closed
-
1.
|
Add previousOrder property to Order class |
|
Closed | Mujir Shaikh |
|
||||||||
2.
|
Remove discontinued and discontinuedBy fields from Order class |
|
Closed | Vinkesh Banka |
|