Lin Wei, a modern medical student, unexpectedly transmigrates to the prosperous Tang dynasty and becomes Shen Luoyan, a female doctor from a fallen family. Newly arrived in Chang'an, she uses her modern knowledge of disease prevention to save children with dysentery, and meets Su Jingran, a medical inspector at the Imperial Medical Bureau, when they clash over their approaches to medicine.
To make a living, she passes the entrance examination for the Imperial Medical Bureau. Keeping her secret as a transmigrator hidden, she presents modern medical methods such as disinfection and quarantine using the language of The Yellow Emperor's Inner Canon. She handles difficult childbirths and prevents puerperal fever, but faces criticism from the conservative faction. Su Jingran goes from doubting her to admiring her, accompanying her to investigate malaria and combat tetanus after an earthquake. Their feelings for each other gradually deepen as they treat patients in life-and-death situations.
In the end, Lin Wei uses modern first aid to help Emperor Xuanzong escape danger. She and Su Jingran are granted permission to marry and open the Hall of Benevolence in Chang'an. There, she passes on her medical knowledge and fulfills a love between healers that transcends time, leaving a unique mark on the history of medicine in the prosperous Tang dynasty with her compassionate heart.