I am looking at ways to to use NOT regexp_like
to exclude various terms from a string in the most efficient manner (as background, this data is used to find births that occurred outside the hospital system):
regexp_like(note_text,'(birth|home|deliver|ambulance|car).{0,20}(deliv|birth|home|ambulance|car)','i')
and NOT regexp_like(note_text,'(apgar|CESAREAN|birth).{0,10}(minute|section)','i')
So I am doing a pile on of the NOT regexp_like
to exclude cesarean births and apgar scores - am I better off to separate into like terms such as
and NOT regexp_like(note_text,'(apgar).{0,10}(minute)','i')
and NOT regexp_like(note_text,'(CESAREAN).{0,10}(section|operation)','i')
to make it more efficient?
Also as the regexp_like
is an operator and not a function, is there is a way online to see what it is doing ?