ca.infoway.messagebuilder
Class SpecificationVersion

Package class diagram package SpecificationVersion
java.lang.Object
  extended by ca.infoway.messagebuilder.lang.Enum
      extended by ca.infoway.messagebuilder.lang.EnumPattern
          extended by ca.infoway.messagebuilder.SpecificationVersion
All Implemented Interfaces:
VersionNumber, Serializable, Comparable

public class SpecificationVersion
extends EnumPattern
implements VersionNumber

An enum that lists the various supported hl7 versions.

See Also:
Serialized Form

Field Summary
static SpecificationVersion R02_04_02
          R02.04.00 is the designation given to Maintenance Release 2009 (MR 2009), officially released on 2009-03-16.
static SpecificationVersion R02_04_03
           
static SpecificationVersion R02_04_03_AB
           
static SpecificationVersion V01R04_2_SK
          Saskatchewan (V01R04.2) Base version should technically be V01R04_2 (which isn't a MB HL7v3 release), but the value is really only used to determine the main release (CeRx, in this case) so we should be ok to use V01R04_3.
static SpecificationVersion V01R04_3
          This designation is used for a stand-alone version of the IEHR messages.
static SpecificationVersion V02R01
           
static SpecificationVersion V02R02
          This designation is used for the major release of CeRx, CR, PR and other messages.
static SpecificationVersion V02R02_AB
          Alberta
 
Fields inherited from class ca.infoway.messagebuilder.lang.Enum
INNER_CLASS_SEPARATOR_CHAR, iToString, PACKAGE_SEPARATOR_CHAR
 
Method Summary
 Hl7BaseVersion getBaseVersion()
          Gets the base version of HL7v3 applicable to this version.
 String getDescription()
          Gets the description.
 String getVersionLiteral()
          Gets the version literal.
static boolean isExactVersion(VersionNumber version1, VersionNumber version2)
           
static boolean isVersion(VersionNumber version, Hl7BaseVersion versionToCheck)
          Checks if the supplied VersionNumber is based on a particular HL7v3 release
 
Methods inherited from class ca.infoway.messagebuilder.lang.EnumPattern
getEnumConstants, isEnum, name, toString, valueOf, values
 
Methods inherited from class ca.infoway.messagebuilder.lang.Enum
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, getShortClassName, getShortClassName, hashCode, iterator, readResolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

V01R04_3

public static final SpecificationVersion V01R04_3

This designation is used for a stand-alone version of the IEHR messages. It was released on 2007-05-08


V02R01

public static final SpecificationVersion V02R01

V02R02

public static final SpecificationVersion V02R02

This designation is used for the major release of CeRx, CR, PR and other messages. It appears to have been officially released on 2007-12-07.


R02_04_02

public static final SpecificationVersion R02_04_02

R02.04.00 is the designation given to Maintenance Release 2009 (MR 2009), officially released on 2009-03-16.


R02_04_03

public static final SpecificationVersion R02_04_03

V01R04_2_SK

public static final SpecificationVersion V01R04_2_SK
Saskatchewan (V01R04.2) Base version should technically be V01R04_2 (which isn't a MB HL7v3 release), but the value is really only used to determine the main release (CeRx, in this case) so we should be ok to use V01R04_3.


V02R02_AB

public static final SpecificationVersion V02R02_AB
Alberta


R02_04_03_AB

public static final SpecificationVersion R02_04_03_AB
Method Detail

getVersionLiteral

public String getVersionLiteral()

Gets the version literal. Null should not be returned.

Specified by:
getVersionLiteral in interface VersionNumber
Returns:
the version literal

getDescription

public String getDescription()

Gets the description.

Returns:
the description

getBaseVersion

public Hl7BaseVersion getBaseVersion()

Gets the base version of HL7v3 applicable to this version.

Specified by:
getBaseVersion in interface VersionNumber
Returns:
the base version

isVersion

public static boolean isVersion(VersionNumber version,
                                Hl7BaseVersion versionToCheck)
Checks if the supplied VersionNumber is based on a particular HL7v3 release

Parameters:
version -
versionToCheck -
Returns:

isExactVersion

public static boolean isExactVersion(VersionNumber version1,
                                     VersionNumber version2)


Copyright © 2013. All Rights Reserved.