Text this: Characterization and calibration of a triple-GEM detector for medical applications