HomeTotal Parenteral Nutrition FormulationTPN Compounding Pharmacy Sterility Simulator

💧 TPN Compounding Pharmacy Sterility Simulator

This simulator focuses on ensuring sterility in the preparation of parenteral nutrition (PN) solutions in a pharmacy setting. It covers sterile techniques, quality control measures, and the importance of maintaining aseptic conditions to prevent contamination and ensure patient safety.

Total Parenteral Nutrition Formulation2DModerate60 FPS
tpn-compounding-sterility-simulator ↗ Open standalone

The Cleanroom — Engineering Controls That Hold Contamination at Bay

Total parenteral nutrition (TPN) is compounded in a controlled cleanroom suite, not an open pharmacy counter. Primary engineering controls (PECs) — laminar airflow workbenches (LAFW), biological safety cabinets, and compounding aseptic isolators (CAIs) — bathe the critical work zone in continuously HEPA-filtered, unidirectional air, while the surrounding secondary engineering controls (buffer and ante rooms) step air cleanliness down in graded zones. The goal is simple to state and demanding to achieve: keep airborne particulates and viable microorganisms away from every needle, port, and bag spike the moment before it is used.

  • ISO 5: Critical zone air class (≤3,520 particles ≥0.5µm/m³)
  • ISO 7: Buffer room air class (segregated compounding area)
  • 99.97%: HEPA filter efficiency (at 0.3 µm particle size)
  • Unidirectional: PEC airflow pattern (laminar, first-air principle)

Primary and secondary engineering controls

The compounding cleanroom is organized in graded zones of decreasing air cleanliness moving outward from the critical site:

Primary Engineering Control (PEC): • Horizontal or vertical laminar airflow workbench (LAFW), or a compounding aseptic isolator (CAI) / compounding aseptic containment isolator (CACI) • HEPA-filtered air moves in a single direction at constant velocity (~90 ft/min for open-face LAFW), sweeping particulates away from the critical work zone before they can settle on an open vial or port • Maintains ISO Class 5 air (≤3,520 particles ≥0.5µm per cubic meter) at the point of compounding • "First air" principle: nothing may block the filtered airstream between the HEPA filter and the critical site — hands, labels, and equipment must never interrupt that path

Secondary Engineering Controls (the room itself): • Buffer room (or segregated compounding area): houses the PEC, maintained at ISO Class 7 or better, positive pressure relative to adjacent unclassified space, ≥30 air changes per hour • Ante room: transition and garbing zone between the general pharmacy and the buffer room, ISO Class 8, provides a pressure cascade that keeps lower-classified air from migrating inward • Pressure differentials (typically ≥0.02–0.05 inch water column between zones) and directional airflow prevent unfiltered air from being pulled into cleaner zones

Together, PEC and secondary controls create a nested set of increasingly clean environments — general pharmacy → ante room → buffer room → PEC critical zone — so that by the time a needle punctures a port, it is working inside the cleanest air in the building.

Certification, monitoring, and why controls alone are not enough

Engineering controls are certified at installation and re-certified at defined intervals (typically every six months, or after any relocation, repair, or major disruption): airflow velocity, HEPA filter integrity (DOP/PAO leak testing), particle counts, and room pressure differentials are all measured against defined action limits.

But a certified, functioning LAFW is a necessary condition for sterility assurance — not a sufficient one. A perfectly functioning hood can still yield a contaminated preparation if the technique used inside it is flawed: blocking first air with a hand, touching a needle tip, or working too close to the edge of the workbench where laminar flow is disrupted. Engineering controls set the stage; aseptic technique (the next stage of this simulation) is what actually protects the product.

Because a compounded TPN bag receives no terminal sterilization step — unlike a commercially manufactured, autoclaved IV fluid — everything upstream of the finished bag (the room, the hood, the gloves, the manipulation) is the entire sterility assurance system. There is no downstream kill step to correct an upstream lapse.

Aseptic Compounding Technique — The Last Line of Defense

