File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
/build
2
+ /synthea
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Parameters
4
+ POPULATION=" ${1:- 3} "
5
+ SCRIPT_DIR=$( dirname " $0 " )
6
+ SYNTHEA_DIR=" $SCRIPT_DIR " /synthea
7
+
8
+ if [ ! -d " $SYNTHEA_DIR " ]; then
9
+ # build synthea according to https://github.com/synthetichealth/synthea
10
+ git clone https://github.com/synthetichealth/synthea.git " $SYNTHEA_DIR "
11
+ fi
12
+ pushd " $SYNTHEA_DIR " || exit
13
+ # generate valid R4 resources in output/fhir
14
+ ./run_synthea -m pregnancy -p " $POPULATION " --exporter.fhir.included_resources Patient --exporter.fhir.transaction_bundle false --exporter.years_of_history 1 --exporter.fhir.use_us_core_ig false --exporter.fhir.bulk_data true
15
+ popd || exit
16
+
17
+ # Move to benchmark assets dir
18
+ mkdir -p " $SCRIPT_DIR " /benchmark/src/androidTest/assets/bulk_data
19
+ cp " $SYNTHEA_DIR " /output/fhir/Patient* .ndjson " $SCRIPT_DIR " /benchmark/src/androidTest/assets/bulk_data
You can’t perform that action at this time.
0 commit comments