sdtmteam is a Visual Studio Code extension built on the open-source kilocode project. It serves as an intelligent agent to help clinical programmers and data managers generate CDISC SDTM datasets from raw data extracted from EDC systems or external transfers.
The agent performs smart analysis on raw datasets, generates mapping specifications, enables user review and confirmation, and then produces working code in SAS, R, or Python to convert raw data into SDTM-compliant datasets (e.g., CSV or SAS XPT files).
- 🔍 Analyzes raw clinical data and suggests SDTM mapping specs
- 👥 Allows human review and editing of generated specs
- 🧠 Learns from feedback to improve future suggestions
- 💻 Generates SDTM implementation code in SAS, R, or Python
- 📦 Converts raw data into SDTM-format outputs (CSV, XPT)
- 🔄 Supports both EDC extract and external data transfer formats
- Make sure you have Visual Studio Code installed.
- Clone or download this repository:
git clone https://github.com/your-org/sdtmteam.git cd sdtmteam - Open the folder in VSCode:
code . - Press
F5to launch the extension in a new Extension Development Host window.
Note: This extension may require access to Python, R, or SAS on your local machine depending on your selected output language.
- Launch sdtmteam from the VSCode Command Palette (
Ctrl+Shift+P) →SDTMTEAM: Start Agent. - Load your raw clinical dataset (CSV, XLSX, or custom format).
- The extension will analyze the structure and propose a mapping spec.
- Review and edit the spec using the built-in SDTM Spec Editor.
- Confirm the mapping and choose your output format:
- Generate SDTM as CSV
- Generate SAS XPT
- Export the implementation code in:
SASRPython
You can rerun the agent at any time after modifying your data or mappings.
We welcome contributions from the clinical programming and data science community.
- Fork this repo
- Create a new branch:
git checkout -b feature/my-new-feature
- Make your changes and commit:
git commit -am 'Add new feature' - Push to the branch:
git push origin feature/my-new-feature
- Open a pull request 🚀
- Built on top of kilocode
- Inspired by real-world SDTM mapping workflows