1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Core DICOM data model.
//!
//! Three constraints shape this crate:
//!
//! 1. **Stored as-is**: element values are kept as the raw bytes defined by the standard; number
//! and text interpretation is deferred until read time. Data under any transfer syntax
//! (explicit/implicit VR, big endian, and whatever is added later) can therefore be written
//! back byte for byte, and the parser never has to guess.
//! 2. **Explicit endianness**: numeric decoding always takes an [`Endian`]; there is no hidden
//! global byte-order state.
//! 3. **Zero dependencies**: `dcm4rs` depends on no third-party crate, so it can be embedded in
//! long-lived products such as a PACS.
//!
//! ```
//! use dcm4rs::{DataSet, Tag, Value, Vr};
//!
//! let mut ds = DataSet::new();
//! ds.set(Tag::new(0x0010, 0x0010), Vr::Pn, Value::from_str("Doe^John"));
//! ds.set(Tag::new(0x0028, 0x0010), Vr::Us, Value::from_u16s(&[512]));
//!
//! assert_eq!(ds.string(Tag::new(0x0010, 0x0010)).unwrap(), "Doe^John");
//! assert_eq!(ds.u16(Tag::new(0x0028, 0x0010)).unwrap(), 512);
//! ```
pub use DataSet;
pub use Element;
pub use Endian;
pub use ;
pub use Tag;
pub use Value;
pub use Vr;