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

# Explorer Patients

> Paginated, sortable, filterable rows from cdv-synth.csv.



## OpenAPI

````yaml https://synthmed.up.railway.app/openapi.json get /api/explorer/{cohort_id}/patients
openapi: 3.1.0
info:
  title: Cohort Augmentation Platform API
  description: DuckDB-backed API for synthetic cohort analytics and chat.
  version: 0.1.0
servers: []
security: []
paths:
  /api/explorer/{cohort_id}/patients:
    get:
      tags:
        - explorer
      summary: Explorer Patients
      description: Paginated, sortable, filterable rows from cdv-synth.csv.
      operationId: explorer_patients_api_explorer__cohort_id__patients_get
      parameters:
        - name: cohort_id
          in: path
          required: true
          schema:
            type: string
            title: Cohort Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 50
            title: Page Size
        - name: sort_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Sort By
        - name: sort_dir
          in: query
          required: false
          schema:
            type: string
            pattern: ^(asc|desc)$
            default: asc
            title: Sort Dir
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Q
        - name: filters
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              JSON object, e.g.
              {"sex":"F","age":{"min":40,"max":65},"hypertension":1,"outcome":["Alive","Deceased"]}.
              Scalars/lists do exact/IN matches; {min,max} dicts do numeric
              ranges.
            title: Filters
          description: >-
            JSON object, e.g.
            {"sex":"F","age":{"min":40,"max":65},"hypertension":1,"outcome":["Alive","Deceased"]}.
            Scalars/lists do exact/IN matches; {min,max} dicts do numeric
            ranges.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````