Announcement

Collapse
No announcement yet.

PV1 segment

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

  • PV1 segment

    Hi,

    I used Mirth 1.3.2.

    With the following message, I got an error. According to the standard, a segment with segment id alone is allowed. I would not have this error if I add a vertical bar right after PV1. i.e. PV1|

    Is this a bug or I have to use preprocessor to make it work?

    Thanks,

    Charles

    MSH|^~\&|REG|CH||CWHC|20061221090035||ADT^A01|1059 9072|P|2.2|
    EVN|A01|20061221090035|||JJL
    PID|||||name^name^name^^^||19780710|F|||5408 address ST^^VANCOUVER^BC^^^|||||M||||
    PV1


    ##################
    Caused by: com.webreach.mirth.model.converters.SerializerExce ption: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at com.webreach.mirth.model.converters.HAPIMessageSer ializer.deserialize(HAPIMessageSerializer.java:54)
    at com.webreach.mirth.server.mule.transformers.HL7ToM essageObject.doTransform(HL7ToMessageObject.java:8 0)
    ... 30 more
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at ca.uhn.hl7v2.parser.PipeParser.doParse(PipeParser. java:239)
    at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:151)
    at com.webreach.mirth.model.converters.HAPIMessageSer ializer.deserialize(HAPIMessageSerializer.java:52)
    ... 31 more

  • #2
    Re: PV1 segment

    Sorry, I only provided partial error message block.

    Caused by: com.webreach.mirth.model.converters.SerializerExce ption: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at com.webreach.mirth.model.converters.HAPIMessageSer ializer.deserialize(HAPIMessageSerializer.java:54)
    at com.webreach.mirth.server.mule.transformers.HL7ToM essageObject.doTransform(HL7ToMessageObject.java:8 0)
    ... 30 more
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at ca.uhn.hl7v2.parser.PipeParser.doParse(PipeParser. java:239)
    at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:151)
    at com.webreach.mirth.model.converters.HAPIMessageSer ializer.deserialize(HAPIMessageSerializer.java:52)
    ... 31 more
    ERROR 2007-01-19 15:23:17,265 [6d613b7c-1924-412d-84b8-746a85d0d55d_source_connector._tcpEndpoint#1513433 877.receiver.4] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: 6d613b7c-1924-412d-84b8-746a85d0d55d: org.mule.umo.MessagingException: Failed to invoke UMO Component: 6d613b7c-1924-412d-84b8-746a85d0d55d. Message payload is of type: java.lang.String
    org.mule.umo.MessagingException: Failed to invoke UMO Component: 6d613b7c-1924-412d-84b8-746a85d0d55d. Message payload is of type: java.lang.String
    at org.mule.impl.DefaultLifecycleAdapter.onCall(Defau ltLifecycleAdapter.java:193)
    at org.mule.impl.DefaultLifecycleAdapter.intercept(De faultLifecycleAdapter.java:232)
    at org.mule.impl.InterceptorsInvoker.execute(Intercep torsInvoker.java:53)
    at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:230)
    at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
    at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
    at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
    at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
    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:243)
    at org.mule.providers.tcp.TcpMessageReceiver$TcpWorke r.processData(TcpMessageReceiver.java:304)
    at org.mule.providers.tcp.TcpMessageReceiver$TcpWorke r.run(TcpMessageReceiver.java:275)
    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: org.mule.umo.transformer.TransformerException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (com.webreach.mirth.model.converters.SerializerExc eption)
    at com.webreach.mirth.server.mule.transformers.HL7ToM essageObject.doTransform(HL7ToMessageObject.java:9 4)
    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.impl.MuleEventContext.getTransformedMessa ge(MuleEventContext.java:100)
    at com.webreach.mirth.server.mule.components.Channel. onCall(Channel.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mule.model.DynamicEntryPoint.invokeCurrent(Dyn amicEntryPoint.java:168)
    at org.mule.model.DynamicEntryPoint.invoke(DynamicEnt ryPoint.java:90)
    at org.mule.impl.DefaultLifecycleAdapter.onCall(Defau ltLifecycleAdapter.java:177)
    ... 17 more
    Caused by: com.webreach.mirth.model.converters.SerializerExce ption: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at com.webreach.mirth.model.converters.HAPIMessageSer ializer.deserialize(HAPIMessageSerializer.java:54)
    at com.webreach.mirth.server.mule.transformers.HL7ToM essageObject.doTransform(HL7ToMessageObject.java:8 0)
    ... 30 more
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at ca.uhn.hl7v2.parser.PipeParser.doParse(PipeParser. java:239)
    at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:151)
    at com.webreach.mirth.model.converters.HAPIMessageSer ializer.deserialize(HAPIMessageSerializer.java:52)
    ... 31 more

    Comment


    • #3
      Re: PV1 segment

      It does look like a bug. Can you add it to the Jira? (www.mirthproject.org/jira). Thanks! In the meantime a preprocessor can fix that up for you.

      -Chris
      Chris Lang

      Comment


      • #4
        Re: PV1 segment

        Filed a bug.

        MIRTH-235

        Comment


        • #5
          Re: PV1 segment

          Thanks! We'll investigate a fix for the next minor build (1.3.3)

          -Chris
          Chris Lang

          Comment

          Working...
          X