Skip to main content

Load Sample Data

Prerequisites​

Before loading sample data, ensure you have the following:

  • A running instance of Haste Health (refer to the Quick Start guide if needed).
  • haste-health CLI tool installed. You can find installation instructions in the Setting Up CLI tutorial.

Download Sample FHIR Data​

You can download sample FHIR data files from the Synthea project. Download R4 data files from here.

Load Sample Data into Haste Health​

for file in ~/my-synthea-data-fhir/*
do
haste-health api transaction --file $file
done

Verify Data Load​

After loading the data, you can verify that the data has been successfully imported by accessing the Haste Health admin interface or by querying the FHIR API directly.

Issues​

  • If you encounter issues related to bundle size (413 HTTP) errors, consider increasing the MAX_REQUEST_BODY_SIZE environment variable in your Docker setup. For example, set MAX_REQUEST_BODY_SIZE=8388608 for 8mb.