Medication is always more important than having an empty stomach! Taking it won't break your fast unless the binding agent is sugar. Even if it would break your fast, getting your medication is way more important than maintaining a fast.
Try adjusting your eating window so that it accommodates your medication routine. Most medications are safest and most effective ingested after a meal, so adjust your eating window accordingly.