StatAgentWeekly email

Check variable values against CDISC controlled terminology lists

AI compares the distinct values in a coded variable with a controlled terminology list you supply and groups mismatches. The list comes from CDISC; the AI should not recall it from memory.

Untested ideaMedium risk

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

Evidence

Untested idea. Pure matching is better done in code. CDISC CORE rules exist for validation, but we found no test of AI for this step. Prompt not run.

Steps

  1. Get the current CDISC CT list for the codelist.
  2. Export distinct values of the variable.
  3. Run the comparison prompt.
  4. Verify each mismatch in the data.
  5. Fix the mapping.

Prompt

This is the prompt, typed out. No assistant reply is shown.

You
Compare the distinct values with the controlled terminology list. Report values that match exactly, values that match after case or whitespace changes, values that match a synonym in the list, and values with no match. Use ONLY the list provided as the reference; do not use memory of CDISC terminology. 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 treats a term as valid based on memory of an older or different codelist.

Data rule: No subject-level values. Provide only distinct coded values and the public CT list.

Sources

Related

How we check. Back to the directory.