Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 994 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 994 Bytes

Example code to upload FHIR resources into BigQuery

This directory contains example code to upload FHIR data into BigQuery.

We use synthetic data from Synthea which is parsed into protocol buffers. We split the FHIR bundles into ndjson per resource type and upload them into BigQuery, and run a few example queries.

Note: do not download this set of Synthea patients since the Claim resource in that release is not valid STU3.

Before you can upload to BigQuery, you need to install the Cloud SDK and initialize a project.

Some temporary files will be generated by this example, in the directory passed as an argument to the scripts.

To run:

MY_DIR=/tmp/fhir
./01-get-synthea.sh $MY_DIR
./02-split-bundles-by-resource-type.sh $MY_DIR
./03-upload-to-bq.sh $MY_DIR
./04-run-queries.sh