python-hl7
python-hl7 copied to clipboard
Getting error with the first line of code while creating newHL7 message
This is the only two lines of code:
import hl7
new_message = hl7.Message("ADT", "A01")
running this code shows this error:
C:...\hl7\containers.py:332: SyntaxWarning: invalid escape sequence '|' self, separator=None, sequence=[], esc="\", separators="\r|~^&", factory=None Traceback (most recent call last): File "C:...\HL7msg.py", line 10, in
new_message = hl7.Message("ADT", "A01") ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:...\hl7\containers.py", line 334, in init assert not separator or separator == separators[0] AssertionError
Python version : Python 3.12.0