#!/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