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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ This will show the list of validation options.
if both .env and -me <limit> are specified, the larger value will be used. If either sets the per_dataset_flag to true, it will be true
If limit is set to 0, no maximum will be enforced.
No maximum is the default behavior.
-dv, --define-version TEXT Define-XML version used for validation
-dxp, --define-xml-path Path to define-xml file.
-vx, --validate-xml Enable XML validation (default 'y' to enable, otherwise disable).
--whodrug TEXT Path to directory with WHODrug dictionary
Expand Down
1 change: 0 additions & 1 deletion cdisc_rules_engine/models/validation_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"output",
"output_format",
"raw_report",
"define_version",
"external_dictionaries",
"rules",
"exclude_rules",
Expand Down
7 changes: 3 additions & 4 deletions cdisc_rules_engine/services/reporting/sdtm_report_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ def __init__(
)
define_xml_path = args.define_xml_path
dictionary_versions = self._dictionary_versions or {}
if define_xml_path:
define_version = self.get_define_version([define_xml_path])
else:
define_version: str = self._args.define_version
define_version = (
self.get_define_version([define_xml_path]) if define_xml_path else None
)
controlled_terminology = self._args.controlled_terminology_package
if not controlled_terminology and define_version:
if define_xml_path and define_version:
Expand Down
9 changes: 0 additions & 9 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,6 @@ def _validate_no_arguments(logger) -> None:
"This flag must be used only with --output-format JSON."
),
)
@click.option(
"-dv",
"--define-version",
type=click.Choice(["2-1", "2-0", "2.0", "2.1"]),
help="Define-XML version used for validation",
)
@click.option("--whodrug", help="Path to directory with WHODrug dictionary files")
@click.option("--meddra", help="Path to directory with MedDRA dictionary files")
@click.option("--loinc", help="Path to directory with LOINC dictionary files")
Expand Down Expand Up @@ -443,7 +437,6 @@ def validate( # noqa
output: str,
output_format: tuple[str],
raw_report: bool,
define_version: str,
whodrug: str,
meddra: str,
loinc: str,
Expand Down Expand Up @@ -558,7 +551,6 @@ def validate( # noqa
output,
set(output_format),
raw_report,
define_version,
external_dictionaries,
rules,
exclude_rules,
Expand Down Expand Up @@ -930,7 +922,6 @@ def test_validate(filetype):
output,
output_format,
False,
None,
external_dictionaries,
[],
[],
Expand Down
2 changes: 0 additions & 2 deletions tests/QARegressionTests/test_Issues/test_CoreIssue1345.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ def generate_report():
"sdtmig",
"-v",
"3-4",
"-dv",
"2-1",
"-dxp",
os.path.join(
"tests",
Expand Down
6 changes: 1 addition & 5 deletions tests/QARegressionTests/test_core/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_validate_all_options(self):
"-of",
"json",
"-rr",
"-dv",
"-dxp",
os.path.join("tests", "resources", "report_test_data", "define.xml"),
"--whodrug",
os.path.join("tests", "resources", "dictionaries", "whodrug"),
Expand Down Expand Up @@ -513,7 +513,6 @@ def test_validate_dummy_with_all_options_one_data_source(self):
f"--meddra {os.path.join('tests', 'resources', 'dictionaries', 'meddra')} "
f"-s sdtmig "
f"-v 3.4 "
f"-dv 2.1 "
f"-dxp {os.path.join('tests', 'resources', 'define.xml')} "
f"-l error"
)
Expand All @@ -534,7 +533,6 @@ def test_validate_dummy_with_all_options(self):
f"--meddra {os.path.join('tests', 'resources', 'dictionaries', 'meddra')} "
f"-s sdtmig "
f"-v 3.4 "
f"-dv 2.1 "
f"-dxp {os.path.join('tests', 'resources', 'define.xml')} "
f"-l error"
)
Expand Down Expand Up @@ -621,7 +619,6 @@ def test_validate_dummy_with_vx_as_no(self):
f"python core.py validate "
f"-s sendig "
f"-v 3.1 "
f"-dv 2.1 "
f"-lr {os.path.join('tests', 'resources', 'CoreIssue295', 'SEND4.json')} "
f"-dp {os.path.join('tests', 'resources', 'CoreIssue295', 'dm.json')} "
f"-vx no"
Expand All @@ -634,7 +631,6 @@ def test_validate_dummy_with_vx_as_yes(self):
f"python core.py validate "
f"-s sendig "
f"-v 3.1 "
f"-dv 2.1 "
f"-lr {os.path.join('tests', 'resources', 'CoreIssue295', 'SEND4.json')} "
f"-dp {os.path.join('tests', 'resources', 'CoreIssue295', 'dm.json')} "
f"-vx y"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ def test_get_dataset_class(dataset_metadata, data, expected_class):
"",
"",
False,
"",
None,
None,
"",
Expand Down Expand Up @@ -281,7 +280,6 @@ def test_get_dataset_class_associated_domains():
"",
"",
False,
"",
None,
None,
"",
Expand Down
Loading