Skip to content

Commit

Permalink
DOC: Improve usage instrucion
Browse files Browse the repository at this point in the history
  • Loading branch information
pchoisel committed Aug 5, 2024
1 parent 8432e23 commit 87606ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.python-version
.vscode
Data
env
__pycache__
.vscode
build
*.egg-info
.python-version
# Ignore Pipfile.lock, since different versions of python and OS produce different hashes
Pipfile.lock
dist
env
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ Example 3: Change the tag value with an arbitrary value
python anonymizer.py InputFilePath OutputFilePath -t '(0x0010, 0x0010)' 'replace_with_value' 'new_value'
```

### DICOMDIR

> DICOMDIR anonymization is not specified. It is therefore discouraged and it is recommended to regenerate new DICOMDIR files after anonymizing the original DICOM files.

DICOMDIR files can have a `(0x0004, 0x1220) Directory Record Sequence` tag that can contain patient information.
However, this tag is not part of the standard tag to anonymize set. If you still want dicom-anonymizer to anonymize it, you have to instruct it explicitly:

```python
python anonymizer.py InputFilePath OutputFilePath -t '(0x0004, 0x1220)' replace
```

## Custom rules with dictionary file

Expand Down

0 comments on commit 87606ce

Please sign in to comment.