TempoLife › Fonctions › Pharmacies and out-of-hours cover › registers-and-data
The registers, and how to check a list yourself
Why this surface has no addresses, which register is authoritative for what, how amenity=pharmacy and opening_hours work in OpenStreetMap, and the licence terms that come with the data.
| En bref | Ce que cela signifie |
|---|---|
| Authoritative for existence | The national medicines agency register |
| Authoritative for hours | The pharmacy itself, and nothing else |
| Community data | OpenStreetMap, under the Open Database License |
| Chain rotas | Link and attribute; do not scrape without checking the terms |
Ceci décrit le fonctionnement des systèmes pharmaceutiques ; ce n'est pas un avis médical, ni un diagnostic, ni un annuaire. Il ne contient pas de noms, d'adresses, de numéros de téléphone, d'heures d'ouverture ou de prix de pharmacie, car ceux-ci deviennent obsolètes plus rapidement qu'une page ne peut être republiée – confirmez tout ce qui est urgent auprès de la pharmacie elle-même. Rien ici n'est une raison pour commencer, arrêter ou changer un médicament : cela appartient à votre prescripteur, et le pharmacien au comptoir est le professionnel le plus rapide à demander entre-temps.
Why there are no addresses on this surface
A pharmacy directory is a data-freshness problem wearing a content problem's clothes. Locations are stable, names change slowly, and hours change several times a year — seasonally, at Christmas, when staffing changes, when the building around the pharmacy changes its own hours. A published list of hours is therefore wrong somewhere on the day it is published and wronger every week afterwards, and the specific harm is not abstract: it is a person driving across a city at eleven at night to a dark window. What is stable enough to write down is the system — the regulator, the register, the prescription mechanism, the reimbursement rule and the local vocabulary. That is what this surface contains.
Which register answers which question
Every country here has a medicines agency that licenses pharmacies and publishes a register of them: Ravimiamet in Estonia, Fimea in Finland, the State Agency of Medicines in Latvia, the State Medicines Control Agency in Lithuania, Läkemedelsverket in Sweden, the Norwegian medical products authority, and Lægemiddelstyrelsen in Denmark. That register answers one question authoritatively — is this a licensed pharmacy — and no others. It is not a source of opening hours anywhere in this region. Separately, most of the same agencies publish a register of authorised medicines, which answers a different question and carries the official package leaflet; people looking for one routinely land in the other. The Estonian page spells out that distinction, and it holds everywhere.
OpenStreetMap: what it is good for
In OpenStreetMap a pharmacy is tagged amenity=pharmacy, usually with dispensing=yes where it fills prescriptions, a name, and often opening_hours. Coverage of locations in the Nordic and Baltic cities is genuinely good, and for "where are the pharmacies near this point" it is the best free dataset there is. Coverage of hours is a different matter: an opening_hours value is only as fresh as the last mapper who checked it, it carries no timestamp a user sees, and it is silently absent far more often than it is wrong. Use OSM to enumerate candidates and the pharmacy's own channel to confirm one — that division of labour is the whole method.
Querying it, and the licence you are agreeing to
The practical tool for extracting a set of pharmacies is Overpass, which queries the OSM database directly; a query for amenity=pharmacy inside a bounding box or an administrative area returns the nodes and ways with their tags in a few seconds. What comes back is licensed under the Open Database License. That licence has two obligations people forget: attribution — you must credit OpenStreetMap contributors — and share-alike, which applies when you publish a derived database. Using the data to answer a question is unproblematic; republishing an enriched copy of it is a licensing decision, not a technical one. The licence text is short and worth reading once.
Reading and writing opening_hours
The syntax is compact and covers far more than any pharmacy needs. The subset that covers nearly everything real: weekday selectors (Mo-Fr, Sa,Su), time ranges (09:00-19:00), several ranges separated by commas, off for closed, 24/7 for round the clock, and PH for public holidays. Rules are separated by semicolons and a later rule overrides an earlier one for the days it names. A range whose end is earlier than its start crosses midnight. Beyond that the grammar has month and week selectors, ordinal weekdays, sunrise and sunset and fallback rules, and any parser should say clearly when it has met something it cannot read rather than guessing. The checker on the open-now page does exactly that.
Chains, rotas and terms of use
The most current duty information in most of these countries sits on a pharmacy chain's own site or a pharmacy association's search. Those are the right things to link to and the wrong things to copy: whether you may extract and republish them is a question about their terms of use and about database rights, not about whether a scraper works. The defensible pattern is the one this surface uses — describe the system, name the publisher, link to the source, and let the visitor land on the page that is maintained by the people who know. If you are building something for a municipality or a health service, ask the publisher; in this field they are usually glad to be asked.
Le lecteur opening_hours
Lire une chaîne opening_hours
Collez la valeur opening_hours à partir d'un enregistrement cartographique, du flux de données d'une chaîne ou d'un avis de porte et cela vous dira ce qu'il dit. Avec JavaScript, il répond au moment où vous le lisez ; sans, le tableau ci-dessous répond pour un instant de référence fixe.
Lecture poursamedi 21:40: voir le tableau ci-dessous.
| opening_hours | La forme de la règle | En anglais | At samedi 21:40 | Prochain changement |
|---|---|---|---|---|
24/7 | A genuine round-the-clock pharmacy | Ouvert 24 h/24, tous les jours | Ouvert | pas de changement toute la semaine |
Mo-Fr 09:00-19:00; Sa 10:00-15:00; Su off | A typical town pharmacy | Mon–Fri 09:00–19:00; Sat 10:00–15:00; Sun closed | Fermé | opens lundi 09:00 |
Mo-Fr 08:00-20:00; Sa-Su 10:00-18:00 | A pharmacy inside a shopping centre | Mon–Fri 08:00–20:00; Sat–Sun 10:00–18:00 | Fermé | opens dimanche 10:00 |
Mo-Sa 09:00-21:00; Su 10:00-18:00; PH off | Retail hours with a public holiday rule | Mon–Sat 09:00–21:00; Sun 10:00–18:00; jours fériésclosed | Fermé | opens dimanche 10:00 |
Mo-Su 22:00-08:00 | A night counter, crossing midnight | Mon–Sun 22:00–08:00next day | Fermé | opens samedi 22:00 |
Mo-Fr 09:00-13:00,14:00-17:00; Sa,Su off | A village pharmacy with a lunch break | Mon–Fri 09:00–13:00, 14:00–17:00; Sat–Sun closed | Fermé | opens lundi 09:00 |
Mo-Fr 08:30-16:30; PH off | A pharmacy on a hospital site | Mon–Fri 08:30–16:30; Sat–Sun closed; jours fériésclosed | Fermé | opens lundi 08:30 |
Jan-Mar Mo-Fr 09:00-17:00 | A seasonal rule this reader does not implement | non lu ici : sélecteurs de mois | — | — |
La dernière ligne est le point du tableau. Un lecteur qui ne peut pas analyser une construction devrait le dire par son nom plutôt que de deviner, car un analyseur qui supprime silencieusement une règle saisonnière signale qu'une pharmacie est ouverte le seul jour de l'année que la règle existe pour décrire.
Sources :OpenStreetMap · OpenStreetMap wiki — amenity=pharmacy · OpenStreetMap wiki — the opening_hours syntax · Open Database License 1.0 · Overpass Turbo — querying OpenStreetMap· vérifié2026-09-08
Questions fréquentes
Pourquoi ce site ne liste-t-il pas les adresses et horaires des pharmacies ?
Parce que les horaires changent plusieurs fois par an et qu’une liste publiée est fausse quelque part dès le jour de parution. Le préjudice est concret — une traversée de ville la nuit vers une vitrine éteinte. Ce qui est assez stable à publier, c’est le système : le régulateur, le registre, les règles d’ordonnance et le vocabulaire local.
Quel registre me dit si une pharmacie est légitime ?
Le registre de l’agence nationale des médicaments de chaque pays. Il fait autorité sur le fait qu’une pharmacie est agréée, et sur rien d’autre — en particulier pas les horaires, qui sont partout dans la région la publication de la pharmacie elle-même.
Puis-je utiliser les données OpenStreetMap pour un localisateur de pharmacies ?
Oui, sous la Open Database License, qui exige l’attribution aux contributeurs OpenStreetMap et le share-alike si vous publiez une base dérivée. La couverture des lieux est bonne ; celle des horaires est lacunaire et non datée, traitez donc les heures comme un indice à confirmer.
Comment interroger toutes les pharmacies d’une ville ?
Avec Overpass, en interrogeant amenity=pharmacy dans une bounding box ou une zone administrative. Cela renvoie nœuds et chemins avec leurs tags en secondes. Confirmez tout ce qui est sensible au temps auprès du canal de la pharmacie avant d’agir.
Les autres règles
En trouver un qui est ouvert en ce moment
L'ordre de recherche qui fonctionne, pourquoi la carte est erronée plus souvent que le registre, comment lire une chaîne opening_hours et que faire lorsque rien n'est ouvert.
Nuits, week-ends et jours fériés
Qui décide si une pharmacie reste ouverte, comment une liste de garde est publiée, quels jours fériés ferment tout et comment planifier une nouvelle ordonnance pendant un long week-end.
Ce qu'un pharmacien peut faire sans médecin
Les trois rayons légaux, ce pour quoi un pharmacien est réellement formé, les questions qu'il posera et pourquoi, et le moment où la réponse est un médecin plutôt qu'un produit.
Vous n'avez plus de médicament
Quelles situations sont urgentes plutôt que gênantes, comment une répétition se reproduit dans chaque pays, ce qu'une pharmacie peut faire à sa propre discrétion et comment empêcher que cela ne se reproduise.
Ordonnances numériques au comptoir
Qu'est-ce qu'un magasin national d'ordonnances, comment vous vous identifiez, comment les récupérer pour quelqu'un d'autre, ce que vous pouvez voir vous-même et où le système s'arrête à la frontière.
Utiliser une ordonnance dans un autre pays
Les règles de l’UE rendent une ordonnance portable, les éléments qu’elle doit contenir, les médicaments qui nécessitent un certificat de voyage et ce que sert et ne paie pas la carte européenne d’assurance maladie.
Tous22pages de pharmacieInteractions médicamenteuses
La réponse à « que prenez-vous ? »
TempoLife est un suivi gratuit des habitudes de santé avec des notes et un journal de médicaments, de sorte que les détails demandés par un pharmacien ou un médecin en dehors des heures d'ouverture sont déjà écrits plutôt que mémorisés.