Not exactly answering your question, but there is this answer to a question about the social view of TB in the 19th Century from /u/mimicofmodes that touches on understanding of the disease as a personal or hereditary disease.
Hopefully somebody else will come along and provide more specifics about miasma and coughing.