Death narrative from SDTM DM, AE and EX rows
Paste one subject's SDTM rows, get a Word draft death narrative with study-day arithmetic and a list of gaps and conflicts.
About 20 minWordTrace-checked
What you get
Subject 01-701-1211 was a 76-year-old White, not Hispanic or Latino woman enrolled at Site 701 in the USA. The subject was randomized to and treated with Xanomeline Low Dose (planned and actual arm).
The subject received xanomeline 54 mg transdermal patch once daily from 15 November 2012 (Day 1) to 12 January 2013 (Day 59). This was 54 mg daily on Days 1–14 and Days 15–59, a total of 59 days. Study day is calculated as the date minus 15 November 2012, plus 1. For death, 15 Nov to 14 Jan is 60 days, so Day 61.
The subject died on 14 January 2013 (Day 61), two days after the last recorded dose. The investigator-reported event was "sudden death", rated severe, with outcome fatal, onset and end on Day 61. The event was recorded as fatal (AESDTH=Y), not life-threatening and not requiring hospitalization. Causality was recorded as "none".
Other AEs before death:
- Days 2–8, all ongoing, not recovered: mild application site pruritus (Day 2, possibly related); mild shoulder pain (Day 7); mild incontinence (Day 8).
- Day 7, resolved the same day: moderate joint dislocation.
- Days 15–25, ongoing: mild application site erythema (Day 15, possibly related) and mild skin laceration (Day 25).
- Day 58, ongoing: moderate confusional state and moderate dyspnoea, both 11 January 2013, three days before death (61 − 58).
All of these were non-serious and, except the two application site events, not related.
- Cause of death is not recorded; no autopsy, circumstances or place of death are provided.
- The event is recorded as non-serious (AESER=N) yet fatal (AESDTH=Y); query the seriousness flag.
- The relationship of the Day 58 confusional state and dyspnoea to the death is not stated.
- Action taken with study drug (AEACN) is blank for all AEs.
- No dosing is recorded for 13–14 January (Days 60–61); it is unknown whether dosing continued or stopped.
- Informed consent date (RFICDTC) is missing.
- Last dosing date (12 Jan) differs from reference end date (14 Jan, equal to death date).
Swipe sideways to see every column.
Cold re-run on 2026-10-28 of the prompt shown above, by an agent given only the prompt and rows. Pronouns about the participant were changed to "the subject" in 3 places; nothing else was edited.
Draft for review. Public data only.
The prompt
Write a CSR death narrative for one subject from the SDTM rows below: past tense, third person, plain
regulatory style, 200 to 300 words. Use only facts in the rows. Calculate study days and intervals, show how.
Cover demographics and arm, exposure (dose, route, dates), the fatal event (onset, outcome, seriousness and
causality as recorded) and relevant other AEs before death, grouped by timing and ongoing or not.
Where data are missing or conflict, do not guess: add a list headed "Not in the data / queries".
Do not state a cause of death beyond the data. Invent no history, medications, labs, circumstances or autopsy.
[paste the subject's DM, AE and EX rows here]Works in any chat assistant; not tested in Microsoft 365 Copilot
Sample input used here
SDTM rows for subject 01-701-1211 (DM 1, EX 2, AE 9)
Source: CDISCPILOT01 SDTM datasets (sdtm_dm.xpt, sdtm_ae.xpt, sdtm_ex.xpt), subject 01-701-1211 only. All rows for this subject are shown. Blank = missing in the dataset. DM (1 row) USUBJID=01-701-1211; STUDYID=CDISCPILOT01; SITEID=701; COUNTRY=USA; AGE=76; AGEU=YEARS; SEX=F; RACE=WHITE; ETHNIC=NOT HISPANIC OR LATINO ARM=Xanomeline Low Dose; ACTARM=Xanomeline Low Dose RFSTDTC=2012-11-15; RFXSTDTC=2012-11-15; RFXENDTC=2013-01-12; RFENDTC=2013-01-14; RFPENDTC=2013-01-14 DTHDTC=2013-01-14; DTHFL=Y; RFICDTC=(blank); DMDTC=2012-10-30; DMDY=-16 EX (2 rows) EXSEQ|EXTRT|EXDOSE|EXDOSU|EXDOSFRM|EXDOSFRQ|EXROUTE|VISIT|EXSTDTC|EXENDTC|EXSTDY|EXENDY 1|XANOMELINE|54|mg|PATCH|QD|TRANSDERMAL|BASELINE|2012-11-15|2012-11-28|1|14 2|XANOMELINE|54|mg|PATCH|QD|TRANSDERMAL|WEEK 2|2012-11-29|2013-01-12|15|59 AE (9 rows; AESTDY and AEENDY are study days of AE start and end)
CDISC pilot SDTM datasets sdtm_dm, sdtm_ae and sdtm_ex, one subject, unmodified, credited to CDISC. The page author chose the first of the 3 subjects with DTHFL = Y.
How this was checked
Result
Generated by Claude on 2026-10-28 (cold re-run of the shortened prompt, no tools; verified by a second, independent agent).
Trace-checked. A second Claude agent checked each statement against the source. No script recomputed it. A person did not recheck every line.
Cold re-run of this prompt on 2026-10-28. Re-run with the shortened prompt: 22 of 31 statements correct, 1 wrong ("not life-threatening"), 1 partly, 7 real gaps.
A one-line prompt for comparison
Prompt: write the AE narrative for the subject who died using the SDTM data
I can't write the actual narrative yet. No SDTM datasets were provided in this request, and you asked me not to use tools, so I couldn't look in the project folder. I won't invent subject details for a fatal event. Below is a template with the SDTM source for each field. If you give me the subject's records (DM, AE, EX, DS, DD, LB, VS, CM, MH, as CSV or pasted rows) or the folder path, I'll fill it in. Where each field comes from in SDTM - Demographics (age, sex, race, country, arm, first and last dose dates): DM (AGE, SEX, RACE, COUNTRY, ARM/ACTARM, RFXSTDTC, RFXENDTC, DTHDTC, DTHFL) - Fatal event and its details: AE (AETERM, AEDECOD, AESTDTC, AEENDTC, AESEV, AESER, AESDTH, AEREL, AEACN, AEOUT) - Study treatment exposure: EX (EXTRT, EXDOSE, EXSTDTC, EXENDTC) - Date and cause of death: DS (DSDECOD = DEATH) and DD (DDTESTCD, DDORRES), plus DM.DTHDTC - Relevant history: MH - Concomitant medications: CM - Labs and vitals around the event: LB, VS, EG - Study day: derive from RFSTDTC, with AESTDY and DTHDY if present Narrative template ...
31 statements checked: 22 right, 1 partly right, 1 wrong, 7 real.
Show all 31 checked statements
| Statement | Verdict | Source check |
|---|---|---|
| 76-year-old White, not Hispanic or Latino woman | Right | DM AGE=76, SEX=F, RACE=WHITE, ETHNIC=NOT HISPANIC OR LATINO |
| Site 701, USA | Right | DM SITEID=701, COUNTRY=USA |
| Randomized to and treated with Xanomeline Low Dose (planned and actual arm) | Partly right correct | ARM=ACTARM=Xanomeline Low Dose; 'randomized' is not stated in rows (only arm assignment) |
| Xanomeline 54 mg transdermal patch once daily | Right | EX EXDOSE=54, EXDOSU=mg, EXDOSFRM=PATCH, EXROUTE=TRANSDERMAL, EXDOSFRQ=QD |
| Dosing from 15 Nov 2012 (Day 1) | Right | RFXSTDTC=EXSTDTC row1=2012-11-15, EXSTDY=1 |
| Dosing to 12 Jan 2013 (Day 59) | Right | EXENDTC row2=2013-01-12, EXENDY=59; recomputed 59 |
| 54 mg on Days 1-14 and Days 15-59 | Right | EX row1 EXSTDY1-EXENDY14; row2 15-59 |
| Total of 59 days of dosing | Right | Contiguous records Day1-59 = 59 days (assumes every day dosed; EX gives intervals only) |
| Study day = date - 15 Nov 2012 + 1; 15 Nov to 14 Jan is 60 days so Day 61 | Right | Recomputed: 14 Jan 2013 - 15 Nov 2012 = 60 d, +1 = 61; AESTDY=61 |
| Died 14 Jan 2013 (Day 61) | Right | DTHDTC=2013-01-14, DTHFL=Y; AE9 AESTDTC=2013-01-14 |
| Two days after last recorded dose | Right | 14 Jan - 12 Jan = 2 |
| Event term 'sudden death', severe | Right | AE9 AETERM=SUDDEN DEATH, AESEV=SEVERE |
| Outcome fatal; onset and end Day 61 | Right | AEOUT=FATAL; AESTDY=AEENDY=61 |
| Recorded as fatal (AESDTH=Y) | Right | AE9 AESDTH=Y |
| Event not life-threatening | Wrong | AE9 AESLIFE=Y (prompt row ...|FATAL|Y|Y|N = AESDTH Y, AESLIFE Y, AESHOSP N; xpt confirms AESLIFE=Y). Draft misread column order |
| Event not requiring hospitalization | Right | AE9 AESHOSP=N |
| Causality recorded as 'none' | Right | AE9 AEREL=NONE |
| Day 2-8 ongoing, not recovered: pruritus Day 2 mild possibly related; shoulder pain Day 7 mild; incontinence Day 8 mild | Right | AE1,3,4: AESTDY 2,7,8; AESEV MILD; AEOUT NOT RECOVERED; AEREL POSSIBLE/NONE/NONE; AEENDTC blank |
| Day 7 joint dislocation, moderate, resolved same day | Right | AE2 AESEV=MODERATE, AEOUT=RECOVERED/RESOLVED, AESTDY=AEENDY=7 |
| Day 15 mild application site erythema, possibly related, ongoing | Right | AE5 AESTDY=15, MILD, AEREL=POSSIBLE, AEENDTC blank |
| Day 25 mild skin laceration, ongoing | Right | AE6 AESTDY=25 (recomputed 25), MILD, not recovered |
| Day 58 moderate confusional state and dyspnoea, both 11 Jan 2013, ongoing | Right | AE7,8 AESTDTC=2013-01-11, AESTDY=58, MODERATE, not recovered |
| Three days before death (61-58) | Right | 61-58=3; 14 Jan - 11 Jan = 3 |
| All non-serious; except two application site events, not related | Right | AE1-8 AESER=N; AEREL NONE except AE1, AE5 POSSIBLE |
| Query: cause of death, autopsy, circumstances, place not recorded | Real gap | No such fields in DM/AE/EX; only SUDDEN DEATH term |
| Query: AESER=N yet AESDTH=Y; query seriousness flag | Real gap | AE9 AESER=N, AESDTH=Y, AESLIFE=Y: genuine conflict (draft missed AESLIFE=Y, also conflicting) |
| Query: relationship of Day 58 events to death not stated | Real gap | Data contain no link; reasonable query (published narrative says not contributing, but that is not in rows) |
| Query: AEACN blank for all AEs | Real gap | All 9 AEACN blank (published narrative says 'no action taken', so data incomplete) |
| Query: no dosing recorded 13-14 Jan (Days 60-61) | Real gap | EX last EXENDTC=2013-01-12; RFXENDTC=2013-01-12; death 14 Jan |
| Query: informed consent date RFICDTC missing | Real gap | DM RFICDTC blank |
| Query: last dose 12 Jan differs from RFENDTC 14 Jan (= death date) | Real gap | RFXENDTC=2013-01-12, RFENDTC=2013-01-14=DTHDTC |
About the sheet shown
Cold re-run on 2026-10-28 of the prompt shown above, by an agent given only the prompt and rows. Pronouns about the participant were changed to "the subject" in 3 places; nothing else was edited. One subject, one run.
All 5 checks
- Look for facts not in the rows (history, medication, cause of death). Any such sentence came from the model, not the data.
- A named medical writer or clinician must review it, and the sponsor template and style guide override this prompt.
Sources
- CDISC SDTM/ADaM Pilot Project (CDISCPILOT01) (Credit CDISC; used unmodified under the repository terms (no modification, no sale, attribution))
Scripts
Related workflows
All workflows. How we check. Public data only. Drafts for review, not validated output.
Get one workflow a week
Unsubscribe anytime. Privacy.