edonnachie / ICD10gm

R Package: ICD-10-GM Metadata
https://edonnachie.github.io/ICD10gm/
Other
10 stars 2 forks source link

ICD parsing #4

Closed edonnachie closed 6 years ago

edonnachie commented 6 years ago

Extend functionality to parse ICD codes:

  1. Regexpr to identify, parse and extract ICD codes
  2. Function is_icd to test whether string is ICD code
  3. Function icd_parse to extract and parse all ICD codes from a character vector

The function should work irrespective of the coding format (codes may be specified interchangeably as E101 or E10.1 or E10.1-).