Many Lives, Many Memories.

Tag: medical

myanmar chatbot

How did I create a chatbot?

I started a chatbot in Chatfuel which is connected with Myanmar First aid FB page. (m.me/myanmarfirstaid).

But it would probably be migrated to My opd page which is more relevant.

I’m going to explain how I created this chatbot

The services  I used.

  1. Chatfuel
  2. Integromat
  3. Google Custom Search
  4. Google Sheets.

  • Basically, Chatfuel serves as a front end to display information to users.
  • Google sheet is the database.
  • Integormat is the medium between chatfuel and Google sheet to transfer data.
  • Google custom search is a separate service which is useful when the information does not exist in the Google sheet. It uses the same user attribute (aka user’s input) and searches in the custom search engine. The Google CSE needs to be prepared by advanced. Not very difficult though, I’m gonna explain details in next session.

Chatfuel

It has blocks and cards. I used automate session to give the users the options.

The bot has different functions.

  1. Depression test (calculation, if statements and showing results)
  2. Blood pressure ( same as depression test, collect user input and show answers with if statements )
  3. Blood glucose ( same as Blood pressure, collect user inputs and show answers with if statements )
  4. Searching for the drug. if the users click on drug search. It will reach to “collect “ block. In which, I set up user attributes card, to store the input users typed in as a variable. Then I called the JSON plugin. So, another work is to go to integromat or other automation services to search data in Google sheet. See more details in Integromat. The search result would be shown inside integromat. So, I don’t specifically need to customize in Chatfuel.
  5. Dictionary. It’s similar to searching drug. But, I used different service ( flowxo). It’s more complicated than integromat. Besides, it stops functioning. So, I’m not gonna explain here.
  6. In order to use Google custom search, I set up a plugin called Google search. I could also use another search engine, such as Bing or swift type search. But, I haven’t tested them yet. After adding Google custom search, I need to add API key and custom search engine ID. There is a link to that services,  you have to follow the guidance and you will get an API key and CSE id. Then, chatfuel will do the next steps.

2. Integromat

Create an account. Then start creating a new scenario. Even though they use different terminology. It’s similar to projects. From the scenarios, you can set up a new workflow. Don’t need to worry too much, check this reference. Because I have to explain very long if want to deep into integromat.

Steps.

  1. Create a webhook, put the link in chatfuel’s JSON plugin as post method. Don’t forget to add user attributes under the address.
  2. Then, you might want to type something from chatbot( don’t forget to show the card you are actually working on, I mean drug search card). Webhook from integromat will recognize the input and start working.
  3. After that, link to google drive account, and select the google sheet you store data.
  4. Choose file, then choose workbook. You need to select which column you wanna find the data. That is the filter section working.
  5. Then, array aggregator comes in, which is to rearrange data from sheet to a new format. You can select which columns you wanna show in the results page. So, can rule out unnecessary columns.
  6. Then, the next step is routing. Which is useful when you want to create results for all possible outcomes. Such as, if there is no data, go to this place and do that. If there is data, show this and do that. Something like that.
  7. From the routing, you can create chatfuel cards, There are messages, user-attributes and redirect to blocks. From the message, you can create text, image, sound etc. To understand the data structure, you need to learn a bit in this link.
  8. If there is no data, I created an option 2 from routing and shows error text then redirect to a new chatfuel block ( which is google custom search). So that, users will be able to see results in google.

3.Google custom search

It is very easy to use. Search from the google custom search and it will give you a link to the website. You need a google account. You can put as many web address as you wish. In my case, I added Myanmar healthcare websites. So, the query will be searched only inside those websites. You can edit site ranking and other options.

https://cse.google.com/cse/all

You will get a search engine id and put it in the chatfuel plugin. Then its’ done.

Juvenile Idiopathic Arthritis

ယနေ့က မေလ ၂ရက်နေ့။
ကျွန်တော်ကတော့ ခုထိ နေပြည်တော်မှာပဲရှိနေသေးတယ်။ နာဂစ်ဖြစ်ခဲ့တာ ၁၀နှစ်မြောက်တဲ့နေ့ပေါ့။
မနေ့က သူငယ်ချင်းတွေနဲ့ Peacock မှာ အေးအေးဆေးဆေး တွေ့ပြီးစကားပြောဖြစ်ကြတယ်။
ထွေရာလေးပါးပြောရင်း ရဲမွန်ကို ဝမ်းကွဲညီမလေးတစ်ဦးမှာဖြစ်နေတဲ့ ရောဂါအကြောင်းမေးလိုက်မိတယ်။
ရဲမွန်က လက်ရှိ နေပြည်တော်ကလေး ဆေးရုံမှာဆိုတော့ သူကအဲဒီ case ကို ကြည့်ခဲ့ရသူလေ။

