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

# Get Patient Reports

> Retrieves all reports for a patient registered through the client lab.



## OpenAPI

````yaml GET /client/patient/getReports
openapi: 3.0.3
info:
  title: Patient API
  version: 1.0.0
  description: APIs for patient authentication and report retrieval.
servers:
  - url: https://v2.flabs.in
    description: Production Server
security: []
paths:
  /client/patient/getReports:
    get:
      summary: Get patient reports
      description: Retrieves all reports for a patient registered through the client lab.
      parameters:
        - name: labID
          in: query
          required: true
          schema:
            type: string
          description: >-
            Flabs lab (branch) identifier. Fetch the list of labs via GET
            /client/labs.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    _id:
                      type: string
                      description: Unique identifier for the report
                    reportUrl:
                      type: string
                      description: URL to download the report PDF
                    reportDate:
                      type: string
                      format: date-time
                      description: Date when the report was generated
                    labName:
                      type: string
                      description: Name of the laboratory
                    patientName:
                      type: string
                      description: Name of the patient
                    tests:
                      type: array
                      items:
                        type: string
                      description: List of tests included in the report
              example:
                - reportUrl: report-url
                  reportDate: '2023-10-01T12:00:00Z'
                  labName: Lab Name
                  patientName: John Doe
                  tests:
                    - Test 1
                    - Test 2
                  _id: unique-id
        4XX:
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  status:
                    type: integer
                  message:
                    type: string
                  error:
                    type: object
                    properties:
                      details:
                        type: string
              example:
                success: false
                status: 401
                message: Unauthorized
                error:
                  details: Invalid patient token
        5XX:
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  status:
                    type: integer
                  message:
                    type: string
                  error:
                    type: object
                    properties:
                      details:
                        type: string
              example:
                success: false
                status: 500
                message: Internal Server Error
                error:
                  details: An unexpected error occurred
      security:
        - bearerAuth: []
          patientAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorization token obtained from the auth API
    patientAuth:
      type: apiKey
      in: header
      name: patient-authorization
      description: 'Patient token in format: Bearer {patientToken}'

````