Who eml
Skill BioTender-max/awesome-bio-agent-skills/skills/drugclaw/who_eml
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.From its SKILL.md
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill who_emlAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.7 KB, 442 tokens by cl100k_base, as published. Nobody here has run it
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
What ships with it: 5 files
15.7 KB alongside SKILL.md, 4 of them executable
- example.pyruns9.6 KB
- __init__.pyruns176 B
- README.md1.6 KB
- retrieve.pyruns788 B
- who_eml_skill.pyruns3.7 KB