This repository acts as storage for synthetic data via JSON documents. It also provides tools for building reproducible (MITRE) databases filled with synthetic data.
- Docker
- Flyway
- Download Flyway and unzip it in the root of this repository
- Use
./run-local.sh start
to create the database (as a docker image) and populate it
An existing database can be repopulated through one of two methods:
- Update
./run-local.sh
- Updating the database will update the already existing records with any changes/new data.
- Clean
./run-local.sh clean
- Cleaning will drop the cuurently existing tables and do a fresh load of the data.
You can control the resources updated for the local development using RESOURCES
environment
variable to be a CSV list of resources classes to update.
$ RESOURCES=Condition,Location run-local.sh
...
11:50:25 [INFO] Running gov.va.api.health.minimartmanager.PopulateDb
2021-05-10 11:50:26.258 INFO --- [ main] g.v.a.health.minimartmanager.PopulateDb : No patient specifed, defaulting to all patients.
2021-05-10 11:50:26.264 WARN --- [ main] g.v.a.health.minimartmanager.PopulateDb : Overriding default resources.
2021-05-10 11:50:26.264 WARN --- [ main] g.v.a.health.minimartmanager.PopulateDb : Only synchronizing [Condition, Location]
...