What problem does it solve? Clinical data staff without deep R programming experience struggle to write CDISC-compliant SDTM domain mapping code. This Skill turns natural-language descriptions of a target domain and raw data into runnable sdtm.oak mapping scripts. ## Core Features & Use Cases - Domain Mapping Templates: Provides complete, runnable R templates for common SDTM domains including DM, AE, VS, CM, LB, and EX, covering identifier variables, sequence derivation, and controlled terminology assignment. - Guided Workflow: Walks the user through confirming the target domain, inspecting raw data variables, generating code, and validating the output XPT files. - Pitfall Guidance: Documents real failure modes of sdtm.oak (such as piping full raw data into assign_* functions or misusing codelists) with concrete fixes. - Use Case: A clinical data specialist describes an adverse events dataset with columns like SUBJID and AETERM, and receives a complete AE domain mapping script that derives AESEQ, applies controlled terminology to AESEV, and exports ae.xpt via xportr. ## Quick Start Ask the assistant to generate an SDTM mapping script for a specific domain such as DM or AE using your raw data or the built-in pharmaverse test data.