Convert NIMH-Minimal ReproSchema responses to NDA (National Data Archive) Common Data Elements (CDE) format. This tool helps standardize mental health assessment data collection by mapping ReproSchema responses to NDA's required formats.
- Converts ReproSchema response files to NDA CDE format
- Supports multiple mental health assessments (see here):
- DSM-5 Cross-Cutting (Adult, Youth, Parent/Guardian)
- GAD-7
- PHQ-9
- RCADS (Youth and Caregiver)
- WHODAS
- Handles subject demographics data
- Maintains data consistency through template validation
- Combines multiple responses for the same assessment when needed
- Debug modes for troubleshooting
# Clone the repository
git clone https://github.com/your-org/reproschema-mapping.git
cd reproschema-mapping
# Install dependencies
pip install -e .
python scripts/process_mapping.py --response-dir /path/to/responses --cde-dir /path/to/cde --output-dir /path/to/output
For troubleshooting, use one of the debug modes:
# Process single file
python scripts/process_mapping.py --debug single
# Process all files with detailed logging
python scripts/process_mapping.py --debug full
# Process all files with summary statistics
python scripts/process_mapping.py --debug summary
.
├── data/
│ └── nda_cde/ # CDE definition and template files
│
├── scripts/
│ └── process_mapping.py # Main processing script
├── src/
│ └── rs2nda/ # Core conversion logic
└── tests/ # Test suite
pytest tests/ -v --asyncio-mode=auto