From Manual Calculations to AI Efficiency: The Journey of Warfarin Dosing from Software Development to ChatGPT Prompts

In the fast-paced world of urgent care, each patient brings a unique challenge—one recently took me back to my early days of medical practice.  I had an appointment with a patient taking warfarin, an old blood thinner.

Warfarin is a tricky medicine to manage for both patients and doctors.  It can be lifesaving but also be poisonous. It is also used as rat poison after all.  Small changes in patients’ diet can throw off the balance between its medicinal and toxic nature.  We track this equilibrium with a test known as the International Normalized Ratio (INR), which measures the time it takes for blood to clot.  This patient’s INR was elevated, and it was clear his warfarin dosage needed tweaking—a task I hadn’t undertaken in years, thanks to the march of medical progress and a team-based approach to care at The Permanent Medical Group.

I was getting nervous. Even when I was managing warfarin regularly, it is relatively complicated and very easy to make mistakes. Then it hit me: eight years back, I had developed an app specifically for this challenge. Simply input the patient’s warfarin dose and INR, and the app calculates the next steps.

WarfarinApp

Problem solved!

These days, when solving a problem, I often wonder, how would ChatGPT in this context.  I had to try it.

To get answers, get answers in medicine without too many disclaimers, ask for expert level answer.

You notice the recommendations are slightly different.  This is not a ChatGPT hallucination.  Simply there are different versions of the algorithm.

WarfarinApp reference

ChatGPT reference

It took me 1 month to write WarfarinApp.  It took me couple of minutes to engineer the PROMPT.   Let’s do a back of the envelope calculation here of the jump in productivity.   Let’s say it took me 40 hours to develop this calculator and 2 minutes to engineer the PROMT.   That’s a 1,200 X jump in productivity.  It’s clear where the economic growth in the coming years will come from.

Leave a Comment

Scroll to Top