School refusal: categorical diagnoses, functional analysis and treatment planning