Fixed patient generation with separate script approach

This commit is contained in:
2025-03-27 11:26:33 -07:00
parent 2141e81f42
commit e10ae0cf81
10 changed files with 401 additions and 8 deletions

21
test_synthea.sh Executable file
View 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