具有反斜杠的HL7分析错误 [英] HL7 Parse Error with back slashes
问题描述
我正在寻找在BizTalk 2013R2中寻找HL7解析错误的其他地方的一些想法。
事件日志中的错误是:
解析期间正文中发生错误
错误#1
段ID:OBX
序号:1
字段编号:4
错误号码:102
错误说明:数据类型错误
编码系统:HL79999
如果OBR.4中的数据包含12个以上的反斜杠,那么OBR段似乎失败了。
失败
OBX | 1 | ST | X0040 ^ CHEST PA-LAT XR | some \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ >
通票
OBX | 1 | ST | X0040 ^ CHEST PA-LAT XR | some\long\path\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\
如果对邮件的一方禁用了正文部分验证,它也会通过。
OBX.4被定义为ST
< xs:element minOccurs =" 0"名称= QUOT; OBX_4_ObservationSubId"类型= QUOT; NS0:ST" />
ST定义为字符串
< xs:simpleType name =" ST">
< xs:restriction base =" xs:string">
< xs:whiteSpace value =" preserve" />
$
< / xs:restriction>
< / xs:simpleType>
可以在邮件的其他字段中重复失败。
任何人都可以看到这个原因或知道还应该检查什么来确定原因?
谢谢!
问题是OBX 4字段(Observation Sub-ID)被定义为HL7标准中的最多20个字符。
在使用反斜杠时,您还需要注意HL7转义字符。
问候,
Martijn
I'm looking for some idea of where else to look for an HL7 parse error in BizTalk 2013R2.
The error in the event log is:
Error happened in body during parsing
Error # 1
Segment Id: OBX
Sequence Number: 1
Field Number: 4
Error Number: 102
Error Description: Data type error
Encoding System: HL79999
The OBR segment seems to fail if the data in OBR.4 contains more than 12 backslashes
Fails
OBX|1|ST|X0040^CHEST PA-LAT XR|some\long\path\is\in\this\field\but\why\does\it\fail\aaa\bbb||
Passes
OBX|1|ST|X0040^CHEST PA-LAT XR|some\long\path\is\in\this\field\but\why\does\it\fail\aaa||
It also passes if body segment validation is disabled for the party of the message.
OBX.4 is defined as a type of ST
<xs:element minOccurs="0" name="OBX_4_ObservationSubId" type="ns0:ST" />
ST is defined as a string
<xs:simpleType name="ST">
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve" />
</xs:restriction>
</xs:simpleType>
The failure can be repeated in other fields of the message.
Can anyone see a reason for this or know what else should be checked to determine the cause?
Thanks!
Hi,
The problem is the OBX 4 field (Observation Sub-ID) is defined as max 20 chararacters in the HL7 standard.
Also you need to be aware of the HL7 escape characters when using backslashes.
Regards,
Martijn
这篇关于具有反斜杠的HL7分析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!