A primary school teacher died from an undiagnosed blood clot one day after being discharged from hospital, documents submitted to an inquest show.