I'm looking to extract patient IDs from an email subject line. I'm working with two data frames: One has output from an SQL database (contains email subject line) and the other has patient information (hospital name and patient ID).
I want to use the the patient ID and scrub the subject line from the first data frame and return the hospital associated to said patient. Unfortunately I am cannot provide access to the data.
## Example Data
Data frame 1 example row:
Column 1 (from_Email): xxxxx@hospital.com
Column 2 (Time_IN): 1/11/2000 12:00:00
Column 3 (from_Subject): Patient H2445JFLD presented into ER with .... symptoms
Data frame 2 example row:
Column 1 (Hospital Name): Hospital ABC
Column 2 (Patient ID): H2445JFLD