BladderVoidingEfficiencyAnalyzer

Bladder Voiding Efficiency Analyzer

medical_devices RPH Tc-99m renal imaging nuclear medicine CSV→JSON URS & FS rule-based
Open selection

Utility description: Bladder Voiding Efficiency Analyzer

Bladder Voiding Efficiency Analyzer — Bladder emptying efficiency analysis tool

ℹ️  Utility calculates the percentage of activity evacuation from the bladder:
    • Voiding efficiency (normal >90%)
    • Residual activity percent (normal <10%)
    • Correction for background and Tc-99m radioactive decay

⚠️  CRITICAL: Low efficiency (<80%) may indicate pathology!
    Residual activity creates artifacts on kidneys and increases radiation dose.
    Important for differential diagnosis of obstructions and refluxes.

Usage:
  BladderVoidingEfficiencyAnalyzer.exe                            → demo mode (console output)
  BladderVoidingEfficiencyAnalyzer.exe input.csv output.json      → evaluate your data

Input format:
PatientID,StudyDate,PreVoidCounts,PostVoidCounts,BackgroundCounts,AcquisitionTimePreSec,AcquisitionTimePostSec,DecayCorrectionFactor,ResidualVolumeML

Example:
  PAT-RENAL-001,2026-07-21,150000,15000,500,60,60,1.05,20.0

— WHY IS THIS NEEDED?
During dynamic renography (with Tc-99m MAG3 or DTPA), the bladder accumulates radioactive urine.
Complete emptying is critical for:
• Accurate assessment of kidney function (to prevent bladder activity from "shining through" to the pelvis)
• Detection of vesicoureteral reflux (VUR)
• Diagnosis of neurogenic bladder or bladder neck obstruction
• Reducing patient radiation dose (residual urine continues to irradiate tissues)

⚠️  CRITICAL:
• Voiding efficiency >90% — normal for a healthy adult.
• Residual activity <10% — ensures no significant artifacts.
• Decay correction — mandatory if more than 5-10 minutes passed between "pre" and "post" frames.
• Background correction — necessary to account for scattered radiation from surrounding tissues.

Key features:
• Automatic calculation of Net Counts with background subtraction.
• Consideration of Tc-99m radioactive decay (T½=6h) between measurements.
• Calculation of Residual Activity Percent.
• Integration with residual urine volume data (if available).
• Generation of warnings for suspected pathological urine retention.

Critical parameters:
• Voiding efficiency: >90.0%
• Residual activity: <10.0%
• Net pre-void counts: >0
• Decay factor: 1.0–1.5 (typical range for short intervals)

💡 Usage tips:
1. Bladder ROI (Region of Interest) must be identical on "pre" and "post" frames.
2. Background is measured in an area near the bladder but outside the projection of kidneys and intestines.
3. Patient should drink water before the study to ensure sufficient diuresis.
4. If efficiency is low (<80%), repeat scanning after catheterization or ultrasound measurement of residual volume is recommended.
5. In children, normal efficiency may be lower due to incomplete sphincter control.

⚠️ Note: Accumulation of Tc-99m in the bladder is not a side effect but an expected excretion pathway. However, the inability to completely empty the bladder is a serious clinical sign. This utility helps quantify this parameter, converting visual assessment into precise numbers for the medical record.

input.csv

PatientID,StudyDate,PreVoidCounts,PostVoidCounts,BackgroundCounts,AcquisitionTimePreSec,AcquisitionTimePostSec,DecayCorrectionFactor,ResidualVolumeML
PAT-RENAL-001,2026-07-21,150000,15000,500,60,60,1.05,20.0
PAT-RENAL-002,2026-07-21,120000,60000,400,60,60,1.02,150.0
PAT-RENAL-003,2026-07-21,180000,5000,600,60,60,1.08,10.0

URS & FS — user requirements and functional specification

URS — User Requirements Specification

  • The utility shall accept input.csv with the headers defined by the data contract.
  • Before calculation, the utility shall detect missing fields, type errors and invalid values.
  • The utility shall deterministically perform “Bladder Voiding Efficiency Analyzer”.
  • The checks shall include the following criteria: Voiding efficiency: >90.0%; Residual activity: <10.0%; Net pre-void counts: >0; Decay factor: 1.0–1.5 (typical range for short intervals).
  • Each processed record shall receive a clear PASS, WARNING or FAIL status with the reason.
  • The result shall be written to output.json and retain the source values used for the checks.
  • The calculation supports qualified review; it is not an autonomous diagnosis or prescription.

FS — Functional Specification

  1. Run BladderVoidingEfficiencyAnalyzer.exe in demo mode or with input.csv output.json arguments.
  2. Read UTF-8 CSV and validate the header and mandatory columns.
  3. Convert values to the expected types and validate admissibility.
  4. Perform the calculation or rule checks for “Bladder Voiding Efficiency Analyzer”.
  5. Create individual check results and the overall status.
  6. Write machine-readable JSON; invalid input shall not appear as a successful result.

input.csv example

PatientID,StudyDate,PreVoidCounts,PostVoidCounts,BackgroundCounts,AcquisitionTimePreSec,AcquisitionTimePostSec,DecayCorrectionFactor,ResidualVolumeML
PAT-RENAL-001,2026-07-21,150000,15000,500,60,60,1.05,20.0

Minimum output.json structure

{
  "utility": "BladderVoidingEfficiencyAnalyzer",
  "source": "input.csv",
  "status": "PASS|WARNING|FAIL",
  "checks": [
    {
      "parameter": "example",
      "status": "PASS",
      "message": "criterion satisfied"
    }
  ],
  "errors": []
}

Before operational use

  • Limits and coefficients shall be approved before operational use.
  • After an executable or rule change, repeat the affected tests.
  • Retain the source CSV and JSON result together in the controlled process.

Included in packages

Radiopharmaceutical Diagnostics and Therapy QC Suite

36 utilities for clinically oriented radiopharmaceutical and workflow quality control: PET/SPECT tracers, the Tc-99m renal workflow, PRRT, PSMA therapy, targeted alpha therapy, radioembolization, bone-pain palliation, immuno-PET and generator-based radionuclide control.

Open

RPH isotope family: Tc-99m

Tc-99m radiopharmaceuticals, kit preparation, generator control, SPECT workflows and calculation utilities.

Open

RPH organ/system: brain and CNS

Brain perfusion, dopamine transporter, amyloid/tau, receptor imaging and neurological SPECT/PET.

Open

RPH organ/system: renal and urinary

Renography, GFR/ERPF, renal uptake, DMSA/MAG3/DTPA and bladder-related workflows.

Open

RPH Tc-99m Renal Radiopharmaceutical and Imaging QC Suite

16 utilities covering the Tc-99m renal workflow: generator eluate and Mo-99 breakthrough, Sn(II), labeling stoichiometry and pH, radiochemical purity and stability of MAG3, DTPA, DMSA(III) and glucoheptonate, gamma-camera uniformity, renal uptake and plasma clearance, bladder voiding efficiency, patient dosimetry and decay-in-storage waste management.

Open

RPH use case: Tc-99m renal and nephrourology

Renal radiopharmaceuticals and calculation workflows: MAG3, DTPA, DMSA, glucoheptonate, generator Tc-99m, dynamic renography, GFR/ERPF and dosimetry.

Open

RPH workflow: imaging QC and quantitative interpretation

Acquisition, uptake, clearance, perfusion, transit, ejection fraction, segmentation and quantitative imaging.

Open

RPH workflow: stability, storage, decay and waste

Kinetic stability, shelf life, decay correction, expiry, storage, trend and radioactive waste.

Open