Cross-platform disability-inclusive medical simulation runtime for web, iOS and Android.
- Shared TypeScript contracts for physiology, AAC, authority, access, systems, uncertainty and evidence.
- Typed
SimulationEventtransport.
- Central
SimulationKernelowns world state, event audit and simulation time. - AAC composition can pause simulation time.
- Protected invariants prevent communication failure from being converted into loss of self-authority.
- UI sends semantic scenario events and renders snapshots.
- UI does not own clinical/world truth.
DeclarativeScenarioEngineowns branch progression, delayed consequences and node state.
- Case logic is represented as data: trigger → conditions → delay → effects → transition.
- Rules can request domain-model dynamics instead of directly hard-coding every consequence.
VNNDynamicsCoordinatorroutesdynamics.requestedevents to registered modules.- Included example modules:
respiratory-dynamicsaccess-dynamics
- Dynamics return proposals with confidence, rationale and provenance before world-state events are committed through the kernel.
communication failure != incapacity
disability != acute deterioration
model proposal != clinical truth
equipment availability != indication
npm install
npm run typecheck
npm test
npm run webnpm run build:webThe resulting dist/ directory is configured for Vercel through vercel.json.
The UI tests use React Native Testing Library v14 interaction patterns and query the interface by accessible roles and labels rather than implementation details.
The runtime tests cover:
- AAC restoration without authority transfer
- simulation-clock pause during AAC composition
- delayed declarative deterioration
- VNN dynamics invocation
- protected authority invariants
MERT Engine is educational simulation software. Scenario physiology and dynamics are authored educational models, not real-patient prediction, diagnosis, treatment guidance or device-control logic.