Yes, that is the reason for the exception. It may be the device provider 
doesn’t “fill-in” that column, and
it is marked as REQUIRED by the protocol. You may be using a wrong version of 
the hapi-structures, or
the transmitting device is marking it incorrectly.

Good luck,
Walter



> On Nov 23, 2020, at 12:58 PM, Dasari, Penchalaiah via Hl7api-devel 
> <hl7api-devel@lists.sourceforge.net> wrote:
> 
> Hi Martin,
>  
> Thanks for your inputs.
>  
> Yes, I am using hapi-2.3 base jar and hapi-structires-23. My device is 
> sending following way the MSH &  OBX segments :-
>  
> MSH Segment:
>  
> MSH|^~\&|XYZ, INC.^3.1.37^0000A1234||||20201121161056||ORU^R01||P|2.3|
>  
> OBX segment:
>  
> OBX|1||2345-7^^LN^Glucose SerPl-mCnc||99|mg/dL|73 to 118|N|||F||||||Patient|
> OBX|2||3094-0^^LN^BUN SerPl-mCnc||13|mg/dL|7 to 22|N|||F||||||Patient|
>  
> You mean OBX-5 (the highlighted portion) is empty? If this is correct, I need 
> to check with my health device provider.
>  
> Thanks,
> Dasari
>  
>  
> From: Martin Fleurke <martin.fleu...@portavita.nl 
> <mailto:martin.fleu...@portavita.nl>> 
> Sent: Monday, November 23, 2020 12:48 AM
> To: hl7api-devel@lists.sourceforge.net 
> <mailto:hl7api-devel@lists.sourceforge.net>
> Subject: Re: [HAPI-devel] Need Help in - To use correct version of Hapi 
> Library
>  
> CAUTION: This email originated from outside of the organization. Do NOT click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.
>  
> Hi,
>  
> It looks more like a bad message coming in. You should be able to see the 
> message when logging ca.uhn.hl7v2.raw[.inbound]
>  
> The error says that a required data field (OBX-5) is empty. Solution is to 
> let the sender fill it in.
> Is the incoming message a hl7v2.3 message? If it is an other version then 
> also include the corresponding hapi-structures-v2X
>  
> Wbr
> Martin
>  
> On 20/11/2020 23:50, Dasari, Penchalaiah via Hl7api-devel wrote:
> Hello Team,
>  
> I am trying to receive a message from one our health device by using library 
> (2.3 v).  Getting following issue. I am not sure which version of Hapi 
> Library do I need to use
> To get rid out of this error. Please help me on this issue..
>  
>  
> 2020-11-20 13:01:03.230 ERROR 17384 --- [  hapi-worker-8] 
> c.u.h.p.impl.ApplicationRouterImpl       : Attempting to send error message 
> to remote system.
>  
> ca.uhn.hl7v2.HL7Exception: A datatype for OBX-
> must be specified in 5-
> .
>                at 
> ca.uhn.hl7v2.parser.FixFieldDataType.fix(FixFieldDataType.java:165)
>                at 
> ca.uhn.hl7v2.parser.FixFieldDataType.fixOBX5(FixFieldDataType.java:123)
>                at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:401)
>                at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:1169)
>                at ca.uhn.hl7v2.parser.PipeParser.doParse(PipeParser.java:226)
>                at 
> ca.uhn.hl7v2.parser.GenericParser.doParse(GenericParser.java:245)
>                at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:212)
>                at 
> ca.uhn.hl7v2.parser.GenericParser.parse(GenericParser.java:253)
>                at 
> ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:138)
>                at 
> ca.uhn.hl7v2.protocol.impl.ApplicationRouterImpl.processMessage(ApplicationRouterImpl.java:105)
>                at ca.uhn.hl7v2.app.Responder.processMessage(Responder.java:91)
>                at ca.uhn.hl7v2.app.Receiver$Grunt.run(Receiver.java:127)
>                at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>                at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>                at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>                at java.lang.Thread.run(Thread.java:748)
>  
>  
> Maven dependencies I am pointing for my development:
>        <!-- https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-base 
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmvnrepository.com%2Fartifact%2Fca.uhn.hapi%2Fhapi-base&data=04%7C01%7Cpenchalaiahdasari%40metagenics.com%7Ca72aa124d4a94b909c0b08d88f8d04fe%7C5d3d5325ed63487ca91fa6712548bdc0%7C0%7C1%7C637417183907823396%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BtuX1SMOZDAKMcWH4aNbNCLivah%2Fw0%2FwOETeV2Xu35A%3D&reserved=0>
>  -->
>                     <dependency>
>                         <groupId>ca.uhn.hapi</groupId>
>                         <artifactId>hapi-base</artifactId>
>                         <version>2.3</version>
>                     </dependency>
>                     <!-- 
> https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-structures-v23 
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmvnrepository.com%2Fartifact%2Fca.uhn.hapi%2Fhapi-structures-v23&data=04%7C01%7Cpenchalaiahdasari%40metagenics.com%7Ca72aa124d4a94b909c0b08d88f8d04fe%7C5d3d5325ed63487ca91fa6712548bdc0%7C0%7C1%7C637417183907823396%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QvG17CMxy1rLrPyfpFOzJwRMrhK8X%2FWgZXVsN1WRuX8%3D&reserved=0>
>  -->
>                     <dependency>
>                         <groupId>ca.uhn.hapi</groupId>
>                         <artifactId>hapi-structures-v23</artifactId>
>                         <version>2.3</version>
>                     </dependency>
>                     <!-- 
> https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-examples 
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmvnrepository.com%2Fartifact%2Fca.uhn.hapi%2Fhapi-examples&data=04%7C01%7Cpenchalaiahdasari%40metagenics.com%7Ca72aa124d4a94b909c0b08d88f8d04fe%7C5d3d5325ed63487ca91fa6712548bdc0%7C0%7C1%7C637417183907833388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=tm7d11%2FDQC6BSMoVNZotfPMqEOf09rkzKpRJe8gSyf4%3D&reserved=0>
>  -->
>                     <dependency>
>                         <groupId>ca.uhn.hapi</groupId>
>                         <artifactId>hapi-examples</artifactId>
>                         <version>2.0-alpha1</version>
>                     </dependency>
>  
>  
> Thanks,
> Dasari
> Penchalaiah Dasari
> Office
>  
> <https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.metagenics.com%2F&data=04%7C01%7Cpenchalaiahdasari%40metagenics.com%7Ca72aa124d4a94b909c0b08d88f8d04fe%7C5d3d5325ed63487ca91fa6712548bdc0%7C0%7C1%7C637417183907833388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fZXBKi0FrZrMURInMRVVHoQQ%2FhBubQB708yZOwZOqoU%3D&reserved=0>
>  
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.metagenics.com%2Fimmune-defense-pack&data=04%7C01%7Cpenchalaiahdasari%40metagenics.com%7Ca72aa124d4a94b909c0b08d88f8d04fe%7C5d3d5325ed63487ca91fa6712548bdc0%7C0%7C1%7C637417183907843383%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WOC%2B9Yg2Al4fjWcOwNW0I6UuFHuPn%2FV0AkicMLaht4k%3D&reserved=0>
> Disclaimer: This email, its electronic document attachments, and the contents 
> of its website linkages may 
> contain confidential information. This information is intended solely for the 
> use by the individual or entity 
> to whom it is addressed. If you have received this information in error, 
> please notify the sender 
> immediately and arrange for the prompt destruction of the material and any 
> accompanying attachments.
> 
> *This statement has not been evaluated by the Food and Drug Administration. 
> This product is not 
> intended to diagnose, treat, cure, or prevent any disease. 
> 
> 
> 
> 
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net <mailto:Hl7api-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel 
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fhl7api-devel&data=04%7C01%7Cpenchalaiahdasari%40metagenics.com%7Ca72aa124d4a94b909c0b08d88f8d04fe%7C5d3d5325ed63487ca91fa6712548bdc0%7C0%7C1%7C637417183907843383%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=w9dRJrVLTZc9Xv%2Bj%2F3NkALzt1GBH95jBHSWiTpSE6%2Fk%3D&reserved=0>
>  
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net <mailto:Hl7api-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel 
> <https://lists.sourceforge.net/lists/listinfo/hl7api-devel>
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to