Photocatalytic functionalization for the synthesis of drugs and analogs