Variable createAsyncConsultSchemaConst
createAsyncConsultSchema: ZodObject<
{
patientId: ZodOptional<ZodString>;
externalPatientId: ZodOptional<ZodString>;
context: ZodOptional<ZodString>;
consent: ZodEnum<{ collected: "collected"; embed: "embed" }>;
},
$strict,
> = ...
Body of
POST /v1/async-consults.consentdeclares how patient consent is handled:'collected'— YOU already collected consent in your own UX; the consult skips the invite phase and is queued/assigned immediately.'embed'— the<natzar-async>embed collects consent from the patient; the consult staysinviteduntil they answer, and the create response carries asessionTokenfor the widget.