Edit Outreach Follow Up Decision

Allows editing of ONE of the following, in order of precedence:

Pack sent date is for information only and is not editable.

CHANGED RULES - need to add Return Due only takes effect if follow-up option NOT changed - otherwise RD date handled in FU option change

Rules:

1) Editing of an existing timeline selection (eg one month, six month, etc) where pack dispatch date is in the future:

with another timeline selection
pack dispatch and pack return dates are adjusted to reflect the new timeline; earliest pack dispatch date is current date
with a non-timeline option (dead, other, return to clinic)
existing pack return date is adjusted to null date (2000-01-01)

2) Editing of an existing timeline selection (eg one month, six month, etc) where pack dispatch date is in the past:

with another timeline selection
pack dispatch date unchanged; pack return date adjusted to reflect the new timeline; earliest pack return date is current date
with a non-timeline selection (dead, other, return to clinic)
no change to pack dispatch date; pack return date adjusted to null date unless date already elapsed

3) Editing of an existing non-timeline selection (eg dead, other, return to clinic):

with a timeline option (eg one month, six month, etc)
pack dispatch and pack return dates are adjusted to reflect the new timeline; earliest pack dispatch date is current date
with a non-timeline option (dead, other, return to clinic)
date fields not involved