Garrett,
If receiving correct messages is not an option, perhaps you could look at a
number of differente strategies:
a) correct the message yourself before parsing. Or
b)
change the message version to a higher version where the first
component of XTN is withdrawn. That is substituting 2.3.1 at the MSH-12
by 2.5 for instance. Or
c) disable some rules out the validation context of your parser before actually
parsing:
Parser pp = new PipeParser();
ValidationContextImpl myContext =
(ValidationContextImpl)pp.getValidationContext();
myContext.getPrimitiveRuleBindings().clear();
pp.setValidationContext(myContext);
pp.parse(strReceivedMessage);
Regards
Daniel Nebot
IZASA
--- On Wed, 12/28/11, Garrett McTear <[email protected]> wrote:
From: Garrett McTear <[email protected]>
Subject: Re: [HAPI-devel] ORM_O01
To: "Daniel Nebot" <[email protected]>
Date: Wednesday, December 28, 2011, 8:48 PM
Daniel,
Thanks for pointing that out. This particular ORM_O01 message was given to me
by the company I am trying to integrate software with. I am trying to massage
this message after the program receives it so it can then be processed easily
using HAPI. I had to make some changes to their ADT_A08 messages to get them
to parse. I am looking into the issue you pointed out but I am still not able
to successfully parse at this point in time.
I have requested more sample messages from them in order to track down any
inconsistencies.
Thanks for your help, and any more tips that come to mind are greatly
appreciated.
Have a great day,
Garrett
On Wed, Dec 28, 2011 at 4:40 AM, Daniel Nebot <[email protected]> wrote:
Garrett,
HAPI is right. Some of your fields don't match the rules for the first
component of XTN in v2.3.1:
[NNN] [(999)]999-9999 [X99999] [B99999] [C any text]
PID-14: (909)481-5800x1
ORC-14: 8883439146
On your instance, the x should be uppercase. Also, consider using C(uppercase)
or moving it all to the nineth component. Same for ORC-14.
(909)481-5800C1
^^^^^^(909)481-5800X1
^^^^^^8883439146
--- On Tue, 12/27/11, Garrett McTear <[email protected]> wrote:
From: Garrett McTear <[email protected]>
Subject: [HAPI-devel] ORM_O01
To: [email protected]
Date: Tuesday, December 27, 2011, 11:30 PM
I am having success with ACK, ADT_A08, ADT_A11, and ADT_A40 messages in my HL7
project I have been working on. I am, however, having difficulty with ORM_O01
messages. This is the specific message I have been given as an example message
to be parsed:
MSH|^~\&|RAMSOFT|SENDING FACILITY|RAMSOFT|RECEIVING
FACILITY|20101223202939-0400||ORM^O01|104|P|2.3.1||||||||
EVN|O01|20101223202939-0400||||
PID||P12345^^^ISSUER|P12345^^^ISSUER||PATIENT^TEST^M^^^^||19741018|M|||10808
FOOTHILL BLVD^^RANCHO
CUCAMONGA^CA^91730^US||(909)481-5872^^^[email protected]|(909)481-5800x1||M||12345|286-50-9510|||
PV1||O|ER^ER^^MEDICAL
CENTER^^^^^ER||||1234567890^JONES^SAMUEL^^MD^|1234567890^JONES^SAMUEL^^MD^|
306507^SMITH^JOHN^^MD^~689789^JONES^ED^^MD^|||||||||||||||||||||||||||||||||||||||||||||
ORC|SC|A123456|A123456||SC||1^^^20110615025434-0400^^R^^^^||20110704211036-
0400|FRONTDESK||1234567890^JONES^SAMUEL^^MD^|^^^MEDICAL
CENTER|8883439146|||MEDICAL CENTER|
OBR||A123456|A123456|70100^XRAY JAW < 4
VIEWS^^^|||20110704211036-0400|||||R|Patient was in an
altercation||^^^JAW^|1234567890^JONES^SAMUEL^^MD^||A123456|RP890|A123456||||CR|||^^^20110615025434-
0400^^R^^^^|||WALK|830.1^DISLOCATION OF JAW; OPEN
DISLOCATION^|2345678901&PATEL&APU&&MD&||&LEVINSON&KERRY&K&RT&|&TRANKLIN&KATY&K&&||||PATIENT
WAS DRUNK||U|||70100^XRAY
JAW < 4 VIEWS^^^||
NTE|1|O|CLINICAL NOTES|RE|
ZDS|1.2.124.113540.0.0.3.725.4^RAMSOFT^Application^DICOM|
getErrorCode() returns a 207 which is an APPLICATION_INTERNAL_ERROR.
I was just wondering if any of you see anything in this message that would make
it not work.
Thanks,
Garrett
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
-----Inline Attachment Follows-----
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel