Railway surgery was a branch of medical practice that flourished in the 19th and early 20th centuries. It concerned itself with the medical requirements of railway companies. Depending on country, it included some or all of; general practice for railway staff, trauma surgery as a result of accidents on the railways, occupational health and safety, medico-legal activities regarding compensation claims against the company, and occupational testing.