Comments (6)
I need to go deeper on Dicom tags to understand more this case.
Thanks!
from dicom-anonymizer.
After some reasearches, this kind of tag has been introduced in the library in order to manage Repeating Groups.
Indeed, this case is not handled in the anonymize_dataset
function for private tags. I'll make a pull request for it. Also, it's a real issue if we change the default associated action to these tags. Today, there are deleted. The delete function manages the case with 4 tags but it's the only one.
That's why the anonymize_dataset
function needs to be updated in order to not adding this case in all actions methods.
So, to conclude, having 4 values in a tag is not a dicom convention but specific to this library.
Thanks for pointed it out.
from dicom-anonymizer.
Thanks for sharing this issue.
Do you have a file you can share so that I can check this on my side ?
from dicom-anonymizer.
Hi Laurenn,
I don't have a file, I can share no. Does this not happen with the data you are testing with?
I think pydicom might have a way to make a dummy image to test with.
from dicom-anonymizer.
I don't have any file with this kind of tag.
It seems that sometime, we handle this case :
def delete(dataset, tag):
"""X - remove"""
def range_callback(dataset, data_element):
if data_element.tag.group & tag[2] == tag[0] and data_element.tag.element & tag[3] == tag[1]:
delete_element(dataset, data_element)
if len(tag) > 2: # Tag ranges
dataset.walk(range_callback)
When do you have the issue ? Can you describe more the context ?
from dicom-anonymizer.
Right, my files did not have them either. But because these tags are part of the dicomfields.py lists, get()
is called on it and fails. So I get the error message for all files (I call on one file at a time btw.). I believe the solution in my PR would work (although perhaps a bit hacky).
I should say that I'm no longer working on this project.
from dicom-anonymizer.
Related Issues (20)
- dropping fields I asked it to keep HOT 5
- Anonymization of 0x0002 group HOT 1
- executable - dicom-anonymizer HOT 1
- Anonymization of (6000, 3000) Overlay Data HOT 1
- Support for latest DICOM standard
- Support for additional Application Level Confidentiality profiles
- ignore non-dicom files instead of dying
- VR IS not yet implemented HOT 6
- UserWarning: Invalid value for VR UI HOT 1
- Add conda package HOT 5
- Patient data within DirectoryRecordSequence (of DICOMDIR file) not anonymized HOT 4
- PatientName and PatientID not getting properly replaced HOT 3
- Customize rules HOT 2
- Help: Passing values to function HOT 2
- Performance problems with newer MR software version (Siemens) HOT 8
- Strategy for Python version compatibility? HOT 4
- X tags of VR == 'DA' not getting deleted HOT 3
- Tag replacement fails during anonymization for structured reports HOT 4
- AttributeError: 'int' object has no attribute 'elements' HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dicom-anonymizer.