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 Details

    • getPrimitiveRules

      Collection<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

      Collection<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

      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