get_sdtm_variable_details
Get SDTM variable metadata such as label, datatype, core, role, and codelist terms. Provide domain and SDTM-IG version to obtain precise variable details for clinical standards.
Instructions
Get detailed metadata for a specific SDTM variable.
Args: variable (str): Variable name (e.g., "USUBJID", "AESTDTC", "LBORRES"). domain (str, optional): SDTM domain code (e.g., "DM", "AE", "VS"). If not provided, will search common domains. sdtmig_version (str, optional): SDTM-IG version (e.g., "3-4" or "3.4"). If not provided, uses latest version. include_codelist (bool, optional): If True, retrieves full codelist terms. Default True. headers_ (dict, optional): Custom headers for API request.
Returns: dict: Contains variable metadata including name, label, datatype, core, role, and optionally associated codelist terms.
Example: get_sdtm_variable_details("AESTDTC", "AE", "3-4") Returns metadata for AE Start Date/Time variable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | ||
| headers_ | No | ||
| variable | Yes | ||
| sdtmig_version | No | ||
| include_codelist | No |