MDT event consumer contract ​
The world health simulation belongs to np_medic. np_mdt-medic should become a consumer that reads local events
and delivers accepted medical records to the MDT HTTP API.
Consumer responsibilities ​
- Subscribe to
np_medic:eventonly whilenp_medicis started. - Require
envelope.consent.mdt == trueand ignore unknown event types. - Deduplicate by
eventId; retain durable retries, receipts and dead-letter reporting. - Map event types and payloads to the existing MDT REST schema.
- Correlate local
patientRefvalues to MDT patient ids afterpatient.createis accepted. Keep that remote-id ledger in the consumer, not in np_medic.
np_mdt-medic must not capture damage, own health state, register treatment items, dispatch calls, revive players, manage hospital beds or write death state bags. Emergency consent override is not currently available.
Current boundary ​
np_medic emits a versioned local envelope and typed aliases, but not every reserved event type is generated yet.
The contract and real event inventory are documented in events. This workspace change does not
edit md-stempeluhr or its consumer.