Search Prescriptions
prescriptions_searchSearch NHS prescribing data to find prescription records by drug name, BNF code, practice code, or time period, returning dispensed items, quantities, and costs.
Instructions
Search NHS prescribing data from the English Prescribing Dataset (EPD). Find prescription records by BNF code, drug name, practice code, or time period. Returns items dispensed, quantities, and costs. At least one search parameter should be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of records to return (default 20, max 100) | |
| bnf_code | No | BNF code to filter by (e.g., '0407010H0' for Paracetamol). Supports partial codes for broader category searches. | |
| drug_name | No | Free-text search for drug name (e.g., 'Paracetamol', 'Amoxicillin') | |
| year_month | No | Year and month in YYYYMM format (e.g., '202401' for January 2024) | |
| resource_id | No | Specific EPD resource ID to query. If not provided, uses a default dataset. Use datasets_metadata on 'english-prescribing-data-epd' to find available resource IDs. | |
| practice_code | No | GP practice code to filter by (e.g., 'A81001') |