API ReferenceEvent Referencebooking.visit.created.v1

booking.visit.created.v1

Constant

import { EVENT_NAMES } from "@platform/contracts";
 
EVENT_NAMES.BOOKING_VISIT_CREATED_V1;

Publishers

Subscribers

No service currently subscribes to this event.

Payload schema

z.object({
  visit_id: z.string(),
  patient_id: z.string(),
  provider_id: z.string(),
  brand_id: z.string(),
  slot_start: z.string().datetime(),
  slot_end: z.string().datetime(),
  visit_type: z.string(),
  created_at: z.string().datetime(),
}

Delivery semantics

  • At-least-once delivery. Consumers must dedupe by event ID.
  • Fanned out to both NATS (in-cluster) and EventBridge (durable). See Events concept.