简体   繁体   English

nHapi v231不包含SIU ^ S13 messageType

[英]nHapi v231 does not contain a SIU^S13 messageType

I am currently working on updating an existing HL7 integration that is build in NET 4.5.1 using the nHapi library version 2.3.1 我目前正在使用nHapi库版本2.3.1更新在NET 4.5.1中构建的现有HL7集成。

Our integration partner has changed a couple of things and wishes to send us different messagesTypes of HL7: SIU^12, SIU^13, SIU^14, SIU^15 and SIU^17. 我们的集成合作伙伴已更改了几件事,希望向我们发送不同的消息类型HL7:SIU ^ 12,SIU ^ 13,SIU ^ 14,SIU ^ 15和SIU ^ 17。

However when I pull up the different supported messageTypes in 但是当我拉起不同的受支持的messageTypes

NHapi.Model.V231.Message I can only find support for SIU_12 and not the 4 other types that our integrator wants to utilize. NHapi.Model.V231.Message我只能找到对SIU_12的支持,而不能找到我们的集成商想要利用的其他4种类型。

I took a look in the 2.5.0 version with the same result. 我在2.5.0版本中查看了相同的结果。

Are these messageTypes just not supported in nHapi or am I missing something? 这些消息类型是否仅在nHapi中不受支持,或者我缺少某些内容?

Cheers 干杯

The SIU_S12 message structure is for all SIU messages. SIU_S12消息结构适用于所有SIU消息。 So if you parse a SIU_S15 message you get a SIU_S12 structure back. 因此,如果您解析SIU_S15消息,则会得到SIU_S12结构。 Similarly you can encode a SIU_S15 message by populating a SIU_S12 structure. 同样,您可以通过填充SIU_S12结构来编码SIU_S15消息。

it is also necessary to edit the segment 9.1 in these cases because otherwise the pipe parser is responsible for setting the fields 9.1 and 9.2 based on field 9.3 (structure name) in this case (siu_s12) 在这种情况下,还必须编辑段9.1,因为在这种情况下,管道解析器负责基于字段9.3(结构名称)来设置字段9.1和9.2(siu_s12)

 if (Terser.Get(structure, 9, 0, 1, 1) == null)
 {
   string structureName = source.GetStructureName();
   int length = structureName.IndexOf("_");
   if (length > 0)
   {
     string value_Renamed2 = structureName.Substring(0, length);
     string value_Renamed3 = structureName.Substring(length + 1);
     Terser.Set(structure, 9, 0, 1, 1, value_Renamed2);
     Terser.Set(structure, 9, 0, 2, 1, value_Renamed3);
   }
   else
     Terser.Set(structure, 9, 0, 1, 1, structureName);
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM