View Source ExDicom.Parser.DicomDataSet (EX_DICOM v0.2.0)

Internal helper functions for parsing implicit and explicit DICOM data sets.

Summary

Functions

parse_explicit(dataset, byte_stream, max_position \\ nil, opts \\ %{})

Reads an explicit data set.

Parameters

  • dataset - The dataset to store elements in
  • byte_stream - The byte stream to read from
  • max_position - The maximum position to read up to (optional)
  • opts - Options map with optional keys:
    • :until_tag - Stop reading when this tag is encountered

parse_implicit(dataset, byte_stream, max_position \\ nil, opts \\ %{})

Reads an implicit data set.

Parameters

  • dataset - The dataset to store elements in
  • byte_stream - The byte stream to read from
  • max_position - The maximum position to read up to (optional)
  • opts - Options map with optional keys:
    • :until_tag - Stop reading when this tag is encountered
    • :vr_callback - Function to determine VR for private tags