Distinct list of ID's from alternate states to select default state
I have a question surrounding multiple alternate states in an application.
I have 3 different states outside of the default (Cohort1, Cohort2, Cohort3) and each one is basically a list of patient ID's (PatientID) that the user filters down. What I would like to do is take a distinct list of patient id's from each of the 3 states and then select only those patient ID's in the default state. The default state of my app has much more functionality than the cohort comparison thus the need to make this selection. There must be a solution for this type of selection but I have yet to find. Please let me know if you need additional information or if this is not clear enough.