For the application of the provisions of article L. 623-5, the judge may, at any time during the proceedings, order any legally admissible investigative measure necessary to preserve evidence and the production of documents, including those held by the professional.