while there he would read the medical records of patients suffering from undiagnosed illnesses , pretending he had been brought in to their cases as a consultant , deciding in silence the ailment and the treatment to be given .