alexyuisingwu
alexyuisingwu
I'm not sure if something's changed since this comment, but it looks like &, \n, and \r are not escaped anymore For example, I tried running the example you provided...
@svituz Thanks! If it helps, I discovered the issue while trying to add a component that happened to contain an & character. I got an error about adding too much...
@svituz The error in question: ``` from hl7apy import VALIDATION_LEVEL from hl7apy.core import Message, Component, Field m = Message('SIU_S12', validation_level=VALIDATION_LEVEL.STRICT) m.sch.sch_7.sch_7_1 = 'a&b' ``` ` hl7apy.exceptions.MaxChildLimitReached: Cannot add : max...