View Source ExDicom.Reader.ReadDicomElement (EX_DICOM v0.1.0)
Provides functions to read a single DICOM element in either Implicit or Explicit VR format.
Summary
Functions
Reads one DICOM element from the byte stream using explicit VR rules.
Reads one DICOM element from the byte stream using implicit VR rules.
Functions
Reads one DICOM element from the byte stream using explicit VR rules.
Parameters
byte_stream
: the ByteStreamwarnings
: a list of warnings (if you track them separately from the stream)until_tag
: optional tag that, if matched, stops reading
Return Value
{:ok, element, updated_stream, updated_warnings}
or {:error, reason}
Reads one DICOM element from the byte stream using implicit VR rules.
Parameters
byte_stream
: the ByteStreamuntil_tag
: optional tag; if we encounter it, we immediately return the elementvr_callback
: (optional) a function that returns a VR given a tag (for private dictionary lookups, etc.)
Return Value
Typically returns {:ok, element, updated_stream, warnings}
or {:error, reason}
.