A newly designed microchip can identify the optimal medication and dosage for effective treatment.