Skip to content

Commit 2a860af

Browse files
authored
fix random patient generator (#407)
1 parent 52af267 commit 2a860af

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docker/openemr/7.0.3/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

docker/openemr/7.0.4/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

docker/openemr/flex-3.17/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

docker/openemr/flex-3.18/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

docker/openemr/flex-3.20/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

docker/openemr/flex-3.21/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

docker/openemr/flex-edge/utilities/devtoolsLibrary.source

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ importRandomPatients() {
226226
cd /root/synthea
227227
java -jar synthea-with-dependencies.jar --exporter.fhir.export false --exporter.ccda.export true --generate.only_alive_patients true -p "$1"
228228
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
229-
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php /root/synthea/output/ccda default /var/www/localhost/htdocs/openemr "$2"
229+
php /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php --sourcePath=/root/synthea/output/ccda --site=default --openemrPath=/var/www/localhost/htdocs/openemr --isDev="$2"
230230
sed -i "s@//exit;@exit;@" /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php
231231
echo "Completed run for following number of random patients: ${1}"
232232
}

0 commit comments

Comments
 (0)