ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

parsing HL7 from RPG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • parsing HL7 from RPG

    Hi everybody,

    I was hoping to find somebody here that has some experience with parsing HL7 . I've searched google and found tons of opensource tools, however nothing that actually relates to the iseries.

    Has anyone here done this before ? What do you think is the best approach ?

    thanks

  • #2
    Re: parsing HL7 from RPG

    HL7? Is there another name for it? I don't recognize this.
    Your future President
    Bryce

    ---------------------------------------------
    http://www.bravobryce.com

    Comment


    • #3
      Re: parsing HL7 from RPG

      HL7 is a data format for transferring patient healthcare information between disparate systems.

      If any of these open source tools are written in Java or C/C++ then there is no reason why you couldn't use them on the iSeries. For instance we have some RPG code for receiving web services here that uses a SOAP parser written in C++.
      Ben

      Comment


      • #4
        Re: parsing HL7 from RPG

        Have you seen this?
        Ben

        Comment


        • #5
          Re: parsing HL7 from RPG

          Yeah, I decided to ask google and he pointed me right to the HL7 site. Good deal.
          Your future President
          Bryce

          ---------------------------------------------
          http://www.bravobryce.com

          Comment


          • #6
            Re: parsing HL7 from RPG

            I was actually looking this up myself a couple of days ago. I saw HL7 mentioned somewhere and wanted to look up what it meant.
            Ben

            Comment


            • #7
              Re: parsing HL7 from RPG

              thanks for the responses guys,

              I've found one C++ parser (from hunter shadow) and one java parser (HAPI on sourceforge). I've never worked with both of these languages, maybe this is a good time to start.

              Though these seem way too complicated for what I try to achieve. I need a parser based on either an XSD or a DB2 table. The HL7 files come in as flatfile and not as XML. I've used the EXPAT xml parser service programs from Scott klement before to parse XML. Maybe it's worth it to convert the HL7 to XML first and then parse the message even if that's a bit of overhead ?

              Edit : link to HAPI is http://sourceforge.net/projects/hl7api/
              Last edited by Yalkshire; June 20, 2008, 02:54 AM. Reason: added link to HAPI

              Comment


              • #8
                Re: parsing HL7 from RPG

                How much overhead would you expect to have from converting from a flat file to XML?
                Your future President
                Bryce

                ---------------------------------------------
                http://www.bravobryce.com

                Comment


                • #9
                  Re: parsing HL7 from RPG

                  honestly I have no idea. The HL7 flatfile to HL7 XML is a java program as well. most messages are around 72 to 150K, with one daily expection of around 250MB. converting them takes up more diskspace too.

                  expected volume is around 400 messages a day, but will increase over time.

                  The problem is that I don't want to "cripple" the AS400 by constantly converting flatfiles to XML, to pump it in a DB2 table. The size of the messages will probably remain stable, however the volume won't. I expect to be at 1000 messages a day in one year.
                  Last edited by Yalkshire; June 21, 2008, 04:40 AM. Reason: typo

                  Comment


                  • #10
                    Re: parsing HL7 from RPG

                    If that is the case then I would just bite the bullet and right a routine to parse the messages as flat files. You will save more time and space in the long run, IMHO.
                    Your future President
                    Bryce

                    ---------------------------------------------
                    http://www.bravobryce.com

                    Comment


                    • #11
                      Re: parsing HL7 from RPG

                      you're right, seems there's no other way for the moment.
                      thanks anyway for the help

                      Comment

                      Working...
                      X