Interactive Medical Device Standard Testing
{"id":"record-001","timestamp":"2025-01-15T10:00:00Z","status":"active","value":100}Response: {"success": true, "data": {...}}
Body: {"value": 100, "timestamp": "..."}
The WIA Sleep Monitoring simulator demonstrates the WIA-MED-021 wire format with synthetic session data. The Data tab generates random sleep-stage envelopes; the Calculator tab runs a sample sleep-quality scoring algorithm; the Test tab walks the conformance-suite happy path. Each tab is self-contained so the simulator runs entirely in the browser without any server-side state.
The simulator is a teaching tool, not a substitute for the conformance test suite at https://github.com/WIA-Official/wia-sleep-monitoring-conformance. For a hosted reference implementation see wia/sleep-monitoring-host:1.0.0 on the WIA registry, which bundles a SQLite-backed store with AASM-compliant scoring suitable for small-to-medium clinical-research deployments.