Automatically generating the structs
The struct definitions in OMOPCommonDataModel.jl
are automatically generated.
Here is how they are generated:
julia> run(`git clone https://github.com/JuliaHealth/OMOPCommonDataModel.jl.git`)
julia> cd("OMOPCommonDataModel.jl")
julia> using Pkg
julia> Pkg.activate(pwd())
julia> Pkg.instantiate()
julia> cd("src")
julia> using OMOPCommonDataModel
julia> OMOPCommonDataModel.Generate.generate() # this will write the generated struct definitions to `src/autogenerated.jl`
Generate API
OMOPCommonDataModel.Generate.generate
— MethodGenerate the code for OMOPCommonDataModel from the DDL.
OMOPCommonDataModel.Generate.pascalcase
— MethodConvert the input string to PascalCase.
OMOPCommonDataModel.Generate.snakecase
— MethodConvert the input string to snake_case.