StatAgentWeekly email

Compare an ADaM spec with the SAP to find missing derivations

AI reads SAP definitions of populations, windows and derived endpoints and compares them with ADaM specification rows, flagging missing, conflicting or ambiguous derivations. The statistician decides what counts as a real gap.

Untested ideaHigh risk

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

Evidence

Untested idea. Untested. Related published work (AI-332) describes AI-proposed derivations that need statistician review; it did not test this comparison.

Steps

  1. Paste SAP derivation text and the spec rows.
  2. Run the comparison prompt.
  3. Verify each flagged conflict in both documents.
  4. Check flagged 'no gap' areas yourself.
  5. Raise spec changes through normal review.

Prompt

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

You
Compare the ADaM specification rows with the SAP derivation text. For each SAP-defined item (analysis set, baseline, visit window, derived endpoint, censoring rule) find the matching spec row or write NO SPEC ROW. List conflicts (quote both). List spec derivations with no SAP basis. Do not write code and do not decide which document is right. 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

Subtle differences in windows, baseline definitions or censoring rules are read as consistent.

Data rule: No unpublished SAPs, specs or define files from an employer or client. Use CDISC pilot public materials.

Sources

Related

How we check. Back to the directory.