ca.infoway.messagebuilder.marshalling.hl7
Class PqValidationUtils

Package class diagram package PqValidationUtils
java.lang.Object
  extended by ca.infoway.messagebuilder.marshalling.hl7.PqValidationUtils

public class PqValidationUtils
extends Object


Field Summary
static int MAXIMUM_FRACTION_DIGITS
           
static Map<String,Integer> maximum_fraction_digits_exceptions
           
static int MAXIMUM_INTEGER_DIGITS
           
static Map<String,Integer> maximum_integer_digits_exceptions
           
 
Constructor Summary
PqValidationUtils()
           
 
Method Summary
 int getMaxFractionDigits(VersionNumber version, String type)
           
 int getMaxIntDigits(VersionNumber version, String type)
           
 Class<? extends UnitsOfMeasureCaseSensitive> getUnitTypeByHl7Type(StandardDataType dataType, String propertyPath, Hl7Errors errors)
           
 Class<? extends UnitsOfMeasureCaseSensitive> getUnitTypeByHl7Type(String typeAsString, Element element, String propertyPath, Hl7Errors errors)
           
 UnitsOfMeasureCaseSensitive validateUnits(String type, String unitsAsString, Element element, String propertyPath, Hl7Errors errors)
           
 BigDecimal validateValue(String value, VersionNumber version, String type, Element element, String propertyPath, Hl7Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_INTEGER_DIGITS

public static final int MAXIMUM_INTEGER_DIGITS
See Also:
Constant Field Values

MAXIMUM_FRACTION_DIGITS

public static final int MAXIMUM_FRACTION_DIGITS
See Also:
Constant Field Values

maximum_fraction_digits_exceptions

public static final Map<String,Integer> maximum_fraction_digits_exceptions

maximum_integer_digits_exceptions

public static final Map<String,Integer> maximum_integer_digits_exceptions
Constructor Detail

PqValidationUtils

public PqValidationUtils()
Method Detail

getMaxFractionDigits

public int getMaxFractionDigits(VersionNumber version,
                                String type)

getMaxIntDigits

public int getMaxIntDigits(VersionNumber version,
                           String type)

getUnitTypeByHl7Type

public Class<? extends UnitsOfMeasureCaseSensitive> getUnitTypeByHl7Type(StandardDataType dataType,
                                                                         String propertyPath,
                                                                         Hl7Errors errors)

getUnitTypeByHl7Type

public Class<? extends UnitsOfMeasureCaseSensitive> getUnitTypeByHl7Type(String typeAsString,
                                                                         Element element,
                                                                         String propertyPath,
                                                                         Hl7Errors errors)

validateValue

public BigDecimal validateValue(String value,
                                VersionNumber version,
                                String type,
                                Element element,
                                String propertyPath,
                                Hl7Errors errors)

validateUnits

public UnitsOfMeasureCaseSensitive validateUnits(String type,
                                                 String unitsAsString,
                                                 Element element,
                                                 String propertyPath,
                                                 Hl7Errors errors)


Copyright © 2013. All Rights Reserved.