Announcement

Collapse
No announcement yet.

Error processing ACK

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error processing ACK

    Hi,

    I'm trying to retrieve info from a channel using responseMap.get. Everything works fine but, when I try to recover MSA segment the variable remains blank. This is the code:

    var ack=responseMap.get('Nombre_canal').getMessage().t oString();
    ack = new XML (ack);
    var ackHL7 = ack..*::SingleCallResult.toString();
    ackXML = new XML (ackHL7);
    resultado = ackXML['MSA']['MSA.1'].toString();

    At this point "resultado" is blank. Displaying ackXML variable shows something like:

    <ACK xmlns="urn:hl7-org:v2xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MSH>
    <MSH.1>|</MSH.1>
    <MSH.2>^~\&amp;</MSH.2>
    <MSH.3>
    <HD.1>SSDNET</HD.1>
    </MSH.3>
    <MSH.5>
    <HD.1>ECOBCN</HD.1>
    </MSH.5>
    <MSH.7>
    <TS.1>20090827150042</TS.1>
    </MSH.7>
    <MSH.9>
    <MSG.1>ACK</MSG.1>
    <MSG.2>O01</MSG.2>
    </MSH.9>
    <MSH.10>200908271500420000</MSH.10>
    <MSH.11/>
    <MSH.12/>
    </MSH>
    <MSA>
    <MSA.1>CE</MSA.1>
    <MSA.2>7e6a9c37-020e-4761-92c2-044c8a335a66</MSA.2>
    </MSA>
    <ERR>
    <ERR.3>
    <CWE.1>27</CWE.1>
    </ERR.3>
    <ERR.4>E</ERR.4>
    <ERR.7>[Parser: [27]: Petition code: '51' is already being used by a valid screening]</ERR.7>
    </ERR>
    </ACK>

    One curious thing is that, I see the message in this way on dashboard (see attached file), look at the right side and pay attention to spaces between <MSH> and <MSH.1>....

    Everything ok, but without success. Any hints?.

    Thanks in advance,

    Ricard Bernat
    Attached Files
Working...
X