What is the definition of malfunction in a medical sense?

Malfunction in a health sense is usually when something fails to work as expected or fails to produce the desired effect for a specific reason.