Hacking for anaesthesia: #gashack
- 5 minsWhat do you get when you have a roomful of anaesthetists and software developers? Something geekier than just the two separately!
I recently had the pleasure of being part of exactly the scenario above, and I must say it was extremely enjoyable! The Royal College of Anaesthetists and the Society for Computing and Technology in Anaesthesia (SCATA) jointly hosted the #gashack event at the RCoA, over a weekend (21-22 October 2017), and quite a few people turned up to pitch their ideas and work on possible solutions.
From the pitches that were presented, I joined a group of 4 people to work on an app that could be used to provide customisable preoperative medication advice for patients who present to preoperative assessment clinics, so that they can modify their drug regimens in preparation for their surgery.
Often what happens in this situation is that patients would turn up to clinic and be seen by either an anaesthetist or a preassessment nurse and their medical history would be noted along with any medications they might be taking. The medications would then be looked up in books or guideline documents and the information then gets conveyed back to the patient in a variable format. Our group set out to streamline this process to provide an elegant printable list for the patient to then go home with so that they know what exactly to do with their medication before they undergo their operation.
Our group had 2 people with previous experience of developing software: J. Grant Forrest, who has had a long involvement with SCATA, and myself, who has had some limited experience with making simple R shiny apps. We first scraped recommendations from the Royal Cornwall Hospitals NHS Trust Preoperative Assessment Guidelines, which one of our group had had previous experience using. To scrape the data we used Tabula, an open source .pdf
solution that works on both Windows and Macs.
The group then branched off into 2 directions. Grant created a solution which utilised PHP/SQL and I used an R Shiny solution that loaded up the scraped data as a .csv
file that served as a lookup table, and used the selectizeInput()
function in my ui.R
file to allow the selection of multiple drug names. The drug name inputs were then used to filter the lookup table and make a customised drugs list with advice for medication management on the server.R
script. To see my solution live, click here. I’ve included the code for my solution below.
Overall, it was an extremely enjoyable day, and my first Hackathon. It was fun to apply my coding skills to a clinical problem. Hopefully this app will continue to develop!