The loss of physical or mental function as a result of an injury or illness. Impairment can be temporary or permanent.