Because the finished TPN admixture cannot be terminally sterilized, every step of manual manipulation — garbing, hand hygiene, vial and port disinfection, and the physical motion of drawing up and transferring sterile components — must itself preserve sterility. Aseptic technique is a learned, observable, and re-certifiable skill: pharmacy personnel are trained, checked by direct observation, and periodically re-validated through media-fill testing before they are permitted to compound high-risk sterile preparations like TPN.

  • ~9: Garbing sequence steps (shoe covers to sterile gloves, in order)
  • ≥30 s: Hand hygiene duration (antimicrobial or alcohol-based scrub)
  • ≥10 s: Alcohol swab contact/dry time (per port/vial septum before use)
  • 2×/yr: Gloved fingertip sampling (minimum competency re-check)

Garbing and hand hygiene, in the order that protects the product

Personal protective garb is donned in a specific low-to-high, dirty-to-clean sequence in the ante room, ending immediately before entry into the buffer room:

1. Remove outer garments, jewelry, and visible cosmetics that shed particles 2. Don dedicated shoe covers or shoes, then a head/facial hair cover and, where required, a face mask 3. Perform hand and forearm hygiene: hands and forearms washed with an antimicrobial soap for at least 30 seconds, dried with a low-lint disposable towel 4. Don a non-shedding gown with sleeves that fit snugly at the wrist 5. Immediately before entering the buffer room (or just before working at the PEC), perform an alcohol-based hand rub and don sterile, powder-free gloves 6. Gloves are re-disinfected with sterile 70% isopropyl alcohol periodically throughout compounding and any time they touch a non-sterile surface

Each step exists to remove a specific contamination vector — skin flora, shed fibers, hair, and surface contact residue — before the compounder's hands ever approach a critical site.

Manipulation technique at the critical sites

Inside the PEC, technique focuses on protecting "critical sites" — any point where a sterile product could be exposed to contamination, such as vial septa, ampule necks, syringe tips, and IV bag ports:

• First air is never blocked: hands and equipment are positioned so HEPA-filtered air reaches the critical site directly, without passing over a hand, sleeve, or nonsterile object first • Vial stoppers and injection ports are disinfected with sterile 70% isopropyl alcohol and allowed to dry before puncture • Work is performed at least 6 inches inside the front edge of a horizontal LAFW, where laminar airflow is undisturbed • Components (base solutions, electrolytes, trace elements, vitamins, lipid emulsion) are added in a defined, validated sequence to avoid physical incompatibilities as well as contamination • Gloved fingertips avoid touching any surface that will contact the product — needle shafts, syringe tips, or the fluid path

Because TPN combines multiple additives from multiple source containers in a single high-risk compounding session, the number of manipulations — and therefore the number of opportunities for a technique lapse — is higher than for a simple single-additive IV preparation. This is exactly why TPN is classified as a high-risk category compounded sterile preparation (CSP), carrying stricter technique, testing, and beyond-use date requirements than lower-risk preparations.

Personnel competency is not assumed — it is demonstrated. Compounding staff must pass an initial media-fill test (compounding a mock preparation with growth media instead of drug, then incubating to confirm no microbial growth) plus gloved fingertip and thumb sampling, and must repeat both at defined intervals for as long as they compound high-risk preparations like TPN.

Beyond-Use Dating — Where Sterility Assurance Meets Chemical Stability

Every compounded TPN bag is labeled with a beyond-use date (BUD): the date and time after which the preparation must not be administered. Unlike a manufactured drug's expiration date — set from real-time stability studies — a compounded preparation's BUD is a conservative limit set by two independent constraints: how long sterility can reasonably be assured given the compounding conditions, and how long the specific chemical formulation remains physically and chemically stable.

  • ≤9 days: Sterility-limited BUD (refrigerated) (typical high-risk CSP default ceiling)
  • ≤24–48 h: Room-temperature BUD (once removed from refrigeration)
  • Shorter of two: Governing constraint (sterility limit vs. stability limit)
  • Dextrose·AA·lipid·electrolytes: Multi-component formulation (each with its own stability profile)

Two independent limits, and the BUD is whichever is shorter

A TPN beyond-use date is never set by sterility alone or stability alone — it is bounded by both, and the shorter of the two always governs:

