Defining a Member as an Intersection of Other Members
In some cases, typically when you define a filter, it is useful to define a member that is an intersection of members. Suppose that you need a filter like the following (which does not show literal syntax):
Status = "discharged" and ERvisit = "yes" and PatientClass="infant"
Also suppose that you need to use this filter in many places.
Rather than defining the filter expression repeatedly, you could define and use a calculated member. For this calculated member, specify Expression as follows:
%OR({member_expression,member_expression,...}
For example:
%OR({birthd.year.NOW,allersevd.[003 LIFE-THREATENING]}
The expression (birthd.year.NOW,allersevd.[003 LIFE-THREATENING]) is a tuple expression, which is the intersection of the member birthd.year.NOW and the member allersevd.[003 LIFE-THREATENING] — that is, all patients who were born in the current year and who have a life-threatening allergy.