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
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to