You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Can't instantiate class NHapi.Model.V21.Datatype.CM
(System.NullReferenceException): Object reference not set to an instance of an object.: Segment: ORC (rep 0) Field #2
Test Message:
MSH|^~&|HIS|MedCenter|LIS|MedCenter|20060307110114||ORM^O01|MSGID20060307110114|P|2.1
PID|||12001||Jones^John^^^Mr.||19670824|M|||123 West St.^^Denver^CO^80020^USA|||||||
PV1||O|OP^PAREG^||||2342^Jones^Bob|||OP|||||||||2|||||||||||||||||||||||||20060307110111|
ORC|NW|20060307110114
OBR|1|20060307110114||003038^Urinalysis^L|||20060307110114
[Test]publicvoidParse_V21_ORM_O01(){varmessage="MSH|^~\\&|HIS|MedCenter|LIS|MedCenter|20060307110114||ORM^O01|MSGID20060307110114|P|2.1\r"+"PID|||12001||Jones^John^^^Mr.||19670824|M|||123 West St.^^Denver^CO^80020^USA|||||||\r"+"PV1||O|OP^PAREG^||||2342^Jones^Bob|||OP|||||||||2|||||||||||||||||||||||||20060307110111|\r"+"ORC|NW|20060307110114\r"+"OBR|1|20060307110114||003038^Urinalysis^L|||20060307110114";varparser=newPipeParser();varresult=parser.Parse(message);varormO01=resultasNHapi.Model.V21.Message.ORM_O01;Assert.IsNotNull(ormO01);Assert.AreEqual("20060307110114",((Base.Model.GenericPrimitive)((Base.Model.Varies)ormO01.GetORDER().ORC.PLACERORDER[0]).Data).Value);}
Activity
gberkheiser commentedon Apr 27, 2017
On my recent projects we used ORC-2 as EI. Have you tried that?
milkshakeuk commentedon Apr 15, 2021
this was fixed as part of #136.
did a quick test.