Complete Swedish pharmaceutical database β 9,064 medications
npm install -g swedish-medications
v2.0.0 β Full FASS database + 1,353 indexed substances
Complete Swedish pharmaceutical database. Every medication approved in Sweden β from Alvedon to Ozempic to rare specialty drugs.
Search by brand name, substance, or partial match. Multi-result search with --search flag. 1,353 indexed substances.
Dosage, warnings, OTC status, ATC codes, manufacturer info. Curated data for common meds + full database for everything else.
Works seamlessly with OpenClaw, LangChain, and custom agent frameworks. Perfect for healthcare chatbots and assistants.
# Install globally
npm install -g swedish-medications
# Add to your OpenClaw config (~/.openclaw/config.yaml)
skills:
- swedish-medications
# Your agent can now answer:
"What is Alvedon?"
"Tell me about sertralin side effects"
"Is Ipren prescription-only in Sweden?"
# Clone the repo
git clone https://github.com/birgermoell/swedish-medications.git
# Copy into Codex skills directory
mkdir -p ~/.codex/skills
cp -R swedish-medications ~/.codex/skills/swedish-medications
Then restart the Codex app. The skill will appear as Swedish Medications in the skills list.
The Codex app reads SKILL.md and agents/openai.yaml from ~/.codex/skills/swedish-medications.
If you update the repo, re-copy the folder into ~/.codex/skills/ and restart Codex.
# Install globally
npm install -g swedish-medications
# Look up any medication
fass-lookup Ozempic
fass-lookup Concerta
fass-lookup paracetamol
# Search for multiple results
fass-lookup --search "insulin"
fass-lookup --search "blood pressure"
# Show database stats
fass-lookup --stats
# β Curated: 23, Full: 9064, Substances: 1353
// Install as dependency
npm install swedish-medications
// Use in your code
const { lookupMedication, findMedication } = require('swedish-medications');
// Get formatted markdown output
console.log(lookupMedication('Alvedon'));
// Get raw data object
const med = findMedication('ibuprofen');
console.log(med.dose); // "Adult: 200-400mg every 4-6h..."
Questions your AI agent can now answer:
Get substance (semaglutid), use (diabetes/weight loss), manufacturer (Novo Nordisk), prescription status, and FASS link.
Search returns Concerta, Elvanse, Ritalin, Strattera, Attentin β with dosages and controlled substance warnings.
Compare paracetamol vs ibuprofen β when to use each, max doses, stomach/liver warnings.
Explain what SSRIs do, 2-4 week onset, don't stop abruptly, common side effects.
Multi-result search: Lantus, NovoRapid, Ozempic, Fiasp β with ATC codes and Rx status.
Works in Swedish too β gel is OTC (receptfritt), tablets are Rx (receptbelagt).
Returns formatted markdown with medication info, dosage, warnings, and FASS link. Searches 9,064 medications.
Returns raw medication data object. Checks curated database first (with dosage/warnings), then full 9,064 medication database.
New in v2.0! Returns multiple matching medications. Perfect for "show me all insulin medications" queries.
New in v2.0! Returns { curated: 23, full: 9064, substances: 1353 } β database statistics.
Returns the FASS.se search URL for any medication query.
9,064 medications across all categories:
| Category | Examples | Coverage |
|---|---|---|
| Pain & Fever | Alvedon, Ipren, Voltaren, Tramadol, Oxycontin | β Full |
| ADHD | Concerta, Elvanse, Ritalin, Strattera, Attentin | β Full |
| Mental Health | Zoloft, Cipralex, Sobril, Imovane, Lyrica | β Full |
| Diabetes | Ozempic, Metformin, Jardiance, Lantus, NovoRapid | β Full |
| Heart & Blood | Waran, Eliquis, Metoprolol, Enalapril | β Full |
| Asthma | Ventoline, Symbicort, Pulmicort, Bricanyl | β Full |
| Antibiotics | KΓ₯vepenin, Amoxicillin, Ciproxin, Azitromax | β Full |
| + Everything else | Cancer drugs, biologics, vaccines, rare diseases... | β Full |
1,353 substances indexed β search by active ingredient or brand name.
Easily integrate with any agent framework:
const { lookupMedication } = require('swedish-medications');
// Define as a tool for function calling
const medicationTool = {
name: "swedish_medication_lookup",
description: "Look up Swedish medication information by name (brand or substance)",
parameters: {
type: "object",
properties: {
query: {
type: "string",
description: "Medication name to search for"
}
},
required: ["query"]
},
execute: (params) => lookupMedication(params.query)
};
// Works with OpenAI, Anthropic, LangChain, etc.
This tool provides information only, not medical advice. Always consult healthcare professionals for medical decisions. Check FASS.se for complete official information.
Don't want npm? Grab the skill files directly:
# Download skill files
mkdir -p ~/.openclaw/skills/swedish-medications
curl -s https://birgermoell.github.io/swedish-medications/skill.md > ~/.openclaw/skills/swedish-medications/SKILL.md
curl -s https://birgermoell.github.io/swedish-medications/skill.json > ~/.openclaw/skills/swedish-medications/package.json
# Or just read the skill directly from URL:
curl -s https://birgermoell.github.io/swedish-medications/skill.md