Hi, I am a very newbie in using Hapi and HL7 protocol itself.
By now I have succesfully read several types of messages, segments and fields from plain example char Strings. Now what I want to do is to read the user parameters contained into an inbound QBP^Q22^QBP_Q21 example message, given as a String. To be honest, I have no idea how to do that... I guess it has something to do with Visitor Pattern... wich I barely understand... The message I am playing with is: MSH|^~\"|OTHER_IBM_BRIDGE_TLS|IBM|PAT_IDENTITY_X_REF_MGR_MISYS|ALLSCRIPTS|20090226131524-0600||QBP^Q22^QBP_Q21|4384605233932006785|P|2.5 QPD|Q22^FindCandidates^HL7|2846266284165483109045739371027|@PID.3.1^PDQ113XX05~@PID.3.4.1^IHENA~@PID.3.4.2^1.3.6.1.4.1.21367.2009.1.2.300~@PID.3.4.3^ISO RCP|I|10^RD And I am trying something like that (very very simple approach): InputStream is = new ByteArrayInputStream(messageAsString.getBytes("UTF-8")); is = new BufferedInputStream(is); Hl7InputStreamMessageIterator it = new Hl7InputStreamMessageIterator(is); while (it.hasNext()) { QBP_Q21 m = (QBP_Q21) it.next(); QPD qpd = m.getQPD(); Varies v = qpd.getQpd3_UserParametersInsuccessivefields(); //AND NOW?? How do I use this "v" object to actually get the user parameters? } Well, I hope someone can help me... it can't be that difficult! Thanks you all in advance and best regards Josefa Jul ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel