Is there a way to have a data display by problem? I am trying to write a code to put a certain symbol (*V*) in the banner for patients with a specific obs term AND a specific problem. I can easily do it for the observation term, but no matter what I do I cannot incorporate the problem. Any suggestions?
This is what I am using for the obs term: {IF obsany("high rsk")<>"" THEN "*V*" ELSE "" ENDIF}
The docs use a specific diagnosis code as well, so if the patient is no longer "high risk" they can remove the problem and not the obs term.
Secondary question if this cannot be done: is the only way to remove an obs term to do so via the flowsheet? My docs are different levels of technical.
Thank you!!
Maybe something like this:
{IF obsany(“high rsk”)<>”” THEN IF match(PROB_ACTIVE("comma"),1,"ICD CODE HERE")>0 THEN “*V*” ELSE “” ENDIF ELSE "" ENDIF}
This is off the top of my head and I don't have time to test it... but I think it should at least get you pointed in the right direction.
Thank you! I will get testing.
This worked - thanks again!!!: {IF obsany(“high rsk”)<>"" THEN IF match(PROB_ACTIVE("comma"),1,"V65.40")>0 THEN “*V*” ELSE "" ENDIF ELSE "" ENDIF}