Announcement

Collapse
No announcement yet.

File & batch headers

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

  • File & batch headers

    One of the laboratories I have to deal with insists on sending all ORU with file and batch headers, even if sending only a single message.

    So far, any attempt to use the File Reader on these produces an error.

    Any suggestions?

  • #2
    Re:File & batch headers

    Can you post the error an a sample file.
    Chris Lang

    Comment


    • #3
      Re:File & batch headers

      Sorry - should have thought to do that first time.

      Here is the error message (with application & facility names edited out):

      ERROR-301: Transformer conversion error
      ERROR MESSAGE: Error adapting message
      com.webreach.mirth.model.converters.SerializerExce ption: ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message beginning FHS|^~&|APPLICATION|facility|||200708242042||||210 95

      at com.webreach.mirth.model.converters.ER7Serializer. toXML(ER7Serializer.java:105)
      at com.webreach.mirth.model.converters.ER7Serializer. toXML(ER7Serializer.java:50)
      at com.webreach.mirth.server.mule.adaptors.HL7v2Adapt or.populateMessage(HL7v2Adaptor.java:17)
      at com.webreach.mirth.server.mule.adaptors.Adaptor.ge tMessage(Adaptor.java:41)
      at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.transform(JavaScriptTransformer.ja va:258)
      at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8)
      at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197)
      at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)
      at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)
      at org.mule.impl.MuleEvent.getTransformedMessage(Mule Event.java:251)
      at org.mule.routing.inbound.SelectiveConsumer.isMatch (SelectiveConsumer.java:61)
      at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:79)
      at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
      at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
      at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:230)
      at com.webreach.mirth.connectors.file.FileMessageRece iver.processFile(FileMessageReceiver.java:223)
      at com.webreach.mirth.connectors.file.FileMessageRece iver.poll(FileMessageReceiver.java:130)
      at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:118)
      at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
      at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
      at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
      at java.lang.Thread.run(Unknown Source)
      Caused by: ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message beginning FHS|^~&|APPLICATION|facility|||200708242042||||210 95

      at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:140)
      at com.webreach.mirth.model.converters.ER7Serializer. toXML(ER7Serializer.java:103)
      ... 21 more

      The 4 file encoding characters are all there but the backslash doesn't show up in this post for some reason (tried editing it but no success).

      Post edited by: rmgreen, at: 09/03/2007 17:29

      Comment


      • #4
        Re:File & batch headers

        Are you using 1.6(.1)? Go to each source and destination transformer and on the inbound and outbound tabs hit "Properties". Change to "non strict parser". If you have any mappings or message builder steps, you will need to rebuild them.

        The non-strict parser should handle the FSH headers just fine. Also - do you have "process batch messages" turn on, on the source connector?
        Chris Lang

        Comment


        • #5
          Re:File & batch headers

          I am using v1.6.1

          I have deselected "Use Strict Parser" in the Properties dialog of Incoming Data and Outgoing Data tabs of both transformers. This certainly allows a sample message to be displayed correctly in the lower pane, instead of "The above message is not valid HL7 v2.x". I now get a different error message, as below:

          I am grateful for your help - I'm new to this and there's not much documentation (yet).

          ERROR-300: Transformer error
          ERROR MESSAGE: Error evaluating transformer
          com.webreach.mirth.model.converters.SerializerExce ption: java.lang.ArrayIndexOutOfBoundsException: 2
          at com.webreach.mirth.model.converters.ER7Serializer. fromXML(ER7Serializer.java:168)
          at com.webreach.mirth.model.converters.ER7Serializer. fromXML(ER7Serializer.java:50)
          at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.evaluateTransformerScript(JavaScri ptTransformer.java:406)
          at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.transform(JavaScriptTransformer.ja va:286)
          at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8)
          at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197)
          at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)
          at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)
          at org.mule.impl.MuleEvent.getTransformedMessage(Mule Event.java:251)
          at org.mule.routing.inbound.SelectiveConsumer.isMatch (SelectiveConsumer.java:61)
          at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:79)
          at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
          at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
          at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:230)
          at com.webreach.mirth.connectors.file.FileMessageRece iver.processFile(FileMessageReceiver.java:208)
          at com.webreach.mirth.connectors.file.FileMessageRece iver.poll(FileMessageReceiver.java:130)
          at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:118)
          at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
          at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
          at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
          at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
          at com.webreach.mirth.model.converters.ER7XMLHandler. startElement(ER7XMLHandler.java:130)
          at org.apache.xerces.parsers.AbstractSAXParser.startE lement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.sc anStartElement(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
          at com.webreach.mirth.model.converters.ER7Serializer. fromXML(ER7Serializer.java:163)
          ... 20 more

          Comment


          • #6
            Re:File & batch headers

            Can you post your channel?

            Thanks!
            Chris Lang

            Comment


            • #7
              Re:File & batch headers

              Sorry for delay. Here's the exported channel:

              <com.webreach.mirth.model.Channel>
              <id>50b33ddd-aab6-48da-9bb6-2eafd8e7fd6d</id>
              <name>LOINC code editor</name>
              <description></description>
              <enabled>false</enabled>
              <version>1.6.1.2750</version>
              <revision>99</revision>
              <sourceConnector>
              <name>sourceConnector</name>
              <properties>
              <property name="moveToDirectory"></property>
              <property name="checkFileAge">0</property>
              <property name="host">../MirthMsg/In</property>
              <property name="pollingType">interval</property>
              <property name="fileFilter">*.hl7</property>
              <property name="charsetEncoding">DEFAULT_ENCODING</property>
              <property name="autoDelete">1</property>
              <property name="binary">0</property>
              <property name="pollingFrequency">100</property>
              <property name="moveToPattern"></property>
              <property name="fileAge">0</property>
              <property name="DataType">File Reader</property>
              <property name="processBatchFiles">1</property>
              <property name="sortAttribute">date</property>
              </properties>
              <transformer>
              <steps>
              <com.webreach.mirth.model.Step>
              <sequenceNumber>0</sequenceNumber>
              <name>New Step</name>
              <script>return;</script>
              <type>JavaScript</type>
              <data class="map">
              <entry>
              <string>Script</string>
              <string>return;</string>
              </entry>
              </data>
              </com.webreach.mirth.model.Step>
              </steps>
              <inboundTemplate>FHS|^~\&amp;|SENDAPP|SENDFAC|||20 0708310842||||22853&#x0D;BHS|^~\&amp;|SENDAPP|send fac|||C8069_FBE_anon.hl7|8069&#x0D;MSH|^~\&amp;|SE NDAPP|SENDFAC||sfxc0002|200708310842||ORU|93078|P| 2.3|||NE|AL|AU&#x0D;PID|1|LAB6595135|0702281|65951 35|SURNAME^NAME^^^MR||196305310000|M|||999 ADDRESS ROAD ^^SOMEWHERE TOWN ^SA^5000||||||||5009999999||||||||&#x0D;PV1|1|O||| |||9999999Y^GREEN^R MALCOLM^^^DR|9999999Y^GREEN^R MALCOLM^^^DR|||||||||||BULKBILL&#x0D;OBR|1|0702281 |6595135-H01.4|H01.4^CBP^LAB^||200703090000|200708301520||| |||NHL|200703090000||9999999Y^GREEN^R MALCOLM^^^DR||||9999999Y^GREEN^R MALCOLM^^^DR||200708302149|||F||^^^200703090000|&# x0D;OBX|1|FT|H01.4.1^^LAB||\.br\ Clinical Notes:\.br\ NHL||||||F&#x0D;OBX|2|FT|H01.4.2^^LAB|| ||||||F&#x0D;OBX|3|NM|718-7^Haemoglobin^LN||145|g/L|130-175|N|||F&#x0D;OBX|4|NM|789-8^RBC^LN||4.99|x10^12/L|4.0-6.5|N|||F&#x0D;OBX|5|NM|4544-3^PCV^LN||0.43||0.40-0.54|N|||F&#x0D;OBX|6|NM|787-2^MCV^LN||86.6|fl|80-100|N|||F&#x0D;OBX|7|NM|785-6^MCH^LN||29.1|pg|26-34|N|||F&#x0D;OBX|8|NM|786-4^MCHC^LN||336|g/L|300-360|N|||F&#x0D;OBX|9|NM|788-0^RDW^LN||13.4|%|11.5-14.5|N|||F&#x0D;OBX|10|NM|5907-1^Platelets^LN||217|x10^9/L|150-450|N|||F&#x0D;OBX|11|FT|H01.4.11^^LAB|| |||N|||F&#x0D;OBX|12|NM|6690-2^White Cell Count^LN||8.6|x10^9/L|4.0-11.0|N|||F&#x0D;OBX|13|NM|752-6^Neutrophils^LN||5.6|x10^9/L|2.0-7.5|N|||F&#x0D;OBX|14|NM|731-0^Lymphocytes^LN||2.2|x10^9/L|1.0-4.0|N|||F&#x0D;OBX|15|NM|742-7^Monocytes^LN||0.6|x10^9/L|0.2-1.2|N|||F&#x0D;OBX|16|NM|711-2^Eosinophils^LN||0.2|x10^9/L|0-0.6|N|||F&#x0D;OBX|17|NM|704-7^Basophils^LN||0.0|x10^9/L|0-0.2|N|||F&#x0D;OBX|18|FT|H01.4.18^^LAB|| |||N|||F&#x0D;OBX|19|NM|770-8^Neutrophils^LN||64|%||N|||F&#x0D;OBX|20|NM|736-9^Lymphocytes^LN||26|%||N|||F&#x0D;OBX|21|NM|10330-9^Monocytes^LN||7|%||N|||F&#x0D;OBX|22|NM|713-8^Eosinophils^LN||2|%||N|||F&#x0D;OBX|23|NM|706-2^Basophils^LN||1|%||N|||F&#x0D;OBX|24|FT|H01.4.24 ^^LAB|| |||N|||F&#x0D;OBX|25|FT|H01.4.25^^LAB|| |||N|||F&#x0D;OBX|26|ST|H01.4.26^Blood film ^LAB||Red Cells Normal|||N|||F&#x0D;OBX|27|FT|H01.4.27^^LAB|| |||N|||F&#x0D;OBX|28|FT|H01.4.28^^LAB||\.nf\ No abnormality detected|||N|||F&#x0D;BTS|15&#x0D;FTS|1|22853</inboundTemplate>
              <outboundTemplate>FHS|^~\&amp;|SENDAPP|SENDFAC|||2 00708310842||||22853&#x0D;BHS|^~\&amp;|SENDAPP|sen dfac|||C8069_FBE_anon.hl7|8069&#x0D;MSH|^~\&amp;|S ENDAPP|SENDFAC||sfxc0002|200708310842||ORU|93078|P |2.3|||NE|AL|AU&#x0D;PID|1|LAB6595135|0702281|6595 135|SURNAME^NAME^^^MR||196305310000|M|||999 ADDRESS ROAD ^^SOMEWHERE TOWN ^SA^5000||||||||5009999999||||||||&#x0D;PV1|1|O||| |||9999999Y^GREEN^R MALCOLM^^^DR|9999999Y^GREEN^R MALCOLM^^^DR|||||||||||BULKBILL&#x0D;OBR|1|0702281 |6595135-H01.4|H01.4^CBP^LAB^||200703090000|200708301520||| |||NHL|200703090000||9999999Y^GREEN^R MALCOLM^^^DR||||9999999Y^GREEN^R MALCOLM^^^DR||200708302149|||F||^^^200703090000|&# x0D;OBX|1|FT|H01.4.1^^LAB||\.br\ Clinical Notes:\.br\ NHL||||||F&#x0D;OBX|2|FT|H01.4.2^^LAB|| ||||||F&#x0D;OBX|3|NM|718-7^Haemoglobin^LN||145|g/L|130-175|N|||F&#x0D;OBX|4|NM|789-8^RBC^LN||4.99|x10^12/L|4.0-6.5|N|||F&#x0D;OBX|5|NM|4544-3^PCV^LN||0.43||0.40-0.54|N|||F&#x0D;OBX|6|NM|787-2^MCV^LN||86.6|fl|80-100|N|||F&#x0D;OBX|7|NM|785-6^MCH^LN||29.1|pg|26-34|N|||F&#x0D;OBX|8|NM|786-4^MCHC^LN||336|g/L|300-360|N|||F&#x0D;OBX|9|NM|788-0^RDW^LN||13.4|%|11.5-14.5|N|||F&#x0D;OBX|10|NM|5907-1^Platelets^LN||217|x10^9/L|150-450|N|||F&#x0D;OBX|11|FT|H01.4.11^^LAB|| |||N|||F&#x0D;OBX|12|NM|6690-2^White Cell Count^LN||8.6|x10^9/L|4.0-11.0|N|||F&#x0D;OBX|13|NM|752-6^Neutrophils^LN||5.6|x10^9/L|2.0-7.5|N|||F&#x0D;OBX|14|NM|731-0^Lymphocytes^LN||2.2|x10^9/L|1.0-4.0|N|||F&#x0D;OBX|15|NM|742-7^Monocytes^LN||0.6|x10^9/L|0.2-1.2|N|||F&#x0D;OBX|16|NM|711-2^Eosinophils^LN||0.2|x10^9/L|0-0.6|N|||F&#x0D;OBX|17|NM|704-7^Basophils^LN||0.0|x10^9/L|0-0.2|N|||F&#x0D;OBX|18|FT|H01.4.18^^LAB|| |||N|||F&#x0D;OBX|19|NM|770-8^Neutrophils^LN||64|%||N|||F&#x0D;OBX|20|NM|736-9^Lymphocytes^LN||26|%||N|||F&#x0D;OBX|21|NM|10330-9^Monocytes^LN||7|%||N|||F&#x0D;OBX|22|NM|713-8^Eosinophils^LN||2|%||N|||F&#x0D;OBX|23|NM|706-2^Basophils^LN||1|%||N|||F&#x0D;OBX|24|FT|H01.4.24 ^^LAB|| |||N|||F&#x0D;OBX|25|FT|H01.4.25^^LAB|| |||N|||F&#x0D;OBX|26|ST|H01.4.26^Blood film ^LAB||Red Cells Normal|||N|||F&#x0D;OBX|27|FT|H01.4.27^^LAB|| |||N|||F&#x0D;OBX|28|FT|H01.4.28^^LAB||\.nf\ No abnormality detected|||N|||F&#x0D;BTS|15&#x0D;FTS|1|22853</outboundTemplate>
              <inboundProtocol>HL7V2</inboundProtocol>
              <outboundProtocol>HL7V2</outboundProtocol>
              <inboundProperties>
              <property name="useStrictParser">false</property>
              <property name="encodeEntities">true</property>
              <property name="handleRepetitions">false</property>
              <property name="useStrictValidation">false</property>
              </inboundProperties>
              <outboundProperties>
              <property name="useStrictParser">false</property>
              <property name="encodeEntities">true</property>
              <property name="handleRepetitions">false</property>
              <property name="useStrictValidation">false</property>
              </outboundProperties>
              </transformer>
              <filter>
              <rules>
              <com.webreach.mirth.model.Rule>
              <sequenceNumber>0</sequenceNumber>
              <name>Accept all</name>
              <script>return true;</script>
              <operator>NONE</operator>
              </com.webreach.mirth.model.Rule>
              </rules>
              </filter>
              <transportName>File Reader</transportName>
              <mode>SOURCE</mode>
              <enabled>true</enabled>
              </sourceConnector>
              <destinationConnectors>
              <com.webreach.mirth.model.Connector>
              <name>Destination 1</name>
              <properties>
              <property name="binary">0</property>
              <property name="charsetEncoding">DEFAULT_ENCODING</property>
              <property name="host">../MirthMsg/Out</property>
              <property name="outputPattern">${ORIGINALNAME}</property>
              <property name="DataType">File Writer</property>
              <property name="template">${message.rawData}${message.type}</property>
              <property name="outputAppend">0</property>
              </properties>
              <transformer>
              <steps/>
              <inboundTemplate>FHS|^~\&amp;|SENDAPP|SENDFAC|||20 0708310842||||22853&#x0D;BHS|^~\&amp;|SENDAPP|send fac|||C8069_FBE_anon.hl7|8069&#x0D;MSH|^~\&amp;|SE NDAPP|SENDFAC||sfxc0002|200708310842||ORU|93078|P| 2.3|||NE|AL|AU&#x0D;PID|1|LAB6595135|0702281|65951 35|SURNAME^NAME^^^MR||196305310000|M|||999 ADDRESS ROAD ^^SOMEWHERE TOWN ^SA^5000||||||||5009999999||||||||&#x0D;PV1|1|O||| |||9999999Y^GREEN^R MALCOLM^^^DR|9999999Y^GREEN^R MALCOLM^^^DR|||||||||||BULKBILL&#x0D;OBR|1|0702281 |6595135-H01.4|H01.4^CBP^LAB^||200703090000|200708301520||| |||NHL|200703090000||9999999Y^GREEN^R MALCOLM^^^DR||||9999999Y^GREEN^R MALCOLM^^^DR||200708302149|||F||^^^200703090000|&# x0D;OBX|1|FT|H01.4.1^^LAB||\.br\ Clinical Notes:\.br\ NHL||||||F&#x0D;OBX|2|FT|H01.4.2^^LAB|| ||||||F&#x0D;OBX|3|NM|718-7^Haemoglobin^LN||145|g/L|130-175|N|||F&#x0D;OBX|4|NM|789-8^RBC^LN||4.99|x10^12/L|4.0-6.5|N|||F&#x0D;OBX|5|NM|4544-3^PCV^LN||0.43||0.40-0.54|N|||F&#x0D;OBX|6|NM|787-2^MCV^LN||86.6|fl|80-100|N|||F&#x0D;OBX|7|NM|785-6^MCH^LN||29.1|pg|26-34|N|||F&#x0D;OBX|8|NM|786-4^MCHC^LN||336|g/L|300-360|N|||F&#x0D;OBX|9|NM|788-0^RDW^LN||13.4|%|11.5-14.5|N|||F&#x0D;OBX|10|NM|5907-1^Platelets^LN||217|x10^9/L|150-450|N|||F&#x0D;OBX|11|FT|H01.4.11^^LAB|| |||N|||F&#x0D;OBX|12|NM|6690-2^White Cell Count^LN||8.6|x10^9/L|4.0-11.0|N|||F&#x0D;OBX|13|NM|752-6^Neutrophils^LN||5.6|x10^9/L|2.0-7.5|N|||F&#x0D;OBX|14|NM|731-0^Lymphocytes^LN||2.2|x10^9/L|1.0-4.0|N|||F&#x0D;OBX|15|NM|742-7^Monocytes^LN||0.6|x10^9/L|0.2-1.2|N|||F&#x0D;OBX|16|NM|711-2^Eosinophils^LN||0.2|x10^9/L|0-0.6|N|||F&#x0D;OBX|17|NM|704-7^Basophils^LN||0.0|x10^9/L|0-0.2|N|||F&#x0D;OBX|18|FT|H01.4.18^^LAB|| |||N|||F&#x0D;OBX|19|NM|770-8^Neutrophils^LN||64|%||N|||F&#x0D;OBX|20|NM|736-9^Lymphocytes^LN||26|%||N|||F&#x0D;OBX|21|NM|10330-9^Monocytes^LN||7|%||N|||F&#x0D;OBX|22|NM|713-8^Eosinophils^LN||2|%||N|||F&#x0D;OBX|23|NM|706-2^Basophils^LN||1|%||N|||F&#x0D;OBX|24|FT|H01.4.24 ^^LAB|| |||N|||F&#x0D;OBX|25|FT|H01.4.25^^LAB|| |||N|||F&#x0D;OBX|26|ST|H01.4.26^Blood film ^LAB||Red Cells Normal|||N|||F&#x0D;OBX|27|FT|H01.4.27^^LAB|| |||N|||F&#x0D;OBX|28|FT|H01.4.28^^LAB||\.nf\ No abnormality detected|||N|||F&#x0D;BTS|15&#x0D;FTS|1|22853</inboundTemplate>
              <outboundTemplate>FHS|^~\&amp;|SENDAPP|SENDFAC|||2 00708310842||||22853&#x0D;BHS|^~\&amp;|SENDAPP|sen dfac|||C8069_FBE_anon.hl7|8069&#x0D;MSH|^~\&amp;|S ENDAPP|SENDFAC||sfxc0002|200708310842||ORU|93078|P |2.3|||NE|AL|AU&#x0D;PID|1|LAB6595135|0702281|6595 135|SURNAME^NAME^^^MR||196305310000|M|||999 ADDRESS ROAD ^^SOMEWHERE TOWN ^SA^5000||||||||5009999999||||||||&#x0D;PV1|1|O||| |||9999999Y^GREEN^R MALCOLM^^^DR|9999999Y^GREEN^R MALCOLM^^^DR|||||||||||BULKBILL&#x0D;OBR|1|0702281 |6595135-H01.4|H01.4^CBP^LAB^||200703090000|200708301520||| |||NHL|200703090000||9999999Y^GREEN^R MALCOLM^^^DR||||9999999Y^GREEN^R MALCOLM^^^DR||200708302149|||F||^^^200703090000|&# x0D;OBX|1|FT|H01.4.1^^LAB||\.br\ Clinical Notes:\.br\ NHL||||||F&#x0D;OBX|2|FT|H01.4.2^^LAB|| ||||||F&#x0D;OBX|3|NM|718-7^Haemoglobin^LN||145|g/L|130-175|N|||F&#x0D;OBX|4|NM|789-8^RBC^LN||4.99|x10^12/L|4.0-6.5|N|||F&#x0D;OBX|5|NM|4544-3^PCV^LN||0.43||0.40-0.54|N|||F&#x0D;OBX|6|NM|787-2^MCV^LN||86.6|fl|80-100|N|||F&#x0D;OBX|7|NM|785-6^MCH^LN||29.1|pg|26-34|N|||F&#x0D;OBX|8|NM|786-4^MCHC^LN||336|g/L|300-360|N|||F&#x0D;OBX|9|NM|788-0^RDW^LN||13.4|%|11.5-14.5|N|||F&#x0D;OBX|10|NM|5907-1^Platelets^LN||217|x10^9/L|150-450|N|||F&#x0D;OBX|11|FT|H01.4.11^^LAB|| |||N|||F&#x0D;OBX|12|NM|6690-2^White Cell Count^LN||8.6|x10^9/L|4.0-11.0|N|||F&#x0D;OBX|13|NM|752-6^Neutrophils^LN||5.6|x10^9/L|2.0-7.5|N|||F&#x0D;OBX|14|NM|731-0^Lymphocytes^LN||2.2|x10^9/L|1.0-4.0|N|||F&#x0D;OBX|15|NM|742-7^Monocytes^LN||0.6|x10^9/L|0.2-1.2|N|||F&#x0D;OBX|16|NM|711-2^Eosinophils^LN||0.2|x10^9/L|0-0.6|N|||F&#x0D;OBX|17|NM|704-7^Basophils^LN||0.0|x10^9/L|0-0.2|N|||F&#x0D;OBX|18|FT|H01.4.18^^LAB|| |||N|||F&#x0D;OBX|19|NM|770-8^Neutrophils^LN||64|%||N|||F&#x0D;OBX|20|NM|736-9^Lymphocytes^LN||26|%||N|||F&#x0D;OBX|21|NM|10330-9^Monocytes^LN||7|%||N|||F&#x0D;OBX|22|NM|713-8^Eosinophils^LN||2|%||N|||F&#x0D;OBX|23|NM|706-2^Basophils^LN||1|%||N|||F&#x0D;OBX|24|FT|H01.4.24 ^^LAB|| |||N|||F&#x0D;OBX|25|FT|H01.4.25^^LAB|| |||N|||F&#x0D;OBX|26|ST|H01.4.26^Blood film ^LAB||Red Cells Normal|||N|||F&#x0D;OBX|27|FT|H01.4.27^^LAB|| |||N|||F&#x0D;OBX|28|FT|H01.4.28^^LAB||\.nf\ No abnormality detected|||N|||F&#x0D;BTS|15&#x0D;FTS|1|22853&#x0D ;</outboundTemplate>
              <inboundProtocol>HL7V2</inboundProtocol>
              <outboundProtocol>HL7V2</outboundProtocol>
              <inboundProperties>
              <property name="useStrictParser">false</property>
              <property name="encodeEntities">true</property>
              <property name="handleRepetitions">false</property>
              <property name="useStrictValidation">false</property>
              </inboundProperties>
              <outboundProperties>
              <property name="useStrictParser">false</property>
              <property name="encodeEntities">true</property>
              <property name="handleRepetitions">false</property>
              <property name="useStrictValidation">false</property>
              </outboundProperties>
              </transformer>
              <filter>
              <rules/>
              </filter>
              <transportName>File Writer</transportName>
              <mode>DESTINATION</mode>
              <enabled>true</enabled>
              </com.webreach.mirth.model.Connector>
              </destinationConnectors>
              <properties>
              <property name="synchronous">true</property>
              <property name="removeNamespace">true</property>
              <property name="encryptData">true</property>
              <property name="store_messages">true</property>
              <property name="dont_store_filtered">false</property>
              <property name="initialState">started</property>
              <property name="max_message_age">-1</property>
              <property name="transactional">false</property>
              <property name="error_messages_only">false</property>
              </properties>
              <preprocessingScript>// Modify the message variable below to pre process data&#x0D;
              return message;</preprocessingScript>
              <postprocessingScript>// This script executes once after a message has been processed
              return;</postprocessingScript>
              <deployScript>// This script executes once when the mule engine is started
              // You only have access to the globalMap here to persist data
              return;</deployScript>
              <shutdownScript>// This script executes once when the mule engine is stopped
              // You only have access to the globalMap here to persist data
              return;</shutdownScript>
              </com.webreach.mirth.model.Channel>

              Comment


              • #8
                Re:File & batch headers

                Anyone had a chance to look at this?

                Chris?

                Comment


                • #9
                  Re:File & batch headers

                  Hi.

                  At source, try removing the transformer step.

                  Transformer steps shouldn't return anything Your expression 'return;' could be causing the error.

                  BTW, please, next time post the channel as an attachement.

                  Comment


                  • #10
                    Re:File & batch headers

                    I have started with a new channel, which is basically just reads and writes files - process batch files is on, strict parser is off, nothing in transformers at all (see attachment).

                    Still get the same "ERROR-300: Transformer error" as above.

                    The channel's error message shows the transformed message contains only FHS and BHS.




                    LOINC_code_editor___TEST.xml (4547 bytes)

                    Comment


                    • #11
                      Re:File & batch headers

                      The channel seems good.

                      Please, could you post an input example file?

                      Comment


                      • #12
                        Re:File & batch headers

                        Please see attachment - this is a file from the lab concerned that I have edited to make it anonymous for testing purposes. C8069_FBE_anon.hl7 (1970 bytes)

                        Comment


                        • #13
                          Re:File & batch headers

                          Has anyone had a chance to look at this file and see why Mirth won't accept it?

                          Alberto?

                          Chris?

                          (sorry if this is out of line)

                          Comment


                          • #14
                            Re:File & batch headers

                            Can you post this issue to the Jira (http://www.mirthproject.org/community/issues) and attach all the relevant files. This will fast track a fix for the batch header handling in 1.7. (And is the best way to get the developer's attention if it appears to be a bug in Mirth) :-)

                            Post edited by: chrisl, at: 11/09/2007 00:56
                            Chris Lang

                            Comment


                            • #15
                              Re:File & batch headers

                              Thanks Chris. I will post as suggested.

                              So this is a bug in v1.6.1, and not something I'm missing?

                              Any guesses on release date for v1.7?

                              Comment

                              Working...
                              X