Skip to content

Commit

Permalink
fix: remove spaces in codes, ref MIT-LCP#800
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Aug 29, 2020
1 parent 3c2a8bb commit b256ce8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions concepts/comorbidity/elixhauser_ahrq_v37_no_drg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ select hadm_id, seq_num, icd9_code
when icd9_code = '42760' then 1
when icd9_code = '4279' then 1
when icd9_code = '7850' then 1
when icd9_code between 'V450 ' and 'V4509' then 1
when icd9_code between 'V533 ' and 'V5339' then 1
when icd9_code between 'V450' and 'V4509' then 1
when icd9_code between 'V533' and 'V5339' then 1
end as arythm /* Cardiac arrhythmias */

, CASE
Expand All @@ -41,8 +41,8 @@ select hadm_id, seq_num, icd9_code
when icd9_code = '3979' then 1
when icd9_code between '4240' and '42499' then 1
when icd9_code between '7463' and '7466' then 1
when icd9_code = 'V422 ' then 1
when icd9_code = 'V433 ' then 1
when icd9_code = 'V422' then 1
when icd9_code = 'V433' then 1
end as valve /* Valvular disease */

, CASE
Expand All @@ -61,7 +61,7 @@ select hadm_id, seq_num, icd9_code
when icd9_code = '449' then 1
when icd9_code = '5571' then 1
when icd9_code = '5579' then 1
when icd9_code = 'V434 ' then 1
when icd9_code = 'V434' then 1
end as perivasc /* Peripheral vascular disorder */

, CASE
Expand Down Expand Up @@ -218,10 +218,10 @@ select hadm_id, seq_num, icd9_code
when icd9_code = '5856' then 1
when icd9_code = '5859' then 1
when icd9_code = '586' then 1
when icd9_code = 'V420 ' then 1
when icd9_code = 'V451 ' then 1
when icd9_code between 'V560 ' and 'V5632' then 1
when icd9_code = 'V568 ' then 1
when icd9_code = 'V420' then 1
when icd9_code = 'V451' then 1
when icd9_code between 'V560' and 'V5632' then 1
when icd9_code = 'V568' then 1
when icd9_code between 'V4511' and 'V4512' then 1
end as renlfail /* Renal failure */

Expand All @@ -247,7 +247,7 @@ select hadm_id, seq_num, icd9_code
when icd9_code = '5723' then 1
when icd9_code = '5728' then 1
when icd9_code = '5735' then 1
when icd9_code = 'V427 ' then 1
when icd9_code = 'V427' then 1
end as liver /* Liver disease */

, CASE
Expand Down Expand Up @@ -329,7 +329,7 @@ select hadm_id, seq_num, icd9_code
when icd9_code = '27803' then 1
when icd9_code between '64910' and '64914' then 1
when icd9_code between 'V8530' and 'V8539' then 1
when icd9_code = 'V854 ' then 1 -- hierarchy used for AHRQ v3.6 and earlier
when icd9_code = 'V854' then 1 -- hierarchy used for AHRQ v3.6 and earlier
when icd9_code between 'V8541' and 'V8545' then 1
when icd9_code = 'V8554' then 1
when icd9_code = '79391' then 1
Expand Down

0 comments on commit b256ce8

Please sign in to comment.