Variable createPhysicianSchemaConst
createPhysicianSchema: ZodObject<
{
externalId: ZodString;
email: ZodString;
givenName: ZodOptional<ZodString>;
familyName: ZodOptional<ZodString>;
languages: ZodOptional<
ZodArray<
ZodEnum<{ en: "en"; es: "es"; de: "de"; fr: "fr"; it: "it" }>,
>,
>;
sendPortalInvite: ZodOptional<ZodBoolean>;
},
$strict,
> = ...
Body of
POST /v1/physicians.Creates the backing portal account (keyed by
email) plus the physician profile. NOT an upsert — no field can be changed by re-POSTing, but an IDENTICAL repeat (sameexternalId, sameemailcase-insensitively) is idempotent: 200,givenName/familyNamerefreshed, never a second account. Repeating anexternalIdwith a different email yields409 external_id_conflict; a newexternalIdwith an email that already backs a portal account yields409 email_in_use. By default no invitation email is sent — setsendPortalInvite: trueto invite the physician to the Natzar portal immediately, or callPOST /v1/physicians/{id}/portal-invitelater.