When the investigating judge applies the measures provided for in 12° of Article 138 (paragraph 2), notice shall be given, where appropriate, either to the employer or the hierarchical authority to which the person under investigation reports, or to the professional association to which he or she belongs, or to the authority to whose approval the practice of his or her profession is subject.