Example of Text:
PROCEDURE: Cryo balloon antral pulmonary vein
isolation and cavotricuspid isthmus ablation.
The patient is a middle aged and happy.
I am trying to extract "Cryo balloon antral pulmonary vein isolation and cavotricuspid isthmus ablation" from the text.
The Code I used:
TRIM(REGEXP_SUBSTR(a.Document_Text, 'Procedure:\s*(.*)\s*?\.',1,1,'inm',1)) as Text_Procedure_DESC
But what I get is the whole note after 'Procedure:'
FYI:
- There are text fields Prior to and after the Procedure entry.
- There are multiple spaces and vary from note to note.
Not sure where I messed up!