Text this: Integration of Functional Materials in Photonic and Optoelectronic Technologies for Advanced Medical Diagnostics