In the Vinaya (not exactly the pancasila, but the best thing we have as far as details go) there are a large number of precepts that have exceptions in the case of illness, eg. keeping of various medicines, etc. Several Vinayas have explicit exceptions to the use of alcohol where it is a medicine for a sick bhikkhu, but not for one who is not sick.
eg. "As for alcohol cooked in oil, this refers to a medicine used in the Buddha's time for afflictions of the "wind element." The Mahāvagga (VI.14.1) allows this medicine for use only as long as the taste, color, and smell of the alcohol are not perceptible." -
My recently moved Blog, containing some of my writings on the Buddha Dhamma, as well as a number of translations from classical Buddhist texts and modern authors, liturgy, etc.: .