-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from openpharma/jt-113-simplify_review_process
Simplify review process
- Loading branch information
Showing
21 changed files
with
151 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.Rhistory | ||
.RData | ||
.Ruserdata | ||
.Renviron | ||
*.html | ||
*.tmp | ||
~$* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: clinsight | ||
Title: ClinSight | ||
Version: 0.1.1.9008 | ||
Version: 0.1.0.9009 | ||
Authors@R: c( | ||
person("Leonard Daniël", "Samson", , "[email protected]", role = c("cre", "aut"), | ||
comment = c(ORCID = "0000-0002-6252-7639")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,42 @@ | ||
# mod_review_forms. Feature 2 | Save review of a form. As a user, I want to be able to save a review of a form in the database. After saving the review, all items of that form that are not yet reviewed should get a tag that the value was reviewed.: Scenario 1 - Save a review. Given test review data with at least an 'Adverse event' form with patient '885',and [user_name] set to 'test_name' and [user_role] to 'Medical Monitor'and [active_patient] set to '885', and [active_form] set to 'Adverse events', and [active_tab] set to 'Common forms', and [form_reviewed] set to FALSE, I expect that I can save a new review properly, with the result saved in the application being the same as the one saved in the database. | ||
|
||
Code | ||
print(dplyr::select(r$review_data, -timestamp), width = Inf) | ||
dplyr::select(r$review_data, -timestamp) | ||
Output | ||
# A tibble: 4 x 12 | ||
id subject_id event_name item_group form_repeat item_name | ||
<int> <chr> <chr> <chr> <dbl> <chr> | ||
1 3 361 Visit 5 Vital signs 4 Systolic blood pressure | ||
2 4 361 Visit 6 Vital signs 5 Systolic blood pressure | ||
3 1 885 Any visit Adverse events 1 Atrial Fibrillation | ||
4 2 885 Any visit Adverse events 2 Cystitis | ||
event_date edit_date_time reviewed comment | ||
<chr> <chr> <chr> <chr> | ||
1 2023-07-01 2023-08-30 01:01:01 Yes "another comment" | ||
2 2023-08-01 2023-08-02 01:01:01 No "" | ||
3 2023-08-15 2023-09-30 01:01:01 Yes "test comment" | ||
4 2023-09-01 2023-10-01 01:01:01 Yes "" | ||
reviewer status | ||
<chr> <chr> | ||
1 "Reviewer 2" old | ||
2 "" new | ||
3 "Reviewer 1" old | ||
4 "test_name (Medical Monitor)" old | ||
id subject_id event_name item_group form_repeat item_name | ||
1 1 885 Any visit Adverse events 1 Atrial Fibrillation | ||
2 2 885 Any visit Adverse events 2 Cystitis | ||
3 3 361 Visit 5 Vital signs 4 Systolic blood pressure | ||
4 4 361 Visit 6 Vital signs 5 Systolic blood pressure | ||
event_date edit_date_time reviewed comment | ||
1 2023-08-15 2023-09-30 01:01:01 Yes test comment | ||
2 2023-09-01 2023-10-01 01:01:01 Yes | ||
3 2023-07-01 2023-08-30 01:01:01 Yes another comment | ||
4 2023-08-01 2023-08-02 01:01:01 No | ||
reviewer status | ||
1 Reviewer 1 old | ||
2 test_name (Medical Monitor) old | ||
3 Reviewer 2 old | ||
4 new | ||
|
||
--- | ||
|
||
Code | ||
print(dplyr::select(r$review_data, -timestamp), width = Inf) | ||
dplyr::select(r$review_data, -timestamp) | ||
Output | ||
# A tibble: 4 x 12 | ||
id subject_id event_name item_group form_repeat item_name | ||
<int> <chr> <chr> <chr> <dbl> <chr> | ||
1 3 361 Visit 5 Vital signs 4 Systolic blood pressure | ||
2 4 361 Visit 6 Vital signs 5 Systolic blood pressure | ||
3 1 885 Any visit Adverse events 1 Atrial Fibrillation | ||
4 2 885 Any visit Adverse events 2 Cystitis | ||
event_date edit_date_time reviewed comment | ||
<chr> <chr> <chr> <chr> | ||
1 2023-07-01 2023-08-30 01:01:01 Yes "another comment" | ||
2 2023-08-01 2023-08-02 01:01:01 No "" | ||
3 2023-08-15 2023-09-30 01:01:01 No "test review" | ||
4 2023-09-01 2023-10-01 01:01:01 No "test review" | ||
reviewer status | ||
<chr> <chr> | ||
1 "Reviewer 2" old | ||
2 "" new | ||
3 "test_name (Medical Monitor)" new | ||
4 "test_name (Medical Monitor)" new | ||
id subject_id event_name item_group form_repeat item_name | ||
1 1 885 Any visit Adverse events 1 Atrial Fibrillation | ||
2 2 885 Any visit Adverse events 2 Cystitis | ||
3 3 361 Visit 5 Vital signs 4 Systolic blood pressure | ||
4 4 361 Visit 6 Vital signs 5 Systolic blood pressure | ||
event_date edit_date_time reviewed comment | ||
1 2023-08-15 2023-09-30 01:01:01 No test review | ||
2 2023-09-01 2023-10-01 01:01:01 No test review | ||
3 2023-07-01 2023-08-30 01:01:01 Yes another comment | ||
4 2023-08-01 2023-08-02 01:01:01 No | ||
reviewer status | ||
1 test_name (Medical Monitor) new | ||
2 test_name (Medical Monitor) new | ||
3 Reviewer 2 old | ||
4 new | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.