nHapi - on sourceforge, google it and you should find it

On Dec 8, 2010, at 10:25 AM, Tony Kennedy <[email protected]> wrote:

> I’d walk through the code with a debugger and see what type is getting 
> returned from parse();
> 
>  
> 
> Just out of curiosity, where did you get nHapi?  Was that an inhouse thing, 
> or did someone release it.
> 
>  
> 
> From: Vikram Nayak [mailto:[email protected]] 
> Sent: Wednesday, December 08, 2010 11:36 AM
> To: Jonathan Bartels
> Cc: [email protected]
> Subject: Re: [HAPI-devel] parsing ADT_08 in HL7 V2.5
> 
>  
> 
> This is using nHapi, the .NET port of Hapi.
> 
>  
> 
> The exception is on the cast.
> 
> 
> On Dec 8, 2010, at 6:29 AM, Jonathan Bartels <[email protected]> wrote:
> 
> Does the error occur at the cast or when parsing the message?
> 
>  
> 
> This line, “IMessage msg = parser.Parse(hl7Data);”, looks wrong. Skimming 
> through the javadoc there is a Message interface but no IMessage interface.
> 
>  
> 
> From: Vikram Nayak [mailto:[email protected]] 
> Sent: Tuesday, December 07, 2010 9:10 PM
> To: [email protected]
> Subject: [HAPI-devel] parsing ADT_08 in HL7 V2.5
> 
>  
> 
> when parsing a ADT_08 message for V2.5, it throws the following exception - 
> 
>  
> 
>  Unable to cast object of type 'V25' to type 
> 'NHapi.Model.V25.Message.ADT_A01'.
> 
>  
> 
> here is the test code:
> 
>     message = "and ADT_08 message";
> 
>     PipeParser parser = new PipeParser();
> 
>     IMessage msg = parser.Parse(hl7Data);
> 
>  
> 
>      Assert.IsNotNull(msg, "Message should not be null");
> 
>     ADT_A01 a05 = (ADT_A01)msg;  //casting to ADT_A01 as ADT_A08 maps to 
> ADT_A01 in HL7 2.5
> 
>  
> 
> any help appreciated.
> 
>  
> 
> Thanks,
> 
> Vikram
> 
> ------------------------------------------------------------------------------
> What happens now with your Lotus Notes apps - do you make another costly 
> upgrade, or settle for being marooned without product support? Time to move
> off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus 
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> 
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to