A 34-year-old woman has died in hospital after being told she would need to wait weeks for an appointment with a dentist.