Class PEX_P08_ASSOCIATED_PERSON
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a PEX_P08_ASSOCIATED_PERSON 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: NK1 (Next of kin)
- 2: PEX_P08_ASSOCIATED_RX_ORDER (a Group object) optional
- 3: PEX_P08_ASSOCIATED_RX_ADMIN (a Group object) optional repeating
- 4: PRB (Problem Detail) optional repeating
- 5: OBX (Observation segment) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionPEX_P08_ASSOCIATED_PERSON(Group parent, ModelClassFactory factory) Creates a new PEX_P08_ASSOCIATED_PERSON group -
Method Summary
Modifier and TypeMethodDescriptionReturns the first repetition of ASSOCIATED_RX_ADMIN (a Group object) - creates it if necessarygetASSOCIATED_RX_ADMIN(int rep) Returns a specific repetition of ASSOCIATED_RX_ADMIN (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of ASSOCIATED_RX_ADMIN.intReturns the number of existing repetitions of ASSOCIATED_RX_ADMINReturns ASSOCIATED_RX_ORDER (a Group object) - creates it if necessarygetNK1()Returns NK1 (Next of kin) - creates it if necessarygetOBX()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 OBXgetPRB()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 "2.3"insertASSOCIATED_RX_ADMIN(int rep) Inserts a specific repetition of ASSOCIATED_RX_ADMIN (a Group object)voidinsertASSOCIATED_RX_ADMIN(PEX_P08_ASSOCIATED_RX_ADMIN structure, int rep) Inserts a specific repetition of ASSOCIATED_RX_ADMIN (a Group object)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)removeASSOCIATED_RX_ADMIN(int rep) Removes a specific repetition of ASSOCIATED_RX_ADMIN (a Group object)removeOBX(int rep) Removes a specific repetition of OBX (Observation segment)removePRB(int rep) Removes a specific repetition of PRB (Problem Detail)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_ASSOCIATED_PERSON
Creates a new PEX_P08_ASSOCIATED_PERSON group
-
-
Method Details
-
getVersion
Returns "2.3" -
getNK1
Returns NK1 (Next of kin) - creates it if necessary -
getASSOCIATED_RX_ORDER
Returns ASSOCIATED_RX_ORDER (a Group object) - creates it if necessary -
getASSOCIATED_RX_ADMIN
Returns the first repetition of ASSOCIATED_RX_ADMIN (a Group object) - creates it if necessary -
getASSOCIATED_RX_ADMIN
Returns a specific repetition of ASSOCIATED_RX_ADMIN (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.
-
getASSOCIATED_RX_ADMINReps
Returns the number of existing repetitions of ASSOCIATED_RX_ADMIN -
getASSOCIATED_RX_ADMINAll
Returns a non-modifiable List containing all current existing repetitions of ASSOCIATED_RX_ADMIN.
Note that unlike
getASSOCIATED_RX_ADMIN(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertASSOCIATED_RX_ADMIN
public void insertASSOCIATED_RX_ADMIN(PEX_P08_ASSOCIATED_RX_ADMIN structure, int rep) throws HL7Exception Inserts a specific repetition of ASSOCIATED_RX_ADMIN (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertASSOCIATED_RX_ADMIN
Inserts a specific repetition of ASSOCIATED_RX_ADMIN (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeASSOCIATED_RX_ADMIN
Removes a specific repetition of ASSOCIATED_RX_ADMIN (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:
-