Check variable labels and names for consistency across ADaM datasets
AI scans a table of dataset, variable and label and lists variables with different labels across datasets, over-length labels and spelling variants. A script can check length; AI helps with wording.
Untested ideaLow risk
Evidence
Untested idea. Rule-based checks are better done by code; AI adds value only for wording. No source found. Prompt not run.
Steps
- Export a variable metadata table.
- Run the consistency prompt.
- Verify each flag with a script where possible.
- Fix labels in the spec.
- Rerun after changes.
Prompt
This is the prompt, typed out. No assistant reply is shown.
You
From the variable metadata below (dataset, variable, label, type, length), list: the same variable name with different labels across datasets, labels over 40 characters, near-duplicate labels with different variable names, and spelling or capitalization inconsistencies. Show dataset and variable for every finding. Do not invent labels; propose a wording only as a suggestion marked SUGGESTION.
Rules: use ONLY the input below. Tag anything the input does not state as OPEN QUESTION. Never invent numbers; use placeholders such as xx. Do not claim anything is verified.
INPUT:
[paste input here]
Verify before you use it
- Label length was checked by code.
- Each variable named exists in the input.
- Suggested labels follow your standards.
- Dataset-specific labels that are intended to differ are retained.
- Spec and datasets agree after edits.
How it fails
The AI invents or rewords labels that depart from the standard and misses over-length ones.
Data rule: No metadata exports from confidential studies. Use CDISC pilot ADaM metadata or invented variables.