Package ca.uhn.hl7v2.model.v251.group
Class OMD_O03_ORDER_DIET
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.v251.group.OMD_O03_ORDER_DIET
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a OMD_O03_ORDER_DIET group structure (a Group object). A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. This Group contains the following elements:
- 1: ORC (Common Order)
- 2: OMD_O03_TIMING_DIET (a Group object) optional repeating
- 3: OMD_O03_DIET (a Group object) optional
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionOMD_O03_ORDER_DIET(Group parent, ModelClassFactory factory) Creates a new OMD_O03_ORDER_DIET group -
Method Summary
Modifier and TypeMethodDescriptiongetDIET()Returns DIET (a Group object) - creates it if necessarygetORC()Returns ORC (Common Order) - creates it if necessaryReturns the first repetition of TIMING_DIET (a Group object) - creates it if necessarygetTIMING_DIET(int rep) Returns a specific repetition of TIMING_DIET (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of TIMING_DIET.intReturns the number of existing repetitions of TIMING_DIETReturns "2.5.1"insertTIMING_DIET(int rep) Inserts a specific repetition of TIMING_DIET (a Group object)voidinsertTIMING_DIET(OMD_O03_TIMING_DIET structure, int rep) Inserts a specific repetition of TIMING_DIET (a Group object)removeTIMING_DIET(int rep) Removes a specific repetition of TIMING_DIET (a Group object)Methods inherited from class ca.uhn.hl7v2.model.AbstractGroup
accept, add, add, add, addNonstandardSegment, addNonstandardSegment, clear, currentReps, get, get, getAll, getAllAsList, getClass, getFieldNumForName, getModelClassFactory, getName, getNames, getNonStandardNames, getReps, getTyped, getTyped, insert, insert, insertRepetition, insertRepetition, isChoiceElement, isEmpty, isGroup, isRepeating, isRequired, provideLocation, removeRepetition, tryToInstantiateStructure, visitNestedStructuresMethods 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
-
OMD_O03_ORDER_DIET
Creates a new OMD_O03_ORDER_DIET group
-
-
Method Details
-
getVersion
Returns "2.5.1" -
getORC
Returns ORC (Common Order) - creates it if necessary -
getTIMING_DIET
Returns the first repetition of TIMING_DIET (a Group object) - creates it if necessary -
getTIMING_DIET
Returns a specific repetition of TIMING_DIET (a Group object) - creates it if necessary- Parameters:
rep- The repetition index (0-indexed, i.e. the first repetition is at index 0)- Throws:
HL7Exception- if the repetition requested is more than one greater than the number of existing repetitions.
-
getTIMING_DIETReps
Returns the number of existing repetitions of TIMING_DIET -
getTIMING_DIETAll
Returns a non-modifiable List containing all current existing repetitions of TIMING_DIET.
Note that unlike
getTIMING_DIET(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertTIMING_DIET
Inserts a specific repetition of TIMING_DIET (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertTIMING_DIET
Inserts a specific repetition of TIMING_DIET (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeTIMING_DIET
Removes a specific repetition of TIMING_DIET (a Group object)- Throws:
HL7Exception- See Also:
-
getDIET
Returns DIET (a Group object) - creates it if necessary
-