509.(1) The deposition of a Civil Surgeon or other medical witness, taken and attested by a Magistrate in the presence of the accused, or taken on commission under Chapter XL, may be given in evidence in any inquiry, trial or other proceeding under this Code, although the deponent is not called as a witness.