Class ORM_O01_ORDER_DETAIL
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a ORM_O01_ORDER_DETAIL 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: OBR (OBSERVATION REQUEST) choice
- 2: RQD (REQUISITION DETAIL) choice
- 3: RQ1 (REQUISITION DETAIL-!) choice
- 4: RXO (PHARMACY PRESCRIPTION ORDER) choice
- 5: ODS (DIETARY ORDERS, SUPPLEMENTS, and PREFERENCES) choice
- 6: ODT (DIET TRAY INSTRUCTION) choice
- 7: NTE (NOTES AND COMMENTS) optional repeating
- 8: OBX (OBSERVATION RESULT) optional repeating
- 9: NTE (NOTES AND COMMENTS) repeating
Note that this structure has "choice" elements. This means that one of the structures above marked as "choice" must be present, but no more than one.
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionORM_O01_ORDER_DETAIL(Group parent, ModelClassFactory factory) Creates a new ORM_O01_ORDER_DETAIL group -
Method Summary
Modifier and TypeMethodDescriptiongetNTE()Returns the first repetition of NTE (NOTES AND COMMENTS) - creates it if necessarygetNTE(int rep) Returns a specific repetition of NTE (NOTES AND COMMENTS) - creates it if necessarygetNTE2()Returns the first repetition of NTE2 (NOTES AND COMMENTS) - creates it if necessarygetNTE2(int rep) Returns a specific repetition of NTE (NOTES AND COMMENTS) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of NTE2.intReturns the number of existing repetitions of NTE2Returns a non-modifiable List containing all current existing repetitions of NTE.intReturns the number of existing repetitions of NTEgetOBR()Returns OBR (OBSERVATION REQUEST) - creates it if necessarygetOBX()Returns the first repetition of OBX (OBSERVATION RESULT) - creates it if necessarygetOBX(int rep) Returns a specific repetition of OBX (OBSERVATION RESULT) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of OBX.intReturns the number of existing repetitions of OBXgetODS()Returns ODS (DIETARY ORDERS, SUPPLEMENTS, and PREFERENCES) - creates it if necessarygetODT()Returns ODT (DIET TRAY INSTRUCTION) - creates it if necessarygetRQ1()Returns RQ1 (REQUISITION DETAIL-!) - creates it if necessarygetRQD()Returns RQD (REQUISITION DETAIL) - creates it if necessarygetRXO()Returns RXO (PHARMACY PRESCRIPTION ORDER) - creates it if necessaryReturns "2.2"insertNTE(int rep) Inserts a specific repetition of NTE (NOTES AND COMMENTS)voidInserts a specific repetition of NTE (NOTES AND COMMENTS)insertNTE2(int rep) Inserts a specific repetition of NTE2 (NOTES AND COMMENTS)voidinsertNTE2(NTE structure, int rep) Inserts a specific repetition of NTE2 (NOTES AND COMMENTS)insertOBX(int rep) Inserts a specific repetition of OBX (OBSERVATION RESULT)voidInserts a specific repetition of OBX (OBSERVATION RESULT)removeNTE(int rep) Removes a specific repetition of NTE (NOTES AND COMMENTS)removeNTE2(int rep) Removes a specific repetition of NTE2 (NOTES AND COMMENTS)removeOBX(int rep) Removes a specific repetition of OBX (OBSERVATION RESULT)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
-
ORM_O01_ORDER_DETAIL
Creates a new ORM_O01_ORDER_DETAIL group
-
-
Method Details
-
getVersion
Returns "2.2" -
getOBR
Returns OBR (OBSERVATION REQUEST) - creates it if necessary -
getRQD
Returns RQD (REQUISITION DETAIL) - creates it if necessary -
getRQ1
Returns RQ1 (REQUISITION DETAIL-!) - creates it if necessary -
getRXO
Returns RXO (PHARMACY PRESCRIPTION ORDER) - creates it if necessary -
getODS
Returns ODS (DIETARY ORDERS, SUPPLEMENTS, and PREFERENCES) - creates it if necessary -
getODT
Returns ODT (DIET TRAY INSTRUCTION) - creates it if necessary -
getNTE
Returns the first repetition of NTE (NOTES AND COMMENTS) - creates it if necessary -
getNTE
Returns a specific repetition of NTE (NOTES AND COMMENTS) - 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.
-
getNTEReps
Returns the number of existing repetitions of NTE -
getNTEAll
Returns a non-modifiable List containing all current existing repetitions of NTE.
Note that unlike
getNTE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertNTE
Inserts a specific repetition of NTE (NOTES AND COMMENTS)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertNTE
Inserts a specific repetition of NTE (NOTES AND COMMENTS)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeNTE
Removes a specific repetition of NTE (NOTES AND COMMENTS)- Throws:
HL7Exception- See Also:
-
getOBX
Returns the first repetition of OBX (OBSERVATION RESULT) - creates it if necessary -
getOBX
Returns a specific repetition of OBX (OBSERVATION RESULT) - 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.
-
getOBXReps
Returns the number of existing repetitions of OBX -
getOBXAll
Returns a non-modifiable List containing all current existing repetitions of OBX.
Note that unlike
getOBX(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertOBX
Inserts a specific repetition of OBX (OBSERVATION RESULT)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertOBX
Inserts a specific repetition of OBX (OBSERVATION RESULT)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeOBX
Removes a specific repetition of OBX (OBSERVATION RESULT)- Throws:
HL7Exception- See Also:
-
getNTE2
Returns the first repetition of NTE2 (NOTES AND COMMENTS) - creates it if necessary -
getNTE2
Returns a specific repetition of NTE (NOTES AND COMMENTS) - 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.
-
getNTE2Reps
Returns the number of existing repetitions of NTE2 -
getNTE2All
Returns a non-modifiable List containing all current existing repetitions of NTE2.
Note that unlike
getNTE2(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertNTE2
Inserts a specific repetition of NTE2 (NOTES AND COMMENTS)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertNTE2
Inserts a specific repetition of NTE2 (NOTES AND COMMENTS)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeNTE2
Removes a specific repetition of NTE2 (NOTES AND COMMENTS)- Throws:
HL7Exception- See Also:
-