Added events association #3389

to contact through the contact_links association
Determine the consent event #3389

associated with the ParticipantConsent
Refactor participant consent link helper #3389

Shows the new link if the participant does not
have a consent by type or the consent is not associated with
the event for the given contact link.

Shows the edit link otherwise.
Update consent tab view #3389
Cancel informed consent activity #3097

If the Participant has already consented, cancel all consent
activities in PSC study segments that are not stand-alone
Informed Consent events.

This commit follows the previous schedule/cancel workflow
for xp2 and non-matching mdes version activities. We also
include a rake task "import:cancel_collection_activities" to
cancel existing consent activities that need to be cancelled.
Do not show previous reference activities

Reference activities are the non-first part of a multi-part
survey. When an activity of this sort has already been completed
it is not necessary to show this activity in the "previous_activity"
partial - since the response set associated with the activity will be
shown in the activity that this activity references.
consent_form_type should be CONSENT_TYPE_CL3

The MDES for 2.0 got the code list wrong for the consent_form_type
attribute on the ParticipantConsent. The MDES said CONSENT_TYPE_CL1
but should have used CONSENT_TYPE_CL3 (which unfortunately is not a
code list in the 2.0 MDES).

This commit adds the CONSENT_TYPE_CL3 code list to the MDES 2.0
ncs_codes and corrects the consent_form_type code list association.
Added withdrawn? to participant_consent #3444
Make phase_one look like phase_two

Small change in form to align symmetric forms
Added Withdrawal to PSC #3444

Labels for the internal_surveys Consent and Withdrawal
New Withdrawal segment in Informed Consent Epoch
Added events association #3389

to contact through the contact_links association
Determine the consent event #3389

associated with the ParticipantConsent
Refactor participant consent link helper #3389

Shows the new link if the participant does not
have a consent by type or the consent is not associated with
the event for the given contact link.

Shows the edit link otherwise.
Update consent tab view #3389
Cancel informed consent activity #3097

If the Participant has already consented, cancel all consent
activities in PSC study segments that are not stand-alone
Informed Consent events.

This commit follows the previous schedule/cancel workflow
for xp2 and non-matching mdes version activities. We also
include a rake task "import:cancel_collection_activities" to
cancel existing consent activities that need to be cancelled.
Do not show previous reference activities

Reference activities are the non-first part of a multi-part
survey. When an activity of this sort has already been completed
it is not necessary to show this activity in the "previous_activity"
partial - since the response set associated with the activity will be
shown in the activity that this activity references.
consent_form_type should be CONSENT_TYPE_CL3

The MDES for 2.0 got the code list wrong for the consent_form_type
attribute on the ParticipantConsent. The MDES said CONSENT_TYPE_CL1
but should have used CONSENT_TYPE_CL3 (which unfortunately is not a
code list in the 2.0 MDES).

This commit adds the CONSENT_TYPE_CL3 code list to the MDES 2.0
ncs_codes and corrects the consent_form_type code list association.
Added withdrawn? to participant_consent #3444
Make phase_one look like phase_two

Small change in form to align symmetric forms
Added Withdrawal to PSC #3444

Labels for the internal_surveys Consent and Withdrawal
New Withdrawal segment in Informed Consent Epoch