public class DTN extends AbstractComposite
Represents an HL7 DTN (Day Type and Number) data type. This type consists of the following components:
log
Constructor and Description |
---|
DTN(Message message)
Creates a new DTN type
|
Modifier and Type | Method and Description |
---|---|
Type |
getComponent(int number)
Returns an individual data component.
|
Type[] |
getComponents()
Returns an array containing the data elements.
|
CWE |
getDayType()
Returns Day Type (component 1).
|
CWE |
getDtn1_DayType()
Returns Day Type (component 1).
|
NM |
getDtn2_NumberOfDays()
Returns Number of Days (component 2).
|
NM |
getNumberOfDays()
Returns Number of Days (component 2).
|
accept, clear, getTyped, isEmpty, provideLocation
encode, getExtraComponents, getMessage, getName, parse, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
encode, getExtraComponents, getMessage, getName, parse
public Type[] getComponents()
public Type getComponent(int number) throws DataTypeException
number
- The component number (0-indexed)DataTypeException
- if the given element number is out of range.public CWE getDayType()
public CWE getDtn1_DayType()
public NM getNumberOfDays()
public NM getDtn2_NumberOfDays()
Copyright © 2001–2017 University Health Network. All rights reserved.