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

# Get Patient Info

> Get comprehensive patient information including personal details, medical history,
current medications, and recent health metrics.

# Get Patient Info

Get comprehensive patient information including personal details, medical history, current medications, and recent health metrics.

## Headers

| Parameter     | Type   | Required | Description                            |
| ------------- | ------ | -------- | -------------------------------------- |
| authorization | string | Yes      | API authorization token (Bearer token) |

## Path Parameters

| Parameter | Type   | Required | Description           |
| --------- | ------ | -------- | --------------------- |
| user\_id  | string | Yes      | The ID of the patient |

## Query Parameters

| Parameter | Type    | Required | Description                                        |
| --------- | ------- | -------- | -------------------------------------------------- |
| days      | integer | No       | Number of past days to fetch data for (default: 7) |

## Responses

| Status | Description         | Content Type     |
| ------ | ------------------- | ---------------- |
| 200    | Successful Response | application/json |
| 422    | Validation Error    | application/json |

## Sample Request

```bash theme={null}
curl -X GET "https://api.covita.com/api/v1/patient_info/User1?days=7" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```

## Sample Response

```json theme={null}
{
  "user_id": "User1",
  "personal_details": {
    "name": "John Doe",
    "age": 35,
    "gender": "Male",
    "height": 175,
    "weight": 75
  },
  "medical_history": {
    "chronic_conditions": ["Hypertension"],
    "medications": ["Lisinopril"],
    "allergies": []
  },
  "recent_metrics": {
    "average_heart_rate": 72,
    "sleep_hours": 7.5,
    "steps": 8500
  }
}
```


## OpenAPI

````yaml GET /api/v1/patient_info/{user_id}
openapi: 3.1.0
info:
  title: Covita API
  description: API for Covita health monitoring system
  version: 1.0.0
servers: []
security: []
tags:
  - name: AI Assistant
    description: >-
      Endpoints for interacting with the AI assistant, including sending
      messages and managing conversation history
  - name: Patient Data
    description: >-
      Endpoints for accessing and managing patient health data, including
      medical history, vitals, and demographic information
paths:
  /api/v1/patient_info/{user_id}:
    get:
      tags:
        - Patient Data
      summary: Get Patient Info
      description: >-
        Get comprehensive patient information including personal details,
        medical history,

        current medications, and recent health metrics.
      operationId: get_patient_info_api_v1_patient_info__user_id__get
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            title: User Id
        - name: days
          in: query
          required: false
          schema:
            type: integer
            default: 7
            title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````