pydicom.dataelem.DataElement_from_raw

pydicom.dataelem.DataElement_from_raw(raw_data_element: RawDataElement, encoding: str | MutableSequence[str] | None = None, dataset: Dataset | None = None) DataElement[source]

Return a DataElement created from raw_data_element.

Deprecated since version 3.0: DataElement_from_raw will be removed in v4.0, use convert_raw_data_element() instead.

Call the configured data_element_callbacks to do relevant pre/post-processing and convert values from raw to native types

Parameters:
Returns:

A DataElement instance created from raw.

Return type:

DataElement