Expand description
This module contains reusable components for encoding and decoding text in DICOM data structures, including support for character repertoires.
At the moment the following character sets are supported:
Character Set | decoding support | encoding support |
---|---|---|
ISO-IR 6 (default) | ✓ | ✓ |
ISO-IR 100 (ISO-8859-1): Right-hand part of the Latin alphabet no. 1, the Western Europe character set | ✓ | ✓ |
ISO-IR 101 (ISO-8859-2): Right-hand part of the Latin alphabet no. 2, the Central/Eastern Europe character set | ✓ | ✓ |
ISO-IR 109 (ISO-8859-3): Right-hand part of the Latin alphabet no. 3, the South Europe character set | ✓ | ✓ |
ISO-IR 110 (ISO-8859-4): Right-hand part of the Latin alphabet no. 4, the North Europe character set | ✓ | ✓ |
ISO-IR 144 (ISO-8859-5): The Latin/Cyrillic character set | ✓ | ✓ |
ISO-IR 192: The Unicode character set based on the UTF-8 encoding | ✓ | ✓ |
GB18030: The Simplified Chinese character set | ✓ | ✓ |
JIS X 0201-1976: Code for Information Interchange | x | x |
JIS X 0208-1990: Code for the Japanese Graphic Character set for information interchange | x | x |
JIS X 0212-1990: Code of the supplementary Japanese Graphic Character set for information interchange | x | x |
KS X 1001 (registered as ISO-IR 149) for Korean Language | x | x |
TIS 620-2533 (1990) Thai Characters Code for Information Interchange | x | x |
GB2312: Simplified Chinese character set | x | x |
These capabilities are available through SpecificCharacterSet
.
Structs§
- Data type representing the default character set.
- Data type for the GB18030 character set encoding.
- Data type for the ISO_IR 100 character set encoding.
- Data type for the ISO_IR 101 character set encoding.
- Data type for the ISO_IR 109 character set encoding.
- Data type for the ISO_IR 110 character set encoding.
- Data type for the ISO_IR 144 character set encoding.
- A descriptor for a specific character set, taking part in text encoding and decoding as per PS3.5 ch 6 6.1.
- Data type for the ISO_IR 192 character set encoding.
Enums§
- An error type for text decoding issues.
- An error type for text encoding issues.
- The result of a text validation procedure (please see
validate_iso_8859
).
Traits§
- A holder of encoding and decoding mechanisms for text in DICOM content, which according to the standard, depends on the specific character set.
Functions§
- Check whether the given byte slice contains only valid characters for a Code String value representation.
- Check whether the given byte slice contains only valid characters for a Date value representation.
- Check whether the given byte slice contains only valid characters for a Date Time value representation.
- Check whether the given byte slice contains valid text from the default character repertoire.
- Check whether the given byte slice contains only valid characters for a Time value representation.