Aemps Cima

v0.2.1
io.github.pipeworx-io/aemps-cima Checked 1 hour ago Published 1 month ago

AEMPS CIMA — the Spanish Agency for Medicines and Health Products' public register of every…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cima_search_medicines

Search AEMPS CIMA — the register of every medicine authorised for sale in SPAIN — by brand/product name, active ingredient (INN/DCI), ATC code, or marketing-authorisation holder (laboratorio). Returns each medicine's nregistro (Spanish national registration number), the active substance, dosage, prescription status, marketed/generic/orphan/biosimilar flags, and links to its ficha técnica (SmPC) and prospecto (patient leaflet). Field values and matching are SPANISH: search "paracetamol" or "ibuprofeno", not a US brand name. Answers "is X authorised in Spain", "which Spanish medicines conta…

ParameterTypeDescription
atcstringATC code, e.g. "N02BE01"
ingredientstringActive ingredient (INN/DCI, Spanish form), e.g. "paracetamol", "ibuprofeno", "amoxicilina"
labstringMarketing-authorisation holder (laboratorio titular), e.g. "Cinfa"
limitnumberMax medicines to return (default 25, max 200)
namestringBrand/product name, Spanish spelling, e.g. "Nolotil", "Paracetamol Cinfa"

cima_medicine_detail

Full AEMPS CIMA record for one Spanish-authorised medicine, by nregistro (the Spanish national registration number, from cima_search_medicines). Returns active ingredients with exact strength, excipients, ATC codes, pharmaceutical form, routes of administration, prescription status, authorisation and last-revision dates, and PDF/HTML links to the ficha técnica and prospecto. For the actual document TEXT (not just the link) use cima_medicine_document_sections. Example: cima_medicine_detail({ nregistro: "77758" }). Keyless.

ParameterTypeDescription
nregistro *stringSpanish national registration number, e.g. "77758"

cima_medicine_document_sections

The STRUCTURED text of a Spanish medicine's ficha técnica (Summary of Product Characteristics) or prospecto (patient information leaflet), section by section, from AEMPS's own segmented-document endpoint — not a PDF link. Ficha técnica sections cover indications (4.1), dosage (4.2), contraindications (4.3), warnings (4.4), interactions (4.5), pregnancy/lactation (4.6), adverse effects (4.8), overdose (4.9). Pass seccion (e.g. "4.1") to fetch one section only; omit it to get every section (each capped at ~4000 chars to keep the payload bounded — the response says which sections were trunc…

ParameterTypeDescription
nregistro *stringSpanish national registration number, e.g. "77758"
documentstringficha_tecnica = SmPC (prescriber label); prospecto = patient leaflet. Default ficha_tecnica.
seccionstringOne section number to fetch alone, e.g. "4.1" (indications). Omit for every section.

cima_supply_problems

Current and recent medicine-supply shortages in Spain (problemas de suministro) from AEMPS — the Spanish counterpart of the FDA/EMA shortage databases. Returns the affected product, national code (CN), AEMPS shortage-type code, start date, expected end date (open-ended if none), whether it is still active, and AEMPS's own observation text (often naming an alternative). Only the product name filters this endpoint upstream (not the lab). Answers "is there a shortage of X in Spain", "current Spanish drug supply problems". Example: cima_supply_problems({}); cima_supply_problems({ name: "eltrombo…

ParameterTypeDescription
limitnumberMax rows to return (default 50, max 200)
namestringMedicine name to filter by, e.g. "eltrombopag". Omit for all current supply problems.

cima_changes_since

Which Spanish medicine records AEMPS has changed on or after a given date — new authorisations, label revisions, material-informativo updates, etc. — from CIMA's registroCambios feed. Returns nregistro, name, holder, the change date, and AEMPS's change-category tags. Useful for "what changed in the Spanish medicines register this month" or watching one drug for label updates. Example: cima_changes_since({ since: "2026-08-27" }). Keyless.

ParameterTypeDescription
since *stringISO date, e.g. "2026-08-27" — returns changes on or after this date.
limitnumberMax rows to return (default 50, max 200)