WHO-EML-query
ResearchWHO-EML-query is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Query the WHO Model List of Essential Medicines (23rd list, 2023). Use whenever the user asks about essential medicines, WHO-recommended drugs, dosage forms, therapeutic sections, or AWaRe antibiotic classification.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/who_eml/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/who-eml-query, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
WHO Essential Medicines List Query Skill
Search ~500 WHO essential medicines by name, section, or section number. Case-insensitive substring match.
| Input Example | Matches On |
|---|---|
amoxicillin | medicine name |
antimalarial | section hierarchy (full path) |
diabetes | section hierarchy |
6.2 | section_num prefix |
API
| Function | Input | Returns |
|---|---|---|
load_eml(cache_path) | JSON path | list[dict] |
build_cache(pdf_path, cache_path) | PDF + cache paths | list[dict] (parses PDF → JSON) |
search(data, entity) | single string | list[dict] |
search_batch(data, entities) | list of strings | dict[str, list[dict]] |
summarize(hits, entity) | list[dict] + label | compact text |
to_json(hits) | list[dict] | list[dict] |
Record Schema
| Field | Example |
|---|---|
medicine | amoxicillin |
section_num | 6.2.1 |
section_name | Anti-infective medicines > Antibacterials > Access group antibiotics |
dosage_forms | ["Capsule: 250 mg; 500 mg", "Oral liquid: 125 mg/5 mL"] |
Usage
See if __name__ == "__main__" block in 59_WHO_EML.py for runnable examples.
Data
- Source: WHO Model List of Essential Medicines – 23rd List (2023)
- PDF:
WHO EML 23rd List (2023).pdfinDATA_DIR - Cache:
who_eml_23.json(auto-built on first run from PDF) - License: CC BY-NC-SA 3.0 IGO
- Dependency:
pip install pypdf