Does community rehabilitation belong to public health or clinic?

This belongs to public health.

The core idea of public health and preventive medicine is tertiary prevention.

That is, including

Primary prevention, cause prevention, namely health promotion and health protection.

Secondary prevention, "three early" prevention, three early detection, early diagnosis and early treatment.

Three-level prevention, clinical prevention, mainly symptomatic treatment and rehabilitation treatment measures, the latter, rehabilitation treatment, including functional rehabilitation, psychological rehabilitation, social rehabilitation and vocational rehabilitation.