ca.uhn.hl7v2.validation
Interface ValidationContext

All Known Implementing Classes:
DefaultValidation, DefaultValidationWithoutTN, NoValidation, ValidationContextImpl

public interface ValidationContext

A set of rules for message validation.

Version:
$Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:41 $ by $Author: jamesagnew $
Author:
Bryan Tripp

Method Summary
 EncodingRule[] getEncodingRules(String theVersion, String theEncoding)
           
 MessageRule[] getMessageRules(String theVersion, String theMessageType, String theTriggerEvent)
           
 PrimitiveTypeRule[] getPrimitiveRules(String theVersion, String theTypeName, Primitive theType)
           
 

Method Detail

getPrimitiveRules

PrimitiveTypeRule[] getPrimitiveRules(String theVersion,
                                      String theTypeName,
                                      Primitive theType)
Parameters:
theVersion - an HL7 version (eg "2.1")
theTypeName - a primitive datatype name (eg "ST")
theType - the Primitive being validated
Returns:
active rules for checking the given type in the given version

getMessageRules

MessageRule[] getMessageRules(String theVersion,
                              String theMessageType,
                              String theTriggerEvent)
Parameters:
theVersion - an HL7 version (eg "2.1")
theMessageType - a value valid for MSH-9-1
theTriggerEvent - a value valid fro MSH-9-2
Returns:
the active rules that apply to message of the given version, message type, and trigger event

getEncodingRules

EncodingRule[] getEncodingRules(String theVersion,
                                String theEncoding)
Parameters:
theVersion - an HL7 version (eg "2.1")
theEncoding - an encoding name (eg "VB", "XML)
Returns:
the active encoding rules that apply to the given version and encoding


Copyright © 2001-2012 University Health Network. All Rights Reserved.