NUMde / compass-numapp-backend

The repository for the back end component of the NUM-App
Apache License 2.0
11 stars 10 forks source link

Add functionality to end study #36

Closed alena456 closed 3 years ago

alena456 commented 3 years ago

It must be possible to end a study. This should be achievable by the following options:

  1. Participation ends when study end is reached
  2. Participation ends when personal study end is reached
  3. Participation ends because participation is ended manually by update to subject in database
alena456 commented 3 years ago

In order to enable the ending of a study, a new property is required. It will be called "subjectParticipation" (values: "on-study" & "off-study") following the Open ResearchStudy Communication Format.

The proposed implementation of the three alternatives is described by the following sequence diagram: image

The flow after the update of the subjectParticipation should be as follows image

alena456 commented 3 years ago

I will adapt the backend accordingly. This will gives us the option to end a study by adjusting the value in the database or automatically if one of the specified dates is reached.

The adaptation also requires a change in the app in order to become effective.