Skip to main content

Healthcare VOC Compliance Calculator

PyPI version npm version Crates.io Gem Version Hex.pm License: MIT

An open-source calculator and dataset collection for evaluating VOC (Volatile Organic Compound) exposure from cleaning products used in healthcare facilities. Covers 26 jurisdictions across the United States and Canada.


What This Does

Given a cleaning product's VOC content, a room's geometry, and ventilation parameters, this tool calculates:

  • VOC concentration (mg/m³) at steady state during a cleaning cycle
  • OSHA PEL comparison — what percentage of the Permissible Exposure Limit the concentration represents
  • Time to safe reentry — how long until VOC concentration drops below 10% of PEL
  • Annual VOC load — total VOC released per year at the given cleaning frequency
  • Multi-jurisdiction compliance — whether the product meets VOC limits in each of 26 jurisdictions

Datasets

Two CSV datasets are included in datasets/:

Dataset A: VOC Regulatory Limits by Jurisdiction (650 rows)

VOC limits (g/L) for 25 cleaning product categories across 26 jurisdictions:

  • US Federal (EPA 40 CFR Part 59 Subpart C)
  • California (CARB Consumer Products Regulations)
  • 12 OTC states (CT, DE, ME, MD, MA, NH, NJ, NY, PA, RI, VA, DC)
  • 8 states with independent regulations (MI, CO, IL, IN, IA, OH, UT, WA)
  • Canada Federal (SOR/2021-268)
  • Ontario, British Columbia, Quebec

Each row includes the product category, numeric VOC limit, regulation name, effective date, and healthcare-specific context notes.

Dataset B: Healthcare Cleaning Product VOC Compliance Matrix (5,000 rows)

Synthetic product data modeled on real institutional cleaning product categories:

  • VOC content (g/L concentrate and effective diluted)
  • Certifications (Green Seal GS-37, UL ECOLOGO, EPA Safer Choice, UL GREENGUARD Gold, LEED v4)
  • Per-jurisdiction compliance flags (compliant/non-compliant in each of 26 jurisdictions)
  • Healthcare approval status, IPAC compatibility rating
  • Pricing (CAD/litre), dilution ratios, coverage rates
  • Recommended healthcare facility types

Calculation Model

effective_voc     = product_voc_g_per_L × dilution_ratio
product_applied_L = room_sqft / coverage_sqft_per_L
total_voc_mg      = effective_voc × product_applied_L × 1000

# Single-zone mass balance with ventilation
emission_rate     = total_voc_mg / cleaning_duration_hr
ventilation_rate  = air_changes_per_hour × room_volume_m3
steady_state      = emission_rate / ventilation_rate

osha_pel_percent  = (steady_state / 300) × 100

ASHRAE 62.1-2022 minimum ventilation rates for healthcare spaces are built in as reference values:

Space Type Minimum ACH
Patient room 6
ICU 12
Operating room 20
Exam room 6
Corridor 4
Laboratory 12
Dietary kitchen 10

Engines

The calculation is implemented in seven languages. Each exposes /calculate (POST) and /health (GET) REST endpoints:

Language Directory Package
Python (FastAPI) engines/python/ healthcare-voc-compliance on PyPI
Rust engines/rust/ healthcare-voc-engine on Crates.io
Java engines/java/ io.github.davecookvectorlabs:healthcare-voc-engine on Maven Central
Ruby (Sinatra) engines/ruby/ healthcare_voc_compliance on RubyGems
Elixir (Plug) engines/elixir/ healthcare_voc on Hex.pm
PHP engines/php/ davecook/healthcare-voc-compliance on Packagist
Go (net/http) engines/go/ github.com/DaveCookVectorLabs/healthcare-voc-compliance on pkg.go.dev

Quick Start (Python)

pip install healthcare-voc-compliance
# or run from source:
cd engines/python
pip install -r requirements.txt
python engine.py          # CLI mode — runs sample calculation
python engine.py --serve  # HTTP server on port 8001

API Example

curl -X POST http://localhost:8001/calculate \
  -H "Content-Type: application/json" \
  -d '{
    "room_sqft": 200,
    "ceiling_height_ft": 9,
    "product_voc_g_per_L": 8.0,
    "dilution_ratio": 0.015625,
    "coverage_sqft_per_L": 400,
    "air_changes_per_hour": 6,
    "cleaning_frequency_per_year": 365,
    "product_category": "General Purpose Cleaner",
    "space_type": "patient_room"
  }'

Regulatory Sources


Project Structure

healthcare-voc-compliance/
├── datasets/
│   ├── generate_regulatory_limits.py     # Dataset A generator
│   ├── generate_product_matrix.py        # Dataset B generator
│   ├── voc_regulatory_limits.csv         # 650 regulatory limits
│   └── healthcare_cleaning_products_voc.csv  # 5,000 products
├── engines/
│   ├── python/engine.py                  # Python (FastAPI)
│   ├── rust/src/main.rs                  # Rust
│   ├── java/src/.../VOCCalculator.java   # Java
│   ├── ruby/lib/healthcare_voc_compliance.rb  # Ruby
│   ├── elixir/lib/healthcare_voc.ex      # Elixir
│   ├── php/src/VOCCalculator.php         # PHP
│   └── go/main.go                        # Go
├── notebooks/
│   └── voc_compliance_analysis.ipynb     # Jupyter analysis notebook
├── pdfs/
│   └── generate_pdfs.py                  # PDF white paper generator
├── docs/                                 # Sphinx documentation
└── public/                               # PHP web frontend

License

MIT License. See LICENSE for details.

Maintained by Dave Cook — Binx Professional Cleaning, North Bay and Sudbury, Ontario.

Metadata

Release files for healthcare-voc-compliance 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for healthcare-voc-compliance 0.1.0
File Size Uploaded Provenance Actions
healthcare_voc_compliance-0.1.0.tar.gz 5.7 kB Without provenance Details for healthcare_voc_compliance-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for healthcare-voc-compliance 0.1.0
File Interpreter ABI Platform Actions
healthcare_voc_compliance-0.1.0-py3-none-any.whl Python 3 none any Details for healthcare_voc_compliance-0.1.0-py3-none-any.whl

Total release size: 11.2 kB

Release files / healthcare_voc_compliance-0.1.0.tar.gz

Download URL healthcare_voc_compliance-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d576226703d42b32a155444bf113a605048461608cb8d942c028a834d86d5a32
BLAKE2b-256 checksum
How to use checksums
50461145820de8245fb1105016899759653d3bb03295a46cb58e735579ee1794
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / healthcare_voc_compliance-0.1.0-py3-none-any.whl

Download URL healthcare_voc_compliance-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ab2d958fdf14a39943fd32e21d6741a11acb47c3bffb86fa70ce1a869ca9c71
BLAKE2b-256 checksum
How to use checksums
a403e071b19d03d5040e00a6143375451ad34b9bfc797fcfe4a47f05c98fd2c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for healthcare-voc-compliance 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page