A similar concept makes an appearance in the 2022 novel How High We Go In The Dark by Sequoia Nagamatsu.
It’s kind of a dark story but basically a global pandemic creates an unprecedented number of terminally ill people—including many children—forcing humanity to find new ways to come to terms with death. One such innovation is an amusement park where parents can enjoy one last weekend of fun with their children culminating in a thrill ride to the Great Beyond.