Skip to content

Commit 5681540

Browse files
committed
📝 Add flowchart for Ripple to REDCap
1 parent e0eff32 commit 5681540

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • python_jobs/src/hbnmigration/from_ripple
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# from Ripple
2+
3+
## to REDCap
4+
5+
```mermaid
6+
7+
flowchart TD
8+
classDef apiCall fill:#0067a0,stroke:#0067a0,stroke-width:4px;
9+
10+
start@{ shape: circle, label: "ripple-to-redcap" } --> request_potential_participants@{ shape: rounded, label: "(POST «Ripple»/export) × 2" } --> ripple_data@{ shape: diamond, label: "any participants marked \"Send to RedCap\"?" } -- no --> stop@{ shape: dbl-circ, label: "Stop" };
11+
ripple_data -- yes --> get_redcap_subjects_to_update@{ shape: rounded, label: "POST «REDCap»" } --> update@{ shape: diamond, label: "any participants already in REDCap?" } -- no --> stop;
12+
update -- yes --> update_redcap@{ shape: rounded, label: "POST «REDCap»" } --> update_ripple@{ shape: rounded, label: "(POST «Ripple»/import) × (1 or 2)" };
13+
get_redcap_subjects_to_update --> new@{ shape: diamond, label: "any new participants for REDCap?" } -- no --> stop;
14+
new -- yes --> insert_redcap@{ shape: rounded, label: "POST «REDCap»" } --> update_ripple --> stop;
15+
16+
class request_potential_participants,get_redcap_subjects_to_update,update_redcap,insert_redcap,update_ripple apiCall;
17+
```

0 commit comments

Comments
 (0)