Filter by multiple refering physicians

Historical record of a forum that was for discussion of the setup, configuration, and use of OnePacs for research and educational purposes (non-clinical use).

Please direct any support inquiries through the standard OnePacs ticketing and support system.

The "Announcements" forum will continue to be active and contain announcements related to the OnePacs system.
Locked
slateszj
Posts: 11
Joined: Tue Jun 14, 2011 5:58 pm

Filter by multiple refering physicians

Post by slateszj » Tue Jun 21, 2011 12:50 pm

I've been trying to get the system to filter a user's study list for multiple referring dr's. I can get one to work... but not two or more.

In ADvanced Expression: I entered:

(referringPhysicianName like '%A%' ) OR (referringPhysicianName like '%B%' )
- this will result in dr A's studies coming up...but not b (visa versa if i switch them)

Why doesn't it work?

jeremy
Posts: 140
Joined: Wed Nov 26, 2008 8:34 am

Re: Filter by multiple refering physicians

Post by jeremy » Tue Jun 21, 2011 1:11 pm

Hello -

Please use a lower case "or" statement

((referringPhysicianName like '%A%' ) or (referringPhysicianName like '%B%' ))

Regards,
Jeremy

slateszj
Posts: 11
Joined: Tue Jun 14, 2011 5:58 pm

Re: Filter by multiple refering physicians

Post by slateszj » Tue Jun 21, 2011 1:32 pm

Great! thanks so much!

tom
Posts: 107
Joined: Tue Jan 13, 2009 12:19 pm

Re: Filter by multiple refering physicians

Post by tom » Wed Jun 22, 2011 11:06 pm

A more general formula you could use would be this:

upper(referringPhysicianName) in ( 'NAME' , 'ANOTHERNAME' , 'THIRDNAME' )

This way, you can add more names just by typing a comma at the end of the list and adding a new name in single quotes

also by using the term "upper" to modify "referringPhysicianName", and putting all the names in all-caps, you avoid mismatches due to capitalization

i.e., if the tech enters BROWN and your rule is matching Brown, you wouldn't want this to be missed because of case-sensitivity

justin
Posts: 371
Joined: Wed Nov 26, 2008 2:34 pm

Re: Filter by multiple refering physicians

Post by justin » Thu Jun 23, 2011 8:46 am

Also, using the "contains" keyword may be a simpler way of doing this. It is case insensitive and will locate the keyword anywhere in the string.

(referringPhysicianName contains 'a' or referringPhysicianName contains 'b')

Justin

Locked