Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple small fixes #286

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cumulus_etl/formats/batched_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _confirm_no_unknown_files_exist(self, folder: str) -> None:
except FileNotFoundError:
return # folder doesn't exist, we're good!

allowed_pattern = re.compile(rf"{self.dbname}\.[0-9]+\.{self.suffix}")
allowed_pattern = re.compile(rf"{self.dbname}\.[0-9]+\.({self.suffix}|meta)")
if not all(map(allowed_pattern.fullmatch, filenames)):
errors.fatal(
f"There are unexpected files in the output folder '{folder}'.\n"
Expand Down
2 changes: 1 addition & 1 deletion docs/deid.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ But the devil is in the details, because it can be configured to do nothing at a
or redact everything.

Cumulus ETL uses a
[custom configuration](https://github.com/smart-on-fhir/cumulus-etl/blob/main/cumulus/deid/ms-config.json),
[custom configuration](https://github.com/smart-on-fhir/cumulus-etl/blob/main/cumulus_etl/deid/ms-config.json),
designed to remove everything by default, and only allow specifically mentioned fields
(i.e. an allow-list or whitelist).

Expand Down
1 change: 1 addition & 0 deletions tests/formats/test_ndjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def store(
(None, True),
([], True),
(["condition.1234.ndjson", "condition.22.ndjson"], True),
(["condition.000.meta"], True),
(["condition.ndjson"], False),
(["condition.000.parquet"], False),
(["patient.000.ndjson"], False),
Expand Down