As a user, i would like to revise an existing order
- Add a convenience method to Order class e.g. copyForRevision() that technically clones the original order, sets the status and previousOrder fields on the clone.
- Add saveRevisedOrder() method to OrderService, takes in a new order with an action of REVISE or sets it if null and reject the order if it is set to anything else, should require it to have a previous order. Should NOT set encounter. Can't revise a discontinuation order(one that has action of DISCONTINUE)
EA-1needs to worked as part of this effort
As a dev i should be able to do this:
...which is a shortcut for...