OHDSI Home | Forums | Wiki | Github

Setting Criteria of Combination Treatment

atlas

(KHY) #1

Hi All

I have a question about when using a combination treatment.
When using a combination of medicine A and medicine B, the overlapping period should be at least 30 days. They don’t have to start on the same day or end on the same day. And disease C has occurred after the combination treatment start date or within 30 days after the end date of combination treatment.
How can I illustrate this setting in atlas? Is it too complex to represent in atlas?


(Chris Knoll) #2

Let’s draw it out:

 Index Event:   |--------------------|
Target Event:                     |-------------------------|

Let’s say your index is for Medicine A, and your target is Medicine B. Any overlap would be:

index.starts between all days before and 0 days before target ends
  and index ends between  0 days after and all days after target starts

But since you want 30d overlap, that means the index starts at least 30d before the target ends:

index.starts between all days before and 30 days before target ends
  and index ends between  0 days after and all days after target starts

To add the additional criteria that the disease C occurred after medication B started:

a drug era of Medicine B
having all of the following criteria:
   At least one occurrence of Condition C starting between 1 day after and all days after index start date 

Note: index start date is referring to Medicine B, because this is nested criteria)

Putting it all together, you can make your Cohort Entry Events as:

A drug era of Medicine A
having all of the following criteria:
  at least 1 occurrence of a drug era of Medicine B
    having all of the following criteria
        at least 1 occurrence of a condition occurrence of Condition C
        event starts between 1 day after and all days after index start date (index = Medicine B)
  index.starts between all days before and 30 days before target ends
    and index ends between  0 days after and all days after target starts (index = Medicine A)

Hope that helps.

Edit: I think you wanted your index date to be the date of the switch, so, you’ll have to rework the logic above so that the Target medication is the index event and the index event is the target (such that when the new drug is found in an overlap, that new drug start date is when they switched. Thie form I gave you will identify the start of the era that a switch happened, but I think you want the actual drug that was switched to.


(KHY) #3

Thank you so much for your help @Chris_Knoll !
I didn’t know that I can use two date option on one criteria and nested criteria…!
Now I’m literary bow down to everywhere to appreciate your amazing help. (cause I don’t know where you are)


t