Swedish medication lookup skill for OpenClaw agents - FASS database integration
npm install swedish-medications

A medication lookup tool for Swedish pharmaceuticals (FASS database). Built as an OpenClaw skill for AI agents, but works great standalone too.
- 🔍 Quick lookup of common Swedish medications
- 💊 Brand → substance mapping (Alvedon → paracetamol)
- 📋 Key info: dosage, side effects, warnings, OTC status
- 🔗 FASS links for complete official information
- 🤖 AI-agent ready - works with OpenClaw, LangChain, etc.
``bash`
npm install -g swedish-medications
Then add to your OpenClaw skills:
`yaml`~/.openclaw/config.yaml
skills:
- swedish-medications
`bash`
npm install -g swedish-medications
fass-lookup paracetamol
`bash`
npm install swedish-medications
`javascript
const { lookupMedication, findMedication } = require('swedish-medications');
// Full formatted output
console.log(lookupMedication('Alvedon'));
// Just the data
const med = findMedication('ibuprofen');
console.log(med.dose); // "Adult: 200-400mg every 4-6h, max 1200mg/day (OTC)"
`
`bashBy substance name
fass-lookup paracetamol
$3
`markdown
Swedish Medication Lookup: paracetamol
$3
Use: Pain relief, fever reduction
Dosage: Adult: 500-1000mg every 4-6h, max 4g/day
OTC: Yes (receptfritt)
ATC Code: N02BE01
Warnings: Avoid with liver disease, limit alcohol
$3
🔗 https://fass.se/search?query=paracetamol---
This is informational only. Always consult healthcare professionals for medical advice.
`For AI Agents
$3
This package works as an OpenClaw skill. When installed, your AI agent can:
1. Look up medications when users ask about them
2. Translate between Swedish brand names and substances
3. Provide dosage and safety information
4. Link to official FASS documentation
Trigger phrases the agent recognizes:
- "What is Alvedon?"
- "Tell me about paracetamol"
- "Can I take Ipren for headaches?"
- "What's the dosage for sertralin?"
$3
The module exports clean functions you can wire into any agent framework:
`javascript
const { lookupMedication, findMedication, COMMON_MEDICATIONS } = require('swedish-medications');// For tool/function calling
const medicationTool = {
name: "swedish_medication_lookup",
description: "Look up Swedish medication information by name",
parameters: {
query: { type: "string", description: "Medication name (brand or substance)" }
},
execute: (params) => lookupMedication(params.query)
};
`API Reference
$3
Returns formatted markdown with medication info and FASS link.
$3
Returns raw medication data object or null if not found.
`javascript
{
name: "paracetamol",
brands: ["Alvedon", "Panodil", "Pamol"],
use: "Pain relief, fever reduction",
dose: "Adult: 500-1000mg every 4-6h, max 4g/day",
otc: true,
warnings: "Avoid with liver disease, limit alcohol",
atc: "N02BE01"
}
`$3
Returns the FASS.se search URL for a query.
$3
The raw medications database object.
Supported Medications
The quick-lookup database includes common Swedish medications:
| Category | Examples |
|----------|----------|
| Pain/Fever | Paracetamol, Ibuprofen, Diclofenac |
| Allergies | Loratadin, Cetirizin |
| Stomach | Omeprazol |
| Mental Health | Sertralin |
| Diabetes | Metformin |
| Cholesterol | Atorvastatin |
| Antibiotics | Amoxicillin |
For medications not in the database, it generates a FASS search link.
Testing
`bash
npm test
``Runs 26 tests covering database integrity, lookup functions, and edge cases.
- FASS.se - Official Swedish pharmaceutical information
- Läkemedelsverket - Swedish Medical Products Agency
- 1177.se - Swedish healthcare guide
This tool provides information only, not medical advice. Always:
- Follow prescribed dosages
- Consult healthcare professionals for medical decisions
- Check official sources (FASS.se) for complete information
MIT © Birger Moëll
---
Made with 🇸🇪 for the Swedish healthcare community