TempoLife

TempoLife › Funktsioonid › 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.

Lühike versioon
ÜhesõnagaMida see tähendab
Authoritative for existenceThe national medicines agency register
Authoritative for hoursThe pharmacy itself, and nothing else
Community dataOpenStreetMap, under the Open Database License
Chain rotasLink and attribute; do not scrape without checking the terms

See kirjeldab apteegisüsteemide toimimist; see ei ole meditsiiniline nõuanne, diagnoos ega kataloog. Sellel ei ole apteekide nimesid, aadresse, telefoninumbreid, lahtiolekuaegu ega hindu, sest need aeguvad kiiremini, kui lehekülge uuesti avaldada saab – kinnitage kõike, mis on ajatundlik, apteegi endaga. Miski siin ei ole põhjus ravimi alustamiseks, lõpetamiseks või muutmiseks: see kuulub teie retsepti väljakirjutajale ja leti apteeker on kiireim spetsialist, kellelt vahepeal küsida.

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.

Avamisaegade lugeja

Lugege stringi open_hours

Kleepige avamistunnid väärtus kaardikirjest, keti andmevoost või ukseteatisest ja see annab teile teada, mida see ütleb. Kui JavaScript on sellel, vastab see hetkel, kui seda loed; ilma, vastab allolev tabel fikseeritud võrdlusmomendi kohta.

Lugeminelaupäeval 21:40: vaata allolevat tabelit.

Üldised reeglimustrid – lahtiolekutunni väärtuse kujundid, mitte tegelikud ettevõtted – loe aadressiltlaupäeval 21:40
opening_hoursReegli kujuInglise keelesAt laupäeval 21:40Järgmine muudatus
24/7A genuine round-the-clock pharmacyAvatud ööpäev läbi, iga päevAvatudterve nädal ei muutu
Mo-Fr 09:00-19:00; Sa 10:00-15:00; Su offA typical town pharmacyMon–Fri 09:00–19:00; Sat 10:00–15:00; Sun closedSuletudopens esmaspäev 09:00
Mo-Fr 08:00-20:00; Sa-Su 10:00-18:00A pharmacy inside a shopping centreMon–Fri 08:00–20:00; Sat–Sun 10:00–18:00Suletudopens pühapäev 10:00
Mo-Sa 09:00-21:00; Su 10:00-18:00; PH offRetail hours with a public holiday ruleMon–Sat 09:00–21:00; Sun 10:00–18:00; riigipühadclosedSuletudopens pühapäev 10:00
Mo-Su 22:00-08:00A night counter, crossing midnightMon–Sun 22:00–08:00next daySuletudopens laupäeval 22:00
Mo-Fr 09:00-13:00,14:00-17:00; Sa,Su offA village pharmacy with a lunch breakMon–Fri 09:00–13:00, 14:00–17:00; Sat–Sun closedSuletudopens esmaspäev 09:00
Mo-Fr 08:30-16:30; PH offA pharmacy on a hospital siteMon–Fri 08:30–16:30; Sat–Sun closed; riigipühadclosedSuletudopens esmaspäev 08:30
Jan-Mar Mo-Fr 09:00-17:00A seasonal rule this reader does not implementsiin ei loeta: kuuvalijad——

Viimane rida on tabeli punkt. Lugeja, kes ei saa konstruktsiooni sõeluda, peaks seda pigem nimepidi ütlema, mitte arvama, sest parser, mis hooajalise reegli vaikselt maha jätab, teatab, et apteek on avatud ühel päeval aastas, mille kirjeldamiseks reegel eksisteerib.

Allikad:OpenStreetMap · OpenStreetMap wiki — amenity=pharmacy · OpenStreetMap wiki — the opening_hours syntax · Open Database License 1.0 · Overpass Turbo — querying OpenStreetMap· kontrollitud2026-09-08

Korduma kippuvad küsimused

Miks see sait ei loetle apteekide aadresse ja lahtiolekuaegu?

Sest ajad muutuvad mitu korda aastas ja avaldatud nimekiri on ilmumispäeval kuskil vale. Kahju on konkreetne — sõit üle linna öösel pimeda akna taha. Piisavalt stabiilne avaldamiseks on süsteem: regulaator, register, retseptireeglid ja kohalik sõnavara.

Milline register ütleb, kas apteek on seaduslik?

Iga riigi riikliku ravimiameti register. See on autoriteetne selles, kas apteek on litsentseeritud, ja mitte millegi muu osas — eriti mitte lahtiolekuaegade, mis on apteegi enda avaldus kõikjal selles piirkonnas.

Kas ma saan OpenStreetMapi andmeid apteegileidjaks kasutada?

Jah, Open Database License’i alusel, mis nõuab omistust OpenStreetMapi panustajatele ja share-alike’i, kui avaldate tuletatud andmebaasi. Asukohakate on hea; lahtiolekuaegade kate on auklik ja dateerimata, seega käsitlege aegu vihjena, mida kinnitada.

Kuidas pärida kõik apteegid linnas?

Overpassiga, pärides amenity=pharmacy kasti või haldusala sees. See tagastab sõlmed ja teed siltidega sekunditega. Kinnitage ajakriitiline apteegi enda kanali vastu enne tegutsemist.

Teised reeglid

Leidke üks, mis on praegu avatud

Otsingu järjekord, mis töötab, miks kaart eksib sagedamini kui register, kuidas lugeda stringi open_hours ja mida teha, kui midagi pole avatud.

Ööd, nädalavahetused ja riigipühad

Kes otsustab, et apteek jääb avatuks, kuidas avaldatakse tööpäevi, millised pühad lõpetavad kõik ja kuidas planeerida korduvretsepti pikale nädalavahetusele.

Mida saab apteeker ilma arstita teha

Kolm juriidilist riiulit, mida apteeker on tegelikult koolitatud püüdma, küsimused, mida nad esitavad ja miks, ning punkt, kus vastuseks on pigem arst kui toode.

Teil on ravim otsa saanud

Millised olukorrad on pigem kiireloomulised kui ebamugavad, kuidas igas riigis kordus uuendatakse, mida saab apteek oma äranägemise järgi teha ja kuidas selle kordumist takistada.

Digiretseptid letis

Mis on riiklik retseptipood, kuidas ennast identifitseerida, kuidas kellegi teise jaoks koguda, mida ise näha saab ja kus süsteem piiril peatub.

Retsepti kasutamine teises riigis

ELi eeskirjad, mis muudavad retsepti kaasaskantavaks, millised elemendid peavad kaasas olema, millised ravimid vajavad reisitunnistust ja mille eest Euroopa ravikindlustuskaart maksab ja mille eest ei tasu.

Kõik22apteegi leheküljedRavimi koostoimed

Vastus küsimusele "mida sa võtad?"

TempoLife on tasuta terviseharjumuste jälgija, millel on märkmed ja ravimipäevik, nii et andmed, mida apteeker või väljaspool tööaega töötav arst küsib, on juba kirja pandud, mitte meelde jäetud.

Create a free accountHangi rakendus