Doctors must distinguish between natural death (from internal illness) and non-natural/unclear death (accident, suicide, or crime).
It ensures death is certain by identifying "sure signs of death" (e.g., Totenflecke or Totenstarre ). Die Leichenschau
The examination serves several vital functions beyond simply confirming a person has passed: Die Leichenschau
Next of kin are responsible for notifying a doctor immediately. Often, this is the deceased's general practitioner (GP) or an emergency physician. Die Leichenschau