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
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
- Get the current CDISC CT list for the codelist.
- Export distinct values of the variable.
- Run the comparison prompt.
- Verify each mismatch in the data.
- 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
- The CT version and codelist are the current required ones.
- No match is declared from AI memory.
- Case and whitespace fixes are applied in code.
- Synonym matches are approved by a human.
- A validator confirms the final data.
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.