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 Apr 14, 2023
1 parent ce1016f commit 7f6fb7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ Data
env
__pycache__
.vscode
dicom_anonymizer.egg-info
dist
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ Example 2: We just want to change the study date from 20080701 to 20080000, then
python anonymizer.py InputFilePath OutputFilePath -t '(0x0008, 0x0020)' 'regexp' '0701$' '0000'
```

### Using custom rules to anonymize DICOMDIR 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. In order to make dicom-anonymizer anonymize it, you have to instruct it explicitly:

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

> It is better to regenerate DICOMDIR files after anonymizing the original DICOM files. Anonymize DICOMDIRs only if you have no other solution

## Custom rules with dictionary file

Expand Down

0 comments on commit 7f6fb7b

Please sign in to comment.