Package ca.uhn.hl7v2.model.v251.datatype
Class CP
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v251.datatype.CP
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 CP (Composite Price) data type. This type consists of the following components:
- Price (MO)
- Price Type (ID)
- From Value (NM)
- To Value (NM)
- Range Units (CE)
- Range Type (ID)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns Price (component 1).Returns Price Type (component 2).Returns From Value (component 3).Returns To Value (component 4).Returns Range Units (component 5).Returns Range Type (component 6).Returns From Value (component 3).getPrice()Returns Price (component 1).Returns Price Type (component 2).Returns Range Type (component 6).Returns Range Units (component 5).Returns To Value (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
-
CP
Creates a new CP 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.
-
getPrice
Returns Price (component 1). This is a convenience method that saves you from casting and handling an exception. -
getCp1_Price
Returns Price (component 1). This is a convenience method that saves you from casting and handling an exception. -
getPriceType
Returns Price Type (component 2). This is a convenience method that saves you from casting and handling an exception. -
getCp2_PriceType
Returns Price Type (component 2). This is a convenience method that saves you from casting and handling an exception. -
getFromValue
Returns From Value (component 3). This is a convenience method that saves you from casting and handling an exception. -
getCp3_FromValue
Returns From Value (component 3). This is a convenience method that saves you from casting and handling an exception. -
getToValue
Returns To Value (component 4). This is a convenience method that saves you from casting and handling an exception. -
getCp4_ToValue
Returns To Value (component 4). This is a convenience method that saves you from casting and handling an exception. -
getRangeUnits
Returns Range Units (component 5). This is a convenience method that saves you from casting and handling an exception. -
getCp5_RangeUnits
Returns Range Units (component 5). This is a convenience method that saves you from casting and handling an exception. -
getRangeType
Returns Range Type (component 6). This is a convenience method that saves you from casting and handling an exception. -
getCp6_RangeType
Returns Range Type (component 6). This is a convenience method that saves you from casting and handling an exception.
-