Former patient writes letter thanking ER department for saving his life