Documentation
EIR Provider Directory
Production-grade Swedish healthcare provider search with verified 1177 capability data.
The EIR Provider Directory is a care-discovery application for Sweden with map + list navigation, verified provider capabilities, and production deployment on Cloudflare.
Repository location in this monorepo:
Verified capabilities
Self-referral and e-service actions are verified from 1177 contact card pages.
Map + list UX
Built for dense provider datasets with clustering, filtered exploration, and detail panes.
Location-aware
“My Position” controls center users and support nearby discovery workflows.
Cloudflare stack
D1 for query performance, R2 for snapshots, Workers Assets for frontend delivery.
Local development
cd apps/eir-provider-directorynpm installnpm run devThen open http://localhost:3000.
Key commands
# test + buildnpm testnpm run build
# 1177 verification/enrichmentnpm run verify:self-referralnpm run enrich:1177
# D1 / R2 setupnpm run d1:migratenpm run d1:import:verifiednpm run r2:upload:all
# deploynpm run deploy:cloudflareURL shortcut
Open the app with verified self-referral specialists pre-filtered:
?self_referral_verified=true?self_referral_specialists=true?shortcut=self-referral-specialists
API endpoints
GET /api/providersGET /api/searchGET /api/provider-description
Data pipeline notes
- Dataset snapshots live in
public/data/ - Runtime prefers D1; falls back to snapshot JSON if needed
- Enrichment scripts include retry/backoff controls for 1177 rate limiting