Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👼 Automate schema creation #1

Closed
wants to merge 7 commits into from
Closed

Conversation

psbrandt
Copy link

@psbrandt psbrandt commented Jan 2, 2020

This PR adds tools and associated tests to automatically generate the tables required by OMOP on FHIR. I chose to use Flyway to manage migrations, as this what is used in the WebAPI.

Right now, migrations must be performed manually using Maven (see README), but it will be easy to have them automatically applied by Flyway when starting the main WAR file. Further, using a migration tool like Flyway will allow us to disable hibernate.hbm2ddl.auto (the issue I raised in omoponfhir-stu3-server#1), and thus give implementers more control over their schema. For example, they could give OMOP on FHIR write access to only the few tables it needs to update.

measurement.person_id,
measurement.measurement_concept_id AS observation_concept_id,
measurement.measurement_date AS observation_date,
$sql$ || measurement_col_string || $sql$ AS observation_time,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These multi-version support hacks should be removed. I think the better approach is to have branches/releases that support specific, well-documented versions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

different branches for different OMOP version are created. The master branch is 5.3.

@myungchoi myungchoi closed this Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants