Hi,
Since ICD11 is effective in using by most countries now, I wonder if there it will be included (built in) in next updates?
I think what I need should be achieved with easy command, but I couldn't figure it out.
I tried the following:
levelsof icd10, local(Names)
gen newICD = 0
foreach n of local Names {
replace newICD = icd11 if ( icd10 == "`n'")
}
type mismatch
r(109);
What I need is to create a new string variable equal the value of icd11 for each corresponding icd10 value (in the example below, each icd10 with the corresponding icd11 new value). Here is an example of data:
Thanks!
Since ICD11 is effective in using by most countries now, I wonder if there it will be included (built in) in next updates?
I think what I need should be achieved with easy command, but I couldn't figure it out.
I tried the following:
levelsof icd10, local(Names)
gen newICD = 0
foreach n of local Names {
replace newICD = icd11 if ( icd10 == "`n'")
}
type mismatch
r(109);
What I need is to create a new string variable equal the value of icd11 for each corresponding icd10 value (in the example below, each icd10 with the corresponding icd11 new value). Here is an example of data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str7 icd10 str28 icd11 "A00" "1A00" "A000" "1A00&XN8P1" "A001" "1A00&XN62R" "A009" "1A00" "A01" "1A0Z&XN0QE" "A010" "1A07Z" "A011" "1A08" "A012" "1A08" "A013" "1A08" "A014" "1A08" "A02" "1A09Z" "A020" "1A090" "A021" "1C41&XN0QE" "A022" "1A09Z" "A028" "1A09Z" "A029" "1C41" "A03" "1A02" "A030" "1A02" "A031" "1A02" "A032" "1A02" "A033" "1A02" "A038" "1C41" "A039" "1A02" "A04" "1A0Z" "A040" "1A030" "A041" "1A031" "A042" "1A032" "A043" "1A033" "A044" "1A03Z" "A045" "1A06" "A046" "1A05" "A047" "1A04" "A048" "1A0Z" "A049" "1A0Z" "A05" "1A1Z" "A050" "1A10" "A051" "1A11Z" "A052" "1A12" "A053" "1A1Z" "A054" "1A13" "A058" "1A1Z" "A059" "1A1Z" "A06" "1A36Z" "A060" "1A3600" "A061" "1A360Z" "A062" "1A360Z" "A063" "1A3601" "A064" "1A3610" "A065" "1A3611" "A066" "1A361&XA9738/1D033" end
Thanks!
Comment