I feel very embarrassed for asking this n00b question, but I thought I knew the answer until I saw other people’s code.
Is the end_date included in a period?
So for example if I have a drug exposure with drug_exposure_start_date = 1-1-2000, and drug_exposure_end_date = 3-1-2000 (January 3rd), are people on the drug on the 1st and the 3rd? Does that mean the length of exposure is 3 days (the 1st, 2nd, and 3rd), or 2 days (3-1)?
(I checked, and the CDM specifications are not clear on this)