Sterility assurance limit: • Reflects the risk level of the compounding process (TPN is high-risk: multiple sterile components combined via multiple manipulations), the environment it was prepared in, and whether sterility testing was performed on the specific batch • Without additional sterility testing, high-risk CSPs default to conservative ceilings (commonly on the order of days when refrigerated, and far shorter — typically well under two days — at room or body temperature) precisely because a small population of contaminating organisms, if present, has time to multiply • The sterility clock effectively resets to a much shorter window once the bag is removed from refrigeration for administration, because warmer temperatures favor microbial growth

Chemical/physical stability limit: • TPN is a genuinely complex mixture: dextrose, amino acids, electrolytes, trace elements, vitamins, and often a lipid emulsion, all in one container • Calcium and phosphate can precipitate if concentrations, order of mixing, pH, or temperature fall outside validated ranges — an invisible-until-catastrophic incompatibility • Lipid emulsions can "crack" (visible oiling-out) if the emulsion is destabilized by electrolyte content, pH, or time • Certain vitamins (notably ascorbic acid and some B vitamins) degrade over time and are sensitive to light exposure

Because either limit can be the binding constraint depending on the specific formulation and storage conditions, BUD assignment is a deliberate, case-by-case calculation — not a single fixed number applied to every bag.

Why the BUD drives storage and administration timing

The beyond-use date is not a formality on the label — it directly shapes how the bag is stored and how the administration window is planned:

• Refrigerated storage extends the sterility-limited portion of the BUD by slowing microbial growth, but the bag must be brought to room temperature and inspected before infusion • Once infusion begins (or once removed from refrigeration for use), a much shorter room-temperature/in-use clock applies — reflecting both faster potential microbial growth at body/room temperature and, for lipid-containing admixtures, a finite window before physical stability of the emulsion becomes a concern • Standard hang-time limits for lipid-containing parenteral nutrition are commonly capped well under 24 hours of continuous infusion, independent of the bag's overall BUD, specifically to limit the time any contamination (however unlikely) has to proliferate at body-adjacent temperature • Pharmacy, nursing, and the patient/caregiver (in home infusion) all rely on the same BUD to coordinate compounding schedules, delivery timing, and discard timing — a bag administered even a few hours past its BUD has left the window the sterility assurance process was designed to guarantee

A BUD is a probabilistic sterility-assurance boundary, not a guarantee that a bag becomes unsafe the instant it passes. That is exactly why it is set conservatively: the entire point is to keep administration comfortably inside the window where the compounding process's sterility assurance was validated to hold.

Quality Assurance Testing and Environmental Monitoring — Verifying the Process Stays in Control

A cleanroom that was compliant at certification and personnel who passed their last competency check are not, on their own, proof that today's TPN bag is sterile. Ongoing environmental monitoring of the compounding space and periodic quality-assurance testing of personnel technique exist to catch drift — a failing HEPA filter, a breach in gowning discipline, a surface that is no longer being disinfected effectively — before it turns into a contaminated patient-ready product.

  • Routine: Viable air sampling (volumetric air sampler, PEC + room)
  • Routine: Surface contact plates (work surfaces, pass-throughs, floors)
  • Periodic: Gloved fingertip testing (per compounder, defined interval)
  • Periodic: Media-fill re-validation (mock high-risk compounding run)

What gets monitored, and why each check exists

Environmental monitoring is a structured, scheduled program — not a one-time inspection — covering both the air and the surfaces personnel and equipment touch:

Viable air sampling: • A volumetric air sampler draws a known volume of air from the PEC and surrounding buffer/ante rooms onto growth media, which is incubated and read for colony-forming units (CFU) • Results are compared against action levels appropriate to each zone's ISO classification — the critical ISO 5 zone has the tightest limit, with looser (but still defined) limits in ISO 7 and ISO 8 areas • A rising trend, even if still technically within limits, is itself a signal worth investigating before it becomes an excursion

Surface sampling (contact/settle plates): • Work surfaces, pass-through chambers, floors, and equipment are periodically sampled with contact ("RODAC") plates or settle plates • Surfaces are chosen to represent both high-touch and hard-to-clean locations

Personnel monitoring: • Gloved fingertip and thumb sampling checks whether a compounder's aseptic technique is actually keeping their gloves free of viable organisms during real compounding activity, not just during a training exercise • Findings are compounder-specific and feed directly back into individual competency status

