Internal helper that assembles the code required to apply a data subset for a given analysis. The function prepares default code, augments it with conditional filters when required, and returns metadata describing the subset that was applied.
.generate_data_subset_code(
data_subsets,
subset_id,
analysis_id,
analysis_set_dataset,
file_ext
)A list containing the generated code, subset name, and filter expression.
DataSubsets metadata for the reporting event.
Identifier of the subset tied to the current analysis.
Identifier of the analysis for which code is generated.
Dataset name produced by the analysis set step.
Extension of the source ARS metadata file (json or xlsx).