I was wondering if we might be able to change how the database folder is organized? I would like to have a couple of folders. One for the upgrades another for sample data. I was thinking of adding a feature to flex / docker that it looks for any sample data in that folder and if there is any then adds it to the database. This would make testing and demos easier IMO. Is anyone else interested in it? Thoughts?
Rec working this into the devtools script on the flex dockers and would leverage the mechanism that the demo farm uses (it does some sneakery by using a 5.0.0 demo database and then running the upgrade scripts on it); the demo data is rather large so would just store the file in the flex docker itself. Related issue is here: Add Test Data Easy Docker Dev Tool · Issue #3485 · openemr/openemr · GitHub
I made a very quick and dirty bash script for docker server install, that looks in a specific folder for sql files and then runs them, I think it might be pretty easy to add it to the devtools script.
For clearing the installation are we talking just the database or also files?
hi, Sorry for the shorthand. Meant to say “recommend”
For clearing, are talking about both the database and files. This allows developers to then develop/test the install setup.php script since the easy dev docker environment skips that since it autoinstalls and/or clear demo data and/or redo demo data to test the upgrade sql scripts (ie. opens the door to lots of testing).
Although would take a much larger effort, working in synthea import would be awesome (I so look forward to the day, when I can import 1 million synthea patients into OpenEMR just to see what happens ).
I checked out synthea (Just the data). From what I can see the table layout/properties is different. It wouldn’t be too difficult to covert CSV to SQL with a script and then add that the folder. Setting it up so that it automatically imports / generates data is something that I would need to do so research on.