Skip to content

Conversation

@RakeshBobba03
Copy link
Collaborator

Implements the ability to extract domain suffixes from AP-related domain names and compare them against valid SDTM domains. This adds a domain_suffix option to the extract_metadata operation that extracts characters 3-4 from domain names (e.g., "FA" from "APFA"), and introduces a new standard_domains operation that returns a sorted list of valid SDTM domain names from the CDISC Library metadata. These changes enable rule CG0663 to validate that Associated Persons (AP) Core Domains have a 4-character length beginning with 'AP' and ending with a valid 2-character SDTM domain.

@RakeshBobba03 RakeshBobba03 marked this pull request as ready for review November 17, 2025 17:45
@RakeshBobba03 RakeshBobba03 changed the title Add domain suffix extraction and standard domains operation for domain validation #1194 Add domain suffix extraction and standard domains operation for domain validation Nov 20, 2025
@gerrycampion gerrycampion linked an issue Nov 24, 2025 that may be closed by this pull request
@gerrycampion
Copy link
Collaborator

Also, can you provide a sample rule and test data to completely test CG0663. You can attach to this PR. (it will also help with your demo)

@RakeshBobba03
Copy link
Collaborator Author

Also, can you provide a sample rule and test data to completely test CG0663. You can attach to this PR. (it will also help with your demo)

Here are the dataset files and Rule file I used for testing:

local-rule.yaml
unit-test-coreid-CG0663-negative 3.xlsx
CG0663_TEST.xlsx

…in DatasetMetadataDefineDatasetBuilder._get_dataset_dataframe()
@gerrycampion gerrycampion merged commit f38215e into main Dec 3, 2025
11 checks passed
@gerrycampion gerrycampion deleted the 1194-Rule-blocked-CORERULES-903 branch December 3, 2025 18:41
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: CORERULES-903

4 participants