Skip to content
Merged

Fix #1815

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
4 changes: 2 additions & 2 deletions cdisc_rules_engine/utilities/dataset_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def _merge_standard_then_filter_idvar(
if col not in merged_record:
merged_record[col] = None
results.append(merged_record)
return child_records.__class__.from_records(results)
return pd.DataFrame.from_records(results)

def _filter_parents_by_standard_keys(
self,
Expand Down Expand Up @@ -479,7 +479,7 @@ def _merge_idvar_only(
if col not in merged_record:
merged_record[col] = None
results.append(merged_record)
return child_records.__class__.from_records(results)
return pd.DataFrame.from_records(results)

def _update_dataset_with_merged_records(
self,
Expand Down
4 changes: 4 additions & 0 deletions cdisc_rules_engine/utilities/rule_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ def perform_rule_operations(
target = BaseOperation._replace_variable_wildcard(
target, wildcard_replacement
)
if domain and domain.startswith(("SUPP", "SQ")) and domain.endswith("--"):
rdomain = getattr(dataset_metadata, "rdomain", None)
if rdomain:
domain = domain.replace("--", rdomain)

# get necessary operation
operation_params = OperationParams(
Expand Down
Loading