You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--usdm_file`|**Yes**| — | Path to the input USDM JSON file |
55
+
|`--output_template`|**Yes**| — | Path for the output Define-JSON file |
56
+
|`--sdtmct`|**Yes**| — | SDTM Controlled Terminology date (`yyyy-mm-dd`) |
57
+
|`--sdtmig`| No |`3.4`| SDTM Implementation Guide version |
58
+
|`--studyversion`| No |`0`| Index of the study version within the USDM file |
59
+
|`--studydesign`| No |`0`| Index of the study design within the USDM file |
60
+
|`--docversion`| No |`0`| Index of the document version within the USDM file |
61
+
|`--cdisc_api_key`| No | env var | CDISC Library API key (overrides `CDISC_API_KEY` env var) |
62
+
|`--cosmosversion`| No |`v2`| CDISC Cosmos API version |
63
+
|`--validate [schema]`| No |`define.yaml`| Validate output against a YAML schema file. If omitted the default `define.yaml` is used. Requires `--validation_report` when specified. |
64
+
|`--validation_report`| Conditional | — | Path to the Excel validation report (required when `--validate` is used) |
65
+
|`--debug`| No |`false`| Save intermediate dictionaries as JSON debug files |
|`debug_dataset_data.json`| Raw dataset data accumulated during processing |
128
+
129
+
---
130
+
131
+
## Schema validation
132
+
133
+
The `--validate` flag runs the output JSON against the `define.yaml` schema (or a custom schema file you provide). The validation results are written to the Excel file specified by `--validation_report`. The script exits with code `1` if validation fails, making it suitable for use in CI pipelines.
134
+
135
+
---
136
+
137
+
## Notes
138
+
139
+
- The script requires an active internet connection to call the CDISC Library API.
140
+
- Windows terminals that default to `cp1252` encoding are handled automatically; Unicode status symbols are displayed correctly.
141
+
- The `--studyversion`, `--studydesign`, and `--docversion` arguments are zero-based indices into the corresponding arrays in the USDM JSON. Most studies use the default value of `0`.
0 commit comments