Skip to content

[FEATURE] Overhaul Usage of GenerateTables #51

Open
@TheCedarPrince

Description

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.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededmoderateIssue of moderate difficulty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions