Create a patient
Create one new patient in e-Oficlinic using the clinic-confirmed legal identity, contact and classification fields. Use only with verified authority to register this person and explicit confirmation of their details. Requires confirm true; repeating the identical request answers the recorded outcome, with no idempotency key needed. An existing patient is never changed. An uncertain result must be checked with lookup_patient and must not be sent again. The result contains no patient data. Verify the saved patient with lookup_patient before attempting a booking. The submission follows the live-verified Cardiología scheduling form. agentMode true answers concise Spanish text instead.
- Scope:
oficlinic:patients:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: writes; not idempotent: check the outcome before you retry
- Limits: request body up to 8 KB, response up to 64 KB
- CLI:
arbol oficlinic patients create· MCP tool:oficlinic_patients_create
https://api.getarbol.com/v1/oficlinic/patientsAuthorization
Request body JSON required
- idempotencyKeyoptionalstring
Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.
maxLength: 64 · minLength: 8 · pattern: ^[A-Za-z0-9_-]+$
Returns
201
Successful operation.
400
INVALID_INPUT: The request does not match the published schema.
401
UNAUTHORIZED: A valid access token is required.
403
FORBIDDEN: The token does not authorize this operation.
404
CONNECTION_NOT_FOUND: The connection does not exist in this organization.
409
CONNECTION_REQUIRED: The organization has several active connections: select one.CONNECTION_NOT_ACTIVE: The connection is not active.CONNECTION_BUSY: Another operation is using this connection or signing in for the organization.REAUTHENTICATION_REQUIRED: Provider sign-in is stopped for this connection. Verify the connection again.PATIENT_ALREADY_REGISTERED: A patient with this document is already registered.IDEMPOTENCY_KEY_REUSED: The idempotency key was already used for a different request.WRITE_TARGET_UNRESOLVED: An earlier write to this slot or appointment has no final outcome, so no other write to it is sent. Staff must check the provider's appointments.
413
REQUEST_TOO_LARGE: The request exceeds the allowed size.
415
UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
422
CREDENTIALS_REJECTED: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.CONTEXT_NOT_AVAILABLE: The selected company, site or IPS is not available to the provider account.PROVIDER_IDENTITY_MISMATCH: The provider session does not belong to the connection's user and selected context.REGISTRATION_OPTION_NOT_FOUND: The provider's patient form did not offer one of the selected options.
429
RATE_LIMITED: The request rate limit was exceeded. Try again later.LOGIN_COOLING_DOWN: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
500
INTERNAL_ERROR: The service could not complete the operation.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.SIGN_IN_OUTCOME_UNKNOWN: The provider did not confirm a sign-in. It is not repeated automatically.PROVIDER_PROTOCOL_CHANGED: The provider returned an unrecognized response.PATIENT_RECORD_MISMATCH: The provider answered a record that does not match the request.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.PROVIDER_UNAVAILABLE: The provider could not complete the request.WRITE_LEDGER_FULL: The connection's write ledger is at capacity, so no new write was sent. Recorded writes stay answerable; staff must look.