Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Study preview mode #224

Closed
smeddinck opened this issue Dec 6, 2023 · 7 comments · Fixed by #277, #288 or #289
Closed

Study preview mode #224

smeddinck opened this issue Dec 6, 2023 · 7 comments · Fixed by #277, #288 or #289
Assignees
Labels
enhancement New feature or request

Comments

@smeddinck
Copy link
Member

make it possible to preview a study without affecting the planned study start … data will be deleted when study is properly started … alternatively e.g. after X days ... tokens will be renewed upon starting study if already used during preview ... allow for maximum editing abilities during preview ...

Has a frontend component (button to start + popup dialogue with information and warnings) as well ...

@andresgruber
Copy link
Contributor

@smeddinck : This needs further refinement!

@smeddinck
Copy link
Member Author

Ideally can define time point at which the preview begins (can start at a virtual timepoint in study period) ...

@ja-fra
Copy link
Member

ja-fra commented Apr 15, 2024

In today's refinement session, we agreed to split this issue into three steps (issues):

  1. Simple Preview-Mode: Starting a Study in preview will run the study with the option to return into the edit-mode. On re-entering the edit mode, all recorded data is deleted and registration-token are reset (re-generated).

  2. Point-in-Time Preview: The first enhancement of the preview mode shall allow to specify an (optional) "time-offset" within the study, allowing to "fast-forward" the study execution (without collection any data, ...). This offset is specified when starting the preview and cannot be changed (unless you run a second preview) --> see "Point-in-Time" Preview Mode for Studies #241

  3. Fast-Forward Preview: Like the Point-in-Time Preview with the additional option to change the offset while running the preview. It's yet to decide whether it will be also possible to move "back in time" (reduce the offset) --> see Allow Time-Shift during Study Preview #242

Since options 2 and 3 also require significant changes in other systems (data-gateway and app) we agreed to postpone those enhancements for now.

@ja-fra
Copy link
Member

ja-fra commented Apr 23, 2024

@smeddinck - this would be our suggested change to the study-workflow in More:

---
title: MORE Study Workflow (with Preview Mode)
---
flowchart TD
classDef default stroke-width:2px,fill:none,color:#6e8fac,stroke:#6e8fac
classDef endNode stroke-width:4px
classDef newNode fill:#ebcca2

linkStyle default stroke:#6e8fac,text:none

    start((( )))
    draft(Draft)
    active(Active)
    paused(Paused)
    completed(Completed):::endNode

    preview(Preview):::newNode
    preview-paused(Paused Preview):::newNode

    start -->|create| draft
    draft --->|start| active
    active --->|complete| completed
    active -->|pause| paused
    paused -->|resume| active

    draft -->|start preview| preview
    preview -->|complete preview| draft
    preview -->|pause preview| preview-paused
    preview-paused -->|resume preview| preview
Loading

We would reset the study/cleanup the data on the complete preview transition.

@smeddinck
Copy link
Member Author

yes, this seems fully in-line with how we thought about this and discussed; thank you for spelling it out so clearly

@smeddinck smeddinck reopened this Apr 25, 2024
@smeddinck
Copy link
Member Author

accidentally closed but prior comment was just to confirm the approach

ja-fra added a commit that referenced this issue May 12, 2024
- Reset Participant-Status
- Recreate Registration-Token
- Clear Study-Data

-> Tell the Gateway to collect data in Preview-Mode
@ja-fra ja-fra linked a pull request May 13, 2024 that will close this issue
ja-fra added a commit that referenced this issue May 13, 2024
- Reset Participant-Status
- Recreate Registration-Token
- Clear Study-Data

-> Tell the Gateway to collect data in Preview-Mode
ja-fra added a commit that referenced this issue May 14, 2024
- Reset Participant-Status
- Recreate Registration-Token
- Clear Study-Data

-> Tell the Gateway to collect data in Preview-Mode
@ja-fra ja-fra linked a pull request May 16, 2024 that will close this issue
@ja-fra ja-fra removed a link to a pull request May 16, 2024
@alireza-dhp
Copy link
Member

When a study is paused in preview mode, adding or editing records on participant, observation, integration and intervention tabs are not possible!

Image

ja-fra added a commit that referenced this issue May 27, 2024
@ja-fra ja-fra linked a pull request May 27, 2024 that will close this issue
ja-fra added a commit that referenced this issue May 27, 2024
@ja-fra ja-fra closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment