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

Getting error with the first line of code while creating newHL7 message

Open aboFaisal opened this issue 2 years ago • 0 comments

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

aboFaisal avatar Dec 03 '23 00:12 aboFaisal