Package ca.uhn.hl7v2.model.v251.datatype
Class SN
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v251.datatype.SN
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 SN (Structured Numeric) data type. This type consists of the following components:
- Comparator (ST)
- Num1 (NM)
- Separator/Suffix (ST)
- Num2 (NM)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns Comparator (component 1).getComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.getNum1()Returns Num1 (component 2).getNum2()Returns Num2 (component 4).Returns Separator/Suffix (component 3).Returns Comparator (component 1).Returns Num1 (component 2).Returns Separator/Suffix (component 3).Returns Num2 (component 4).Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
accept, clear, getTyped, isEmpty, provideLocationMethods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, getName, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, getName, parse
-
Constructor Details
-
SN
Creates a new SN type
-
-
Method Details
-
getComponents
Returns an array containing the data elements. -
getComponent
Returns an individual data component.- Parameters:
number- The component number (0-indexed)- Throws:
DataTypeException- if the given element number is out of range.
-
getComparator
Returns Comparator (component 1). This is a convenience method that saves you from casting and handling an exception. -
getSn1_Comparator
Returns Comparator (component 1). This is a convenience method that saves you from casting and handling an exception. -
getNum1
Returns Num1 (component 2). This is a convenience method that saves you from casting and handling an exception. -
getSn2_Num1
Returns Num1 (component 2). This is a convenience method that saves you from casting and handling an exception. -
getSeparatorSuffix
Returns Separator/Suffix (component 3). This is a convenience method that saves you from casting and handling an exception. -
getSn3_SeparatorSuffix
Returns Separator/Suffix (component 3). This is a convenience method that saves you from casting and handling an exception. -
getNum2
Returns Num2 (component 4). This is a convenience method that saves you from casting and handling an exception. -
getSn4_Num2
Returns Num2 (component 4). This is a convenience method that saves you from casting and handling an exception.
-