TempoLife › Ominaisuudet › 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.
| Lyhyesti sanottuna | Mitä se tarkoittaa |
|---|---|
| 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 |
Tämä kuvaa apteekkijärjestelmien toimintaa; se ei ole lääketieteellinen neuvo, ei diagnoosi eikä hakemisto. Siinä ei ole apteekkien nimiä, osoitteita, puhelinnumeroita, aukioloaikoja tai hintoja, koska ne vanhenevat nopeammin kuin sivu voidaan julkaista uudelleen – varmista aikaherkät asiat itse apteekista. Mikään tässä ei ole syy aloittaa, lopettaa tai vaihtaa lääkettä: se kuuluu lääkärillesi, ja apteekin apteekki on nopein ammattilainen kysyä sillä välin.
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.
Aukioloajat-lukija
Lue open_hours-merkkijono
Liitä opening_hours-arvo karttatietueesta, ketjun tietosyötteestä tai oviilmoituksesta, niin tämä kertoo, mitä se sanoo. Kun JavaScript on päällä, se vastaa sillä hetkellä, kun luet sitä; ilman, alla oleva taulukko vastaa kiinteästä vertailuhetkestä.
Luetaanlauantai 21:40: katso alla oleva taulukko.
| opening_hours | Säännön muoto | Englanniksi | At lauantai 21:40 | Seuraava muutos |
|---|---|---|---|---|
24/7 | A genuine round-the-clock pharmacy | Auki ympäri vuorokauden, joka päivä | Avaa | ei muutosta koko viikkoon |
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 | Suljettu | opens maanantai 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 | Suljettu | opens sunnuntai 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; yleiset vapaapäivätclosed | Suljettu | opens sunnuntai 10:00 |
Mo-Su 22:00-08:00 | A night counter, crossing midnight | Mon–Sun 22:00–08:00next day | Suljettu | opens lauantai 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 | Suljettu | opens maanantai 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; yleiset vapaapäivätclosed | Suljettu | opens maanantai 08:30 |
Jan-Mar Mo-Fr 09:00-17:00 | A seasonal rule this reader does not implement | ei lueta tässä: kuukausivalitsimet | — | — |
Viimeinen rivi on taulukon piste. Lukijan, joka ei pysty jäsentämään konstruktia, tulee sanoa se nimellä eikä arvailla, koska kausisäännön hiljaa pudottava jäsentäjä ilmoittaa apteekin olevan auki sinä päivänä, jolloin sääntö on olemassa.
Lähteet:OpenStreetMap · OpenStreetMap wiki — amenity=pharmacy · OpenStreetMap wiki — the opening_hours syntax · Open Database License 1.0 · Overpass Turbo — querying OpenStreetMap· tarkistettu2026-09-08
Usein kysytyt kysymykset
Miksi tällä sivustolla ei ole apteekkien osoitteita ja aukioloaikoja?
Koska ajat muuttuvat useita kertoja vuodessa ja julkaistu lista on väärä jossain jo ilmestymispäivänä. Haitta on konkreettinen — ajo kaupungin halki yöllä pimeään ikkunaan. Tarpeeksi vakaa julkaistavaksi on järjestelmä: valvoja, rekisteri, reseptisäännöt ja paikallinen sanasto.
Mikä rekisteri kertoo, onko apteekki laillinen?
Kunkin maan kansallinen lääkeviraston rekisteri. Se on auktoriteetti siinä, onko apteekki lisensoitu, eikä muussa — etenkään aukioloajoissa, jotka ovat apteekin oma julkaisu kaikkialla tällä alueella.
Voinko käyttää OpenStreetMap-tietoja apteekkihakijaan?
Kyllä, Open Database License -lisenssillä, joka vaatii attribuution OpenStreetMap-tekijöille ja share-alike-ehdot, kun julkaiset johdetun tietokannan. Sijaintikattavuus on hyvä; aukioloaikojen kattavuus on laikukas ja päiväämätön, joten käsittele aikoja vihjeenä vahvistettavaksi.
Miten kyselen kaikki apteekit kaupungissa?
Overpassilla, hakemalla amenity=pharmacy rajauslaatikossa tai hallintoalueella. Se palauttaa solmut ja tiet tageineen sekunneissa. Vahvista kaikki aikaherkkä apteekin omaa kanavaa vasten ennen toimimista.
Muut säännöt
Löytää yksi, joka on nyt auki
Toimiva hakujärjestys, miksi kartta on väärässä useammin kuin rekisteri, kuinka lukea open_hours-merkkijono ja mitä tehdä, kun mitään ei ole auki.
Yöt, viikonloput ja pyhäpäivät
Kuka päättää, että apteekki pysyy auki, miten päivystyslista julkaistaan, mitkä juhlapäivät sulkevat kaiken ja miten suunnitellaan uusintaresepti pitkän viikonlopun ympärille.
Mitä apteekki voi tehdä ilman lääkäriä
Kolme laillista hyllyä, mitä apteekki on todella koulutettu saamaan, kysymykset, joita he kysyvät ja miksi, ja kohta, jossa vastaus on lääkäri eikä tuote.
Sinulta on loppunut lääke
Mitkä tilanteet ovat pikemminkin kiireellisiä kuin epämukavia, miten uusinta uusitaan kussakin maassa, mitä apteekki voi tehdä oman harkintansa mukaan ja miten estää sen toistuminen.
Digireseptit tiskillä
Mikä on kansallinen reseptikauppa, miten tunnistat itsesi, miten keräät toiselle, mitä näet itse ja missä järjestelmä pysähtyy rajalla.
Reseptin käyttö toisessa maassa
EU:n säännöt, jotka tekevät reseptistä kannettavan, mitä osia siinä on oltava, mitkä lääkkeet tarvitsevat matkustustodistuksen ja mitä eurooppalainen sairaanhoitokortti tekee ja mistä ei makseta.
Kaikki22apteekkisivutLääkevuorovaikutukset
Vastaus kysymykseen "mitä otat?"
TempoLife on ilmainen terveystottumusten seuranta, jossa on muistiinpanot ja lääkeloki, joten apteekin tai poissaololääkärin pyytämät tiedot ovat jo muistiin kirjoitetut, eivät muistiin jääneet.