As a part of Vancouver Coastal Health’s Child & Youth Mental Health & Substance Use strategy, the decision was made to offer digital intake for new patients. Digital patient intake forms allow for the rapid collection and processing of medical history data. It allows the clinic to efficiently gather essential details about the patient, streamlining the intake process and improving data accuracy.
I was tasked with the development and implementation of a geolocation-based triage tool that efficiently directed new patients to the appropriate clinic’s intake form. By leveraging the power of Vue.js, TypeScript, and the Mapbox API, I created an interactive solution that streamlined the triage process and improved patient access to healthcare services.
Each catchment area was presented to us as a list of complicated rules. This list was very much designed for a human to triage patients over the phone rather than something that could be used programmatically by an algorithm. To solve this, I converted the catchment area rules to a set of coordinate polygons that would represent the boundaries of each catchment area. With this set of polygons, I then transform the user’s address to coordinates using the Mapbox Geocoding API and determine which catchment area it falls into using a small library which does a great job of implementing this point-in-polygon algorithm.