## Inspiration

The inspiration for our application stemmed from the desire to solve an issue we, our friends, and our families have experienced. We noticed that hospitals work individually to combat the issue of long patient wait times, and the Canadian government has spent over 100 million dollars to fix it in the past year alone. Introducing, a service that works with all hospitals—a collaborative approach to better the lives of all Canadian citizens.

## What it does

TimeToCare is a web-based application designed to mitigate the long wait times experienced in hospital ER settings. Our service tackles the root of the problem by directing patient streams to hospitals better-suited to accommodate them. This results in a smoothed out demand at each health care centre, less frequent patient-demand spikes, and thus faster time to be treated.

## How we built it

We built the components of our app with a few different languages and tools. They include HTML/CSS to build the framework of our website, Javascript for the general functionality of the website, and data from the Google Maps API.

## Challenges we ran into

Challenges in our project mostly arose from the learning curve of what was required to build our application.

## Accomplishments that we're proud of

We are very proud to have developed a website, we believe, could have an impact in the health field. We came to HackWestern with the hope of solving this problem and despite our relative inexperience with any of the APIs or new languages, we feel like we have accomplished something amazing.

## What we learned

Including the programs and tools we used to build TimeToCare, we also learned teamwork, the importance of clear communication and good design principles.

## What's next for TimeToCare

Our next step for TimeToCare would be to create a scalable build. Now that we have supported our theory of directing patients to hospitals based on wait times and distance, we would like to see it run using real-time data, in numerous locations. We could see the required data being pulled from a government website or provided by the hospitals directly to the app.
## Inspiration

We were inspired by Katie's 3-month hospital stay as a child when she had a difficult-to-diagnose condition. During that time, she remembers being bored and scared -- there was nothing fun to do and no one to talk to. We also looked into the larger problem and realized that 10-15% of kids in hospitals develop PTSD from their experience (not their injury) and 20-25% in ICUs develop PTSD.

## What it does

The AR iOS app we created presents educational, gamification aspects to make the hospital experience more bearable for elementary-aged children. These features include:

* An **augmented reality game system** with **educational medical questions** that pop up based on image recognition of given hospital objects. For example, if the child points the phone at an MRI machine, a basic quiz question about MRIs will pop-up.
* If the child chooses the correct answer in these quizzes, they see a sparkly animation indicating that they earned **gems**. These gems go towards their total gem count.
* Each time they earn enough gems, kids **level-up**. On their profile, they can see a progress bar of how many total levels they've conquered.
* Upon leveling up, children are presented with an **emotional check-in**. We do sentiment analysis on their response and **parents receive a text message** of their child's input and an analysis of the strongest emotion portrayed in the text.
* Kids can also view a **leaderboard of gem rankings** within their hospital. This social aspect helps connect kids in the hospital in a fun way as they compete to see who can earn the most gems.

## How we built it

We used **Xcode** to make the UI-heavy screens of the app. We used **Unity** with **Augmented Reality** for the gamification and learning aspect. The **iOS app (with Unity embedded)** calls a **Firebase Realtime Database** to get the user’s progress and score as well as push new data. We also use **IBM Watson** to analyze the child input for sentiment and the **Twilio API** to send updates to the parents. The backend, which communicates with the **Swift** and **C# code** is written in **Python** using the **Flask** microframework. We deployed this Flask app using **Heroku**.

## Accomplishments that we're proud of

We are proud of getting all the components to work together in our app, given our use of multiple APIs and development platforms. In particular, we are proud of getting our flask backend to work with each component.

## What's next for HealthHunt AR

In the future, we would like to add more game features like more questions, detecting real-life objects in addition to images, and adding safety measures like GPS tracking. We would also like to add an ALERT button for if the child needs assistance. Other cool extensions include a chatbot for learning medical facts, a QR code scavenger hunt, and better social interactions. To enhance the quality of our quizzes, we would interview doctors and teachers to create the best educational content.
## 💡 Inspiration

The ongoing emergency service and the healthcare crisis in Canada at this time have been contributing issues to how our project came to be. We have seen reports of hospitals being short-staffed and exhausted and decided to attempt to mitigate some of the stress. Knowing emergency first aid can save many lives, yet only 18% of Canadians are currently certified. Seeing that our proposed idea could truly make an impact, we embarked on a 36-hour journey to create AnytimeAid: a project that provides help with just a few touches.

## 📱 What It Does

We have built and designed a simple yet powerful application that fits all your medical emergency needs into your mobile phone. Simply taking a photo of an injury at hand will yield step-by-step instructions within a matter of seconds. The simple user interface allows for easy navigation of all the features. Additional features include a map, which points out nearby clinics and hospitals, as well as the current location of the user; and an emergency contact panel; which has 911 emergency on quick dial and all other contacts the user has put down including their name, phone number, and address.

## ⚙ How We Built It

We design the UI/UX on Figma, creating a clean and appealing interface with bright colours. The frontend of the app is built using React Native with Expo and the backend is built using Flask, Selenium with Python, and MongoDB as the database. We used the Expo MapView package to build the map page using functions such as reverse geocoding and getting the location of the user to create the functionality. Selenium was used with Expo Camera to process images for web scrapping through reverse image search. The entire project is supported with Flask and MongoDB in the backend.

## 🗻 Challenges We Ran Into

During the process of creating this project, there were several challenges we faced. One of these major challenges involved integrating our frontend with our backend and handling requests to ensure a functional product. Additionally, we were quite ambitious in what we wanted the application to do, leading us to underestimate the complexity of the project and the amount of time it would take, which led us to have to adapt our plan as we were developing the application.

## 🏆 Accomplishments That We're Proud Of

As our project was quite complex and required many different components, we were proud of the progress we were able to make in the time that we had and our ability to integrate many different technologies, such as React Native, Flask, Selenium, Mongo DB within our project. In the past, we mostly worked on implementing smaller projects with these technologies so to be able to apply past knowledge and also apply new skills and learnings into creating this project that was meaningful to us was rewarding.

## 🧠 What We Learned

We learned many new technologies such as Selenium, Figma, and React Native. Most importantly, we learned to not take on too much or overestimate our abilities. Although we had a great idea that we were excited to put into code, it didn't take long for us to realize we took on more than we could handle and as a result, there are many bugs still in the app.

## 😤 What's Next For AnytimeAid

We would like to reach out to sponsors before beginning to run trial tests. These trial tests will start with online photos of injuries and measure the accuracy of the results. We will then move on to trial within select provinces in Canada before expanding further throughout Canada and potentially worldwide. We will be constantly improving and updating our database and system and we hope to bring aid to those in need, anytime, anywhere, anyplace.