A medical device is provided with an alarm organization. A process for alarm organization of a medical device is also provided. Based on pressure measured values (99) and flow measured values (97) and with a comparison criterion it is determined whether an elevation of an airway pressure (105) of an anesthesia device or of a ventilator is caused by a coughing event. A visual and/or acoustic output (117, 121) of a warning or alarm (42) is adapted, indicating the elevated airway pressure PAW_High (105).