Notwithstanding any law to the contrary, health data on an individual collected by public health officials conducting an epidemiologic investigation to reduce morbidity or mortality is not subject to discovery in a legal action.