how to get multiple OBR from ORM-O01 message

Help
2010-09-13
2013-05-13
  • Nobody/Anonymous

    i am trying to read an ORM-O01 message using the below code.. the issue that i am running into is that value returned by orm.ORDERRepetitionsUsed is 1 eventhough there are 3 OBR segments. so i am unable to get to other OBR segments. can anyone please guide me as to what i am doing wrong??

                    PipeParser parser = new PipeParser();
                    ORM_O01 orm = new ORM_O01();
                    orm = (ORM_O01)parser.Parse(ormMessage);
                    for (int i = 0; i < orm.ORDERRepetitionsUsed; i++)
                    {
                        xx.Text = orm.GetORDER(i).ORDER_DETAIL.OBR.UniversalServiceIdentifier.Text.ToString();
                    }


    MSH|^~\&amp;|Harvest|Lab|Healthpac|host|20100910153412||ORM^O01|831|P|2.3|||||U.S.A
    EVN|O01|20100910153412
    PID|1||12344_HPPO||DUCK^ DONALD^^^||19780917000000|M| DONALD,,DUCK||180-184 ROUTE 27^^EDISON^ NJ^08820^USA||7328393300|||O||||||||||||||1
    IN1|1|123456789|I52|OXFORD/0052|P.O.BOX 7082|||||||||||DUCK^ DONALD|1||||||||||||||||||||||||||||||T
    DG1|1||250.00
    DG1|2||251.00
    ORC|NW|100761|||||||20100910152700|DEF||1890^MCHUGH^WILLIAM^
    OBR|1|100761||OC0001^1 Hr Post Prandial|0|20100910|20100910152700||||N||||SA^^^|1890^MCHUGH^WILLIAM^^^|||||||||||1^^^20100910152700^^0
    OBR|2|100761||OC0008^Amylase, Serum|0|20100910|20100910152700||||N||||SA^^^|1890^MCHUGH^WILLIAM^^^|||||||||||1^^^20100910152700^^0
    OBR|3|100761||OC0015^Comprehensive Metabolic Profile|0|20100910|20100910152700||||N|||||1890^MCHUGH^WILLIAM^^^|||||||||||1^^^20100910152700^^0

     
  • Dan Chernin

    Dan Chernin - 2011-11-08

    Did you ever figure out how to do this?

     
  • Anonymous - 2013-03-14

    Hello,
    I've the same problem, have you found a solution??
    Thanks

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks