pydicom.filewriter.write_data_element

pydicom.filewriter.write_data_element(fp: DicomIO, elem: DataElement | RawDataElement, encodings: str | list[str] | None = None) None[source]

Write the data_element to file fp according to dicom media storage rules.