Skip to content

A rebirth of my popular medication tracking app for people living with hemophilia. Available for free at hemolog.com

Notifications You must be signed in to change notification settings

michaelwschultz/hemolog.com

Repository files navigation

CodeFactor

Hemolog Banner

A rebirth of my popular medication tracking app for people living with hemophilia. Available for free at hemolog.com

  • Free to use
  • Not sponsored by any person or company
  • Open source

Hemolog is free but if you'd like to Donate, that would be awesome.

Alt

Features

Insights on your data

Insights are something that I always wanted to be apart of Hemolog, and now they're finally here.

These insights are calculated as you add more data. Filters will allow you to choose different time frames for viewing your data down the road giving you the best most comprehensive view into your treatment history ever. I've chosen a few stats that are interesting for me. If you have thoughts on what you would like to see just let me know.

Insights Example

Emergency Card

Allows emergency personnel to scan or visit the link written on your emergency card to quickly get all the crucial information they need.

Example Emergency Card

Create an account and fill out the profile before printing yours out today.


History

Hemolog was the first iPhone app available for hemophiliacs back in 2011. It has since been removed from the App Store since focusing on other projects meant that I couldn't keep it updated.

I initially designed Hemolog for myself. I was in college at the time and had been building websites and web apps for friends and family, along with the odd job here and there.

Hemolog meant the world to me and I'm glad it was able to serve people well for the 4 years it was on the App Store. But this year (2020), I decided to take another crack at it. The first version never really lived up to what it was suppose to be. The most important part of having data in a digital format is the ability to quickly gain insights from it. The first version didn't have any built in analytics or stats. This time around, I've made that the number one priority.

I hope you find Hemolog useful and friendly to use. Or, if you don't have a bleeding disorder like hemophilia, perhaps you find this project interesting none the less.


Developers

Getting Started

You'll need Node and Yarn installed before you can run the app. Check the package.json for corresponding version numbers.

You'll also need to start the Firebase emulators which run in a separate process. Open up a terminal window and run

yarn firebase

Then open another terminal window/tab and run the development server (Nextjs).

yarn dev

Open http://localhost:3000 with your browser to see the result.

You can also open http://localhost:8081 to see the Firebase emulators and the corresponding data. Hemolog uses Auth for authentication via Google (which is faked when running locally) and Firestore for hosting your data. You can manipulate your data via this interface as well.

After you're up and running, start editing the landing page by modifying pages/index.tsx. The page auto-updates as you edit the file.

Learn More about Next.js

To learn more about Next.js, take a look at the following resources:

Deployed on Vercel (you can do the same)

The easiest way to deploy Hemolog is to use the Vercel Platform from the creators of Next.js.


API

Added in June 2021. The Hemolog.com API allows anyone with an account to access their data via REST endpoints.

Endpoints

  • recent-treatments (most recent 3 treatments)
  • treatments (all treatments)
  • log-treatment (log a new treatment)

For example, recent-treatments returns the API key holders most recent treatments. Same as what is shown on the public emergency page. You can test this in the browser or using a cURL command.

Example cURL request

curl -X GET \
  'https://hemolog.com/api/recent-treatments?apikey=<your-api-key>' \
  -H 'Accept: */*'