Can't find message class in current package list: ORU_R01

Nov 6, 2014 at 12:48 PM
Dear,

When I want to parse an HL7 2.5.1 ORU_R01 message with nHapi, I receive the error "Can't find message class in current package list: ORU_R01" when I try to parse. I don't see what I'm doing wrong. Does somebody know how to resolve?

Thank you.

My Code:
            PipeParser pipeParser = new PipeParser();
            ORU_R01 oru_R01 = (ORU_R01)pipeParser.Parse(encodedPipeMessage);
encodedPipeMessage:
MSH|^~\&|^2.16.840.1.113883.3.2030.9000^ISO|^2.16.840.1.113883.3.2030.9001^ISO||^2.16.840.1.113883.3.9999^ISO|20130610131205-0500||ORU^R01^ORU_R01|1294441246474|T|2.5.1|||AL|AL|||||hwrProfile^^2.16.840.1.113883.9.29^ISO
PID|1||PATID1001^^^&2.16.840.1.113883.3.2030.9005.1&ISO^MR||Anderson^Sally^^^^^L||20060930|F||2106-3^White^HL70005|3345 16th Street^^Fargo^ND^54102^USA^H^^017^||^PRN^PH^^^701^4548989|||||||||2186-5^Not Hispanic or Latino^HL70189||N|
NK1|1|Anderson^John^^^^^L|FTH^Father^HL70063|3345 16th Street^^Fargo^ND^54102^USA^H^^017^|^PRN^PH^^^701^4548989
OBR|1||783274^^2.16.840.1.113883.3.2030.9003^ISO|HWR^Height and weight report^L|||20130610|||||||||55555^Family^Fay^^^^^^&2.16.840.1.113883.3.2030.9006.1&ISO^L^^^NPI||||||20130610120000-0500|||F
OBX|1|NM|3141-9^body weight measured^LN|1|31|kg^kilogram^UCUM|||||F|||20130610121200-0500
Nov 13, 2014 at 7:07 PM
I would double check that your program is referencing the NHapi.Model.V251.dll. If you are, I would suggest you bump up your logging level to debug as it might shed some light on your issue.
Marked as answer by sbastianen on 11/13/2014 at 11:48 PM
Nov 14, 2014 at 6:48 AM
I was in deed referencing to NHapi.Model.V25.dll. I fixed it by referencing to NHapi.Model.V251.dll.

Thanks!