Class PEX_P07_ASSOCIATED_PERSON
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a PEX_P07_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 / associated parties)
- 2: PEX_P07_ASSOCIATED_RX_ORDER (a Group object) optional
- 3: PEX_P07_ASSOCIATED_RX_ADMIN (a Group object) optional repeating
- 4: PRB (Problem Details) optional repeating
- 5: OBX (Observation/Result) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionPEX_P07_ASSOCIATED_PERSON(Group parent, ModelClassFactory factory) Creates a new PEX_P07_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 / associated parties) - 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 OBXgetPRB()Returns the first repetition of PRB (Problem Details) - creates it if necessarygetPRB(int rep) Returns a specific repetition of PRB (Problem Details) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PRB.intReturns the number of existing repetitions of PRBReturns "2.4"insertASSOCIATED_RX_ADMIN(int rep) Inserts a specific repetition of ASSOCIATED_RX_ADMIN (a Group object)voidinsertASSOCIATED_RX_ADMIN(PEX_P07_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/Result)voidInserts a specific repetition of OBX (Observation/Result)insertPRB(int rep) Inserts a specific repetition of PRB (Problem Details)voidInserts a specific repetition of PRB (Problem Details)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/Result)removePRB(int rep) Removes a specific repetition of PRB (Problem Details)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_P07_ASSOCIATED_PERSON
Creates a new PEX_P07_ASSOCIATED_PERSON group
-
-
Method Details
-
getVersion
Returns "2.4" -
getNK1
Returns NK1 (Next of kin / associated parties) - 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_P07_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 Details) - creates it if necessary -
getPRB
Returns a specific repetition of PRB (Problem Details) - 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 Details)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPRB
Inserts a specific repetition of PRB (Problem Details)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePRB
Removes a specific repetition of PRB (Problem Details)- 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:
-