OHDSI / SelfControlledCaseSeries

An R package for performing Self-Controlled Case Series (SCCS) analyses in an observational database in the OMOP Common Data Model.
http://ohdsi.github.io/SelfControlledCaseSeries
13 stars 8 forks source link

sccs_spline export contains duplicated rows #56

Closed anthonysena closed 3 months ago

anthonysena commented 3 months ago

Under certain circumstances (which are unclear to me) the sccs_spline.csv contains duplicated rows that violate the primary key for the sccs_spline table. Performing a unique() on the sccs_spline data fixes the issue when uploading.

schuemie commented 3 months ago

Fixed in https://github.com/OHDSI/SelfControlledCaseSeries/commit/8ad50eb17668bc8bd0f837d87f0b0ff0f9ea4f59