Special Emphasis Reports- CSTE Injury WG

Ped injuries regular expression

Has anyone translated the hospital discharge (or ED visits) ICD10-codes for Pedestrian injuries into a regular expression? Mine has failed so far so I assume I must be missing some small detail somewhere.

I know the first  part matches what's in the regular expression guidance doc for MV pedestrians ((V0[234][19]|V09[23]) 

I seem to be missing something for the 2nd part which should include all these:
 V01, V02-V04 (.0), V05, V06, V09 (.0,.1,.9)

Thanks!

Jaime Walters (Multnomah County, OR)

Comments & Events

Jaime Walters
Thanks Jennifer! I did use this document, and the code works great for the MVT pedestrian, but it's the "non traffic pedestrian injuries" which my regular expression is failing-I don't think this is included in that regular expression document (unless I'm missing it somewhere)?
Hannah Yang
Codes
Regular Expression
Unintentional Motor Vehicle Traffic Pedestrian Injuries
V02-V04 (.1, .9), V09 (.2,.3)
V0[234][19]|V09[23]
Other Non-Traffic Pedestrian Injuries
V01, V02-V04 (.0), V05, V06, V09 (.0,.1,.9)
V0[156]/d|V0[2-4]0|V09[019]

Here is what I would use: ((V0[234][19]|V09[23]|V0[156]/d|V0[2-4]0|V09[019])..)(A|$|\b)

Hannah Yang (they/she)
Epidemiologist
hannah.yang@mt.gov<mailto:hannah.yang@mt.gov> |406.444.3746
Jaime Walters
Thank you Hannah!

In simpler coding, this also worked:

array ped [28] $7 dx1 dx2 dx3 dx4 dx5 dx6 dx7 dx8 dx9 dx10
dx11 dx12 dx13 dx14 dx15 dx16 dx17 dx18 dx19
dx20 dx21 dx22 dx23 dx24 dx25 ecode1 ecode2 ecode3;
do i=1 to 28;

if (ped[i]=:'V01' or ped[i]=:'V02' or ped[i]=:'V03' or ped[i]='V04' or ped[i]=:'V06' or ped[i]=:'V09') AND SUBSTR(ped{i},7,1) IN ('A','')
then PedA=1;
end;
drop i;