Death is normally certified by the medico legista ie the medical examiner. They write out the death certificate which can then be taken to the civil registry for the death to be registered and the actual certificate to be issued. If the person dies in hospital it will be done there, and if at home, the local doctor will contact them, or the police.
Matilda