python-hl7 icon indicating copy to clipboard operation
python-hl7 copied to clipboard

Rewrite hl7 messages

Open tomunger opened this issue 2 years ago • 0 comments

I made changes to accomplish two things.

First, Segment.assign_field() correctly re-writes values. The caller can redefine the structure of the hl7 message.

Second, a new function in Message and Segment, write_field(), first escapes the field and then calls assign_field(). This was my solution to provide write-with-escape in a backward compatible way.

tomunger avatar Mar 09 '23 15:03 tomunger