You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(5) |
Jun
(6) |
Jul
(3) |
Aug
(13) |
Sep
(28) |
Oct
(33) |
Nov
(8) |
Dec
(1) |
2003 |
Jan
(6) |
Feb
(2) |
Mar
|
Apr
(25) |
May
(21) |
Jun
(13) |
Jul
(12) |
Aug
(14) |
Sep
(6) |
Oct
(6) |
Nov
(16) |
Dec
(6) |
2004 |
Jan
(5) |
Feb
(7) |
Mar
(13) |
Apr
(17) |
May
(24) |
Jun
(14) |
Jul
(14) |
Aug
(8) |
Sep
(3) |
Oct
(8) |
Nov
(14) |
Dec
(26) |
2005 |
Jan
(18) |
Feb
(12) |
Mar
(29) |
Apr
(9) |
May
(4) |
Jun
(12) |
Jul
(17) |
Aug
(9) |
Sep
(12) |
Oct
|
Nov
(12) |
Dec
|
2006 |
Jan
(46) |
Feb
(18) |
Mar
(11) |
Apr
(13) |
May
(12) |
Jun
(27) |
Jul
(34) |
Aug
(45) |
Sep
(27) |
Oct
(13) |
Nov
(26) |
Dec
(22) |
2007 |
Jan
(21) |
Feb
(29) |
Mar
(32) |
Apr
(6) |
May
(11) |
Jun
(13) |
Jul
(14) |
Aug
(11) |
Sep
(15) |
Oct
(7) |
Nov
(30) |
Dec
(16) |
2008 |
Jan
(11) |
Feb
(14) |
Mar
(5) |
Apr
(18) |
May
(12) |
Jun
(11) |
Jul
(5) |
Aug
(12) |
Sep
(3) |
Oct
(2) |
Nov
(15) |
Dec
(2) |
2009 |
Jan
(18) |
Feb
(6) |
Mar
(9) |
Apr
(10) |
May
(29) |
Jun
(16) |
Jul
(44) |
Aug
(49) |
Sep
(14) |
Oct
(21) |
Nov
(11) |
Dec
(22) |
2010 |
Jan
(12) |
Feb
(13) |
Mar
(5) |
Apr
(6) |
May
(15) |
Jun
(15) |
Jul
(14) |
Aug
(20) |
Sep
(17) |
Oct
(36) |
Nov
(19) |
Dec
(7) |
2011 |
Jan
(8) |
Feb
(14) |
Mar
(21) |
Apr
(12) |
May
(6) |
Jun
(12) |
Jul
(17) |
Aug
(6) |
Sep
(13) |
Oct
(15) |
Nov
(26) |
Dec
(9) |
2012 |
Jan
(25) |
Feb
(13) |
Mar
(31) |
Apr
(10) |
May
(16) |
Jun
(21) |
Jul
(61) |
Aug
(38) |
Sep
(16) |
Oct
(13) |
Nov
(37) |
Dec
(26) |
2013 |
Jan
(20) |
Feb
(26) |
Mar
(34) |
Apr
(32) |
May
(27) |
Jun
(56) |
Jul
(16) |
Aug
(38) |
Sep
(35) |
Oct
(17) |
Nov
(11) |
Dec
(7) |
2014 |
Jan
(36) |
Feb
(13) |
Mar
(25) |
Apr
|
May
(27) |
Jun
(33) |
Jul
(34) |
Aug
|
Sep
(4) |
Oct
(11) |
Nov
(42) |
Dec
(2) |
2015 |
Jan
(5) |
Feb
(6) |
Mar
(11) |
Apr
(3) |
May
|
Jun
(1) |
Jul
(2) |
Aug
(5) |
Sep
(5) |
Oct
(5) |
Nov
(8) |
Dec
(19) |
2016 |
Jan
(8) |
Feb
(12) |
Mar
(6) |
Apr
(5) |
May
(5) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(9) |
Oct
(1) |
Nov
(2) |
Dec
(5) |
2017 |
Jan
(2) |
Feb
|
Mar
(3) |
Apr
(6) |
May
(8) |
Jun
(7) |
Jul
(14) |
Aug
(10) |
Sep
(6) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(9) |
Mar
(2) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(8) |
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2019 |
Jan
(10) |
Feb
(2) |
Mar
(6) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2020 |
Jan
(9) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(9) |
Oct
(1) |
Nov
(11) |
Dec
|
2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2023 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(2) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
From: Bryan T. <bp...@gm...> - 2006-02-15 21:59:57
|
Hi Florian, > 1.) Could you please send me a tutorial or a HOWTO for using the SimpleSe= rver > in my own program and how to pipe the data read from the socket to the > parser. I am happy with well documented source code. SimpleServer routes data to the parser. You just have to write a ca.uhn.hl7v2.app.Application that does what you want with messages, and register it with the server. Hopefully that hint is enough to get you going with the Application and SimpleServer JavaDocs, because I don't have anything in the way of a tutorial. > 1.a) what happens if messages arrive simultaneously and how can they be > handled? Each message is handled in a separate thread, so there is no conflict. They get processed sequentially in Responder.processMessage(...). > 2.) is there a way to use the XML encoder to produce cda or do you know a= ny > other possibility. Not directly, but you might be able to use a stylesheet to transform from 2.XML to CDA. Bryan |
From: Bryan T. <bp...@gm...> - 2006-02-15 21:43:21
|
Hi Scott, You found a bug, but it's easy to fix yourself. Mappings like this are only supposed to be done with event types that don't have their own structures (like A04), but A31 does. Go to the package ca.uhn.hl7v2.parser.eventmap ... there are text files there with the mappings (one for each HL7 version) ... just change the line "ADT_A31=20 ADT_A01" to "ADT_A31 ADT_A31". If you aren't comfortable with this, another option is to make sure the structure is specified in MSH-9-3. Bryan On 2/13/06, Scott Arnold <sa...@bj...> wrote: > Is there any reasonbly simple way to convert an A01 into, for example, > an A31 if that's what it is? HAPI parses messages like A31's into > A01's, which is fine, but it can confuse the heck out of other > developers if I send them an A01 when they are expecting an A31. Would > be nice if I could convert it easily and just send them an ADT_A31. > I've looked at using DeepCopy along with the getNames() and get(String > name, int rep) methods of Message, and could use them, but it gets ugly > because it can only copy segments, forcing me to write extra code to > deal with groups and repetitions. Anyway, I was hoping there might be an > easier way I'm overlooking. > > Thanks, > > Scott Arnold > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |
From: Barry-HAPI <jag...@ci...> - 2006-02-14 07:42:09
|
Hello, I'm trying to copy a whole segment (i.e. PID) from a message into a response message that use exactly the same segment. Now, I copy all fields, one by one, and it takes long time. Do you know if I can copy a whole segment in a sentence. Thank you in advance, -- View this message in context: http://www.nabble.com/HAPI-Copy-a-Segment-t1119350.html#a2926720 Sent from the hl7api-devel forum at Nabble.com. |
From: Scott A. <sa...@bj...> - 2006-02-13 23:09:14
|
Is there any reasonbly simple way to convert an A01 into, for example, an A31 if that's what it is? HAPI parses messages like A31's into A01's, which is fine, but it can confuse the heck out of other developers if I send them an A01 when they are expecting an A31. Would be nice if I could convert it easily and just send them an ADT_A31. I've looked at using DeepCopy along with the getNames() and get(String name, int rep) methods of Message, and could use them, but it gets ugly because it can only copy segments, forcing me to write extra code to deal with groups and repetitions. Anyway, I was hoping there might be an easier way I'm overlooking. Thanks, Scott Arnold |
From: Mike D. <mdo...@co...> - 2006-02-12 00:19:06
|
Hi All, BTW, I'm new here but I've worked with hapi for a bit now. Great tool! Now I'm getting started with conformance profiles as these seem quite useful as well. Also, I've noticed the significant and very much growing community involvement in or around this project. E.g.. HL7 organizations, US Veterans Affairs, etc. Congrats! Currently, I'm having problems with the ConfGen tutorial. I'm using Messaging Workbench 1.6.4.1 and hapi-0.5beta.jar. See exact error messages from console output below! Basically ... 1. "ConfGen -t" generated an "Apache Ant:Exception". 2. ConfGen's class generation resulted in a "ConformanceError" error. Files were generated but I suspect there would be problems if I were to use them. Also, perhaps things work a bit differently in the newer Messaging Workbench but I wasn't able to complete the tutorial steps in the manner stated. I was only able to pick HL7 2.5 structures but I was trying to use 2.3.1 for my testing. Also, even when I picked an HL7 2.5 structure (e.g. ADT^A01), a structure tree does not display and you can't run the report. To get around this, I opened the example "Wondercis Inbound ADT-ADT_A01.mwb" file that displays as "HL7 2.3.1". From here, I simply ran the "XML spec" report and then saved to file. The output looks like it might be an HL7 2.3.1 conformance file. I.e. It contained "<HL7v2xConformanceProfile HL7Version="2.3.1" ProfileType="HL7">" on the second line. Would this make sense? Is this is a proper conformance profile file that could be used by CodeGen? Any would be appreciated! Also, I'd be happy to provide updated tutorial steps if this is needed. Thanks, Mike _*Console output ...*_ C:\test\confgen>rd JavaSource /s JavaSource, Are you sure (Y/N)? y C:\test\confgen>java -classpath hapi-0.5beta.jar;xercesimpl.jar;commons-logging. jar;ant.jar ca.uhn.hl7v2.conf.classes.generator.builders.ConfGen -t adt_test.xml JavaSource org.test.conf JavaSource ConfGen: system test enabled Checking for XML Parser: PASS Checking for Xerces: PASS Checking for Conformance Classes: PASS Checking for Apache Ant:Exception in thread "main" java.lang.NoClassDefFoundErro r: org/apache/tools/ant/launch/AntMain at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at ca.uhn.hl7v2.conf.classes.generator.builders.ConfGen.test(ConfGen.jav a:132) at ca.uhn.hl7v2.conf.classes.generator.builders.ConfGen.main(ConfGen.jav a:68) C:\test\confgen>java -classpath hapi-0.5beta.jar;xercesimpl.jar;commons-logging. jar;ant.jar ca.uhn.hl7v2.conf.classes.generator.builders.ConfGen adt_test.xml Ja vaSource org.test.conf JavaSource Generating Source... ConformanceError: ca.uhn.hl7v2.conf.classes.exceptions.ConformanceError: Could not find underlying SubComponent datatype. This is a bug. Exception: java.lang.NoSuchMethodExceptio n: ca.uhn.hl7v2.model.v231.datatype.ST.<init>() Done. C:\test\confgen>dir /s Volume in drive C has no label. Volume Serial Number is 905A-611C Directory of C:\test\confgen 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 10/02/2006 12:42 PM 151,849 ADT_A01.xml 11/02/2006 12:46 PM 79,489 adt_test.xml 02/06/2005 03:15 PM 1,034,049 ant.jar 04/08/2004 01:32 PM 31,605 commons-logging.jar 11/02/2006 12:56 PM 6,608,453 hapi-0.5beta.jar 11/02/2006 03:28 PM <DIR> JavaSource 25/10/2005 08:45 PM 1,010,675 xercesImpl.jar 6 File(s) 8,916,120 bytes Directory of C:\test\confgen\JavaSource 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM <DIR> org 0 File(s) 0 bytes Directory of C:\test\confgen\JavaSource\org 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM <DIR> test 0 File(s) 0 bytes Directory of C:\test\confgen\JavaSource\org\test 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM <DIR> conf 0 File(s) 0 bytes Directory of C:\test\confgen\JavaSource\org\test\conf 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM <DIR> MSHchildren 0 File(s) 0 bytes Directory of C:\test\confgen\JavaSource\org\test\conf\MSHchildren 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM 3,582 FieldEncodingCharacters.java 11/02/2006 03:28 PM 3,554 FieldFieldSeparator.java 11/02/2006 03:28 PM 3,648 FieldMessageControlID.java 11/02/2006 03:28 PM 3,392 FieldMessageType.java 11/02/2006 03:28 PM 3,546 FieldProcessingID.java 11/02/2006 03:28 PM <DIR> MessageTypechildren 11/02/2006 03:28 PM <DIR> ProcessingIDchildren 11/02/2006 03:28 PM <DIR> VersionIDchildren 5 File(s) 17,722 bytes Directory of C:\test\confgen\JavaSource\org\test\conf\MSHchildren\MessageTypech ildren 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM 2,748 CompMessageStructure.java 11/02/2006 03:28 PM 2,723 CompMessageType.java 11/02/2006 03:28 PM 2,728 CompTriggerEvent.java 3 File(s) 8,199 bytes Directory of C:\test\confgen\JavaSource\org\test\conf\MSHchildren\ProcessingIDc hildren 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM 2,729 CompProcessingID.java 11/02/2006 03:28 PM 2,739 CompProcessingMode.java 2 File(s) 5,468 bytes Directory of C:\test\confgen\JavaSource\org\test\conf\MSHchildren\VersionIDchil dren 11/02/2006 03:28 PM <DIR> . 11/02/2006 03:28 PM <DIR> .. 11/02/2006 03:28 PM 2,711 CompVersionID.java 1 File(s) 2,711 bytes Total Files Listed: 17 File(s) 8,950,220 bytes 26 Dir(s) 17,359,384,576 bytes free C:\test\confgen> |
From: Florian W. <flo...@um...> - 2006-02-09 15:13:52
|
Hello, I'm new to hapi. After reading the tech_docs i still have some questions: First of all the problem I'm trying to solve with hapi: HL7 messages are received via a socket connection. Data should be extracted and converted - as far as possible - to the clinical document architecture format CDA. 1.) Could you please send me a tutorial or a HOWTO for using the SimpleServer in my own program and how to pipe the data read from the socket to the parser. I am happy with well documented source code. 1.a) what happens if messages arrive simultaneously and how can they be handled? 2.) is there a way to use the XML encoder to produce cda or do you know any other possibility. Thank you in advance!! yours, Florian Wozak _________________________________________________________ Dipl.Ing.(FH) Florian Wozak, MSc. Institute for Health Information Systems UMIT - University for Health Sciences, Medical Informatics and Technology Eduard Wallnoefer-Zentrum 1, 6060 Hall, Austria phone: +43 50 8648-3813 fax: +43 50 8648-3850 email: flo...@um... http://iig.umit.at |
From: Nico V. <ni...@sk...> - 2006-02-05 20:19:10
|
Hi Steve, JEngine is maybe useful in this context... http://www.jengine.org/index.html Regards Nico At 5/02/2006, Steve Pringle wrote: >Does anyone know of a free test client? A client that can send HL7 >messages and receive ACKs? Interfaceware has one, but it's not free. > >What do you folks do for testing their custom HAPI HL7 servers? Using the >HAPI Message Tester app only takes you so far, unless I'm missing something. > >thanks, >Steve |
From: Steve P. <st...@pr...> - 2006-02-05 01:14:10
|
Does anyone know of a free test client? A client that can send HL7 = messages and receive ACKs? Interfaceware has one, but it's not free. =20 What do you folks do for testing their custom HAPI HL7 servers? Using = the HAPI Message Tester app only takes you so far, unless I'm missing = something. =20 thanks, Steve |
From: Steve P. <st...@pr...> - 2006-02-02 05:55:52
|
Hi All, =20 I'm getting a "Failed validation rule:" exception (see at end of msg). = I've tracked it down to a non-standard DT format; the sender is tacking on = the time (4 digits) after the date in the AL1 segment (AL1-6). =20 So - is there any easy way to get around this? Seems all I need to do = is trim the last 4 digits on AL1-6. I'm using a HL7 server, very simple. Bryan Tripp offered one solution, to =20 construct an ApplicationRouter, and you can wrap the method: public Transportable processMessage(Transportable theMessage) ... to edit the message string (theMessage.getMessage() contains the = message string). You could either delete MSH-9-3 or move it to MSH-9-4 in case = you want the contents. You will have to find it by counting delimiters. =20 BUT - it's not clear to me how to go about doing this. Would anyone = have an example? =20 thanks, Steve Pringle =20 =20 Failed validation rule: Matches the regular expression (\d{4}([01]\d(\d{2})?)?)?: Segment: AL1 (rep 0) Field #6 |
From: Archie C. <ar...@de...> - 2006-01-28 17:30:44
|
Bryan Tripp wrote: >> 2. When I tried to parse the ORM^O01 message through testpanel message it >> displays message Phone component should be in the format 999-9999 Field #13. >> I need to correct the phone no to 999-9999 format so that it parse it >> properly. Is there a workaround for it? > > In 0.4.3 there is a system property you can set to disable phone > number validation. I don't have the code handy but it should be It's ca.uhn.hl7v2.model.primitive.CommonTN.validate=false. -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com |
From: Bryan T. <bp...@gm...> - 2006-01-28 01:41:42
|
> 2. When I tried to parse the ORM^O01 message through testpanel message it > displays message Phone component should be in the format 999-9999 Field #= 13. > I need to correct the phone no to 999-9999 format so that it parse it > properly. Is there a workaround for it? In 0.4.3 there is a system property you can set to disable phone number validation. I don't have the code handy but it should be documented in the root TN class. In 0.5 there is extensive customization for datatype validation ... see ca.uhn.hl7v2.validation.ValidationContext. > 3. I thought that I will rectify these problems by my selves by modifying > the HAPI source code. When I tried to setup the source code and I was abl= e > to compile it properly and I made a jar of all the classes from outside. > Then the size of jar is much less than the original jar that I downloaded= . > Still, I tried to receive ADT and ORM messages as mentioned above and got > null pointer errors. Can somebody please guide me what could be the probl= em? > Should the source work for my messages? Is it a good idea to modify the H= api > source to fix the problem my selves? Sure, you can do this, but you also need to include the source for the message libraries, which aren't included in the CVS or in the source_core zip file (we treat them differently because they are automatically generated rather than hand written). You can get them as separate downloads. If you have trouble getting this working another option is to just update the original jar with your changed class files. Bryan |
From: Ajay A. <Aja...@we...> - 2006-01-27 23:08:36
|
I am able to resolve my first problem. I registered my application for= only ADT messages. Now, when i registered it for ORM messages it is working fine. Still I need help on other questions. =20 Please do reply. =20 Thanks =20 Ajay -----Original Message----- From: Ajay Arora Sent: Thursday, January 26, 2006 5:13 PM To: hl7...@li... Subject: [HAPI-devel] Order message and setting up HAPI source probl= em Greetings, I am new user of the HAPI parser and new to HL7. Hope this forum o= r the list will answer most of the questions. I am facing following problems =20 1. I downloaded hapi-0.4.3.jar file and wrote customized application= to receive messages and send acknowledgment using SimpleServer.java application provided with HAPI. But when I tried to receive an order= message it does not even come to my customize application and sends a= n Application internal error with message "No appropriate destination could be found to which this message could be routed" to the remote application. =20 The ADT messages works fine. =20 2. When I tried to parse the ORM^O01 message through testpanel messa= ge it displays message Phone component should be in the format 999-9999= Field #13. I need to correct the phone no to 999-9999 format so that= it parse it properly. Is there a workaround for it? =20 3. I thought that I will rectify these problems by my selves by modifying the HAPI source code. When I tried to setup the source cod= e and I was able to compile it properly and I made a jar of all the classes from outside. Then the size of jar is much less than the original jar that I downloaded. Still, I tried to receive ADT and OR= M messages as mentioned above and got null pointer errors. Can somebod= y please guide me what could be the problem? Should the source work fo= r my messages? Is it a good idea to modify the Hapi source to fix the pro= blem my selves? =20 I appreciate a quick reply. Thanks =20 Regards, AJ |
From: Ajay A. <Aja...@we...> - 2006-01-27 00:12:48
|
Greetings, I am new user of the HAPI parser and new to HL7. Hope this forum or= the list will answer most of the questions. I am facing following problems= =20 1. I downloaded hapi-0.4.3.jar file and wrote customized application t= o receive messages and send acknowledgment using SimpleServer.java application provided with HAPI. But when I tried to receive an order message it does not even come to my customize application and sends an= Application internal error with message "No appropriate destination co= uld be found to which this message could be routed" to the remote applicat= ion. =20 The ADT messages works fine. =20 2. When I tried to parse the ORM^O01 message through testpanel message= it displays message Phone component should be in the format 999-9999 Fiel= d #13. I need to correct the phone no to 999-9999 format so that it pars= e it properly. Is there a workaround for it? =20 3. I thought that I will rectify these problems by my selves by modify= ing the HAPI source code. When I tried to setup the source code and I was a= ble to compile it properly and I made a jar of all the classes from outsid= e. Then the size of jar is much less than the original jar that I downloa= ded. Still, I tried to receive ADT and ORM messages as mentioned above and g= ot null pointer errors. Can somebody please guide me what could be the problem? Should the source work for my messages? Is it a good idea to modify the Hapi source to fix the problem my selves? =20 I appreciate a quick reply. Thanks =20 Regards, AJ |
From: Bryan T. <bp...@gm...> - 2006-01-26 21:10:44
|
Hi Sarang, The default behaviour is to validate against the HL7 telephone number format (the string "() - " doesn't conform to this), but you can configure all the validation rules that are used by a Parser. If you want to do a lot of configuration you should construct your Parser with a custom ca.uhn.hl7v2.validation.ValidationContext. But in this case it's probably simplest to do this ... ValidationContextImpl context =3D (ValidationContextImpl)parser.getValidationContext(); List list =3D context.getPrimitiveRuleBindings(); ... then dig through the list and replace the TN binding with something that allows whatever you want to allow. Bryan On 1/26/06, Sarang Malwatkar <sma...@im...> wrote: > Hi, > > We are getting a DataTypeException > when parsing an ADT message, > which contains a blank Phone Number in PID segment. > > The Phone Number actually contains > empty brackets with spaces: "|( ) - |" > > Exception Details (in PipeParser): > Error while parsing:ca.uhn.hl7v2.model.DataTypeException: Failed validati= on > rule: > Matches the regular expression > (\d{1,2})?(\(\d{3}\))?\d{3}-\d{4}(X\d{1,5})?(B\d{1,5})?(C.*)?: > Segment: PID (rep 0) Field #14. > > Can't the HAPI Parser handle empty Phone Numbers ? > > The problem is that, the parser returns a 'null' Message Object. > So we loose all the other valid fields also. > > Is there any solution to this ? > > We have tried both v0.4.3 as well as v0.5beta > > > Thanks, > -Sarang Malwatkar. > Sr. Project Manager, > iMedX Information Services, > sma...@im... > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |
From: Sarang M. <sma...@im...> - 2006-01-26 13:20:52
|
Hi, We are getting a DataTypeException when parsing an ADT message, which contains a blank Phone Number in PID segment. The Phone Number actually contains empty brackets with spaces: "|( ) - |" Exception Details (in PipeParser): Error while parsing:ca.uhn.hl7v2.model.DataTypeException: Failed validation rule: Matches the regular expression (\d{1,2})?(\(\d{3}\))?\d{3}-\d{4}(X\d{1,5})?(B\d{1,5})?(C.*)?: Segment: PID (rep 0) Field #14. Can't the HAPI Parser handle empty Phone Numbers ? The problem is that, the parser returns a 'null' Message Object. So we loose all the other valid fields also. Is there any solution to this ? We have tried both v0.4.3 as well as v0.5beta Thanks, -Sarang Malwatkar. Sr. Project Manager, iMedX Information Services, sma...@im... |
From: Markus P. <pl...@we...> - 2006-01-25 12:01:07
|
Hi again! Markus Plail <pl...@we...> writes: > I think i spotted a bug in Escape.java, specifically in unescape(). The > problem is that it picks up escape sequences which it really shouldn't. > > Given "\.br\F\X00FC\" unescape() would replace "\F\" with "|" (field > separator). > > I attached a patch that fixes it for me. No rection so far! Is there anything wrong with the patch? regards Markus |
From: <fre...@sk...> - 2006-01-18 22:11:49
|
Hi, Some time ago, Alan reported the problem of handling linefeeds. I've added one line of code in Escape.java, as he suggested: seqs.put("\\.br\\", String.valueOf("\n")); Then I met the following problem: on Windows, the line terminators is "\r\n" (CRLF), not simply "\n". I tried: seqs.put("\\.br\\", System.getProperty("line.separator")); but this led to two additional issues: - the method escape cannot deal with values of more than one character (easy to change); - the "\r\n" value must be escaped before the "\r" one. If you are interested, please see my attached patch (and search for tags "Fred"). Frédéric From: Alan Shields <alan@bt...> linefeeds and \.br\ 2004-07-27 04:13 Hi all, After years of splitting my report text over several OBX messages somebody just asked me to send a single obx with \.br\ to signify linefeeds. At first I thought of replacing the linefeeds with \.br\ in my code, unfortunately HAPI escapes the \ to give me, \E\.br\E\. In the end I added the following line to ca/uhn/hl7v2/parser/Escape.java seqs.put("\\.br\\", String.valueOf("\n")); which works a treat for my outgoing messages, though I haven"t tried it to see what happens if somebody sends me a \.br\ Is this a reasonable approach? Is it possible for me to indicate to HAPI that I want to insert an escape sequence? Is there any reason anybody would NOT want HAPI to simply replace linefeeds with \.br\ ? Cheers Alan Shields -- Frédéric Dubru Cliniques universitaires Saint-Luc 10, avenue Hippocrate B-1200 Bruxelles +32 2 764 36 43 http://www.saintluc.be |
From: Bryan T. <bp...@gm...> - 2006-01-18 16:44:39
|
Hi, In the encoded message the & is escaped, so that parsers do not mistake it for a sub-component delimiter. In the message object (and when another system parses it) the & will appear as &. Bryan On 1/18/06, Davide Antoni <dav...@if...> wrote: > > Hi to all > > I have to made a messagge ORM^O01 with the field ORC 7.2.1 valorized and > i think that the correct is this : > > Q1D&0000,0000,0000 > > for example and i want to made this with this code: > > message.getORM_O01_ORCOBRRQDRQ1RXOODSODTRXONTEDG1RXRRXCNTEOBXNTECTIBLG(nR= epetition).getORC().getQuantityTiming().getInterval().setValue(Frequenza+"&= "+rsPost.getString("Orario1")+","+rsPost.getString("Orario2")+","+rsPost.ge= tString("Orario3")); > > but in output i have this: > > Q1D\T\0000,0000,0000 > > Why ? > is correct this semantic instead of my (ver 2.3.1) > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |
From: Davide A. <dav...@if...> - 2006-01-18 15:44:14
|
Hi to all I have to made a messagge ORM^O01 with the field ORC 7.2.1 valorized and i think that the correct is this : Q1D&0000,0000,0000 for example and i want to made this with this code: message.getORM_O01_ORCOBRRQDRQ1RXOODSODTRXONTEDG1RXRRXCNTEOBXNTECTIBLG(nRepetition).getORC().getQuantityTiming().getInterval().setValue(Frequenza+"&"+rsPost.getString("Orario1")+","+rsPost.getString("Orario2")+","+rsPost.getString("Orario3")); but in output i have this: Q1D\T\0000,0000,0000 Why ? is correct this semantic instead of my (ver 2.3.1) |
From: Bryan T. <bp...@gm...> - 2006-01-17 17:32:04
|
Which version are you looking at:) Bryan On 1/17/06, Marco Montel <mar...@sy...> wrote: > > Bryan Tripp wrote: > > Hi Marco, > > You can set the inbound character set with the system property > "ca.uhn.hl7v2.llp.charset". The value defaults to "US-ASCII" and is > used directly as the second arg to the InputStreamReader constructor. > > > The system property "ca.uhn.hl7v2.llp.charset" will be used only by * > MinLLPWriter*. I need the same also in MinLLPReader. > As reported in my last message the InputStreamReader will be initialized > with an hard coded "ASCII" charset. > > Here the init code of the MinLLPWriter class: > > private static OutputStreamWriter getWriter(OutputStream theStream) > throws IOException { > String charset =3D System.getProperty(CHARSET_KEY, "US-ASCII"); > > if (charset.equals("default")) { > return new OutputStreamWriter(theStream); > } else { > return new OutputStreamWriter(theStream, charset); > } > } > This code will check the "ca.uhn.hl7v2.llp.charset" system property and > instantiate an adequate OutputStreamWriter > > Here the init code of the MinLLPReader class: > > public synchronized void setInputStream(InputStream in) throws > IOException > { > myReader =3D new BufferedReader(new InputStreamReader(in, "ASCII"= )); > } > > > *There is not* the part of code that read the "ca.uhn.hl7v2.llp.charset" > system property. It will always instantiate an "ASCII" InputStreamReader. > > I think there is a bug in the MinLLPReader class that can be corrected as > follow: > > > /** > * Sets the InputStream from which to read messages. The InputStream > must be set > * before any calls to <code>getMessage()</code>. > */ > public synchronized void setInputStream(InputStream in) throws > IOException > { > String charset =3D System.getProperty(CHARSET_KEY, "US-ASCII"); > if (charset.equals("default")) { > myReader =3D new BufferedReader(new InputStreamReader(in)); > } else { > myReader =3D new BufferedReader(new InputStreamReader(in, > charset)); > } > log.info("initialized " + charset + " charset"); > } > > > > > by marco > > Bryan > > On 1/17/06, Marco Montel <mar...@sy...> <marco.montel@syncro= med.it> wrote: > > > Hello all, > > Our application works with the standard ISO-8859-1 character set. > How can i receive messages containing characters like =E0=E8=EC=F2=F9 whe= n the > InputStreamReader in MinLLPreader class is initialized for standard ASCII > character set ? > > See: ca.uhn.hl7v2.llp.MinLLPReader: > > public synchronized void setInputStream(InputStream in) throws > IOException > { > myReader =3D new BufferedReader(new InputStreamReader(in, "ASCII"= )); > } > > There is only one costructor: public MinLLPReader(InputStream in) that I > can use to initialize an ASCII InputStreamReader. There is no way to chan= ge > the charset. > > > Maybe it is not allowed by the HL7 V2.3.1 to send messages with an other > charset ? > > bye > marco > -- > ---------------------------------------------- > > > Marco > > > Montel > > > Syncro-Med s.r.l > via Museo, 52 > 39100 Bolzano (BZ) - Italy > cell. 349 > > > 2396540 > > > tel. +39.0471977889 > fax +39.0471977851 > e-mail > > > mar...@sy... > > ----------------------------------------------- > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes search= ing > your log files as easy as surfing the web. DOWNLOAD SPLUNK!http://sel.as-= us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642 > _______________________________________________ > Hl7api-devel mailing lis...@li...https://lists.= sourceforge.net/lists/listinfo/hl7api-devel > > > > -- > > ---------------------------------------------- > Marco Montel > > Syncro-Med s.r.l > via Museo, 52 > 39100 Bolzano (BZ) - Italy > cell. 349 2396540 > tel. +39.0471977889 > fax +39.0471977851 > e-mail mar...@sy... > ----------------------------------------------- > > |
From: Marco M. <mar...@sy...> - 2006-01-17 15:26:45
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Bryan Tripp wrote: <blockquote cite="mid...@ma..." type="cite"> <pre wrap="">Hi Marco, You can set the inbound character set with the system property "ca.uhn.hl7v2.llp.charset". The value defaults to "US-ASCII" and is used directly as the second arg to the InputStreamReader constructor. </pre> </blockquote> The system property "ca.uhn.hl7v2.llp.charset" will be used only by <u>MinLLPWriter</u>. I need the same also in MinLLPReader.<br> As reported in my last message the InputStreamReader will be initialized with an hard coded "ASCII" charset.<br> <br> Here the init code of the MinLLPWriter class:<br> <br> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tbody> <tr> <td bgcolor="#cccccc" valign="top"><small><font face="Courier New, Courier, monospace"> private static OutputStreamWriter getWriter(OutputStream theStream) throws IOException {<br> String charset = System.getProperty(CHARSET_KEY, "US-ASCII");<br> <br> if (charset.equals("default")) {<br> return new OutputStreamWriter(theStream);<br> } else {<br> return new OutputStreamWriter(theStream, charset);<br> }<br> }</font></small></td> </tr> </tbody> </table> <br> <small><font face="Courier New, Courier, monospace"></font></small>This code will check the "ca.uhn.hl7v2.llp.charset" system property and instantiate an adequate OutputStreamWriter<br> <br> Here the init code of the MinLLPReader class:<br> <br> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tbody> <tr> <td bgcolor="#cccccc" valign="top"> <pre wrap=""> public synchronized void setInputStream(InputStream in) throws IOException { myReader = new BufferedReader(new InputStreamReader(in, "ASCII")); }</pre> </td> </tr> </tbody> </table> <br> <u>There is not</u> the part of code that read the "ca.uhn.hl7v2.llp.charset" system property. It will always instantiate an "ASCII" InputStreamReader.<br> <br> I think there is a bug in the MinLLPReader class that can be corrected as follow:<br> <br> <table border="0" cellpadding="2" cellspacing="2" width="100%"> <tbody> <tr> <td bgcolor="#cccccc" valign="top"><br> <small><font face="Courier New, Courier, monospace"> /**<br> * Sets the InputStream from which to read messages. The InputStream must be set <br> * before any calls to <code>getMessage()</code>.<br> */<br> public synchronized void setInputStream(InputStream in) throws IOException <br> {<br> String charset = System.getProperty(CHARSET_KEY, "US-ASCII");<br> if (charset.equals("default")) {<br> myReader = new BufferedReader(new InputStreamReader(in));<br> } else {<br> myReader = new BufferedReader(new InputStreamReader(in, charset));<br> }<br> log.info("initialized " + charset + " charset");<br> }<br> <br> </font></small></td> </tr> </tbody> </table> <small><font face="Courier New, Courier, monospace"></font></small><br> <br> <br> by marco<br> <br> <blockquote cite="mid...@ma..." type="cite"> <pre wrap=""> Bryan On 1/17/06, Marco Montel <a class="moz-txt-link-rfc2396E" href="mailto:mar...@sy..."><mar...@sy...></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">Hello all, Our application works with the standard ISO-8859-1 character set. How can i receive messages containing characters like àèìòù when the InputStreamReader in MinLLPreader class is initialized for standard ASCII character set ? See: ca.uhn.hl7v2.llp.MinLLPReader: public synchronized void setInputStream(InputStream in) throws IOException { myReader = new BufferedReader(new InputStreamReader(in, "ASCII")); } There is only one costructor: public MinLLPReader(InputStream in) that I can use to initialize an ASCII InputStreamReader. There is no way to change the charset. Maybe it is not allowed by the HL7 V2.3.1 to send messages with an other charset ? bye marco -- ---------------------------------------------- </pre> </blockquote> <pre wrap=""><!---->Marco </pre> <blockquote type="cite"> <pre wrap="">Montel </pre> </blockquote> <pre wrap=""><!----> Syncro-Med s.r.l via Museo, 52 39100 Bolzano (BZ) - Italy cell. 349 </pre> <blockquote type="cite"> <pre wrap="">2396540 </pre> </blockquote> <pre wrap=""><!---->tel. +39.0471977889 fax +39.0471977851 e-mail </pre> <blockquote type="cite"> <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:mar...@sy...">mar...@sy...</a> </pre> </blockquote> <pre wrap=""><!---->----------------------------------------------- </pre> <blockquote type="cite"> <pre wrap="">------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642</a> _______________________________________________ Hl7api-devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:Hl7...@li...">Hl7...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/hl7api-devel">https://lists.sourceforge.net/lists/listinfo/hl7api-devel</a> </pre> </blockquote> <pre wrap=""><!----> </pre> </blockquote> <br> <br> <div class="moz-signature">-- <br> <pre>---------------------------------------------- Marco Montel Syncro-Med s.r.l via Museo, 52 39100 Bolzano (BZ) - Italy cell. 349 2396540 tel. +39.0471977889 fax +39.0471977851 e-mail <a class="moz-txt-link-abbreviated" href="mailto:mar...@sy...">mar...@sy...</a> ----------------------------------------------- </pre> </div> </body> </html> |
From: Bryan T. <bp...@gm...> - 2006-01-17 14:52:36
|
Hi Marco, You can set the inbound character set with the system property "ca.uhn.hl7v2.llp.charset". The value defaults to "US-ASCII" and is used directly as the second arg to the InputStreamReader constructor. Bryan On 1/17/06, Marco Montel <mar...@sy...> wrote: > Hello all, > > Our application works with the standard ISO-8859-1 character set. > How can i receive messages containing characters like =E0=E8=EC=F2=F9 whe= n the > InputStreamReader in MinLLPreader class is initialized for standard ASCII > character set ? > > See: ca.uhn.hl7v2.llp.MinLLPReader: > > public synchronized void setInputStream(InputStream in) throws > IOException > { > myReader =3D new BufferedReader(new InputStreamReader(in, "ASCII"= )); > } > > There is only one costructor: public MinLLPReader(InputStream in) that I > can use to initialize an ASCII InputStreamReader. There is no way to chan= ge > the charset. > > > Maybe it is not allowed by the HL7 V2.3.1 to send messages with an other > charset ? > > bye > marco > -- > ---------------------------------------------- Marco > Montel Syncro-Med s.r.l via Museo, 52 39100 Bolzano (BZ) - Italy cell. 349 > 2396540 tel. +39.0471977889 fax +39.0471977851 e-mail > mar...@sy... ----------------------------------------------- > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes search= ing > your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Marco M. <mar...@sy...> - 2006-01-17 11:08:39
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hello all,<br> <br> Our application works with the standard ISO-8859-1 character set. <br> How can i receive messages containing characters like àèìòù when the InputStreamReader in MinLLPreader class is initialized for standard ASCII character set ?<br> <br> <small><font face="Courier New, Courier, monospace">See: ca.uhn.hl7v2.llp.MinLLPReader:<br> <br> </font></small><small><font face="Courier New, Courier, monospace"> public synchronized void setInputStream(InputStream in) throws IOException <br> {<br> myReader = new BufferedReader(new InputStreamReader(in, "ASCII"));<br> }<br> </font></small><br> There is only one costructor: <small><font face="Courier New, Courier, monospace">public MinLLPReader(InputStream in)</font><big> that I can use to initialize an ASCII InputStreamReader. There is no way to change the charset.<br> <br> <br> Maybe it is not allowed by the HL7 V2.3.1 to send messages with an other charset ?<br> </big></small><br> bye<br> marco<br> <div class="moz-signature">-- <br> <pre>---------------------------------------------- Marco Montel Syncro-Med s.r.l via Museo, 52 39100 Bolzano (BZ) - Italy cell. 349 2396540 tel. +39.0471977889 fax +39.0471977851 e-mail <a class="moz-txt-link-abbreviated" href="mailto:mar...@sy...">mar...@sy...</a> ----------------------------------------------- </pre> </div> </body> </html> |
From: Gerald B. <Ge...@we...> - 2006-01-16 23:05:33
|
Thanks to you both! Worked perfectly. Gerald > -----Original Message----- > From: Bryan Tripp [mailto:bp...@gm...] > Sent: Monday, January 16, 2006 1:15 PM > To: Nico Vannieuwenhuyze > Cc: Gerald Bortis; hl7...@li... > Subject: Re: [HAPI-devel] Getting MSH field from generic message >=20 > Correct, or you can cast to ca.uhn.hl7v2.model.Primitive. >=20 > Bryan >=20 > On 1/16/06, Nico Vannieuwenhuyze <ni...@sk...> wrote: > > Hi Gerald, > > > > This should do the trick: > > > > import ca.uhn.hl7v2.util.Terser; > > ... > > > > public ca.uhn.hl7v2.model.Message > > processMessage(ca.uhn.hl7v2.model.Message message) > > throws ca.uhn.hl7v2.app.ApplicationException, > > ca.uhn.hl7v2.HL7Exception { > > Terser t =3D new Terser(message); > > String sendingapp =3D t.get("/MSH-3-1"); > > Log.info(sendingapp); > > > > .... > > > > Regards > > > > Nico > > > > At 16/01/2006, Gerald Bortis wrote: > > >Hi all, > > > > > >I'm having some trouble getting the sending system field from the MSH > > >header without casting the message to a specific type. So far I am > doing > > >this: > > > > > >PipeParser parser =3D new PipeParser(); > > >Message message =3D parser.parse(messageString); > > >Segment segment =3D (Segment) message.get("MSH"); > > >Type type =3D segment.getField(3, 0); > > > > > >On what object can I call the getValue() method without casting the > type > > >to a specific v2.x datatype? Thanks. > > > > > >Gerald > > > > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > >for problems? Stop! Download the new AJAX search engine that makes > > >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > > > >http://ads.osdn.com/?ad_idv37&alloc_id865&opick > > >_______________________________________________ > > >Hl7api-devel mailing list > > >Hl7...@li... > > >https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > > _______________________________________________ > > Hl7api-devel mailing list > > Hl7...@li... > > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Bryan T. <bp...@gm...> - 2006-01-16 21:15:14
|
Correct, or you can cast to ca.uhn.hl7v2.model.Primitive. Bryan On 1/16/06, Nico Vannieuwenhuyze <ni...@sk...> wrote: > Hi Gerald, > > This should do the trick: > > import ca.uhn.hl7v2.util.Terser; > ... > > public ca.uhn.hl7v2.model.Message > processMessage(ca.uhn.hl7v2.model.Message message) > throws ca.uhn.hl7v2.app.ApplicationException, > ca.uhn.hl7v2.HL7Exception { > Terser t =3D new Terser(message); > String sendingapp =3D t.get("/MSH-3-1"); > Log.info(sendingapp); > > .... > > Regards > > Nico > > At 16/01/2006, Gerald Bortis wrote: > >Hi all, > > > >I'm having some trouble getting the sending system field from the MSH > >header without casting the message to a specific type. So far I am doing > >this: > > > >PipeParser parser =3D new PipeParser(); > >Message message =3D parser.parse(messageString); > >Segment segment =3D (Segment) message.get("MSH"); > >Type type =3D segment.getField(3, 0); > > > >On what object can I call the getValue() method without casting the type > >to a specific v2.x datatype? Thanks. > > > >Gerald > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Splunk Inc. Do you grep through log f= iles > >for problems? Stop! Download the new AJAX search engine that makes > >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > >http://ads.osdn.com/?ad_idv37&alloc_id865&opick > >_______________________________________________ > >Hl7api-devel mailing list > >Hl7...@li... > >https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |