Our docs want to know if a patient has a communicable disease, for the obvious reasons. They would like it in the patient banner. Sounds good, add some wingding as the symbol in the banner. So this is what I wrote.
If OBSANY(“PAST MED HX”) == “Tuberculosis” or OBSANY(“PAST MED HX”) == “HIV” or OBSANY(“PAST MED HX”) == “Hepatitis A” or OBSANY(“PAST MED HX”) == “Hep C” or OBSANY(“PAST MED HX”) == “MRSA” or OBSANY(“PAST MED HX”) == “Staph” or OBSANY(“PAST MED HX”) == “Hepatitis B” or OBSANY(“PAST MED HX”) == “Hepatitis C” or OBSANY(“PAST MED HX”) == “Hepatitis” then “i” else “” endif}
The problem is if there is anything else in the PAST MED HX field, such as hypertension, COPD, etc... it doesn't work. Any thoughts?
instead of obsany("PAST MED HX)=="xxx" what you want is match(obsany("PAST MED HX"),"xxx")<>0
What do you mean by 'it doesn't work'? Does it error, or return a blank space?
Just curious why a pop up care alert would not work for what your providers are wanting to know.
Ty, pop ups don't work for us because everyone blows through them. We use them for a lot of things and none of them seem to be clinical. This is just a quick "Oh hey!" to remind them to use universal precautions.
Joeg, It doesn't error, it just returns a blank space
jfitzmd, I knew I was doing it wrong! thanks!
jfitzmd, I was not able to get the match function to work. I tried a few different combinations and nothing worked. Any thoughts?
{if match(obsany("PAST MED HX"),"Tuberculosis")0
or match(obsany("PAST MED HX"),"HIV")0
or match(obsany("PAST MED HX"),"Hepatitis A")0
or match(obsany("PAST MED HX"),"Hep C")0
or match(obsany("PAST MED HX"),"MRSA")0
or match(obsany("PAST MED HX"),"Staph")0
or match(obsany("PAST MED HX"),"Hepatitis B")0
or match(obsany("PAST MED HX"),"Hepatitis C")0
or match(obsany("PAST MED HX"),"Hepatitis")0
then "I"
else "" endif}
this is the last try I gave it.
odd that the left and right carrots aren't showing up... before the zero
Nevermind, apparently it didn't like that one of my quotation marks around the "I" was in bold and the other was not...