CommonDataModel icon indicating copy to clipboard operation
CommonDataModel copied to clipboard

DRUG_ERA Script Issue

Open ericaVoss opened this issue 3 years ago • 3 comments

https://ohdsi.github.io/CommonDataModel/sqlScripts.html#Drug_Eras The output of this script doesn't match the DRUG_ERA table.

image

This script also doesn't calculate gap_days, just asserts it is looking for 30 days out.

@clairblacketer FYI

ericaVoss avatar Mar 22 '22 14:03 ericaVoss

Associating with Chris' GIST: https://gist.github.com/chrisknoll/a18c8e15ff66f26fac84

ericaVoss avatar Mar 27 '22 14:03 ericaVoss

Has this been solved already? This forum post shows the need of having this fixed (the old query is apparently very slow on some databases). Also, the comments of Chris here on the condition era are relevant.

MaximMoinat avatar Aug 12 '22 08:08 MaximMoinat