Tool for automatically $import'ing lists of ndjson FHIR resources from an S3-compatible bucket into a Pathling server.
See the help text of the command by simply running:
docker run --rm -it ghcr.io/miracum/pathling-s3-import:v3.0.0
Launch development fixtures:
docker compose up
Install dependencies
dotnet restore
dotnet tool restore
Start the tool
dotnet run --project src/PathlingS3Import/ -- import \
--s3-endpoint=http://localhost:9000 \
--pathling-server-base-url=http://localhost:8082/fhir \
--s3-access-key=admin \
--s3-secret-key=miniopass \
--s3-bucket-name=fhir \
--s3-object-name-prefix=staging/ \
--enable-metrics=true \
--pushgateway-endpoint=http://localhost:9091/ \
--dry-run=true \
--enable-merging=true
Or to test importing from a checkpoint:
dotnet run --project src/PathlingS3Import/ -- import \
--s3-endpoint=http://localhost:9000 \
--pathling-server-base-url=http://localhost:8082/fhir \
--s3-access-key=admin \
--s3-secret-key=miniopass \
--s3-bucket-name=fhir \
--s3-object-name-prefix=staging-with-checkpoint/ \
--continue-from-last-checkpoint=true \
--dry-run=false
docker build -t ghcr.io/miracum/pathling-s3-import:test .
dotnet test