Do I need a prescription and who needs it?

Medical cannabis requires a prescription from licensed clinics/doctors. For retail flower, a prescription is usually not required, but some extracts/oils and medical uses have separate rules. Requirements can vary by product and province.
Do I need a prescription and who needs it?