Searching for available emergency room in a straightforward manner is a multi-step process which includes 1) searching for nearby hospitals that may have any ER 2) confirming the ER availability via phone calls or websites, etc. until you find one that accommodates to your need. (if there's any)
EmergencyRoom Chatbot provides you with a much more efficient and faster solution; drop your address and the Chatbot will have rest of the work done for you on the fly.
- Add the ChatBot's LINE channel to your friends' list
You can start by adding our channel at https://liff.line.me/1645278921-kWRPP32q/?accountId=330zpmoc or add by QR code.
- send any message to activate the EmergencyRoom-ChatBot.
- enter your current address (e.g 서천동, 덕영대로) or name of the place near you (e.g 경희대학교)
- confirm your location by tapping '네'
- ChatBot will then check ER availability of nearby hospitals. If there's any, it will send the list of the hospitals in ascending order of estimated time to get there from your current location.
Note that the hospitals are sorted by estimated time instead of absolute distance from your location, which adds even more reliability for your urgency.
To reactivate the ChatBot, enter any chat.
This project was built on Amazon Linux 2
on ec2
instance of aws.
Following instructions will be compatible on Amazon Linux 2
and other linux distributions.
git clone [email protected]:curieyoon/emergencyRoom-ChatBot.git
cd emergencyRoom-ChatBot
npm install --save
npm install -g yarn
yarn add dotenv
Under the root repository emergencyRoom-ChatBot
, create your .env
file containing private keys for the APIs this project depends on.
Your .env
file should look like this:
CHANNEL_ACCESS_TOKEN="Your_Line_Messenger_Access_Token"
KAKAO_KEY="KakaoAK Your_Kakao_API_Private_Key"
MY_DOMAIN="Your_server_domain_which_this_service_runs_on"
EMERGENCY_KEY="Your_Hospital_API_Key"
DIR_ID="Your_Naver_Map_API_ID"
DIR_KEY="Your_Naver_Map_API_KEY"
To import .env
file properly in each module, make sure the line require("dotenv").config( {path: "/path/to/.env"} );
contains the absolute path of your .env
file on your server.
Each key in the .env
indicates:
CHANNEL_ACCESS_TOCKEN
: Channel access token on LINE MESSENGER API.KAKAO_KEY
: REST API Key on KAKAO DEVELOPERS.MY_DOMAIN
: Your server domain or IPv4 address.EMERGENCY_KEY
: Service Key on data.go.krDIR_ID
: API ID on NAVER OPEN API.DIR_KEY
: API KEY on NAVER OPEN API.
Distributed under the MIT License. See License.txt for more information.
- Yerim Hong : [email protected]
- Sihwan Kim : [email protected]
- Daeyeon Kim : [email protected]
- Jueun Shin : [email protected]
- Curie Yoon : [email protected]