ACED-IDP / aced_etl_pod

etl worker pod
MIT License
1 stars 1 forks source link

FHIR export should create a "shallow" zip files (without subdirectories) #18

Closed bwalsh closed 5 months ago

bwalsh commented 6 months ago

Currently the fhir_import_export get command exports a zip file of the form: studies/<project-id>/XXXX.ndjson

It should be changed to remove subpath so the resulting zip file has only the files without studies/<project-id>/ prefix : XXXX.ndjson

https://github.com/ACED-IDP/aced_etl_pod/blob/main/etl-job/fhir_import_export.py#L267-L271

bwalsh commented 5 months ago

For now, this is handled here: https://github.com/ACED-IDP/gen3_util/blob/6e7b085ce204b493a250aad1295afa46ac49c39f/gen3_util/repo/cloner.py#L84