定制 davecook/healthcare-voc-compliance 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

davecook/healthcare-voc-compliance

Composer 安装命令:

composer require davecook/healthcare-voc-compliance

包简介

Healthcare VOC compliance calculator — computes VOC exposure, OSHA PEL comparison, and multi-jurisdiction regulatory compliance for cleaning products.

README 文档

README

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.

davecook/healthcare-voc-compliance 适用场景与选型建议

davecook/healthcare-voc-compliance 是一款 基于 Python 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「healthcare」 「cleaning」 「compliance」 「facility-management」 「voc」 「osha」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 davecook/healthcare-voc-compliance 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 davecook/healthcare-voc-compliance 我们能提供哪些服务?
定制开发 / 二次开发

基于 davecook/healthcare-voc-compliance 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 37
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Python

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-07