Class RQP_I04
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
Represents a RQP_I04 message structure (see chapter 11). This structure contains the following elements:
- 1: MSH (Message Header)
- 2: RQP_I04_PROVIDER (a Group object) repeating
- 3: PID (Patient identification)
- 4: NK1 (Next of kin / associated parties) optional repeating
- 5: GT1 (Guarantor) optional repeating
- 6: NTE (Notes and Comments) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionRQP_I04()Creates a new RQP_I04 message with DefaultModelClassFactory.RQP_I04(ModelClassFactory factory) Creates a new RQP_I04 message with custom ModelClassFactory. -
Method Summary
Modifier and TypeMethodDescriptiongetGT1()Returns the first repetition of GT1 (Guarantor) - creates it if necessarygetGT1(int rep) Returns a specific repetition of GT1 (Guarantor) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of GT1.intReturns the number of existing repetitions of GT1getMSH()Returns MSH (Message Header) - creates it if necessarygetNK1()Returns the first repetition of NK1 (Next of kin / associated parties) - creates it if necessarygetNK1(int rep) Returns a specific repetition of NK1 (Next of kin / associated parties) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of NK1.intReturns the number of existing repetitions of NK1getNTE()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 necessaryReturns a non-modifiable List containing all current existing repetitions of NTE.intReturns the number of existing repetitions of NTEgetPID()Returns PID (Patient identification) - creates it if necessaryReturns the first repetition of PROVIDER (a Group object) - creates it if necessarygetPROVIDER(int rep) Returns a specific repetition of PROVIDER (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PROVIDER.intReturns the number of existing repetitions of PROVIDERReturns "2.4"insertGT1(int rep) Inserts a specific repetition of GT1 (Guarantor)voidInserts a specific repetition of GT1 (Guarantor)insertNK1(int rep) Inserts a specific repetition of NK1 (Next of kin / associated parties)voidInserts a specific repetition of NK1 (Next of kin / associated parties)insertNTE(int rep) Inserts a specific repetition of NTE (Notes and Comments)voidInserts a specific repetition of NTE (Notes and Comments)insertPROVIDER(int rep) Inserts a specific repetition of PROVIDER (a Group object)voidinsertPROVIDER(RQP_I04_PROVIDER structure, int rep) Inserts a specific repetition of PROVIDER (a Group object)removeGT1(int rep) Removes a specific repetition of GT1 (Guarantor)removeNK1(int rep) Removes a specific repetition of NK1 (Next of kin / associated parties)removeNTE(int rep) Removes a specific repetition of NTE (Notes and Comments)removePROVIDER(int rep) Removes a specific repetition of PROVIDER (a Group object)Methods inherited from class ca.uhn.hl7v2.model.AbstractMessage
accept, copy, encode, fillResponseHeader, generateACK, generateACK, generateACK, getEncodingCharactersValue, getFieldSeparatorValue, getMessage, getParent, getParser, getValidationContext, initQuickstart, parse, printStructure, printStructure, setParser, toStringMethods inherited from class ca.uhn.hl7v2.model.AbstractGroup
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Group
addNonstandardSegment, addNonstandardSegment, get, get, getAll, getClass, getNames, isChoiceElement, isGroup, isRepeating, isRequiredMethods inherited from interface ca.uhn.hl7v2.model.Visitable
isEmpty, provideLocation
-
Constructor Details
-
RQP_I04
public RQP_I04()Creates a new RQP_I04 message with DefaultModelClassFactory. -
RQP_I04
Creates a new RQP_I04 message with custom ModelClassFactory.
-
-
Method Details
-
getVersion
Returns "2.4"- Specified by:
getVersionin interfaceMessage- Overrides:
getVersionin classAbstractMessage
-
getMSH
Returns MSH (Message Header) - creates it if necessary
-
getPROVIDER
Returns the first repetition of PROVIDER (a Group object) - creates it if necessary
-
getPROVIDER
Returns a specific repetition of PROVIDER (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.
-
getPROVIDERReps
Returns the number of existing repetitions of PROVIDER
-
getPROVIDERAll
Returns a non-modifiable List containing all current existing repetitions of PROVIDER.
Note that unlike
getPROVIDER(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPROVIDER
Inserts a specific repetition of PROVIDER (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPROVIDER
Inserts a specific repetition of PROVIDER (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePROVIDER
Removes a specific repetition of PROVIDER (a Group object)
- Throws:
HL7Exception- See Also:
-
getPID
Returns PID (Patient identification) - creates it if necessary
-
getNK1
Returns the first repetition of NK1 (Next of kin / associated parties) - creates it if necessary
-
getNK1
Returns a specific repetition of NK1 (Next of kin / associated parties) - 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.
-
getNK1Reps
Returns the number of existing repetitions of NK1
-
getNK1All
Returns a non-modifiable List containing all current existing repetitions of NK1.
Note that unlike
getNK1(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertNK1
Inserts a specific repetition of NK1 (Next of kin / associated parties)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertNK1
Inserts a specific repetition of NK1 (Next of kin / associated parties)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeNK1
Removes a specific repetition of NK1 (Next of kin / associated parties)
- Throws:
HL7Exception- See Also:
-
getGT1
Returns the first repetition of GT1 (Guarantor) - creates it if necessary
-
getGT1
Returns a specific repetition of GT1 (Guarantor) - 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.
-
getGT1Reps
Returns the number of existing repetitions of GT1
-
getGT1All
Returns a non-modifiable List containing all current existing repetitions of GT1.
Note that unlike
getGT1(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertGT1
Inserts a specific repetition of GT1 (Guarantor)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertGT1
Inserts a specific repetition of GT1 (Guarantor)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeGT1
Removes a specific repetition of GT1 (Guarantor)
- Throws:
HL7Exception- See Also:
-
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:
-