X12 278 - 获取响应消息以映射到架构中的正确元素 [英] X12 278 - Get Response message to map to proper element in schema

查看:64
本文介绍了X12 278 - 获取响应消息以映射到架构中的正确元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解析HIPAA x12 278响应消息,但它没有正确解析模式。它似乎没有将它映射到模式中的正确响应元素。解析后的消息如下所示:

I am trying to parse a HIPAA x12 278 response message and it is not resolving the schema properly. It appears to not map it to the proper response elemements within the schema. The parsed message looks like this:

<ns0:X12_00501_278 xmlns:ns0="http://schemas.microsoft.com/BizTalk/EDI/X12/2006">
  <ST>
    <ST01_TransactionSetIdentifierCode>278</ST01_TransactionSetIdentifierCode>
    <ST02_TransactionSetControlNumber>0001</ST02_TransactionSetControlNumber>
    <ST03_ImplementationGuideVersionName>005010X216</ST03_ImplementationGuideVersionName>
  </ST>
  <ns0:BHT_BeginningofHierarchicalTransaction_TS278A1>
    <BHT01_HierarchicalStructureCode>0007</BHT01_HierarchicalStructureCode>
    <BHT02_TransactionSetPurposeCode>44</BHT02_TransactionSetPurposeCode>
    <BHT03_SubmitterTransactionIdentifier>123456789</BHT03_SubmitterTransactionIdentifier>
    <BHT04_TransactionSetCreationDate>20120313</BHT04_TransactionSetCreationDate>
    <BHT05_TransactionSetCreationTime>1108</BHT05_TransactionSetCreationTime>
  </ns0:BHT_BeginningofHierarchicalTransaction_TS278A1>

正确的回复应该如下所示:

The proper response should look more like the following:

<ns0:X12_00501_278 xmlns:ns0="http://schemas.microsoft.com/BizTalk/EDI/X12/2006">
  <ST>
    <ST01_TransactionSetIdentifierCode>278</ST01_TransactionSetIdentifierCode>
    <ST02_TransactionSetControlNumber>0001</ST02_TransactionSetControlNumber>
    <ST03_ImplementationGuideVersionName>005010X216</ST03_ImplementationGuideVersionName>
  </ST>
  <A3_BHT_Loop>
  <ns0:BHT_BeginningofHierarchicalTransaction_TS278A3>
    <BHT01_HierarchicalStructureCode>0007</BHT01_HierarchicalStructureCode>
    <BHT02_TransactionSetPurposeCode>44</BHT02_TransactionSetPurposeCode>
    <BHT03_SubmitterTransactionIdentifier>123456789</BHT03_SubmitterTransactionIdentifier>
    <BHT04_TransactionSetCreationDate>20120313</BHT04_TransactionSetCreationDate>
    <BHT05_TransactionSetCreationTime>1108</BHT05_TransactionSetCreationTime>
  </ns0:BHT_BeginningofHierarchicalTransaction_TS278A3>


是否必须进行设置才能使其正确解析特定类型的278邮件?

Is there a setting that must be made to get it to resolve properly to a specific type of the 278 message?

推荐答案

我记得当我第一次开发278时,起初它有点棘手,直到我得到了坚持下去。我看到的一件事是你试图使用xml。你在测试时试过EDI吗?有时xml out会有点误导。

I remember when I first developed a 278, it was a bit tricky at first until I got the hang of it. One thing that I see is that you are trying to use the xml out. Have you tried the EDI out when testing? Sometimes the xml out can get a bit misleading.

关于目的地,请确保没有任何内容链接到A1_BHT_Loop,因为您不需要它来进行响应。请求A3_BHT_Loop也是如此,确保没有任何链接。

With regards to teh destination, make sure that there is nothing linked to the A1_BHT_Loop, because you do not need it for the response. The same goes for the request A3_BHT_Loop, make sure nothing is linked.


这篇关于X12 278 - 获取响应消息以映射到架构中的正确元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