အဲဒီညီမလေးက အသက်၁၀နှစ်ဝန်းကျင်ပဲရှိဦးမယ်။ အမျိုးတွေများလွန်းတဲ့အတွက် အမေကပြောမှ ညီမတော်မှန်းသိတယ်။ မနှစ်က အဖိုးမဆုံးခင် အိမ်ကို လူနာလာကြည့်ရင်းနဲ့ အဲဒီကလေးကိုတွေ့မိတာ။
စသိသိချင်းမှာတော့ သူက ခြေထောက် ကို ဒူးကနေဆန့်လို့မရဘူး။ Lock Knee ဖြစ်နေတယ်။
ဘာကြောင့်လဲဆိုတာကို တော့ မသိခဲ့ဘူး ။ အရိုးဆေးရုံမှာရှိတဲ့သူငယ်ချင်းတွေကို မေးပြီး ဘယ်နေ့ OPD လာပြလို့ရမလဲ စုံစမ်းခဲ့တယ်။ ကလေးအဖေကို လည်း သေချာသွားဖို့မှာခဲ့တယ်။ ဒါပေမယ့်သူတို့မသွားခဲ့ဘူး။
အခု တစ်နှစ်လောက်ကြာတဲ့အခါ ကျမှ သူတို့ဆေးရုံသွားပြတယ်လို့ပြောတယ်။ အရိုးနဲ့ပတ်သက်ပြီးသွားတာဖြစ်ပေမယ့် ဆေးရုံက ကလေးဆေးရုံကိုပြန်လွှဲလိုက်တယ်။ သူ့ဆီမှာ နှလုံးပါကြီးနေတယ်တဲ့။

ဘာဖြစ်မှန်းသေချာသူတို့ကသိပ်မသိကြဘူး။
ရဲမွန်ကိုမေးကြည့်လိုက်တော့ လူကြီးမှာဆိုရင် Rheumatic arthritis , ကလေးမှာဆိုရင် Juvenile idiopathic arthritis လို့ခေါ်တယ်တဲ့ .Immune disease တစ်မျိုးဖြစ်နေတဲ့အတွက် system ပေါင်းစုံကို ထိဖို့များတယ်လို့သူတို့ကပြောတယ်။ ဒူးကပြဿနာကတော့ စဖြစ်ဖြစ်ခြင်းမှာ သိခဲ့ရင် ပြန်ပြင်လို့ရသေးတယ်။အခုအချိန်မှတော့ ပြင်လို့မရတော့ဘူးလို့ဆိုတယ်။

သူတို့က တောင်သူလယ်သမားတွေ၊ ငွေများများစားစားရှိတာလည်းမဟုတ်ဘူး။
ဒီလို Immune ရောဂါကဘာလို့ သူတို့ဆီမှာလာဖြစ်ရလဲလို့ တွေးရင်း စိတ်မကောင်းဖြစ်နေမိတယ်။
ပျောက်ကင်းအောင် ကုသနိုင်တဲ့အရာလည်းမဟုတ်ဘူး။
ထိရောက်တဲ့အကြံဉာဏ်လေး မပေးနိုင်ဘူး။

သူတို့တွေဆီမှာ psychosocial support အများကြီးလိုနေမှာပဲလို့ထင်တယ်။
ဘယ်လိုဝဋ်ကြွေးများလဲ။ ကိုယ့်ကိုယ်ကို အပြစ်မတင်သင့်ဘူးလို့ထင်ပေမယ့် ဘာမှမလုပ်ပေးနိုင်တာကိုတော့ မကျေနပ်ဘူးဖြစ်နေတယ်

 

အာသာ

How did we develop My OPD?

When I first arrived in Yangon in July 2017, I had a hangout with my old classmates in the china town. They were studying master degree in emergency medicine ,pediatrics and public health. So, we talked about random subjects before we reached to a point that we all agree.

