Convert external ADaM code and specs to internal templates, with human review
A Merck framework uses an LLM API plus rule-based fixers to convert acquired-study ADaM code and specs to internal standards. Statisticians review ambiguous derivations. It is a company workflow, not a chat prompt.
Reported in literatureHigh risk
Evidence
Reported in literature. PharmaSUG 2026 AI-332 (Merck authors) describes the framework and reports a validation on one oncology transfer of six ADaM datasets, with SAS runs described as generally successful. The 60-70% cut in time to a first draft is the authors' own estimate, not a controlled evaluation. Limitations are listed.
Steps
- Provide internal templates as the reference.
- Convert code and spec under constraints.
- Apply deterministic fixers for recurrent syntax issues.
- Execute and review the converted programs.
- Statisticians decide ambiguous derivations.
Verify before you use it
- Derivations are reviewed by a statistician where study interpretation matters.
- Converted code is executed and outputs compared with the originals.
- Spec and program agree.
- Internal templates are the authority.
- Nothing is accepted on AI confidence.
How it fails
Collapsing or re-deriving variables such as AE fields without statistical input changes analysis meaning.
Data rule: No acquired-study code, specs or data in public AI tools. Any use needs approved enterprise tooling and policy clearance.