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

# List Prescriptions

> Retrieve prescriptions for a patient or appointment

## Query Parameters

<ParamField query="patientId" type="string">Filter by patient</ParamField>
<ParamField query="appointmentId" type="string">Filter by appointment</ParamField>
<ParamField query="page" type="integer" default="1">Page number</ParamField>
<ParamField query="limit" type="integer" default="20">Results per page</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.nevatal.com/api/v1/emr/prescriptions?patientId=pat_abc123" \
    -H "Authorization: Bearer nvtl_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": [
      {
        "id": "rx_001",
        "patientId": "pat_abc123",
        "appointmentId": "apt_xyz789",
        "medications": [
          {
            "name": "Ibuprofeno 400mg",
            "dosage": "1 tableta cada 8 horas",
            "duration": "5 días",
            "instructions": "Tomar después de las comidas"
          }
        ],
        "diagnosis": "Dolor post-operatorio",
        "createdBy": "usr_doctor456",
        "createdAt": "2025-04-01T10:00:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 3
    }
  }
  ```
</ResponseExample>
