Vira Simhavaloka · by Virasimha
Chapter 72 · Bhagandara: past deeds
भगंदर — कर्मविपाकः
अथ भगंदररोगस्य कर्मविपाके हेतुमाह तत्प्रतीकारं च । पूर्वजन्मनि राज्ञा धर्मनिश्चयार्थं पुरोहितः प्रहितः सद्रव्यं गृहीत्वा यथावद्धर्मं न नि श्विनोति स भगंदररोगवान्भवति ॥
Next, the cause of fistula in karmavipaka (fruit of past deeds) and its remedy are described. In a past birth, a king sent a family priest to decide a matter of right conduct. The priest took money and did not decide it rightly. The text says he may suffer from fistula.
Classical view, not medical advice.
तदुक्तमादिवाराहे ।
This is said in the Adi Varaha [Purana]: A priest may be appointed to decide a matter of right conduct. If he takes [money] out of folly, fistula…
सहिरण्यं वस्त्रं रत्नधान्यादिभूमिं ब्राह्मणेभ्यो भोजनं च दद्यात् । ततो रोगान्मुक्तो भवति।
He should give gold, cloth, jewels and grain, and land to priests, and feed priests. Then, the text says, he is freed from the illness.
दुष्टव्रणानामप्येवं पद्मपुराणे ।
The same holds for bad wounds, in the Padma Purana: One who goes to his teacher's wife may get fistula.