[FEATURE] Overhaul Usage of GenerateTables
#51
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
moderate
Issue of moderate difficulty
GenerateTables()
is a rather odd function that I think can be made much more into a utility function that operates in the background. What it does is create for OMOPCDMCohortCreator.jl an internal representation of the tables available within the schema being accessed via a given connection. This internal representation are SQLTable objects that originate within FunSQL.I think what we can do instead is to add OMOPCommonDataModel as a dependency. From there, we can access and export every single table from that package and within CohortCreator, convert the table structs within OMOPCommonDataModel to FunSQL tables. This could be triggered during the
GenerateDatabaseDetails
function.Additionally, we can keep this function in case someone needs to modify further the table connection.
The text was updated successfully, but these errors were encountered: