The country doctor prepared a cordial for the ill farmer

what is the meaning of cordial in this context

In this context, "cordial" refers to a medicinal drink or remedy that is intended to be soothing or restorative. It is likely a concoction made from herbs or other natural ingredients to help the farmer feel better.