Source: As worded by Indian Railways, Government of India
Guards/Train Superintendents or Pantry Car Managers are equipped with First Aid Boxes. They are also trained to provide first aid to passengers.
In case of emergencies, you can approach the Traveling Ticket Examiner/Train Superintendent, who will pass on a message to the next station where a doctor will attend to the emergency. Medical treatment will be provided by the doctor on payment of reasonable charges. In case hospitalization is required, the passenger may have to discontinue his journey.
Details of medical practitioners and hospitals along with their addresses are displayed at major stations. On alighting from the train, passengers in need of medical assistance may contact them.