NIST HL7 Webservice和SoapUI

时间:2014-01-23 14:02:05

标签: web-services soapui hl7-v2

使用位于http://xreg2.nist.gov:8080/HL7WS/的NIST网络服务,使用SoapUI寻找帮助。从SoapUI加载站点的WSDL会产生以下样本服务请求:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"     xmlns:mes="http://messagevalidation.hl7ws.healthcare.nist.gov/">
   <soap:Header/>
   <soap:Body>
      <mes:validate>
         <!--Optional:-->
         <arg0>?</arg0>
         <!--Optional:-->
         <arg1>?</arg1>
         <!--Optional:-->
         <arg2>?</arg2>
         <!--Optional:-->
         <arg3>?</arg3>
     </mes:validate>
   </soap:Body>
</soap:Envelope>

以下是HL7示例消息:

MSH | ^〜\&amp; | MY LAB | MYLAB-3 | GHH OE | BLDG4 | 200202150930 || VXU ^ V04 ^ VXU_V04 | CNTRL-3456 | P | 2.5.1 PID ||| 555-44-4444 || EVERYWOMAN ^ EVE ^ E ^^^^大号| JONES | 19620320 | F || | 3501 ROLLING HILLS CIRCLE ^^ DAVIE ^ FL ^ 33328 ||(206)1234567

通过http://hl7v2-iz-testing.nist.gov/mu-immunization/运行此消息会产生以下错误:

该行'| 3501 ROLLING HILLS CIRCLE ^^ DAVIE ^ FL ^ 33328 ||(206)1234567'不是有效的段

这是我的SoapUI示例请求,使用CDATA包含的上述消息:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:mes="http://messagevalidation.hl7ws.healthcare.nist.gov/">
   <soap:Header/>
   <soap:Body>
      <mes:validate><![CDATA[
     MSH|^~\&|MY LAB|MYLAB-3|GHH OE|BLDG4|200202150930||VXU^V04^VXU_V04|CNTRL-3456|P|2.5.1
PID|||555-44-4444||EVERYWOMAN^EVE^E^^^^L|JONES|19620320|F||
|3501 ROLLING HILLS CIRCLE^^DAVIE^FL^33328||(206)1234567
 ]]></mes:validate>
   </soap:Body>
</soap:Envelope> 

以下是来自网络服务电话的结果:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Body>
      <ns2:validateResponse xmlns:ns2="http://messagevalidation.hl7ws.healthcare.nist.gov/">
         <return><![CDATA[<HL7V2MessageValidationReport xmlns="http://www.nist.gov/healthcare/validation/message/hl7/v2/report" xmlns:mes="http://www.nist.gov/healthcare/validation/message">
  <HeaderReport>
    <mes:ValidationStatus>Incomplete</mes:ValidationStatus>
    <mes:ValidationStatusInfo>Message is required.</mes:ValidationStatusInfo>
    <mes:ServiceName>NIST HL7V2 Message Validation</mes:ServiceName>
    <mes:ServiceProvider>NIST</mes:ServiceProvider>
    <mes:ServiceVersion>1.0</mes:ServiceVersion>
    <mes:StandardType>HL7 V2</mes:StandardType>
    <mes:ValidationType>Automated</mes:ValidationType>
    <mes:TestIdentifier/>
    <mes:ResultOfTest>Failed</mes:ResultOfTest>
    <mes:AffirmCount>0</mes:AffirmCount>
    <mes:ErrorCount>1</mes:ErrorCount>
    <mes:WarningCount>0</mes:WarningCount>
    <mes:IgnoreCount>0</mes:IgnoreCount>
    <mes:AlertCount>0</mes:AlertCount>
  </HeaderReport>
</HL7V2MessageValidationReport>]]></return>
      </ns2:validateResponse>
   </soap:Body>
</soap:Envelope>

我已经花了太多时间研究和摆弄请求中的消息放置,我理解并欣赏与使用HL7相关的许多评论(没有积极的)。任何人都可以阐明如何格式化我的外出消息?我希望收到类似于手动消息验证的消息,例如'Bushwood'是无效的细分市场。

1 个答案:

答案 0 :(得分:0)

仅在原始HL7消息的副本上使用HL7 V2验证工具 注意不要将换行,换页,回车,转义或任何其他控制代码插入HL7消息中