*! version 2.0 January 1, 2021

Title

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

Syntax

tmpm2,
[i(varname) inj(stub) ais icd9 icd10]

Description

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

Requirements

1.) A unique identifier is required for each patient and must be of vartype
string.

2.) The variable name used to identify each patient -i()- and the injury variable(s)
-inj()- must not have the same stubname.

3.) The -inj()- is the stubname for variable containing the injury codes.

4.) The coding lexicon must be specifiec as -ais, icd9, or icd10- for the
Abbreviated Injury Scale (ais), ICD-9-CM (icd9) or ICD-10-CM (icd10) codes, respectively.

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

6.) tmpm2 and the accompanying marc2 table ("marc2_table.dta") must be
installed to the same directory.

7.) The AIS codes must be the 6 digit "predot" codes only, e.g. do not include
the decimal or severity value.

Remarks

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

Examples

Setup

. sysuse tmpm2_ex.dta

Calculate the p(Death) using AIS predot codes.

. tmpm2, i(id) inj(injais) ais

Calculate the p(Death) using ICD-9-CM codes.

. tmpm2, i(id) inj(icd9inj) icd9

Calculate the p(Death) using ICD-10-CM codes.

. tmpm2, i(id) inj(icd10inj) icd10

Authors

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

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

References:

1.) Osler TM, Glance LG, Buzas JS, Mukamel DB, Wagner J, Dick AW. A trauma mortality
prediction model based on the anatomic injury scale. Ann Surg 2008;247:1041-8.
https://pubmed.ncbi.nlm.nih.gov/18520233/

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.
https://pubmed.ncbi.nlm.nih.gov/19474696/

3.) Osler TM, Glance LG, Cook A, Buzas JS, Hosmer DW. A trauma mortality prediction
model based on the ICD-10-CM lexicon: TMPM-ICD10. J Trauma Acute Care Surg.
2019 May;86(5):891-895. https://pubmed.ncbi.nlm.nih.gov/30633101/