ca.uhn.hl7v2.validation
Interface ValidationContext
- All Known Implementing Classes:
- DefaultValidation, 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
getPrimitiveRules
PrimitiveTypeRule[] getPrimitiveRules(java.lang.String theVersion,
java.lang.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(java.lang.String theVersion,
java.lang.String theMessageType,
java.lang.String theTriggerEvent)
- Parameters:
theVersion
- an HL7 version (eg "2.1")theMessageType
- a value valid for MSH-9-1theTriggerEvent
- 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(java.lang.String theVersion,
java.lang.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-2011 University Health Network. All Rights Reserved.