Skip to content

1316: New rule - value against library metadata#1680

Merged
SFJohnson24 merged 18 commits into
mainfrom
1316
Apr 21, 2026
Merged

1316: New rule - value against library metadata#1680
SFJohnson24 merged 18 commits into
mainfrom
1316

Conversation

@alexfurmenkov
Copy link
Copy Markdown
Collaborator

@alexfurmenkov alexfurmenkov commented Apr 3, 2026

dataset builder for new rule type.

test dataset with joined library metadata

1316_full.xlsx

and filtered dataset with VISIT/VISITNUM/VISITDY data (maybe it's more representative since it has library metadata filled)
1316_example.xlsx

@alexfurmenkov alexfurmenkov changed the title #1316 Value against library metadata #1316 WIP: new rule - value against library metadata Apr 3, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated schema has not been merged with markdown descriptions. Please run the "Merge Schema with Markdown Descriptions" workflow to update the merged schema files.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated schema has not been merged with markdown descriptions. Please run the "Merge Schema with Markdown Descriptions" workflow to update the merged schema files.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated schema has not been merged with markdown descriptions. Please run the "Merge Schema with Markdown Descriptions" workflow to update the merged schema files.

@alexfurmenkov alexfurmenkov marked this pull request as ready for review April 6, 2026 16:51
@alexfurmenkov alexfurmenkov changed the title #1316 WIP: new rule - value against library metadata new rule - value against library metadata Apr 6, 2026
@alexfurmenkov alexfurmenkov changed the title new rule - value against library metadata 1316: New rule - value against library metadata Apr 7, 2026
| | [Value Check with Variable Metadata](#value-check-with-variable-metadata) |
| | [Value Check against Define XML Variable](#value-check-against-define-xml-variable) |
| | [Value Check against Define XML VLM](#value-check-against-define-xml-vlm) |
| | [Value Check against Library Metadata](#value-check-against-library-metadata) |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to also add this rule type to Rule_Type.json. This is why the merge script is not finding anything.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated schema has not been merged with markdown descriptions. Please run the "Merge Schema with Markdown Descriptions" workflow to update the merged schema files.

@alexfurmenkov alexfurmenkov linked an issue Apr 9, 2026 that may be closed by this pull request
# merge dataset contents with library variable metadata
merged = data_contents_long_df.merge(
variables_metadata.data,
how="outer",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason this is an outer join versus a left join? The rules mentioned want to check if values are not present in the library. I dont think we want all the library metadata that isnt associated with a variable?

Copy link
Copy Markdown
Collaborator

@SFJohnson24 SFJohnson24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we just want to change that join to left and this is good to go

@SFJohnson24
Copy link
Copy Markdown
Collaborator

@alexfurmenkov I was mistaken--this should be an outer join to allow checks when it exists in library but not as a value in the dataset. Apologies

Copy link
Copy Markdown
Collaborator

@SFJohnson24 SFJohnson24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR correctly implements the new rule type and builder as well as all the requisite additions--readme, schema, testing.

@SFJohnson24 SFJohnson24 merged commit 9e7afdb into main Apr 21, 2026
13 checks passed
@SFJohnson24 SFJohnson24 deleted the 1316 branch April 21, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rule blocked: SEND296

3 participants