Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ dependencies = [
"python-docx>=1.1",
"docx2pdf>=0.1.8",
"pydantic>=2.0",
"pyqtgraph>=0.14.0",
"pyside6>=6.11.0",
"matplotlib>=3.5",
]

[dependency-groups]
Expand Down
26 changes: 13 additions & 13 deletions src/clinical_dbs_annotator/config/clinical_presets.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"Dystonia": [
"BFMDRS",
"TWSTRS"
],
"ET": [
"FTM-TRS",
"TETRAS"
],
"MDD": [
"MADRS",
"HAM-D",
"BDI-II"
],
"OCD": [
"Y-BOCS",
"Y-BOCS-o",
"Y-BOCS-c",
"MADRS",
"OCI-R"
],
"MDD": [
"MADRS",
"HAM-D",
"BDI-II"
],
"PD": [
"MDS-UPDRS",
"UPDRS-III",
"PDQ-39",
"UDysRS"
],
"ET": [
"FTM-TRS",
"TETRAS"
],
"Dystonia": [
"BFMDRS",
"TWSTRS"
],
"TS": [
"YGTSS",
"PUTS",
Expand Down
4 changes: 4 additions & 0 deletions src/clinical_dbs_annotator/controllers/wizard_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ def export_longitudinal_report(
fmt: str,
parent_widget=None,
sections=None,
clinical_scale_prefs: list | None = None,
) -> None:
"""
Generate a longitudinal report combining data from multiple TSV files.
Expand All @@ -693,11 +694,14 @@ def export_longitudinal_report(
scale_prefs: Scale optimization prefs [(name, min, max, mode, custom_value), ...]
fmt: "word" or "pdf"
parent_widget: Parent widget for dialogs
sections: List of section keys to include
clinical_scale_prefs: Clinical scale prefs, same format as scale_prefs
"""
from ..utils.longitudinal_exporter import LongitudinalExporter

exporter = LongitudinalExporter()
exporter.set_scale_optimization_prefs(scale_prefs)
exporter.set_clinical_scale_prefs(clinical_scale_prefs)

if fmt == "word":
exporter.export_to_word(file_paths, parent_widget, sections=sections)
Expand Down
Loading
Loading