💧 Automated Peritoneal Dialysis Cycler Programming Simulator
This simulation teaches users how to program an automated peritoneal dialysis (APD) cycler. It covers the setup process, programming parameters for different exchange cycles, and monitoring techniques to ensure effective and safe dialysis treatment.
The Automated Cycler — Shifting the Exchange Burden to Sleep
Automated Peritoneal Dialysis (APD) uses a bedside machine — the cycler — to perform a series of fill, dwell, and drain exchanges through the night while the patient sleeps. Unlike Continuous Ambulatory Peritoneal Dialysis (CAPD), which requires 3–5 manual bag exchanges spread across the waking day, APD compresses most or all of the prescribed dialysate exchanges into an 8–10 hour overnight session, freeing daytime hours for work, school, and family life.
- ~70–80%: APD use among PD patients (in many high-income health systems)
- 8–10 h: Typical session length (connected overnight, machine-run)
- 3–5 / day: Manual exchanges avoided (vs. CAPD daytime bag changes)
- 2: Connections per day (connect at bedtime, disconnect on waking)
From manual bag exchanges to machine-driven cycles
In CAPD, the patient (or caregiver) manually drains spent dialysate and instills fresh solution 3–5 times per day using gravity, hanging bags at set heights. Each exchange takes 20–40 minutes of hands-on time and must fit around daily activities.
APD replaces this manual routine with a cycler — a compact pump-driven device that warms dialysate, times each fill and drain phase, measures the volume instilled and removed, and repeats the cycle automatically. The patient connects a single transfer set to their peritoneal catheter at bedtime, and the machine runs unattended through the night, performing 3–8 exchanges before the patient wakes and disconnects.
Because the cycler can run more exchanges in a shorter total dwell time than would be practical manually, APD achieves the prescribed weekly clearance target while the patient is asleep, largely restoring daytime independence.
The core promise of APD is not a different dialysis mechanism — it is the same diffusive and convective exchange across the peritoneal membrane — but a different delivery schedule that reclaims the patient's waking hours.
Patient selection and suitability for cycler therapy
Not every peritoneal dialysis patient is an ideal APD candidate. Selection considers:
• Peritoneal transport status: fast (high) transporters equilibrate glucose and solutes quickly, favoring short, frequent dwells — well suited to APD's multiple short cycles. Slow (low) transporters may need longer dwells that APD alone cannot always provide, sometimes requiring an added daytime exchange. • Home environment: APD requires space for the cycler, a stable power supply, and a quiet area for overnight connection. • Lifestyle and preference: patients who work, attend school, or care for family often prefer APD for daytime freedom; some prefer CAPD's simplicity and lack of machine dependency. • Manual dexterity and vision: cycler set-up involves loading tubing cassettes and connecting lines — training addresses this for most patients, with assistive/caregiver-assisted APD an option when needed. • Residual kidney function and clearance targets: influence how many cycles and how much total volume are required nightly.
Programming Cycle Number, Fill Volume, and Dwell Time
Every APD prescription is built from a small set of programmable parameters: how many cycles run per night, how much dialysate fills the abdomen each cycle, and how long each fill dwells before draining. These are not arbitrary — they are derived from the patient's measured peritoneal transport characteristics and their individual clearance and ultrafiltration requirements.
- 3–8: Typical cycle count (per overnight session)
- 1.5–2.5 L: Typical fill volume (per cycle, adult patients)
- ~60–90 min: Typical dwell time (per cycle, shorter for fast transporters)
- 4: PET result classes (high / high-avg / low-avg / low transport)
The Peritoneal Equilibration Test guides cycle design
The Peritoneal Equilibration Test (PET) characterizes how quickly a patient's peritoneal membrane equilibrates solutes (creatinine, glucose) between blood and dialysate. Results classify patients as high, high-average, low-average, or low transporters.
• High transporters: rapid solute equilibration but also rapid glucose absorption, which erodes the osmotic gradient and limits ultrafiltration during long dwells. These patients typically benefit from more numerous, shorter dwells — a pattern the cycler delivers naturally. • Low transporters: slower equilibration means solute clearance continues to accrue over longer dwell times, and ultrafiltration is better sustained across a long dwell. These patients may need fewer, longer cycles, sometimes combined with a manual daytime exchange to meet clearance targets.
The cycler's programming interface lets the clinician (and, within prescribed limits, the patient) enter the number of cycles and the minutes allotted to each, translating the PET classification directly into a night-by-night automated schedule.
Balancing cycle number, fill volume, and dwell time
These three parameters interact and trade off against one another within the fixed overnight window:
• More cycles with shorter dwell each: increases the number of fresh-dialysate exposures, which favors solute clearance for fast transporters, but leaves less time per cycle for ultrafiltration and slightly increases mechanical wear from more fill/drain transitions. • Fewer cycles with longer dwell each: allows more complete solute equilibration and sustained ultrafiltration for slow transporters, but risks glucose absorption plateauing (and even fluid reabsorption) in fast transporters if dwells run too long. • Fill volume per cycle: larger fills increase the peritoneal surface area in contact with dialysate and can improve clearance per cycle, but must remain within the patient's tolerated intraperitoneal volume (comfort, intra-abdominal pressure, and any hernia or leak risk).
The cycler's programmed total overnight dialysate volume — the product of cycle count and fill volume — is one of the key levers used, alongside dwell time, to hit the patient's individualized weekly clearance and fluid removal targets.
Programming is iterative: the initial prescription is a starting point set from PET results and body size, then refined against measured clearance and the patient's reported comfort and sleep quality.
The Last Fill — Extending Therapy into the Daytime Dwell
When the overnight cycler program finishes, most patients disconnect with one final fill left in the abdomen — the "last fill" — which then dwells throughout the day until the next connection. Choosing what goes into that last fill, and how long it should dwell, is itself a distinct part of the prescription, separate from the overnight cycle settings.
- 12–16 h: Typical daytime dwell (from disconnect to next connection)
- sustained: Icodextrin dwell benefit (UF maintained across long dwells)
- fluid reabsorption: Dextrose long-dwell risk (especially in fast transporters)
- selected patients: "Dry day" option (no last fill, relies on residual/urine clearance)
Choosing the last-fill solution
The last fill dwells far longer than any overnight cycle — often 12–16 hours — so the solution instilled must sustain an osmotic (ultrafiltration) gradient across that entire window:
• Icodextrin-based solution: a glucose polymer absorbed slowly via lymphatics rather than rapidly across the peritoneal membrane, so it maintains a colloid-osmotic pull for long dwells without the glucose-driven reabsorption seen with dextrose. It is a common choice for the last fill, particularly in high and high-average transporters whose membranes would otherwise reabsorb dextrose-based fluid over many hours. • Standard dextrose-based solution: adequate for the last fill in low or low-average transporters, whose slower membrane equilibration lets the osmotic gradient persist reasonably well across a long dwell. • "Dry day" (no last fill): in selected patients with substantial residual kidney function or urine output, the daytime abdomen may be left empty, relying on residual renal clearance and avoiding daytime dialysate-related discomfort — an option that is revisited as residual function declines.
Clinical trade-offs of the daytime dwell
The last-fill decision affects both clearance and patient comfort:
• Ultrafiltration continuity: a well-chosen last fill prevents the multi-hour gap between overnight cycling and the next connection from becoming a period of net fluid reabsorption, which would undercut the overnight session's fluid removal. • Added solute clearance: because the dwell is long, meaningful additional solute clearance can accrue during the day, contributing materially to weekly clearance totals alongside the overnight cycles. • Abdominal fullness and activity: a daytime fill volume must be tolerated during normal daily activity, so it is sometimes programmed at a smaller volume than overnight fills. • Glucose exposure: extending a dextrose-based dwell across the day adds to the patient's total daily glucose load, a consideration weighed against alternative osmotic agents like icodextrin.
The last fill is often the single dwell most sensitive to the choice of dialysate — a mismatch between solution type and transport status here can quietly erode a full day's worth of ultrafiltration.
Alarm and Safety Monitoring — Automated Vigilance Overnight
Because the patient is asleep and unattended for most of the session, the cycler must independently detect problems that would otherwise require a person watching each exchange. It does this by continuously tracking fill and drain volumes against expected targets and timing, sounding an alarm and pausing the program whenever a measured value drifts outside safe limits.
- fill & drain: Volumes tracked per cycle (compared against programmed targets)
- outflow obstruction: Common alarm cause (catheter tip migration, fibrin, kinks)
- programmable: Low drain volume tolerance (threshold before alarm triggers)
- partial drains: Tidal APD (strategy that reduces drain-alarm frequency)
Common alarm types and their causes
Modern cyclers monitor the mechanics of each fill and drain phase in real time and raise distinct alarms for characteristic failure patterns:
• Inflow obstruction: fill volume does not reach target within the expected time — often from a kinked line, a clamped connector, or occasionally constipation compressing the catheter against the bowel. • Outflow (drain) obstruction: drained volume falls short of the expected return — commonly from catheter tip migration away from the pelvis, omental wrapping, fibrin strands occluding catheter side holes, or constipation again restricting flow. • Low drain volume / negative ultrafiltration warning: cumulative drain volume across the session trends below the fill volume instilled, flagging possible fluid retention or a leak. • Air-in-line or line disconnection alarms: detect a compromised closed system that could permit contamination. • Bag/container alarms: an empty or missing dialysate bag, or a full drain bag/line to the drain reservoir.
Each alarm pauses the affected cycle and displays guidance on the cycler screen — often as simple as "check line for kinks" or "reposition and try again" — so the patient can resolve the issue and resume without needing to fully wake or call for help.
Patient response and alarm-reduction strategies
Because most nights run unattended, cycler alarms are designed to be actionable by a drowsy patient with minimal steps:
• Repositioning: many outflow alarms resolve when the patient changes position (rolling onto their side), shifting the catheter tip away from bowel loops or omentum. • Line inspection: checking for visible kinks in tubing near the connection point resolves many inflow alarms immediately. • Escalation pathway: alarms that do not resolve after a set number of retries prompt the patient to contact their PD unit, and the cycler logs the event for review at the next clinic visit. • Tidal APD: instead of fully draining each cycle, a fraction of the fill volume (the "tidal reserve") is left in the abdomen and only partially exchanged each cycle, with a full drain only at defined intervals. Because the catheter is never left dry mid-session, tidal APD reduces the mechanical stress associated with complete drainage and lowers the frequency of drain-related alarms, at the cost of somewhat reduced clearance efficiency per liter of dialysate used.
Alarm thresholds are programmable within safe bounds by the clinical team — set too tight, they wake the patient unnecessarily; set too loose, they risk missing a genuine mechanical problem, so they are tuned to the individual catheter and patient history.
Refining the Prescription — From Adequacy Testing to Individualized Therapy
The initial cycler program is only a starting point. Over months and years, periodic adequacy testing and the patient's clinical trajectory — including changes in residual kidney function and peritoneal membrane transport — guide ongoing adjustments to cycle number, fill volume, and dwell time, keeping the prescription matched to the patient's evolving needs.
- weekly Kt/V: Adequacy metric (urea clearance, peritoneal + residual renal)
- every 6–12 mo: Typical testing interval (or after a clinical change)
- gradual decline: Residual function trend (prescription intensifies over time)
- can shift: Transport status (e.g. after peritonitis episodes)
Measuring adequacy and setting targets
Adequacy of peritoneal dialysis is assessed using measures such as weekly Kt/V urea (a normalized measure of urea clearance combining peritoneal dialysate clearance and any remaining residual kidney clearance) and, in some centers, weekly creatinine clearance. These are compared against guideline-informed targets, alongside clinical indicators: the patient's fluid status, blood pressure control, nutritional status, and reported wellbeing.
Residual kidney function is weighed carefully — even a small amount of native urine output contributes meaningfully to solute clearance and fluid balance, so adequacy assessment considers total clearance (peritoneal plus residual renal), not the cycler's output in isolation. As residual function declines over time, a larger share of the clearance burden shifts onto the cycler program.
Iterative refinement of cycle number, volume, and dwell time
When adequacy testing or clinical review indicates the current prescription is insufficient (or unnecessarily intensive), the cycler settings are adjusted rather than left static:
• Increasing cycle number or fill volume: raises total overnight dialysate throughput and clearance, used when Kt/V falls short of target or residual function has declined. • Adjusting dwell time: shortened for patients whose repeat PET testing shows a shift toward faster transport (where longer dwells would waste ultrafiltration potential), or lengthened for patients trending toward slower transport. • Revisiting the last-fill strategy: a patient who develops declining residual function may move from a "dry day" to an icodextrin last fill, or from dextrose to icodextrin, to preserve daytime ultrafiltration. • Re-testing after clinical events: an episode of peritonitis can transiently or permanently alter membrane transport characteristics, prompting a repeat PET and a corresponding reprogramming of the cycler once the episode resolves.
This creates a continuing loop — program, monitor, test, and reprogram — that keeps automated peritoneal dialysis individualized across the full course of a patient's therapy, rather than treating the initial prescription as fixed.
Prescription review is never a one-time event: the cycler's program is expected to change as the patient's residual kidney function, body size, membrane transport, and life circumstances change over years of therapy.
This simulation teaches users how to program an automated peritoneal dialysis (APD) cycler. It covers the setup process, programming parameters for different exchange cycles, and monitoring techniques to ensure effective and safe dialysis treatment.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install