# med_ex v0.2.0 - Table of Contents > Source-preserving waveform and measurement acquisition ## Pages - Overview - [Overview](readme.md) - [Architecture and Composition](architecture_and_roadmap.md) - Integration Guides - [Host Integration and Browser Compatibility](host_integration.md) - [Consumption, Extensions, and Verification](source_development.md) - [Streams, Storage, Clock, and Control](stream_recording.md) - Horizon - [Medical-Device Product Horizon](product_horizon.md) - Release - [Changelog](changelog.md) - [License](license.md) - [Historical MedRTC Changelog](med_rtc_changelog.md) ## Modules - [MedEx.CanonicalJSON](MedEx.CanonicalJSON.md): MEJ1 metadata bytes. Numbers must already be decimal strings. - [MedEx.Capture](MedEx.Capture.md): GenServer that writes indexed mono 48 kHz PCM16LE audio to an immutable, content-addressed WAV file and fans full frames out to a bounded live Opus preview branch. - [MedEx.ClockAlign](MedEx.ClockAlign.md): Exact affine clock bounds from supplied rate and timestamp-error qualifications. - [MedEx.Contract](MedEx.Contract.md): A source contract revision, independent of unchanged package release versions. - [MedEx.ControlInterlock](MedEx.ControlInterlock.md): Pure technical command transitions. All identity and time are supplied. - [MedEx.Evidence](MedEx.Evidence.md): Finalized evidence returned by `MedEx.Capture.finish/1` for a continuous mono 48 kHz PCM16LE WAV acquisition. - [MedEx.Format.Wav](MedEx.Format.Wav.md): Header layout for canonical MedEx PCM WAV files. - [MedEx.FrameFingerprint](MedEx.FrameFingerprint.md): Transport-independent semantic identity. Ingress keeps wire SHA separately. - [MedEx.IntegritySpan](MedEx.IntegritySpan.md): A source fact over a half-open sample range OR a nonempty set of event IDs. - [MedEx.MeasurementEvent](MedEx.MeasurementEvent.md): Sparse exact decimal measurements with explicit missing values and raw provenance. - [MedEx.Preview](MedEx.Preview.md): Legacy preview handle. The peer PID belongs to the configured RTC provider. - [MedEx.Preview.Clock](MedEx.Preview.Clock.md): Tracks an unwrapped 48 kHz RTP media clock across captures for one preview peer. - [MedEx.PreviewProvider](MedEx.PreviewProvider.md): Explicit optional encoder port. start_link options bind owner, format and session ID. A granted offer produces {:med_ex_encoded, operation_id, sample_index, payload} or {:med_ex_encode_failed, operation_id, reason} to that owner. At most one offer is in flight. Native providers belong outside the authoritative VM in the strict deployment profile. These callbacks do not grant storage access. - [MedEx.RTCProvider](MedEx.RTCProvider.md): Optional RTC port. The legacy facade remains base-owned and preserves %MedEx.Preview{pid, track_id}, with pid the real ExWebRTC peer. A provider neither starts nor owns authoritative recording. Legacy provider is fixed for the VM lifetime; a new provider-aware API may use richer handles. - [MedEx.SampleFrame](MedEx.SampleFrame.md): Host-bound waveform value; wire framing alone does not produce an admitted frame. - [MedEx.SegmentRef](MedEx.SegmentRef.md): Immutable native-byte chunk reference. A chunk boundary does not imply a gap. - [MedEx.Serialization](MedEx.Serialization.md): MEJ1 representation of stream descriptors, indexes and receipts. Counter fields are decimal strings, rational rates are ordered pairs and enums are strings. Decode using the field's declared type. Arbitrary protocol payloads use Base64. - [MedEx.StatusEvent](MedEx.StatusEvent.md): Technical observation. A source alarm ID or a sequence number does not establish a waveform boundary. - [MedEx.Storage](MedEx.Storage.md): A single temporary writer owns its adapter state. A commit receipt names the synchronized journal generation and its exclusive sequence/sample boundaries. An unclassified IO error after appending begins is an unknown outcome. - [MedEx.Storage.File](MedEx.Storage.File.md): POSIX single-writer adapter. A host grants each attempt a distinct, trusted local directory. Reconciliation requires prior fencing and confirmed quiescence. Chunks and snapshots are installed exclusively and synced before journal ACKs. - [MedEx.StreamCursor](MedEx.StreamCursor.md): Pure plans. The caller commits proposed state only after the corresponding effect succeeds. - [MedEx.StreamIndex](MedEx.StreamIndex.md): Technical index shape; storage must separately verify object bytes and journal authority. - [MedEx.StreamSpec](MedEx.StreamSpec.md): Immutable regular-waveform descriptor. Unknown calibration is never a unit scale. - [MedEx.StreamWriter](MedEx.StreamWriter.md): One temporary writer per authenticated stream attempt. The host issues the fence, selects a trusted directory and supervises the worker. The owner uses synchronous calls to bound one ingress stream. Push receipts distinguish accepted (volatile) from journal-backed durable boundaries. A timer checkpoint sends the owner `{:med_ex_durable, writer, receipt}`. A call timeout or process exit is an unknown outcome. Reconcile storage before granting a replacement. - [MedEx.Wav](MedEx.Wav.md): Legacy canonical PCM WAV helpers. - [MedEx.Web](MedEx.Web.md): Locates MedEx's packaged browser JavaScript assets. - [MedEx.Wire.Control](MedEx.Wire.Control.md): Bounded JSON device-protocol envelope. The host supplies the allowed operations for a connection/phase and validates each operation's required fields against its authenticated reservation. Nested duplicate keys fail before dispatch. - [MedEx.Wire.FrameV1](MedEx.Wire.FrameV1.md): MEX1 framing only. Authenticate the numeric handle and validate against its descriptor separately.