in extremis

Adverb
  1. at the point of death
in extremis
A doctor administers a final treatment to a patient in extremis.