Text this: Simulation studies at the MICROMEGAS detector and micropattern applications in medicine