The Democratic-led Assembly on Tuesday approved legislation that would make it easier to file lawsuits over failed cancer diagnoses.

The bill’s passage comes after Gov. Andrew Cuomo, Senate Majority Leader John Flanagan and Assembly Speaker Carl Heastie announced they had reached a three-way agreement on the measure known as Lavern’s Law.

The bill extends the statute of limitations to the date a patient has learned or should have learned of their misdiagnosis.

“When it comes to treating life-threatening illnesses, we know that time is of the essence,” Heastie said in a statement. “Under this legislation, individuals who have suffered the consequences of a missed diagnosis will be given the opportunity to seek justice.”

“Without this legislation, cancer patients are at continued risk of having their rights expire before they even discover malpractice,” said Assemblymember Weinstein. “Current law has for too long denied individuals their day in court and fails to hold medical professionals responsible for their mistakes, which can have life-and-death consequences for their patients.”