diff --git a/sources/Framework/org.ohdsi.cdm.framework.common3/Core/Transformation/Premier/Batch.sql b/sources/Framework/org.ohdsi.cdm.framework.common3/Core/Transformation/Premier/Batch.sql index a9c914b1..33d2aa2b 100644 --- a/sources/Framework/org.ohdsi.cdm.framework.common3/Core/Transformation/Premier/Batch.sql +++ b/sources/Framework/org.ohdsi.cdm.framework.common3/Core/Transformation/Premier/Batch.sql @@ -1,6 +1,4 @@ -SELECT DISTINCT medrec_key, medrec_key +SELECT DISTINCT {0} medrec_key, medrec_key FROM {sc}.pat -JOIN {sc}.patcpt cpt ON PAT.PAT_KEY = cpt.pat_key -where cpt.cpt_code in ('J1440', 'J9350', 'J9380', 'Q2040', 'Q2041', 'Q2042') -order by 1 -limit 1000000 \ No newline at end of file +WHERE medrec_key is not NULL +order by 1 \ No newline at end of file