View Source ExDicom.Reader.ReadPart10Header (EX_DICOM v0.2.0)

Parses a DICOM P10 byte array and returns a meta-header DataSet.

Summary

Functions

Reads the Part 10 header from the given byte_array.

Functions

read_part10_header(byte_array, opts \\ [])

@spec read_part10_header(
  binary(),
  keyword()
) :: {:ok, map()} | {:error, String.t()}

Reads the Part 10 header from the given byte_array.

Options can include:

  • :transfer_syntax_uid

Returns {:ok, meta_header_map_or_struct} or {:error, reason}.

The meta_header_map_or_struct might contain fields:

  • :elements => a map of parsed elements
  • :warnings => a list of warnings
  • :position => the position in the byte stream