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
Evidence
Untested idea. Untested. Related published work (AI-332) describes AI-proposed derivations that need statistician review; it did not test this comparison.
Steps
- Paste SAP derivation text and the spec rows.
- Run the comparison prompt.
- Verify each flagged conflict in both documents.
- Check flagged 'no gap' areas yourself.
- 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
- Quoted passages exist in the documents.
- Baseline, window and censoring rules are checked line by line.
- Conflicts are real, not wording.
- Missing-data handling in derivations is covered.
- Specs and SAP are the current versions.
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.