This code accompanies the following paper:
Delos Reyes, R., Capurro, D., & Geard, N. (2026). Data assimilation in emergency department simulations for real-time disaster response. International Journal of Disaster Risk Reduction. https://doi.org/10.1016/j.ijdrr.2026.105995
Setting up the environment
- Download anaconda
- Run
conda env create --name edda -f edda.yaml - Run
conda activate edda
Getting the required data
- Download the following datasets (they require credentialed access which can be requested at the provided websites)
- Store the unzipped datasets inside the data folder
- data/ed
- data/hosp
- data/icu
Preprocessing the data
Open the following Jupyter notebooks in the following order and run all cells:
generate_patient_data.ipynb# To exclude patient records with invalid valuesgenerate_event_logs.ipynb# To convert the records to event logsgenerate_model_parameters.ipynb# To generate the parameters needed to run the ED simulation model
Running the experiments
- Run
chmod u+x ./run.sh - Run
./run.sh
Generating the figures
Open the following Jupyter notebooks and run all cells:
plot_figure3.ipynbplot_figure4.ipynbplot_figure5.ipynbplot_figure6.ipynbplot_figure7.ipynbplot_figure8.ipynb