We have a report that we cannot get a formula to work, the report needs to pull where it looks at the first set of codes and then the second set of codes. We are using the 'and' statement and it seems to be ignoring the second set of codes, here is an example:
if code in ["z37.0" to "z37.5"] or code in ["z37.50" to "z37.54] and
code in ["072.0" to "07.2"] then true
The report seems to be ignoring the "072.0" to "07.2" statement as we are getting all of the patients that match the first set only.
Thanks.