An āmmah is a particular deep head wound, classically described as extending to the region of the membranes surrounding the brain (umm al-dimāgh). It is not a synonym for any headache, minor scalp wound or topical scalp preparation.
The source speaks of medication reaching inward in this specific wound context. The depth of the injury and the arrival of medicine must not be omitted when stating the ruling.