*! version 2.0 June 12, 2012

Title

tmpm -- Trauma Mortality Prediction Model using AIS, ICD-9 or ICD-10 codes

Syntax

tmpm,
[idvar(varname) aispfx(string) icd9pfx(string) icd10pfx(string) noreport]

Main
noreport supress report output

Description

tmpm calculates probability of death (p(death)) based on the Trauma
Mortality Prediction Model created by Turner Osler, MD, MSc, and Laurent Glance, MD.
The tmpm uses injuries recorded in one of three lexicons ( either AIS, ICD-9
or ICD-10) and computes the probability of death (p(Death))for each patient in the
dataset. tmpm will accommodate datasets arranged in wide format (one record
per patient with many injuries per record), or the long format (many records per
patient, with one injury/record). tmpm will calculate a probability of death
(p(Death)) value for each observation expressed as a vartype float and add this new
variable (named pDeathais, pDeathicd9, or pDeathicd10, as appropriate) to the user's
otherwise unchanged dataset.

Requirements

1.) A unique identification is required for each patient.

2.) The variable name used to identify each patient (idvar) and the injury variable(s)
must not have the same prefix.

3.) The -icd9pfx-, -icd10pfx-, and -aispfx- are the prefixes for variable names that
identify column(s) containing the ICD-9, ICD-10 or AIS codes, respectively.

4.) The names of the variables containing the injury codes must begin with a common
prefix ( e.g., inj1, inj2, ... injn).

5.) tmpm and the accompanying marc tables (icd9marc2_table, aismarc_table,
icd10marc_table) must be installed to the "C:\ado\personal" file.

Options

Main

noreport suppresses the report output which describes the master dataset in the
following terms:

Proportion of invalid ICD-9 codes:

Proportion of ICD-9 codes unrelated to trauma:

Proportion of codes matched with marc values:

Your data contain n unique AIS/ICD-9/ICD-10 codes

Your unmatched AIS/ICD-9/ICD-10 codes:

Remarks

1.) tmpm requires STATA 11.0 or higher. This command will not operate on any
previous version of STATA.

Examples

Setup

. sysuse tmpm_ex.dta

Calculate the p(Death) using ICD-9 codes and display the report output

. tmpm, idvar(ptid) icd9pfx(icd9inj)

Calculate the p(Death) using AIS codes and supress the report output

. tmpm, idvar(ptid) aispfx(injais) noreport

Authors

Alan Cook, M.D. <adcookmd@gmail.com>

Baylor University Medical Center, Dallas, TX, USA

Turner Osler, M.D., MSc(Biostatistics) <tosler@uvm.edu>

University of Vermont College of Medicine, Burlington, VT, USA

References:

1.) Osler T, Glance L, Buzas JS, Mukamel D, Wagner J, Dick A. A trauma mortality
prediction model based on the anatomic injury scale. Ann Surg 2008;247:1041-8.

http://journals.lww.com/annalsofsurgery/Abstract/2008/06000/A_Trauma_Mortality_Prediction_Model_Based_on_the.19.aspx

2.) Glance LG, Osler TM, Mukamel DB, Meredith W, Wagner J, Dick AW. TMPM-ICD9:
a trauma mortality prediction model based on ICD-9-CM codes. Ann Surg 2009;249:1032-9.

http://journals.lww.com/annalsofsurgery/Abstract/2009/06000/TMPM_ICD9__A_Trauma_Mortality_Prediction_Model.25.aspx

3.) ICD-10 mapping references:
Overview:
http://library.ahima.org/xpedio/groups/public/documents/government/bok1_043820.pdf
General Equivalence Mappings and User’s Guides
http://www.cms.hhs.gov/ICD10/01m_2009_ICD10PCS.asp
http://www.cms.hhs.gov/ICD10/02m_2009_ICD_10_CM.asp