Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-17-2012, 11:21 AM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
hapi - is it possible to create messages by hand?


I just created a question about hapi a while ago and another question crossed my mind that is not exactly the same but related:

Is it possible to create messages and not just read them?

I mean, something like this:
Message ack = new AbstractMessage();
Segment msh = new AbstractSegment("MSH");
// setting the values for the fields of the MSH segment
msh.getField(12).setValue("2.3"); // setting the version to 2.3
ack.setSegment("MSH", msh);
Segment msa = new AbstractSegment("MSA");
ack.setSegment("MSA", msa);
Or something along those lines.

Thanks in advance.
Old 04-24-2012, 02:05 PM   #2
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,317

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
Have you looked at CreateAMessage?


abstract, abstract message, hapi, hl7, java

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hapi - is it possible to get information from abstract structures like Message? eantoranz Programming 3 05-24-2012 09:59 AM
Hi i would like to know how to use cron jobs to create three login messages. bigron1953 Linux - Newbie 6 11-17-2011 10:23 PM
How to create filter in KMail on "No Subject" messages Eric_Cartman Linux - Software 4 10-11-2007 12:59 AM
LXer: Linux Training and Laptops Go Hand in Hand at LinuxCertified LXer Syndicated Linux News 0 01-31-2006 12:01 PM
Deleted /var/log/messages, how to create a new one? chingyenccy Linux - Security 2 02-27-2005 10:06 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration