Closed bwalsh closed 5 months ago
Currently the fhir_import_export get command exports a zip file of the form: studies/<project-id>/XXXX.ndjson
get
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
studies/<project-id>/
XXXX.ndjson
https://github.com/ACED-IDP/aced_etl_pod/blob/main/etl-job/fhir_import_export.py#L267-L271
For now, this is handled here: https://github.com/ACED-IDP/gen3_util/blob/6e7b085ce204b493a250aad1295afa46ac49c39f/gen3_util/repo/cloner.py#L84
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