From: Elliott F. <efa...@co...> - 2004-06-23 03:54:00
|
Hi all: I'm just starting to learn the HAPI interface. I applaud your efforts = and hope that I will be able to contribute to this project some day. = For now, though, I just need some help in learning how to use the API. = My eventual goal is to extract data from ORU^RO1 messages for the = purposes of assigning ICD9 codes to discharge summaries. The discharge = summaries are embedded in an ORX segment and for now I'm just trying to = figure out a way to extract the needed data and copy it to a String so = that I can process it. I tried modifyng the ParserDemo program (which = I was able to succesfully run) by assigning an input stream to a message = and then trying to get the OBX segment (i.e. Structure structure =3D = message.get("OBX");) my thinking being that if I can get the relevant = segment then I can get to the field I need. No such luck. I get an = error message saying that there is no such structure as an OBX when I = run the program (but of course there is). I've tried this both on some = sample data obtain from a local hospital and with the sample files I = downloaded with the .4.1 HAPI release that came from Duke. I know I'm = missing something fundamental. I've read that message structures are = very different and I know the HAPI API has some way to deal with this, = but I haven't to date, been able to put the pieces together. Could = someone out there help me along? An explanation or some sample code (or = both!) would be great. Thanks in advance for any help provided. Regards, Elliott |