Fixed
Details
Assignee
Mike SeatonMike SeatonReporter
Mike SeatonMike SeatonComplexity
UndeterminedFix versions
Priority
TBD
Details
Details
Assignee
Mike Seaton
Mike SeatonReporter
Mike Seaton
Mike SeatonComplexity
Undetermined
Fix versions
Priority

Created April 27, 2021 at 2:13 PM
Updated October 31, 2021 at 10:41 PM
Resolved October 31, 2021 at 10:41 PM
See Talk thread at:
https://talk.openmrs.org/t/retrospective-encounters-and-orders/33266
There is a feature that exists in the Order Entry API that allows one to distinguish between a real-time Order and a retrospectively-entered Order:
OrderServiceImpl:
{{}}
{{}}
The "saveRetrospectiveOrder" method saves with a specific flag that changes validation rules. In particular, it allows for stopping/discontinuing an Order for a date prior to it’s auto-expire date, even if that auto-expire date is currently in the past.
However, currently in the Encounter Service, all nested Orders are saved by invoking the non-retrospective method:
From EncounterServiceImpl:
{{}}
This needs to be modified in order to ensure that if an Encounter and Orders are entered retrospectively, that the appropriate retrospective order processing is invoked.