# Create a patient. Use this endpoint to create a patient entity. Endpoint: POST /patients Version: 1.0.0 Security: ## Request fields (application/json): - `firstName` (string,null, required) Patient first name. - `lastName` (string,null, required) Patient last name. - `languageSpoken` (string) Patient language. - `dateOfBirth` (string,null) Patient date of birth. - `gender` (string,null) Patient gender. Enum: "female", "male", "unknown", null - `visibilityOption` (string,null) Enum: "shared", "private", null - `externalId` (string,null) Patient external app identifier. - `externalCreatedAt` (string,null) Patient creation date from external app. - `email` (string,null) Patient email address. - `phone` (string,null) Patient phone number. Example: "+33757590893" - `anonymousCode` (string,null) Patient anonymous code. ## Response 201 fields (application/json): - `uuid` (string) Patient unique identifier. - `firstName` (string,null, required) Patient first name. - `lastName` (string,null, required) Patient last name. - `languageSpoken` (string) Patient language. - `createdAt` (string) Patient creation date. - `updatedAt` (string) Patient update date. - `synchronizedAt` (string,null) Patient synchronization date. - `dateOfBirth` (string,null) Patient date of birth. - `gender` (string,null) Patient gender. Enum: "female", "male", "unknown", null - `user` (any) - `visibilityOption` (string,null) Enum: "shared", "private", null - `email` (string,null) Patient email address. - `phone` (string,null) Patient phone number. Example: "+33757590893" - `anonymousCode` (string,null) Patient anonymous code. ## Response 400 fields (application/ld+json): - `@context` (any) - `@id` (string, required) - `@type` (string, required) - `title` (string) A short, human-readable summary of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `status` (number) - `instance` (string,null) A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. - `type` (string) A URI reference that identifies the problem type - `description` (string,null) ## Response 403 fields (application/ld+json): - `@context` (any) - `@id` (string, required) - `@type` (string, required) - `title` (string) A short, human-readable summary of the problem. - `detail` (string) A human-readable explanation specific to this occurrence of the problem. - `status` (number) - `instance` (string,null) A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. - `type` (string) A URI reference that identifies the problem type - `description` (string,null) ## Response 422 fields (application/ld+json): - `@context` (any) - `@id` (string, required) - `@type` (string, required) - `status` (integer) - `violations` (array) - `violations.propertyPath` (string) The property path of the violation - `violations.message` (string) The message associated with the violation - `detail` (string) - `description` (string) - `type` (string) - `title` (string,null) - `instance` (string,null)