Home / icd 9 procedure code list / icd9 — ICD-9-CM diagnosis and procedure codes - Stata

icd9 — ICD-9-CM diagnosis and procedure codes - Stata - icd 9 procedure code list


icd9 — ICD-9-CM diagnosis and procedure codes - Stata-icd 9 procedure code list

Title stata.com
icd9 -- ICD-9-CM diagnosis and procedure codes
Description Quick start Menu Syntax
Options Remarks and examples Stored results References
Also see
Description
The icd9 and icd9p commands are a suite of commands for working with ICD-9-CM diagnosis
and ICD-9-CM procedure codes from the 16th version (effective October 1998) and later. To see the
current version of the ICD-9-CM diagnosis codes and any changes that have been applied, type icd9
query.
icd9 check, icd9 clean, and icd9 generate are data management commands. icd9 check
verifies that a variable contains defined ICD-9-CM diagnosis codes and provides a summary of any
problems encountered. icd9 clean standardizes the format of the codes. icd9 generate can create
a binary indicator variable for whether the code is in a specified set of codes, a variable containing
a corresponding higher-level code, or a variable containing the description of the code.
icd9 lookup and icd9 search are interactive utilities. icd9 lookup displays descriptions of the
diagnosis codes specified on the command line. icd9 search looks for relevant ICD-9-CM diagnosis
codes from key words given on the command line.
icd9p may be used in place of icd9 for any command above to obtain results for procedure
codes.
Quick start
Determine if ICD-9-CM diagnosis codes in diag1 are invalid and store reasons in invalid
icd9 check diag1, generate(invalid)
Standardize display of codes in diag2 to remove all periods and align codes by padding with spaces
icd9 clean diag2, pad
Create descr3 as the diagnosis code prepended to short description of diagnosis code in diag3
icd9 generate descr3 = diag3, description long
Create diabetes as an indicator for a diabetes diagnosis in diag4 using ICD-9-CM codes 250.xx
icd9 generate diabetes = diag4, range(25000/25093)
Look up descriptions for ICD-9-CM diagnosis codes E827.0 to E828.9
icd9 lookup E8270/E8289
Note: For any command above, icd9p may be used in place of icd9 to obtain results for procedure
codes.
1
2 icd9 -- ICD-9-CM diagnosis and procedure codes
Menu
Data > ICD codes > ICD-9
Syntax
Verify that variable contains defined codes
{icd9 | icd9p} check varname if in , any list generate(newvar)
Clean variable and verify format of codes
{icd9 | icd9p} clean varname if in , dots pad
Generate new variable from existing variable
{icd9 | icd9p} generate newvar = varname if in , category
{icd9 | icd9p} generate newvar = varname if in , description long end
{icd9 | icd9p} generate newvar = varname if in , range(codelist)
Display code descriptions
{icd9 | icd9p} lookup codelist
Search for codes from descriptions
{icd9 | icd9p} search " text " " text " . . . , or
Display ICD-9 code source
{icd9 | icd9p} query
codelist is
icd9code (the particular code)
icd9code* (all codes starting with)
icd9code/icd9code (the code range)
or any combination of the above, such as 001* 018/019 E* 018.02. icd9codes must be typed with
leading 0s. For example, type 001 (diagnosis code) or 01 (procedure code); typing 1 will result in
an error.
icd9 -- ICD-9-CM diagnosis and procedure codes 3
Options
Options are presented under the following headings:
Options for icd9[p] check
Options for icd9[p] clean
Options for icd9[p] generate
Option for icd9[p] search
Warning: The option descriptions are brief and use jargon. Please read the Remarks and examples
before using the icd9 or icd9p command.
Options for icd9[p] check
any tells icd9[p] check to verify that the codes fit the format of ICD-9-CM codes but not to check
whether the codes are defined.
list specifies that icd9 check list the observation number, the invalid or undefined ICD-9-CM code,
and the reason the code is invalid or if it is undefined code. When specified with icd9p check,
the list option references ICD-9-CM procedure codes.
generate(newvar) specifies that icd9 check create a new variable containing, for each observation,
0 if the observation contains a defined code or is missing. Otherwise, it contains a number from 1
to 10. The positive numbers indicate the kind of problem and correspond to the listing produced
by icd9 check. The values are labeled with the Stata-defined value label icd 9.
Options for icd9[p] clean
dots specifies that the period be included in the final format. If dots is not specified, then all periods
are removed.
pad specifies that icd9[p] clean pad the codes with spaces, front and back, to make the (implied)
dots align vertically in listings. Specifying pad makes the resulting codes look better when used
with most other Stata commands.
Options for icd9[p] generate
category, description, and range(codelist) specify the contents of the new variable that icd9[p]
generate is to create. You do not need to icd9[p] clean varname before using icd9[p] generate;
it will accept any ICD-9-CM format or combination of formats.
category generates a new variable that also contains ICD-9-CM codes. The resulting variable may
be used with the other icd9[p] subcommands. For procedure codes, the category code is the
first two characters. For diagnostic codes, the category code is the first three characters, except
for E-codes when it is the first four characters.
description creates newvar containing descriptions of the ICD-9-CM codes.
long is for use with description. It specifies that the code be prepended to the text describing
the code.
end modifies long (specifying end implies long) and places the code at the end of the string.
range(codelist) creates a new indicator variable equal to 1 when the ICD-9-CM code is in the
range specified and equal to 0 otherwise.

What is ICD 9 coding used for?The ICD-9 was used to code and classify mortality data from death certificates until 1999, when use of ICD-10 for mortality coding started. a tabular list containing a numerical list of the disease code numbers in tabular form; a classification system for surgical, diagnostic, and therapeutic procedures (alphabetic index and tabular list).