Hi all,

I’m trying to build a cohort in ATLAS that uses two pairs of 10 concept sets. I’ll call them “a1”- “a10” and “b1” - “b10”, all of which contain concepts from the conditions, observations, measurements, and procedures domains.

I want to include persons who either have concepts from more than 2 of the “a” concept sets (eg. Included if has concepts from “a1, and a2”, but not included if only has concepts from “a2”) or have concepts in at least 6 of the “b” concept sets (eg. Included if has concepts in “b1”, “b2”, “b3”, “b5”, “b8” and “b9”, but not included if has concepts in only “b1”, “b2”, “b3”, “b5”, and “b9”).

Here’s my logic:

Cohort Entry Events:

Events having any of the following criteria:

- A condition occurrence of concept sets “a1”-“a10”
- A condition occurrence of concept sets “b1”-“b10”
- An observation of of concept sets “a1”-“a10”
- An observation of concept sets “b1”-“b10”
- A measurement of concept sets “a1”-“a10”
- A measurement of concept sets “b1”-“b10”
- A procedure occurrence of concept sets “a1”-“a10”
- A procedure occurrence of concept sets “b1”-“b10”

Inclusion Criteria 1:

Having any of the following criteria:

- With at least 1 condition occurrence of concept sets “a1”-“a10”
- Having at least 2 of the following criteria:
- At least 1 condition occurrence of “a1”
- At least 1 condition occurrence of “a2”
- At least 1 condition occurrence of “a3”
- …

- Having at least 2 of the following criteria:
- Or with at least 1 condition occurrence of concept sets “b1”-“b10”
- Having at least 6 of the following criteria:
- At least 1 condition occurrence of “b1”
- At least 1 condition occurrence of “b2”
- …

- Having at least 6 of the following criteria:
- Then I repeat this structure for observations, measurements, and procedures

Cohort Exit Event:

End of continuous observation

I can’t figure out how to include persons that have for example a condition occurrence of “a1” and an observation of “a2” or another example, a procedure occurrence of “b1”, “b2”, and “b3” and a measurement of “b4”, “b5” and “b6”. Each chunk in the inclusion criteria only relates to one domain (at least 2 conditions, or at least 2 observations). I know this a very specific situation, but has anyone here ever come across something similar? Any help would be greatly appreciated.