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

# List patients

> Returns patients visible through the user's active clinic assignments. Results are paginated at 25 patients per page. Requires `patients:read`.



## OpenAPI

````yaml /openapi.yaml get /patients
openapi: 3.1.0
info:
  title: HMIS API
  version: 1.0.0
  description: >-
    Versioned API for HMIS foundation resources and laboratory/radiology
    integrations. All operations use Laravel Sanctum bearer tokens with a
    dedicated ability per operation.
servers:
  - url: https://jaliprohmis.derrickmugabwa.dev/api/v1
    description: HMIS staging API
security:
  - bearerAuth: []
tags:
  - name: Foundation
    description: Authenticated HMIS context and reference data.
  - name: Laboratory integration
    description: Analyzer worklists and result ingestion.
  - name: Radiology integration
    description: PACS worklists and study ingestion.
paths:
  /patients:
    get:
      tags:
        - Foundation
      summary: List patients
      description: >-
        Returns patients visible through the user's active clinic assignments.
        Results are paginated at 25 patients per page. Requires `patients:read`.
      operationId: listPatients
      parameters:
        - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: Paginated patients.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientPaginatedResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    Page:
      name: page
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        default: 1
  schemas:
    PatientPaginatedResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Patient'
        links:
          $ref: '#/components/schemas/PaginationLinks'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    Patient:
      type: object
      properties:
        id:
          type: integer
        patient_number:
          type: string
        first_name:
          type: string
        middle_name:
          type:
            - string
            - 'null'
        last_name:
          type: string
        full_name:
          type: string
        sex:
          type:
            - string
            - 'null'
        date_of_birth:
          type:
            - string
            - 'null'
          format: date
        identity_type:
          type:
            - string
            - 'null'
        identity_number:
          type:
            - string
            - 'null'
        phone:
          type:
            - string
            - 'null'
        secondary_phone:
          type:
            - string
            - 'null'
        address:
          type:
            - string
            - 'null'
        city:
          type:
            - string
            - 'null'
        county:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        next_of_kin_name:
          type:
            - string
            - 'null'
        next_of_kin_relationship:
          type:
            - string
            - 'null'
        next_of_kin_phone:
          type:
            - string
            - 'null'
        status:
          type:
            - string
            - 'null'
        clinics:
          type: array
          items:
            $ref: '#/components/schemas/Clinic'
        coverages:
          type: array
          items:
            $ref: '#/components/schemas/PatientCoverage'
    PaginationLinks:
      type: object
      properties:
        first:
          type:
            - string
            - 'null'
        last:
          type:
            - string
            - 'null'
        prev:
          type:
            - string
            - 'null'
        next:
          type:
            - string
            - 'null'
    PaginationMeta:
      type: object
      properties:
        current_page:
          type: integer
        from:
          type:
            - integer
            - 'null'
        last_page:
          type: integer
        per_page:
          type: integer
        to:
          type:
            - integer
            - 'null'
        total:
          type: integer
      required:
        - current_page
        - last_page
        - per_page
        - total
    ErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          example: Unauthenticated.
      additionalProperties: true
    Clinic:
      type: object
      properties:
        id:
          type: integer
        branch_id:
          type: integer
        department_id:
          type: integer
        name:
          type: string
        code:
          type: string
        supports_outpatient:
          type: boolean
        supports_inpatient:
          type: boolean
        is_active:
          type: boolean
        is_primary:
          type: boolean
    PatientCoverage:
      type: object
      properties:
        id:
          type: integer
        payer_type_id:
          type:
            - integer
            - 'null'
        payer_id:
          type:
            - integer
            - 'null'
        payer_scheme_id:
          type:
            - integer
            - 'null'
        payer_type:
          type:
            - object
            - 'null'
        payer:
          type:
            - object
            - 'null'
        scheme:
          type:
            - object
            - 'null'
        membership_number:
          type:
            - string
            - 'null'
        principal_member_name:
          type:
            - string
            - 'null'
        relationship_to_principal:
          type:
            - string
            - 'null'
        starts_at:
          type:
            - string
            - 'null'
          format: date
        expires_at:
          type:
            - string
            - 'null'
          format: date
        is_primary:
          type: boolean
        is_active:
          type: boolean
  responses:
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Bearer token is valid but lacks the required ability.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum personal access token
      description: >-
        Paste a Sanctum personal access token generated by a HMIS super
        administrator. Use only a token with the ability required by the
        selected operation.

````