I'm using Notepad++ v6.9.2. I need to find ICD9 Codes which will take the following forms:
(X##.)
,(X##.#)
or(X##.##)
whereX
is a letter and always at the beginning and#
is a number(##.)
,(##.#)
,(##.##)
,(###.)
,(###.#)
,(###.##)
or(###.###)
where#
is a number
and
replace the first (
with |
and the )
and single space behind second with |
.
EXAMPLE
(305.11) TOBACCO ABUSE-CONTINUOUS
Becomes:
|305.11|TOBACCO ABUSE-CONTINUOUS
OTHER CONSIDERATIONS:
There are other places with parentheses but will only contain letters. Those do not need to be changed. Some examples:
UE (Major) Amputation
(282.45) THALASSEMIA (ALPHA)
(284.87) RED CELL APLASIA (W/THYMOMA)
Pain (non-headache) (338.3) Neoplasm related pain (acute) (chronic)
Becomes
UE (Major) Amputation
|282.45|THALASSEMIA (ALPHA)
|284.87|RED CELL APLASIA (W/THYMOMA)
Pain (non-headache) |338.3|Neoplasm related pain (acute) (chronic)