Skip to main content

Module dicom_lite

Module dicom_lite 

Source
Expand description

Honest partial DICOM helpers — not a full pydicom replacement.

  • Little-endian explicit VR tag scan for a small common set
  • PHI tag redact on a simple attribute map
  • SUV body-weight formula (pure arithmetic)

Unsupported transfer syntaxes / implicit VR / compressed pixel data fail closed.

Modules§

anonymize_tag_map
Redact known PHI tag keys in a simple DICOM attribute map.
parse_dicom_tags_basic
Minimal little-endian explicit-VR DICOM tag scanner.
suv_from_activity
Standardised Uptake Value (SUV) from activity and body metrics.

Structs§

AnonymizeReport
Report of anonymization actions.
ParsedDicomTags
Subset returned as typed convenience fields + full map of found strings.

Enums§

DicomLiteError
DICOM-lite errors (fail closed).

Constants§

PHI_TAG_KEYS
PHI / identity tags zeroed or replaced with a fixed placeholder.

Functions§

anonymize_tag_map
Zero/redact known PHI keys in map (in place).
parse_dicom_tags_basic
Scan bytes for common DICOM tags (little-endian explicit VR).
suv_bw
Convenience: SUV_bw from activity concentration, injected activity (Bq), body weight in kg, and decay factor.
suv_from_activity
Body-weight SUV (SUV_bw).

Type Aliases§

DicomTagMap
Simple string-valued attribute map after parse/anonymize.