Skip to content

msbukal/beam-test-fhir-pipelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beam-test-pipelines

To test local modifications to FhirIO, I copy package org.apache.beam.sdk.io.gcp.healthcare into src/main/java/.

FOLDER={folder the repo is cloned to}

FhirIOImportTestRunner

Batch pipeline, reads resources from GCS and then calls FhirIO.Import.

eg. command to run

SOURCE_GCS_LOCATION=gs://${BUCKET_NAME?}/{...}/**
DEAD_LETTER_LOCATION=gs://${BUCKET_NAME?}/{...}//tmp/ 
FHIR_STORE_PATH=projects/${PROJECT?}/locations/${LOCATION?}/datasets/${DATASET?}/fhirStores/${FHIR_STORE?}
./gradlew shadowJar -PmainClass=pipeline.FhirIOImportTestRunner
java -jar build/libs/${FOLDER?}-1.0-SNAPSHOT-all.jar --sourceGcsLocation=${SOURCE_GCS_LOCATION?} --deadLetterGcsLocation=${DEAD_LETTER_LOCATION?} --fhirStore=${FHIR_STORE_PATH?} --project=${PROJECT?} --runner=DataflowRunner --region=${LOCATION?}

FhirIOWriteTestRunner

Batch pipeline, reads resources from GCS and then calls FhirIO.ExecuteBundle.

eg. command to run

SOURCE_GCS_LOCATION=gs://${BUCKET_NAME?}/{...}/**
FHIR_STORE_PATH=projects/${PROJECT?}/locations/${LOCATION?}/datasets/${DATASET?}/fhirStores/${FHIR_STORE?}
./gradlew shadowJar -PmainClass=pipeline.FhirIOWriteTestRunner
java -jar build/libs/${FOLDER?}-1.0-SNAPSHOT-all.jar --sourceGcsLocation=${SOURCE_GCS_LOCATION?} --fhirStore=${FHIR_STORE_PATH?} --project=${PROJECT?} --runner=DataflowRunner --region=${LOCATION?}

FhirIOReadWriteTestRunner

Streaming pipeline, reads resources according to a PubSub source and then writes to another FHIR store using FhirIO.ExecuteBundles.

eg. command to run

PUBSUB_SUBSCRIPTION=projects/${PROJECT?}/subscriptions/${SUBSCRIPTION?}
FHIR_STORE_PATH=projects/${PROJECT?}/locations/${LOCATION?}/datasets/${DATASET?}/fhirStores/${FHIR_STORE?}
./gradlew shadowJar -PmainClass=pipeline.FhirIOReadWriteTestRunner
java -jar build/libs/${FOLDER?}-1.0-SNAPSHOT-all.jar --pubSubSubscription=${PUBSUB_SUBSCRIPTION?} --fhirStore=${FHIR_STORE_PATH?} --project=${PROJECT?} --runner=DataflowRunner --region=${LOCATION?}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages