StatAgentWeekly email

Review a define.xml for readability and obvious inconsistencies

AI reads the text of a define.xml or its table export and flags missing descriptions, inconsistent derivation wording or labels. It cannot validate the file; a CDISC validator and human review do that.

Untested ideaMedium risk

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

Evidence

Untested idea. No evaluation found. Public CDISC pilot define.xml files may be usable for a trial run (we have not checked). The prompt has not been run.

Steps

  1. Export dataset, variable and derivation text to a table.
  2. Run the review prompt.
  3. Verify findings in the define file.
  4. Run your validator separately.
  5. Document resolved comments.

Prompt

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

You
From the define.xml extract below (variables with label, type, origin, derivation or comment), list: missing or very short derivation descriptions, inconsistent wording for the same derivation across datasets, labels that differ from the same variable elsewhere, and origin values that look inconsistent with the derivation text. Cite dataset and variable for every finding. Do not claim the file is valid or compliant. 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 implies compliance or misses a structural error because it reviews text, not the XML rules.

Data rule: No confidential define files or specs. Use the public CDISC pilot define.xml.

Related

How we check. Back to the directory.