Ian E. McCracken wrote an article on "Eighteenth Century Medical Care: A Study of Roxburghshire" in the 1949 Proceedings of the Royal Society of Medicine. The article is available to read online.
For details of surviving records for Kelso Dispensary (founded 1777) see the Kelso parish page.
For details of surviving records for Dingleton Hospital at Melrose (from 1872 the lunatic asylum for Roxburghshire, Berwickshire and Selkirkshire) see the Melrose parish page.