Source: adam_define.xml (CDISC SDTM/ADaM Pilot Project, unmodified), ADaM metadata for dataset ADAE, ItemDef entries. Format: variable | label | type | derivation text from the file's Comment attribute, with XML entities and curly quote characters normalised to plain text (define.xml lines 3544-3925; line numbers cited on this page are the first line of each ItemDef, and the Comment text sits a few lines below it, for example TRTEMFL text at line 3843, CQ01NAM text and the 'SUBC UTANEOUS' string at line 3913, AOCC01FL text at line 3921). Source SDTM: AE (sdtm_ae.xpt). Treatment start date comes from ADSL (adam_adsl.xpt, variable TRTSDT, a SAS date: whole days since 1960-01-01), matched on USUBJID. AESEQ | Sequence Number | integer | AE.AESEQ ASTDT | Analysis Start Date | integer (date, DATE9.) | AE.AESTDTC, converted to a numeric SAS date. Some events with partial dates are imputed in a conservative manner. If the day component is missing, a value of '01' is used. If both the month and day are missing no imputation is performed as these dates clearly indicate a start prior to the beginning of treatment. There are no events with completely missing start dates. ASTDTF | Analysis Start Date Imputation Flag | text | ASTDTF='D' if the day value within the character date is imputed. Note that only day values needed to be imputed for this study. AENDT | Analysis End Date | integer (date) | AE.AEENDTC, converted to a numeric SAS date ASTDY | Analysis Start Relative Day | integer | IF ASTDT>=TRTSDT>MISSING then ASTDY=ASTDT-TRTSDT+1 Else if TRTSDT>ASTDT>MISSING then ASTDY=ASTDT-TRTSDT AENDY | Analysis End Relative Day | integer | IF AENDT>=TRTSDT>MISSING then AENDY=AENDT-TRTSDT+1 Else if TRTSDT>AENDT>MISSING then AENDY=AENDT-TRTSDT ADURN | AE Duration (N) | integer | ADURN=AENDT-ASTDT+1 ADURU | AE Duration Units | text | If ADURN is not missing then ADURU='DAY' TRTEMFL | Treatment Emergent Analysis Flag | text (Y/N) | If ASTDT >= TRTSDT > . then TRTEMFL='Y'. Otherwise TRTEMFL='N' AOCCFL | 1st Occurrence of Any AE Flag | text | Subset to TRTEMFL='Y' and sort by Subject (USUBJID), Start Date (ASTDT), and Sequence Number (AESEQ) and flag the first record (set AOCCFL='Y') within each Subject AOCCSFL | 1st Occurrence of SOC Flag | text | Subset to TRTEMFL='Y' and sort by Subject (USUBJID), System Organ Class (AEBODSYS), Start Date (ASTDT), and Sequence Number (AESEQ) and flag the first record (set AOCCSFL='Y') within each Subject and SOC AOCCPFL | 1st Occurrence of Preferred Term Flag | text | Subset to TRTEMFL='Y' and sort by Subject (USUBJID), System Organ Class (AEBODSYS), Preferred Term (AEDECOD), Start Date (ASTDT), and Sequence Number (AESEQ) and flag the first record (set AOCCPFL='Y') within each Subject, SOC, and PT AOCC02FL | 1st Occurrence 02 Flag for Serious | text | Subset to TRTEMFL='Y' and AESER='Y' and sort by Subject (USUBJID), Start Date (ASTDT), and Sequence Number (AESEQ) and flag the first record (set AOCC02FL='Y') within each Subject CQ01NAM | Customized Query 01 Name | text | If AEDECOD contains any of the character strings of ('APPLICATION', 'DERMATITIS', 'ERYTHEMA', 'BLISTER') OR if AEBODSYS='SKIN AND SUBC UTANEOUS TISSUE DISORDERS' but AEDECOD is not in ('COLD SWEAT', 'HYPERHIDROSIS', 'ALOPECIA') then CQ01NAM='DERMATOLOGIC EVENTS' Otherwise CQ01NAM=NULL AOCC01FL | 1st Occurrence 01 Flag for CQ01 | text | Subset to CQ01NAM='' and TRTEMFL='Y' and sort by Subject (USUBJID), Start Date (ASTDT), and Sequence Number (AESEQ) and flag the first record (set AOCC01FL='Y') within each Subject (Flag First Treatment Emergent Dermatological Event for Time to Event Analysis) SDTM AE variables available: USUBJID, AESEQ, AESTDTC and AEENDTC (ISO 8601 text, may be YYYY-MM-DD, YYYY-MM or YYYY, or blank), AEDECOD, AEBODSYS, AESER (Y/N).