They said they were facing over workload in the emergency department.
However, not all patients attending are not emergency .Some are visiting to hospitals for OPD treatment. Basically, there is no filter mechanism to redriect these patients to corresponding specialists. They said there are specialist opd clinics on some weekdays but patients don’t know about the details when and where they can visit. Not only the patients, even general practitioners , doctors from other hospitals who are referring the patients to tertiary centers don’t have the information about OPD dates in hospitals.

The point is there is no comprehensive information system to publish all kinds of hospitals’ OPD days. I asked that where can I find all this information quick and easily . They said No, even the ministry of health doesn’t have that data. The hospitals don’t need to share these opd days to ministry. So, there is no option except the fact that you have to contact each and every hospital in person .

My friends suggested that I could make an app to show this information. Of course, I do have to collect the data manually..But , If there was a platform where both health care practitioners and patients find the dates easily, there will be tremendous impact on the health system. All I have to do is initiate it . I am not sure they were being serious or not. Because, we all are drunk at that time. But, I considered about that thing seriously .
Finally, I decided to make it because I already have my new friend who is very good at programming . I have to explain which kind of app I want and he can make it happen . He is also an enthusiast about improving health system by means of technology.

At the night, when I got back to home, a half drunk I started to collect the opd days from different hospitals. I uploaded a post on Facebook, asking for help from my classmates from different hospitals. Some of them were very helpful by sending pictures and texts from messenger. I copied all the information from pictures into a google sheet which was designed by my developer friend.

IMG_20170823_151445

Pictures of OPD schedule sent by my friends

After working 4 months on this project, we finally had a prototype of our app.
On December 1 2017, we were able to upload our first collaborated app on google play store. It has OPD information from more than 50 hospitals and keep increasing everyday . We squeezed our time and used minimal budget to produce this one. WE are very happy that we made it .
But, this is the first step. We aimed this one to be the reliable app for every practitioners and patients. So, we have a vision to improve this app with advanced features. Although, we could develop My OPD app with free services we had, we cannot rely on that free thing if we have a plan to be advanced.
Not only the human resource, but also the money,management and cooperation might be needed in the future.
We still have to wait and see how the public will respond.
After that , we could make more steps.

 

MY OPD, Download 

December 8 2017

Dr. Nyein Chan Ko Ko
Myanmar

< if donation is the some kind of contribution not only about the money. We are contributing our knowledge, technology , money and time for the community . I hope people could see this and make it useful.>

IMG_20170817_234518_325

Designing how do we show data on app.

 

My OPD

ကျွန်တော် ရန်ကုန်ကိုစရောက်ခါစက ရန်ကုန်ဆေးရုံကြီးမှာအလုပ်ဝင်ပြီးဘွဲ့လွန်တက်နေတဲ့သူငယ်ချင်းတွေနဲ့ အပြင်မှာတစ်ခေါက်ဆုံဖြစ်တယ်။

သူတို့လည်း ဆေးရုံတွေမှာ တက်နေတဲ့ပြဿနာအကြောင်းတွေကိုပြောပြ ၊
ကျွန်တော်လည်း ကိုယ်လုပ်နေတာတွေကိုပြောပြပေါ့။

ဒီလိုနဲ့ပဲ.. သူတို့က တစ်ခုပြောတယ်။
တစ်နေ့ထက် တစ်နေ့ ဆေးရုံကြီးကို ရောက်လာတဲ့လူနာတွေကပိုပိုများလာကြောင်း။

ရောက်လာတဲ့လူနာတိုင်းကလည်းအရေးပေါ်မဟုတ်ကြောင်း။
အချို့တွေဆိုရင် သူနဲ့ နီးစပ်ရာဆေးရုံတွေမှာကုသမှုယူနိုင်ပေမယ့် ရန်ကုန်အထိရောက်လာကြကြောင်းပြောတယ်။
နောက်ပြီးတော့ လူနာတွေကိုလွှဲတဲ့အခါတွေမှာလည်း .. Specialist OPD ကြည့်တဲ့ရက်ရယ် လူနာတကယ် ဆေးရုံကိုရောက်လာတဲ့ရက်ရယ်က မတူတဲ့အတွက်ကြောင့် မလိုအပ်ပဲနဲ့ လူနာတွေ က ရောဂါပြဖို့စောင့်နေရကြောင်းကိုလည်းပြောတယ်။

