The examining magistrate may, ex officio, at the request of the public prosecutor or at the request of the civil party, carry out, in accordance with the law, any act enabling him to assess the nature and extent of the harm suffered by the victim or to gather information about the victim’s personality.