public class ODT extends AbstractSegment
Represents an HL7 ODT message segment (DIET TRAY INSTRUCTION). This segment has the following fields:
log
Constructor and Description |
---|
ODT(Group parent,
ModelClassFactory factory)
Creates a new ODT segment
|
Modifier and Type | Method and Description |
---|---|
protected Type |
createNewTypeWithoutReflection(int field) |
CE |
getOdt1_TrayType()
Returns
ODT-1: "Tray Type" - creates it if necessary
|
CE[] |
getOdt2_ServicePeriod()
Returns all repetitions of Service Period (ODT-2).
|
CE |
getOdt2_ServicePeriod(int rep)
Returns a specific repetition of
ODT-2: "Service Period" - creates it if necessary
|
int |
getOdt2_ServicePeriodReps()
Returns a count of the current number of repetitions of Service Period (ODT-2).
|
ST[] |
getOdt3_TextInstruction()
Returns all repetitions of Text Instruction (ODT-3).
|
ST |
getOdt3_TextInstruction(int rep)
Returns a specific repetition of
ODT-3: "Text Instruction" - creates it if necessary
|
int |
getOdt3_TextInstructionReps()
Returns a count of the current number of repetitions of Text Instruction (ODT-3).
|
CE[] |
getServicePeriod()
Returns all repetitions of Service Period (ODT-2).
|
CE |
getServicePeriod(int rep)
Returns a specific repetition of
ODT-2: "Service Period" - creates it if necessary
|
int |
getServicePeriodReps()
Returns a count of the current number of repetitions of Service Period (ODT-2).
|
ST[] |
getTextInstruction()
Returns all repetitions of Text Instruction (ODT-3).
|
ST |
getTextInstruction(int rep)
Returns a specific repetition of
ODT-3: "Text Instruction" - creates it if necessary
|
int |
getTextInstructionReps()
Returns a count of the current number of repetitions of Text Instruction (ODT-3).
|
CE |
getTrayType()
Returns
ODT-1: "Tray Type" - creates it if necessary
|
CE |
insertOdt2_ServicePeriod(int rep)
Inserts a repetition of
ODT-2: "Service Period" at a specific index
|
ST |
insertOdt3_TextInstruction(int rep)
Inserts a repetition of
ODT-3: "Text Instruction" at a specific index
|
CE |
insertServicePeriod(int rep)
Inserts a repetition of
ODT-2: "Service Period" at a specific index
|
ST |
insertTextInstruction(int rep)
Inserts a repetition of
ODT-3: "Text Instruction" at a specific index
|
CE |
removeOdt2_ServicePeriod(int rep)
Removes a repetition of
ODT-2: "Service Period" at a specific index
|
ST |
removeOdt3_TextInstruction(int rep)
Removes a repetition of
ODT-3: "Text Instruction" at a specific index
|
CE |
removeServicePeriod(int rep)
Removes a repetition of
ODT-2: "Service Period" at a specific index
|
ST |
removeTextInstruction(int rep)
Removes a repetition of
ODT-3: "Text Instruction" at a specific index
|
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetition
getMessage, getParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getParent
public ODT(Group parent, ModelClassFactory factory)
public CE getTrayType()
public CE getOdt1_TrayType()
public CE[] getServicePeriod()
public CE[] getOdt2_ServicePeriod()
public int getServicePeriodReps()
public CE getServicePeriod(int rep)
rep
- The repetition index (0-indexed)public CE getOdt2_ServicePeriod(int rep)
rep
- The repetition index (0-indexed)public int getOdt2_ServicePeriodReps()
public CE insertServicePeriod(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CE insertOdt2_ServicePeriod(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CE removeServicePeriod(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CE removeOdt2_ServicePeriod(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST[] getTextInstruction()
public ST[] getOdt3_TextInstruction()
public int getTextInstructionReps()
public ST getTextInstruction(int rep)
rep
- The repetition index (0-indexed)public ST getOdt3_TextInstruction(int rep)
rep
- The repetition index (0-indexed)public int getOdt3_TextInstructionReps()
public ST insertTextInstruction(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST insertOdt3_TextInstruction(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST removeTextInstruction(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public ST removeOdt3_TextInstruction(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)protected Type createNewTypeWithoutReflection(int field)
createNewTypeWithoutReflection
in class AbstractSegment
Copyright © 2001–2017 University Health Network. All rights reserved.