> ## Documentation Index
> Fetch the complete documentation index at: https://ayuda.holavivi.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Patient Create

> Manually add a patient (the "invite" action).

The patient identity is global (looked up by phone, then email); the
professional gets a vinculo in estado activo with origin "manual".
The new vinculo's ficha starts empty.



## OpenAPI

````yaml /openapi.json post /api/v1/patients
openapi: 3.1.0
info:
  description: >-
    Especificación pública de la API de ViVi. Incluye solo los endpoints del
    dominio de la práctica: agenda, pacientes, conversaciones, clínica y cuenta.
  title: ViVi
  version: 0.1.0
servers:
  - url: https://api.holavivi.app
security: []
tags:
  - name: Agenda
  - name: Pacientes
  - name: Conversaciones
  - name: Clínica
  - name: Cuenta y panel
paths:
  /api/v1/patients:
    post:
      tags:
        - Pacientes
      summary: Patient Create
      description: |-
        Manually add a patient (the "invite" action).

        The patient identity is global (looked up by phone, then email); the
        professional gets a vinculo in estado activo with origin "manual".
        The new vinculo's ficha starts empty.
      operationId: patient_create_api_v1_patients_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatientIn'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    PatientIn:
      properties:
        billing_agreement:
          anyOf:
            - $ref: '#/components/schemas/AgreementIn'
            - type: 'null'
        email:
          anyOf:
            - maxLength: 255
              type: string
            - type: 'null'
          title: Email
        name:
          maxLength: 255
          minLength: 1
          title: Name
          type: string
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        phone:
          maxLength: 64
          minLength: 1
          title: Phone
          type: string
        session_currency:
          anyOf:
            - pattern: ^[A-Z]{3}$
              type: string
            - type: 'null'
          title: Session Currency
      required:
        - name
        - phone
      title: PatientIn
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AgreementIn:
      properties:
        anchor_on:
          format: date
          title: Anchor On
          type: string
        currency:
          default: ARS
          pattern: ^[A-Z]{3}$
          title: Currency
          type: string
        due_day:
          default: 1
          maximum: 31
          minimum: 1
          title: Due Day
          type: integer
        expected_version:
          default: 0
          minimum: 0
          title: Expected Version
          type: integer
        extra_billing:
          anyOf:
            - enum:
                - per_session
                - next_cycle
              type: string
            - type: 'null'
          title: Extra Billing
        frequency:
          enum:
            - weekly
            - fortnightly
            - irregular
          title: Frequency
          type: string
        local_time:
          default: '09:00'
          pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$
          title: Local Time
          type: string
        notice_days:
          default: 7
          maximum: 28
          minimum: 0
          title: Notice Days
          type: integer
        price_minor:
          exclusiveMinimum: 0
          maximum: 1000000000000
          title: Price Minor
          type: integer
        reminder_after_days:
          anyOf:
            - maximum: 90
              minimum: 1
              type: integer
            - type: 'null'
          default: 3
          title: Reminder After Days
        reminder_before_days:
          anyOf:
            - maximum: 28
              minimum: 1
              type: integer
            - type: 'null'
          default: 1
          title: Reminder Before Days
      required:
        - frequency
        - anchor_on
        - price_minor
      title: AgreementIn
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      description: >-
        La credencial de sesión del consultorio o del paciente, o una clave API
        del consultorio, como token Bearer.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.