I cannot find a definitive guide to icd9 code formats.
Can anyone explain the format – especially the use of trailing and leading zeros?
A C# regex for icd9 and icd10 codes would also be nice.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was looking for the same thing and found what I believe to be a more complete answer. Thought I’d help anyone else coming in the future.
ICD-9 Regex
The ICD 9 format has a bunch of ways it can be formatted. It can begin with V, E, or a number.
two numbers
V10.12andV12E000.0andE002730.12and730A good regex that checks all these rules is (Credit goes to sascomunitt)
ICD-10 Regex
According to http://www.cms.gov ICD-10 has the following rules:
Here is the regex I came up with:
Note These regexes are for javascript and may need tweaked for C# (I’m too lazy to test it right now)