got an error while processing XML

vendredi 31 octobre 2014

ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://ift.tt/Atvu06; xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">



The above is from the XML. When I tested the transaction, got an error of



Transformer error

ERROR MESSAGE: Error evaluating transformer

com.mirth.connect.server.MirthJavascriptTransforme rException:

CHANNEL: CCDA - import

CONNECTOR: sourceConnector

SCRIPT SOURCE:

SOURCE CODE:

180: }

181: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPac kage().getName() + ')');

182: }

183: }

184: function doScript() {

185: msg = new XML(connectorMessage.getTransformedData());

186: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }

187: function filterRule1() {

188: goodLocationList = ['Advocare Ear Nose & Throat Specialists of Morristown'];

189:

LINE NUMBER: 185

DETAILS: TypeError: The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "ClinicalDocument" is not bound.

at a5bd9aa0-630f-46e4-971e-bab351252e98:185 (doScript)

at a5bd9aa0-630f-46e4-971e-bab351252e98:223

at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:134)

at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:100)

at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)

at java.lang.Thread.run(Unknown Source)



I am using mirth 3.0.1.7051. Do I need to load "xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">"? I am not sure what I am looking at....Thanks,





got an error while processing XML

0 commentaires:

Enregistrer un commentaire