Skip to content

Pharmacy Mask Map provides real time inventory data through the map during the shortage in COVID-19 pandemic.

License

Notifications You must be signed in to change notification settings

kiang/pharmacies

Repository files navigation

English | 中文

Pharmacy Mask Map

Pharmacy Mask Map

Background

During the COVID-19 pandemic in early 2020, Taiwan faced a critical shortage of facial masks. To ensure fair distribution, the government implemented a name-based rationing system on February 6, 2020. The system controlled mask distribution through pharmacies and health centers while providing real-time inventory data.

This project creates an interactive map that helps people:

  • Find nearby pharmacies with mask stocks
  • Check real-time mask inventory levels
  • View pharmacy operating hours and contact information
  • Get custom notices from pharmacies
  • Navigate to their chosen pharmacy

Data Sources

The data currently used includes:

  1. NHI Contracted Medical Institutions - Pharmacies
  2. NHI Contracted Medical Institutions - Clinics - Health Centers
  3. Fixed Service Schedule of NHI Contracted Institutions
  4. Mask Stock Details of NHI Contracted Institutions

Based on the above data, combined with TGOS National Address Positioning Service to obtain corresponding geographic coordinates, cities, districts, and villages.

Due to pharmacy feedback requesting custom notes in the data, a Google Form was designed to collect data, which is periodically updated to raw/custom_notices.csv

Some geographic coordinates were searched using National Land Surveying and Mapping Center, and corrections provided by @lanma were also incorporated.

For related applications and information, please refer to Mask Supply and Demand Information Platform

Articles

  1. Pharmacy Mask Map Launch
  2. Pharmacy Mask Map Post-Launch Notes
  3. Search Function Added to Pharmacy Mask Map

System Configuration

Cron schedule

* 07-22 * * * /usr/bin/php -q /home/kiang/github/pharmacies/scripts/cron.php

藥局口罩採購地圖

藥局口罩採購地圖

背景說明

因應 2020 年初 COVID-19 疫情期間口罩短缺,台灣政府於 2020 年 2 月 6 日實施口罩實名制。為協助民眾即時查詢哪裡有口罩可以購買,本計畫整合了政府提供的開放資料,建置了這個互動式地圖,提供以下功能:

  • 快速找出附近有口罩存貨的藥局
  • 即時查看口罩庫存數量
  • 顯示藥局營業時間與聯絡資訊
  • 提供藥局的重要提醒訊息
  • 導航至所選藥局位置

目前使用到的資料如下:

  1. 健保特約醫事機構-藥局
  2. 健保特約醫事機構-診所 - 衛生所部份
  3. 全民健康保險特約院所固定服務時段
  4. 健保特約機構口罩剩餘數量明細清單

以上述資料為基礎,搭配 TGOS 全國門牌地址定位服務 取得對應的地理座標、縣市、鄉鎮市區與村里等欄位

後續因為藥局回饋希望在資料加入自訂備註,因此設計了一個 Google表單 蒐集資料,內容會不定期更新到 raw/custom_notices.csv

部份資料的地理座標使用了 國土測繪圖資服務雲 進行檢索,同時也併入了來自 @lanma 提供的修正

相關應用與說明可以參考 口罩供需資訊平台

介紹文章

  1. 藥局口罩採購地圖上線
  2. 藥局口罩採購地圖上線後記
  3. 藥局口罩採購地圖加入搜尋功能

程式說明

系統排程

* 07-22 * * * /usr/bin/php -q /home/kiang/github/pharmacies/scripts/cron.php

About

Pharmacy Mask Map provides real time inventory data through the map during the shortage in COVID-19 pandemic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published