Skip to content

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

@aboFaisal

Description

@aboFaisal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions