StatAgentWeekly email

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

Task
ADaM and SDTM
Roles
Programmer, Statistician
Assistants
Microsoft 365 Copilot, ChatGPT, Claude
Last reviewed

Evidence

Untested idea. Rule-based checks are better done by code; AI adds value only for wording. No source found. Prompt not run.

Steps

  1. Export a variable metadata table.
  2. Run the consistency prompt.
  3. Verify each flag with a script where possible.
  4. Fix labels in the spec.
  5. 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

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.

Related

How we check. Back to the directory.