Sep-28-2017, 10:58 AM
Hello,
I've extracted doctor notes from our organization's database (Sequel Server) into a CSV file.
I'd like to use Python to add a new field with just a few words from the notes - (I have Anaconda installed on my pc).
Every row in my csv contains the word "diagnosis" within 5 words of the term diagnosis is the ICD10 code.
Example of data:
Row1: Hey doctor Who is here - I will add R45.1 as diagnosis, then some other medical terms and stuff about the patient. ffdsas ,dsfd tsdsf
Row2: Some other medical terms and stuff diagnosis of R45.2 was entered for this patient. Where did Doctor Who go? Then xxx feea fdsfd
I want
Row1: I will add R45.1 as diagnosis, then some other medical terms
Row2: other medical terms and stuff diagnosis of R45.2 was entered for
I'm open to any suggestions if Reg expression is not the best approach.
Thanks
Steve
I've extracted doctor notes from our organization's database (Sequel Server) into a CSV file.
I'd like to use Python to add a new field with just a few words from the notes - (I have Anaconda installed on my pc).
Every row in my csv contains the word "diagnosis" within 5 words of the term diagnosis is the ICD10 code.
Example of data:
Row1: Hey doctor Who is here - I will add R45.1 as diagnosis, then some other medical terms and stuff about the patient. ffdsas ,dsfd tsdsf
Row2: Some other medical terms and stuff diagnosis of R45.2 was entered for this patient. Where did Doctor Who go? Then xxx feea fdsfd
I want
Row1: I will add R45.1 as diagnosis, then some other medical terms
Row2: other medical terms and stuff diagnosis of R45.2 was entered for
I'm open to any suggestions if Reg expression is not the best approach.
Thanks
Steve