In forensic pathology the purpose of an autopsy is to determine the nature of death from a legal perspective.