Oral and maxillofacial surgery pertains to diagnosing and treating diseases or injuries that impact the mouth and facial function.