Class PEX_P08_PEX_CAUSE
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a PEX_P08_PEX_CAUSE 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: PCR (Possible Causal Relationship)
- 2: PEX_P08_RX_ORDER (a Group object) optional
- 3: PEX_P08_RX_ADMINISTRATION (a Group object) optional repeating
- 4: PRB (Problem Detail) optional repeating
- 5: OBX (Observation segment) optional repeating
- 6: NTE (Notes and comments segment) optional repeating
- 7: PEX_P08_ASSOCIATED_PERSON (a Group object) optional
- 8: PEX_P08_STUDY (a Group object) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionPEX_P08_PEX_CAUSE(Group parent, ModelClassFactory factory) Creates a new PEX_P08_PEX_CAUSE group -
Method Summary
Modifier and TypeMethodDescriptionReturns ASSOCIATED_PERSON (a Group object) - creates it if necessarygetNTE()Returns the first repetition of NTE (Notes and comments segment) - creates it if necessarygetNTE(int rep) Returns a specific repetition of NTE (Notes and comments segment) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of NTE.intReturns the number of existing repetitions of NTEgetOBX()Returns the first repetition of OBX (Observation segment) - creates it if necessarygetOBX(int rep) Returns a specific repetition of OBX (Observation segment) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of OBX.intReturns the number of existing repetitions of OBXgetPCR()Returns PCR (Possible Causal Relationship) - creates it if necessarygetPRB()Returns the first repetition of PRB (Problem Detail) - creates it if necessarygetPRB(int rep) Returns a specific repetition of PRB (Problem Detail) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PRB.intReturns the number of existing repetitions of PRBReturns the first repetition of RX_ADMINISTRATION (a Group object) - creates it if necessarygetRX_ADMINISTRATION(int rep) Returns a specific repetition of RX_ADMINISTRATION (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of RX_ADMINISTRATION.intReturns the number of existing repetitions of RX_ADMINISTRATIONReturns RX_ORDER (a Group object) - creates it if necessarygetSTUDY()Returns the first repetition of STUDY (a Group object) - creates it if necessarygetSTUDY(int rep) Returns a specific repetition of STUDY (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of STUDY.intReturns the number of existing repetitions of STUDYReturns "2.3"insertNTE(int rep) Inserts a specific repetition of NTE (Notes and comments segment)voidInserts a specific repetition of NTE (Notes and comments segment)insertOBX(int rep) Inserts a specific repetition of OBX (Observation segment)voidInserts a specific repetition of OBX (Observation segment)insertPRB(int rep) Inserts a specific repetition of PRB (Problem Detail)voidInserts a specific repetition of PRB (Problem Detail)insertRX_ADMINISTRATION(int rep) Inserts a specific repetition of RX_ADMINISTRATION (a Group object)voidinsertRX_ADMINISTRATION(PEX_P08_RX_ADMINISTRATION structure, int rep) Inserts a specific repetition of RX_ADMINISTRATION (a Group object)insertSTUDY(int rep) Inserts a specific repetition of STUDY (a Group object)voidinsertSTUDY(PEX_P08_STUDY structure, int rep) Inserts a specific repetition of STUDY (a Group object)removeNTE(int rep) Removes a specific repetition of NTE (Notes and comments segment)removeOBX(int rep) Removes a specific repetition of OBX (Observation segment)removePRB(int rep) Removes a specific repetition of PRB (Problem Detail)removeRX_ADMINISTRATION(int rep) Removes a specific repetition of RX_ADMINISTRATION (a Group object)removeSTUDY(int rep) Removes a specific repetition of STUDY (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
-
PEX_P08_PEX_CAUSE
Creates a new PEX_P08_PEX_CAUSE group
-
-
Method Details
-
getVersion
Returns "2.3" -
getPCR
Returns PCR (Possible Causal Relationship) - creates it if necessary -
getRX_ORDER
Returns RX_ORDER (a Group object) - creates it if necessary -
getRX_ADMINISTRATION
Returns the first repetition of RX_ADMINISTRATION (a Group object) - creates it if necessary -
getRX_ADMINISTRATION
Returns a specific repetition of RX_ADMINISTRATION (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.
-
getRX_ADMINISTRATIONReps
Returns the number of existing repetitions of RX_ADMINISTRATION -
getRX_ADMINISTRATIONAll
Returns a non-modifiable List containing all current existing repetitions of RX_ADMINISTRATION.
Note that unlike
getRX_ADMINISTRATION(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertRX_ADMINISTRATION
public void insertRX_ADMINISTRATION(PEX_P08_RX_ADMINISTRATION structure, int rep) throws HL7Exception Inserts a specific repetition of RX_ADMINISTRATION (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertRX_ADMINISTRATION
Inserts a specific repetition of RX_ADMINISTRATION (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeRX_ADMINISTRATION
Removes a specific repetition of RX_ADMINISTRATION (a Group object)- Throws:
HL7Exception- See Also:
-
getPRB
Returns the first repetition of PRB (Problem Detail) - creates it if necessary -
getPRB
Returns a specific repetition of PRB (Problem Detail) - 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.
-
getPRBReps
Returns the number of existing repetitions of PRB -
getPRBAll
Returns a non-modifiable List containing all current existing repetitions of PRB.
Note that unlike
getPRB(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPRB
Inserts a specific repetition of PRB (Problem Detail)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPRB
Inserts a specific repetition of PRB (Problem Detail)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePRB
Removes a specific repetition of PRB (Problem Detail)- Throws:
HL7Exception- See Also:
-
getOBX
Returns the first repetition of OBX (Observation segment) - creates it if necessary -
getOBX
Returns a specific repetition of OBX (Observation segment) - 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 segment)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertOBX
Inserts a specific repetition of OBX (Observation segment)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeOBX
Removes a specific repetition of OBX (Observation segment)- Throws:
HL7Exception- See Also:
-
getNTE
Returns the first repetition of NTE (Notes and comments segment) - creates it if necessary -
getNTE
Returns a specific repetition of NTE (Notes and comments segment) - 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 segment)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertNTE
Inserts a specific repetition of NTE (Notes and comments segment)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeNTE
Removes a specific repetition of NTE (Notes and comments segment)- Throws:
HL7Exception- See Also:
-
getASSOCIATED_PERSON
Returns ASSOCIATED_PERSON (a Group object) - creates it if necessary -
getSTUDY
Returns the first repetition of STUDY (a Group object) - creates it if necessary -
getSTUDY
Returns a specific repetition of STUDY (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.
-
getSTUDYReps
Returns the number of existing repetitions of STUDY -
getSTUDYAll
Returns a non-modifiable List containing all current existing repetitions of STUDY.
Note that unlike
getSTUDY(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertSTUDY
Inserts a specific repetition of STUDY (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertSTUDY
Inserts a specific repetition of STUDY (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeSTUDY
Removes a specific repetition of STUDY (a Group object)- Throws:
HL7Exception- See Also:
-