The process of defining a social problem or behavior as a medical condition that requires diagnosis and treatment.