• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

HL7 and HAPI API

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working with an HL7 file using HAPI API. I am trying to get all the OBX elements out of the file. Does anyone know how?

Thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This may be a little late ;)...

The post may help others...

It all depends on type of message being parsed (is it a custom HL7 message ? which parser is being used etc).

I recently started using HAPI... We have a custom message which contains multiple OBXs. The approach we taken is we build custom extension to HAPI which based on examples from the source code...

Not knowing the message type, I'll assume ORU_R01 message.
First we have understand the ORU_R01 structure.



Summarizing the message structure:
It consists of a header segment (MSH) and collection of segments which are "grouped". This group is required and repeats...
The group is further divided into two subgroups. First contains patient and visit information. The second group contains order information and results. The results which is composed of OBX and NTE segments is required and repeats..


To parse the message there are number of options. The easiest to learn is using the generic parser.. but you'll need to navigate the message...



Terser is another parser option you can use when using HAPI... I personally don't have much experience with is it... Hope this helps
 
Marshal
Posts: 76888
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch

You are right that it is a little late: read this FAQ. We usually think it is not worth replying to a question more than 3 weeks old.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since the zombie has been awaken, let it be in its own dungeon
Moving to open source projects forum. (Assuming this is what the OP referred to as HAPI)
 
He does not suffer fools gladly. But this tiny ad does:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic