Coding systems (diagnosis codes), represent the transformation of the narrative description of diagnoses into numbers which represent that data.
CPT identifies the services provided, and insurance companies use that information to determine how much physicians should be paid and ICD on the other hand classifies the diagnoses and health issues of patients.
For oligospermia: ICD-10-CM Diagnosis Code N46.11
CPT 89310, 89320, 89322, 89300 (for sperm count).