ICD-9 Code Transition: 723.1 Code M54. 2 is the diagnosis code used for Cervicalgia (Neck Pain). It is a common problem, with two-thirds of the population having neck pain at some point in their lives.