(7)The statement of a naval, army or air force medical officer taken and attested by the commanding officer of a ship or establishment may be given in evidence in any proceeding under this Act:Provided that the court may, if it thinks fit, and shall if so required by the prosecutor or the accused, summon and examine such medical officer as to the subject-matter of his statement.