Details of how an assisted dying law would work have been published