There are probably close to a dozen versions of this song, all with different lyrics. Irving Mills was the writer although he borrowed heavily from earlier songs. Mills himself wrote several versions of it. This is his second version, which I always thought was the best, though few people sing this one.
St. James Infirmary Blues(Words and music by Irving Mills)
I went down to St. James Infirmary
And saw my baby there
Stretched out on a long white table
So cold, so sweet, so fair
I tried to keep from crying
My heart felt just like lead
She was all I had to live for
How I wished it was me instead
Let her go, let her go, God bless her
Wherever she may be
She could have searched this wide world over
And never found a man as sweet as me