All monitoring data is trended over time, not just evaluated pass/fail on the day it is collected — a slow upward drift across weeks can reveal a developing problem long before any single sample would flag as out-of-limits.

Responding to an out-of-limits result

When an environmental sample exceeds its action level, the response is a structured investigation, not a shrug:

1. The finding is documented and escalated immediately to pharmacy quality assurance leadership 2. An investigation identifies probable cause: equipment malfunction (HEPA filter integrity, airflow velocity drift), a breach in cleaning/disinfection procedure, a gowning or technique lapse, or an environmental disruption (construction, traffic, humidity) 3. Compounding in the affected area may be suspended until the cause is identified and corrected 4. Corrective actions are implemented (equipment repair or recertification, retraining, revised cleaning procedures) and verified effective through repeat sampling 5. Depending on timing and findings, previously compounded preparations from the affected period may need to be evaluated for potential impact

This is exactly the purpose served by the "environmental monitoring result" control in this simulation: an out-of-limits finding does not mean every bag compounded that day was necessarily contaminated, but it does mean the sterility assurance process itself needs to be verified and restored before compounding continues.

Environmental monitoring and personnel competency testing are the feedback loop that keeps the entire sterility assurance system — cleanroom, hood, garbing, and technique — honest over months and years of continuous use, not just on the day it was first certified.

Final Product Verification — The Last Check Before the Bag Leaves the Pharmacy

Immediately before a compounded TPN bag is released for dispensing, a final visual inspection and an independent verification against the calculated formulation order take place. This step exists to catch the kinds of errors that engineering controls and good aseptic technique do not, by themselves, prevent — a wrong ingredient, an incorrect volume, a calculation error, or a visible sign that something in the bag has gone physically wrong.

  • 100%: Visual inspection (every compounded bag, before release)
  • Independent check: Order verification (against original calculated order)
  • Precipitate, color, clarity: Checked for (plus label/order agreement)
  • Bag held, not dispensed: Outcome if abnormal (pending investigation)

What the final visual inspection looks for

The finished TPN bag is inspected against a strong light source (and, where available, against both a light and dark background) for:

• Precipitation or crystal formation — most critically calcium-phosphate precipitates, which can be dangerously fine and difficult to see with the naked eye, making adherence to validated compounding order and concentration limits the primary preventive control, with visual inspection as a backup catch • Cracking or oiling-out of the lipid emulsion — visible as a change in the uniform milky appearance, oil droplets, or separation, indicating the emulsion has been destabilized • Abnormal color or turbidity inconsistent with the expected appearance of the specific formulation • Container integrity — leaks, seal defects, or damage to the bag itself • Correct final volume, consistent with what was calculated and compounded

Any abnormal finding results in the bag being held back from dispensing pending investigation, rather than being sent forward on the assumption the issue is cosmetic.

Verification against the calculated order

In parallel with the visual check, the finished preparation is verified against the original calculated formulation order — typically by a pharmacist independent of the compounding step itself, and often supported by gravimetric or barcode-based verification technology that cross-checks each additive as it is drawn up:

• Patient identifiers, formulation components, and final volumes on the compounding label are checked against the physician's order and the pharmacy's calculated worksheet • Component-level verification (gravimetric weight checks or scanned barcodes for each additive) can catch a wrong-vial or wrong-volume error at the moment it happens, rather than only at the end • Any discrepancy between what was ordered, what was calculated, and what was actually compounded halts release until it is resolved

This final step is deliberately independent of the compounding process itself — a second, different set of eyes checking the same product against the same order is far more likely to catch an error than relying on the compounder alone to catch their own mistake.

Final product verification is the point where sterility assurance and accuracy assurance meet: a bag can be perfectly sterile and still be the wrong formulation for the patient. Catching either failure mode before the bag leaves the pharmacy is the entire purpose of this last checkpoint.
⚙ Under the hood

This simulator focuses on ensuring sterility in the preparation of parenteral nutrition (PN) solutions in a pharmacy setting. It covers sterile techniques, quality control measures, and the importance of maintaining aseptic conditions to prevent contamination and ensure patient safety.

CanvasBiomedicine

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)