This is an example of how to calculate and forecast provider utilization. The scripts shows how you can utilize the Healthie API to determine this information.
First, make sure you have a Healthie API key and account. If you don't have one, you can go to https://www.gethealthie.com/api and request access.
Second, clone the repository to your computer, and install dependencies.
git clone https://github.com/healthie/provider-utilization-calculator.git
cd provider-utilization-calculator
bundle install
Third, adjust the script to add in your API key, adjust the API URL to the correct environemtn, and set desired date range.
The script can be run as a normal Ruby script
ruby ./utilization_queries.rb