Skip to content

Commit d0e69de

Browse files
committed
Merge branch 'release/1.12.0'
2 parents c8c01db + 464e63a commit d0e69de

30 files changed

+3879
-81
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule ".vscode"]
2+
path = .vscode
3+
url = https://github.com/ctsit/.vscode

.vscode

Submodule .vscode added at 8763da5

AUTHORS

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Contributors at the University of Florida
3232
* Ajantha Ramineni
3333
* Taeber Rapczak
3434
* Andrei Sura
35+
* Rishabh Tatiraju
36+
* Kshitij Sinha
37+
* Emily Olsen
3538

3639

3740
Other Contributors

CHANGELOG

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
Changelog
22
=========
3+
## [1.12.0] - 2023-10-23
4+
### Summary
5+
This release adds processing for Telephone Initial Packets and Neuropath version 11 to NACCulator.
6+
7+
### Added
8+
* Add Neuropath 11 option to processing with complete form and builder files (Samantha Emerson)
9+
* Split neuropath into versions 10 and 11 (Samantha Emerson)
10+
* Add TIP to NACCulator options (Samantha Emerson)
11+
* Add unit tests for tip (Samantha Emerson)
12+
* Add visitnum to error and warning printouts (Samantha Emerson)
13+
* Add vscode config submodule (Michael Bentz)
14+
* Add 'CLS' to CLS warnings for clarity of which form is being talked about (Samantha Emerson)
15+
16+
### Updated
17+
* Add logic to milestone event detection to skip forms marked as Incomplete (0) (Samantha Emerson)
18+
* Add skip to warning for incomplete CLS (Samantha Emerson)
19+
* Update and add unit tests (Samantha Emerson)
20+
321
## [1.11.0] - 2022-08-31
422
### Summary
523
This release updates documentation on the developer end for the functions within NACCulator's code.

README.md

+14-12
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ NACCulator will automatically skip PTIDs with errors, so the output `data.txt`
3232
file will be ready to submit to NACC.
3333
In order to properly filter the data in the csv, NACCulator is expecting that
3434
REDCap visits (denoted by `redcap_event_name`) contain certain keywords:
35-
"initial" for initial visit packets,
36-
"follow" for all followups,
35+
"initial" for all initial visit packets (including telephone and optional modules such as lbd),
36+
"follow" for all followups (including version 3.1 telephone and optional modules),
3737
"milestone" for milestone packets,
3838
"neuropath" for neuropathology packets,
39-
"telephone" for telephone followup packets,
39+
"tele" for old (version 3.0) telephone followups,
4040
"covid" for covid-related survey packets
4141

4242
NACCulator collects data from the Z1X form first and uses that to determine the
@@ -54,8 +54,8 @@ the `-file` flag._
5454

5555
$ redcap2nacc -h
5656
usage: redcap2nacc [-h]
57-
[-fvp | -ivp | -tfp | -np | -m | -cv | -csf | -f {cleanPtid,replaceDrugId,fixHeaders,fillDefault,updateField,removePtid,removeDateRecord,getPtid}]
58-
[-lbd | -ftld] [-file FILE] [-meta FILTER_META] [-ptid PTID]
57+
[-fvp | -ivp | -tip | -tfp | -tfp3 | -np | -np10 | -m | -cv | -csf | -f {cleanPtid,replaceDrugId,fixHeaders,fillDefault,updateField,removePtid,removeDateRecord,getPtid}]
58+
[-lbd | lbdsv | -ftld] [-file FILE] [-meta FILTER_META] [-ptid PTID]
5959
[-vnum VNUM] [-vtype VTYPE]
6060

6161
Process redcap export data through nacculator.
@@ -65,23 +65,25 @@ the `-file` flag._
6565
-fvp Set this flag to process as FVP data
6666
-ivp Set this flag to process as IVP data
6767
-tfp Set this flag to process as Telephone Followup Packet v3.2 data
68+
-tip Set this flag to process as Telephone Initial Packet data
6869
-tfp3 Set this flag to process as TFP v3.0 (pre-2020) data
69-
-np Set this flag to process as Neuropathology data
70+
-np Set this flag to process as Neuropathology version 11 data
71+
-np10 Set this flag to process as Neuropathology version 10 data
7072
-m Set this flag to process as Milestone data
7173
-cv Set this flag to process as COVID data
7274
-csf Set this flag to process as NACC BIDSS CSF data
7375

7476
-f {cleanPtid,replaceDrugId,fixHeaders,fillDefault,updateField,removePtid,removeDateRecord,getPtid}, --filter {cleanPtid,replaceDrugId,fixHeaders,fillDefault,updateField,removePtid,removeDateRecord,getPtid}
75-
Set this flag to process the filter
77+
Set this flag to run the data through the chosen filter
7678
-lbd Set this flag to process as Lewy Body Dementia data (FORMVER = 3)
7779
-lbdsv Set this flag to process as Lewy Body Dementia short version data (FORMVER = 3.1)
7880
-ftld Set this flag to process as Frontotemporal Lobar Degeneration data
7981

80-
-file FILE Path of the csv file to be processed.
82+
-file FILE Path of the csv file to be processed
8183
-meta FILTER_META Input file for the filter metadata (in case -filter is used)
8284
-ptid PTID Ptid for which you need the records
83-
-vnum VNUM Ptid for which you need the records
84-
-vtype VTYPE Ptid for which you need the records
85+
-vnum VNUM Visit number for which you need the records
86+
-vtype VTYPE Visit type for which you need the records
8587

8688

8789
**Example** - Process a Neuropathology form:
@@ -359,9 +361,9 @@ To run all the tests:
359361
$ python3 -m unittest
360362

361363

362-
To run only the tests in a file:
364+
To run only the tests in a specific file:
363365

364-
$ python3 tests/WHICHEVER_test.py
366+
$ python3 tests/test_$SPECIFIC_FILE.py
365367

366368

367369
### Generating Forms

nacc/csf/blanks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111

1212

13-
def convert_rule_to_python(name: str, rule: str) -> bool:
13+
def convert_rule_to_python(name: str, rule: str, options) -> bool:
1414
"""
1515
Converts the text `rule` into a python function.
1616

nacc/cv/blanks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111

1212

13-
def convert_rule_to_python(name: str, rule: str) -> bool:
13+
def convert_rule_to_python(name: str, rule: str, options) -> bool:
1414
"""
1515
Converts the text `rule` into a python function.
1616

nacc/ftld/blanks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111

1212

13-
def convert_rule_to_python(name: str, rule: str) -> bool:
13+
def convert_rule_to_python(name: str, rule: str, options) -> bool:
1414
"""
1515
Converts the "rule" string into a python function using "blanks" from the
1616
associated forms.py file. The fieldname being checked here is "name".

nacc/lbd/blanks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111

1212

13-
def convert_rule_to_python(name: str, rule: str) -> bool:
13+
def convert_rule_to_python(name: str, rule: str, options) -> bool:
1414
"""
1515
Converts the "rule" string into a python function using "blanks" from the
1616
associated forms.py file. The fieldname being checked here is "name".

0 commit comments

Comments
 (0)