Fixed patient generation with separate script approach
This commit is contained in:
21
test_synthea.sh
Executable file
21
test_synthea.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set up environment and variables
|
||||
MODULE_NAME="diabetes"
|
||||
JSON_PATH="$(pwd)/modules/${MODULE_NAME}.json"
|
||||
|
||||
# Make sure we have the module file
|
||||
if [ ! -f "$JSON_PATH" ]; then
|
||||
echo "Module file not found: $JSON_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run Synthea directly in a container
|
||||
docker run --rm -v "${JSON_PATH}:/app/modules/${MODULE_NAME}.json" \
|
||||
-v "$(pwd)/test_output:/app/output" \
|
||||
synthea-module-generator \
|
||||
bash -c "cd /app && ./run_synthea -p 10 -g B -m ${MODULE_NAME} -a 0-90 -s 12345 | tee /app/output/synthea_run.log"
|
||||
|
||||
# Check the output
|
||||
echo "Checking output directory:"
|
||||
find test_output -type f | sort
|
||||
Reference in New Issue
Block a user