If a citizen's health is lacking, they will acquire an herb from a market or storage barn, and then take it to the herbalist - they will do this around 2 times per year, depending on their health. The herbalist will prepare the herb and increase the citizens health slightly. An herbalist must be working at the location to give the medicine to the citizen.
If a citizens diet is poor, taking herbs as medicine will make up for the lack of food variety.
It is advisable to have an additional herbalist in the busy center of your town, even when there are no nearby herbs to collect, so that your citizens don't have to walk to remote parts of your map when visiting the herbalist.