pub fn to_writer<W, T>(writer: W, data: T) -> Result<(), Error>where DicomJson<T>: From<T> + Serialize, W: Write,
Serialize a piece of DICOM data to a byte writer.