If you spent more than ¥100,000 in the year on doctors, dentists and medicine, counting your whole family, you can deduct the part above that amount.
On the tax return.
Keep your receipts. This deduction is not part of the 年末調整: only through a tax return.
General explanation, for guidance. Rules and amounts change: confirm with the responsible office.