Have we discussed nouns modifying other nouns yet? Is the rule here just to use the appropriate form of ka? E.g.:
work clothes = kam ke vastr
butter knife = makkhan ka chaakoo
Think of it as 'Medicine for fever' or more literally, 'Medicine of fever'. But since Hindi uses postpositions instead of prepositions, the order is reversed.