Validation of Required Fields in HL7v2x Messages

View: New views
2 Messages — Rating Filter:   Alert me  

Validation of Required Fields in HL7v2x Messages

by Tim Eapen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Validation of Required Fields in HL7v2x Messages

Hello,

What I would like to do is be able to configure HAPI to be able to detect when a required field is not present. Is there any way that this can be configured?

Regards,

Tim


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Re: Validation of Required Fields in HL7v2x Messages

by nksharma0624 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Validation of Required Fields in HL7v2x Messages

Hello Tim,

 

You shall be able to do this by using the setting the ValidationContext to your parser.

 

void ca.uhn.hl7v2.parser.Parser.setValidationContext(ValidationContext theContext)

 

Also, you can define your own profile to ensure that validation context is using your profiles.

 

See the Examples in the code.

 

Best Regards

-Niranjan.

 

 

From: Tim Eapen [mailto:tim.eapen@...]
Sent: Monday, September 21, 2009 11:04 AM
To: hl7api-devel@...
Subject: [HAPI-devel] Validation of Required Fields in HL7v2x Messages

 

Hello,

What I would like to do is be able to configure HAPI to be able to detect when a required field is not present. Is there any way that this can be configured?

Regards,

Tim


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel