The bill - which was backed unanimously - also provides for a charter of patients' rights and responsibilities within six months of the legislation coming into force.
The charter, the first of its type applied to cancer patients, urges doctors to attempt to close the gaps in treatment between rich and poor countries, strengthening cooperation between scientists in different countries.