Med Fabric Exam
mf_exam is the deployable Phoenix + LiveView remote clinical examination
server in Med Fabric. Built on
med_ex, it composes encounter domain rules,
transactional PostgreSQL persistence, and idempotent HL7 FHIR R4 delivery into
a single review and acquisition server.
Installation
Add mf_exam to your list of dependencies in mix.exs:
def deps do
[
{:mf_exam, "~> 0.1.0"}
]
endmf_exam requires Elixir ~> 1.20 (OTP 29), PostgreSQL for durable encounter
and outbox storage, and the base med_ex ~> 0.2.0 SDK.
Workflows
- Paired acoustic & ECG examination: Admits enrolled handheld devices over TLS, ingests resumable waveform replays, persists authoritative evidence and progress, and renders verified acoustic segments, explicit gaps, and clock uncertainty bounds for clinical review.
- Pulse-oximetry spot checks (PLXS): Accepts replayed handheld spot-check collections, tracks clinician acceptance or repeat requests, and commits each accepted observation and its retryable FHIR delivery intent atomically.
- Browser examination: Hosts direct two-way WebRTC talkback alongside lossless 48 kHz mono PCM16LE WAV capture and clinician-entered pulse rate.
- Optional isolated monitor (
mf_preview): Forwards latest-only software monitor frames to an isolated loopbackmf_previewBEAM process and issues short-lived signed viewer tokens without exposing database credentials or clinical artifacts.
Guides
- Getting Started — Prerequisites, configuration, and Mix release startup.
- Browser to Record — Two-way talkback, lossless WAV capture, review, and FHIR R4 export.
- Handheld Integration — Device admission, TLS replay, and spot-check review.
- Architecture — Domain, store, interop, and web boundaries.
Optional Legacy Media Profile
The published Hex package depends only on base :med_ex (zero native media or
Git dependencies). When running from a source checkout, set
MF_EXAM_LEGACY_MEDIA=1 to build the optional in-VM browser media profile in
its own isolated Mix context.
License
Released under the MIT License.