Package ca.uhn.hl7v2.model.v22.segment
Class ODT
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v22.segment.ODT
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 ODT message segment (DIET TRAY INSTRUCTION). This segment has the following fields:
- ODT-1: Tray Type (CE)
- ODT-2: Service Period (CE) optional repeating
- ODT-3: Text Instruction (ST) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) Returns ODT-1: "Tray Type" - creates it if necessaryCE[]Returns all repetitions of Service Period (ODT-2).getOdt2_ServicePeriod(int rep) Returns a specific repetition of ODT-2: "Service Period" - creates it if necessaryintReturns a count of the current number of repetitions of Service Period (ODT-2).ST[]Returns all repetitions of Text Instruction (ODT-3).getOdt3_TextInstruction(int rep) Returns a specific repetition of ODT-3: "Text Instruction" - creates it if necessaryintReturns a count of the current number of repetitions of Text Instruction (ODT-3).CE[]Returns all repetitions of Service Period (ODT-2).getServicePeriod(int rep) Returns a specific repetition of ODT-2: "Service Period" - creates it if necessaryintReturns a count of the current number of repetitions of Service Period (ODT-2).ST[]Returns all repetitions of Text Instruction (ODT-3).getTextInstruction(int rep) Returns a specific repetition of ODT-3: "Text Instruction" - creates it if necessaryintReturns a count of the current number of repetitions of Text Instruction (ODT-3).Returns ODT-1: "Tray Type" - creates it if necessaryinsertOdt2_ServicePeriod(int rep) Inserts a repetition of ODT-2: "Service Period" at a specific indexinsertOdt3_TextInstruction(int rep) Inserts a repetition of ODT-3: "Text Instruction" at a specific indexinsertServicePeriod(int rep) Inserts a repetition of ODT-2: "Service Period" at a specific indexinsertTextInstruction(int rep) Inserts a repetition of ODT-3: "Text Instruction" at a specific indexremoveOdt2_ServicePeriod(int rep) Removes a repetition of ODT-2: "Service Period" at a specific indexremoveOdt3_TextInstruction(int rep) Removes a repetition of ODT-3: "Text Instruction" at a specific indexremoveServicePeriod(int rep) Removes a repetition of ODT-2: "Service Period" at a specific indexremoveTextInstruction(int rep) Removes a repetition of ODT-3: "Text Instruction" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
ODT
Creates a new ODT segment
-
-
Method Details
-
getTrayType
Returns ODT-1: "Tray Type" - creates it if necessary -
getOdt1_TrayType
Returns ODT-1: "Tray Type" - creates it if necessary -
getServicePeriod
Returns all repetitions of Service Period (ODT-2). -
getOdt2_ServicePeriod
Returns all repetitions of Service Period (ODT-2). -
getServicePeriodReps
Returns a count of the current number of repetitions of Service Period (ODT-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getServicePeriod
Returns a specific repetition of ODT-2: "Service Period" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getOdt2_ServicePeriod
Returns a specific repetition of ODT-2: "Service Period" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getOdt2_ServicePeriodReps
Returns a count of the current number of repetitions of Service Period (ODT-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertServicePeriod
Inserts a repetition of ODT-2: "Service Period" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertOdt2_ServicePeriod
Inserts a repetition of ODT-2: "Service Period" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeServicePeriod
Removes a repetition of ODT-2: "Service Period" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeOdt2_ServicePeriod
Removes a repetition of ODT-2: "Service Period" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getTextInstruction
Returns all repetitions of Text Instruction (ODT-3). -
getOdt3_TextInstruction
Returns all repetitions of Text Instruction (ODT-3). -
getTextInstructionReps
Returns a count of the current number of repetitions of Text Instruction (ODT-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getTextInstruction
Returns a specific repetition of ODT-3: "Text Instruction" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getOdt3_TextInstruction
Returns a specific repetition of ODT-3: "Text Instruction" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getOdt3_TextInstructionReps
Returns a count of the current number of repetitions of Text Instruction (ODT-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertTextInstruction
Inserts a repetition of ODT-3: "Text Instruction" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertOdt3_TextInstruction
Inserts a repetition of ODT-3: "Text Instruction" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeTextInstruction
Removes a repetition of ODT-3: "Text Instruction" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeOdt3_TextInstruction
Removes a repetition of ODT-3: "Text Instruction" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-