a coroner is a public official who investigates deaths defined by law as being important to the public health and welfare. these typically include deaths thought to be from other than natural causes but also may include sudden and unexpected deaths determined later at autopsy to be from natural disease.
in general, coroners are appointed by the government and, depending on the local law, do not necessarily have to be medical doctors or other health professionals. but only medical doctors can perform autopsies.