အဲဒါနဲ့ ပဲ .. ဆေးရုံတွေရဲ့ ပြင်ပလူနာကြည့်တဲ့အချိန်တွေကို အလွယ်တကူရှာဖွေလို့ရတဲ့ နေရာရှိရင်ကောင်းမယ်ဆိုတဲ့ အကြံပြုချက်ထွက်လာတယ်။

ဒါကြောင့် .. အဲဒီလို အလွယ်တကူ ကြည့်လို့ရဖို့
appတစ်ခုလုပ်ဦးမှဆိုတဲ့စိတ်ကူးထွက်လာတယ်။

တကယ် အဲဒီလိုလုပ်ဖို့ကတော့
အခက်အခဲတွေအများကြီးရှိတယ်။

ပထမတစ်ခုကတော့ Develop လုပ်မယ့်သူပေါ့လေ။
နောက်တစ်ခုကတော့ ဒီOPD အချိန်တွေကိုလိုက်စုတဲ့အခက်အခဲ
ပြီးတော့ တစ်နှစ်တစ်ခါ အချိန်တွေကပြောင်းလဲနေတာမို့ . ရေရှည် သူ့ဘာသာ ရပ်တည်နေအောင် လုပ်ဖို့ကိစ္စ။

ပထမ Develop လုပ်ဖို့အခက်အခဲကတော့ Developer experience အများကြီးရှိတဲ့ ကို ချမ်းမြေ့ကိုကို က ကူညီလို့အများကြီးအဆင်ပြေသွားတယ်။

ကျွန်တော်ကတော့ ရတဲ့နေရာကနေ အချိန်ဇယားတွေလိုက်စုတယ်။
Database ထဲထည့်တယ်။
၂လခွဲလောက် လုပ်ပြီးတဲ့အခါ အခုတော့ တော်တော်လေးကိုပုံပေါ်လာပါပြီ။

ဒီလအကုန်လောက်မှာ ကျွန်တော်တို့ Android app ထုတ်ပြီး playstore ပေါ်တင်နိုင်လောက်ပါမယ်။

ကျွန်တော်တို့ က platform တစ်ခုကိုဖန်တီးထားပြီးပါပြီ
တစ်ခုပဲ လိုနေတာက .. နောက်ထပ်အချက်အလက်တွေပါ။
အချက်အလက်အသစ်တွေထပ်ပေးပို့ရင် ပိုအသုံးဝင်တဲ့ appဖြစ်လာမှာပါ။

အခုဆိုရင်တော့ ရန်ကုန်၊မန္တလေး၊ နေ့ပြည်တော်နဲ့ မြို့ကြီးများက ဆေးရုံတွေရဲ့ ပြင်ပလူနာကြည့်တဲ့ရက်တွေ အချိန်တွေ ရထားပြီ:ပါပြီ။
နောက်ထပ်ပို့ပေးချင်တဲ့သူများလည်း messenger ကနေပဲဖြစ်ဖြစ်၊
ဘယ်လိုနည်းနဲ့ပဲဖြစ်ဖြစ် ပို့ပေးနိုင်ပါတယ်။

🙂
နောက်ကိုလည်း medical appတွေထပ်ပြုလုပ်ဖို့ရှိပါတယ်။

(နောက်ဆက်တွဲ: ဒီဇင်ဘာ တစ်ရက်နေ့ မှာ ကျွန်တော်တို့ app ကို လက်စသတ်ပါတယ်၊ အခုဆိုရင် Google Play မှာ စတင် ယူလို့ရပါပြီ၊ )

Download 

 

 

Download :

Current essential of medicine

image

ကျွန်တော်သုံးကြည့် တာ တော့ တော် တော် သဘော ကျ ပါတယ်။
ကျောင်းသား ဘဝတုနိးက
ဒါ မျိုး application လေး တွေ ရှိ ခဲ့ ရမှာ လို့အမြဲ တွေး မိတယ်။
ကျောင်း မှာ သင် တဲ့ hand out အတိုင်း ပါ ပဲ။

စာ အုပ် အလေး ကြီး တွေ လည်း
မကိုင် ချင်
ကျစ် ကျစ် လစ် လစ် နဲ့ စာ မျိုး သိ ချင် သူ တွေ ရဲ့ ကောင်းတဲ့ guide line လေး တွေ ပါ။

Download current essential of medicine

Powered by WordPress & Theme by Anders Norén