This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

HL7 and HAPI API

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
  • 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: 67527
257
  • Mark post as helpful
  • send pies
  • 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
  • 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)
 
I didn't say it. I'm just telling you what this tiny ad said.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!