Add lab orders to existing investigations with CONFIRM, CONFIRM_DEFERRED status

Description

If an investigation has PENDING status, tests with the same investigation type and group=true are automatically added, rather than creating a new investigation.
Do the same for investigations with CONFIRM or CONFIRM_DEFERRED status. If an investigation has CONFIRM_DEFERRED status, set it back to CONFIRM so that it will prompt to confirm again.

This will require a plugin API change to support amending orders.

Environment

None

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Affects versions

Priority

Minor
Configure