You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By setting the `anonym_mode` parameter to `"METADATA"`, the DICOM metadata will be anonymized during the ingestion process. This ensures that sensitive patient information is not stored in the catalog.
166
166
The default configuration will save the anonymized DICOM files under `anonymization_base_path` property's path.
167
167
168
+
## Remove UN Tags
169
+
DICOM files can contain elements with Value Representation `UN` (Unknown), which are tags that could not be resolved to a specific VR during parsing. These tags often carry unstructured or proprietary data that can bloat the extracted metadata, cause serialization issues, or introduce noise in downstream analytics.
170
+
171
+
Pixels provides a built-in option to strip all `UN` VR elements from the dataset before metadata extraction. The removal is recursive, so `UN` elements nested inside sequences (`SQ`) are also cleaned up.
172
+
173
+
To enable this feature, set `remove_un_tags=True` on the `DicomMetaExtractor`:
174
+
```python
175
+
from dbx.pixels import Catalog
176
+
from dbx.pixels.dicom import*
177
+
178
+
catalog = Catalog(spark)
179
+
catalog_df = catalog.catalog(<path>)
180
+
181
+
meta_df = DicomMetaExtractor(
182
+
catalog,
183
+
remove_un_tags=True
184
+
).transform(catalog_df)
185
+
186
+
catalog.save(meta_df)
187
+
```
188
+
168
189
---
169
190
## OHIF Viewer
170
191
Inside `dbx.pixels` resources folder, a pre-built version of [OHIF Viewer](https://github.com/OHIF/Viewers) with Databricks and [Unity Catalog Volumes](https://docs.databricks.com/en/sql/language-manual/sql-ref-volumes.html) extension is provided.
0 commit comments