write_element_string Method
Sets a value of the next element in the current segment to a simple value.
Syntax
def write_element_string(value: str) -> None: ...
Remarks
Use the on_write_element_string method to specify a value for the next data element with simple content on the current segment.
To write a composite data element, even if it has a single sub-element, use the start_element and write_component_string methods instead.