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

# List authorized patient prescriptions



## OpenAPI

````yaml /openapi/nimbo_patient_portal.yml get /api/v1/patient_portal/people/{person_id}/prescriptions
openapi: 3.1.0
info:
  title: Nimbo patient portal
  version: 1.0.0
  description: >-
    Nimbo API reference. Use the API host and integration access provided by
    Nimbo.
servers:
  - url: https://api.example.test
security: []
tags:
  - name: Patient Portal
  - name: Patient portal authentication
paths:
  /api/v1/patient_portal/people/{person_id}/prescriptions:
    get:
      tags:
        - Patient Portal
      summary: List authorized patient prescriptions
      operationId: listPatientPortalPersonPrescriptions
      parameters:
        - name: person_id
          in: path
          required: true
          schema:
            type: integer
          example: 123
      responses:
        '200':
          description: >-
            Prescriptions from non-deleted consultations ordered by starts_at
            descending, using the instrucctions spelling.
          content:
            application/json:
              schema:
                type: object
                required:
                  - prescriptions
                additionalProperties: false
                properties:
                  prescriptions:
                    type: array
                    items:
                      type: object
                      required:
                        - doctor
                        - date
                        - instrucctions
                        - drugs
                      additionalProperties: false
                      properties:
                        doctor:
                          type:
                            - string
                            - 'null'
                        date:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        instrucctions:
                          type:
                            - string
                            - 'null'
                        drugs:
                          type: array
                          items:
                            type: object
                            required:
                              - name
                              - dose
                              - frequency
                              - duration
                            additionalProperties: false
                            properties:
                              name:
                                type:
                                  - string
                                  - 'null'
                              dose:
                                type:
                                  - string
                                  - 'null'
                              frequency:
                                type:
                                  - string
                                  - 'null'
                              duration:
                                type:
                                  - string
                                  - 'null'
        '401':
          description: Missing, expired, invalid, or unauthorized patient portal token.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
              examples:
                unauthorized:
                  value:
                    error: Unauthorized
        '404':
          description: >-
            The requested resource was not found or is outside the authorized
            patient scope.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                additionalProperties: false
                properties:
                  error:
                    type: string
              examples:
                not_found:
                  value:
                    error: Not found
      security:
        - PatientPortalToken: []
components:
  securitySchemes:
    PatientPortalToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Patient portal JWT accepted either as a raw Authorization header value
        or as a Bearer token for client compatibility.

````