Variable updatePatientSchemaConst
updatePatientSchema: ZodObject<
{
email: ZodOptional<ZodString>;
givenName: ZodOptional<ZodString>;
familyName: ZodOptional<ZodString>;
birthdate: ZodOptional<ZodString>;
sex: ZodOptional<ZodEnum<{ male: "male"; female: "female" }>>;
lang: ZodOptional<
ZodEnum<
{
en_US: "en_US";
es_US: "es_US";
de_CH: "de_CH";
fr_CH: "fr_CH";
it_CH: "it_CH";
},
>,
>;
},
$strict,
> = ...
Body of
PATCH /v1/patients/{id}— the editable subset.phone,externalId, and tenancy are NOT patchable (the strict schema rejects them), and at least one field must be present.