In Scotland it is compulsory to register births, still-births, deaths, marriages and civil partnerships.