They are intoxicated, unconscious or they have mental health problems, then steps must be taken when they can give such consent, as soon as reasonably practicable.
It may be possible to secure informed consent on their behalf from an appropriate adult e.g.