Class RQI_I01
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
Represents a RQI_I01 message structure (see chapter ?). This structure contains the following elements:
- 1: MSH (Message header segment)
- 2: RQI_I01_PRDCTD (a Group object) repeating
- 3: PID (Patient Identification)
- 4: NK1 (Next of kin) optional repeating
- 5: RQI_I01_GUARANTOR_INSURANCE (a Group object) optional
- 6: NTE (Notes and comments segment) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionRQI_I01()Creates a new RQI_I01 message with DefaultModelClassFactory.RQI_I01(ModelClassFactory factory) Creates a new RQI_I01 message with custom ModelClassFactory. -
Method Summary
Modifier and TypeMethodDescriptionReturns GUARANTOR_INSURANCE (a Group object) - creates it if necessarygetMSH()Returns MSH (Message header segment) - creates it if necessarygetNK1()Returns the first repetition of NK1 (Next of kin) - creates it if necessarygetNK1(int rep) Returns a specific repetition of NK1 (Next of kin) - 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 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 NTEgetPID()Returns PID (Patient Identification) - creates it if necessaryReturns the first repetition of PRDCTD (a Group object) - creates it if necessarygetPRDCTD(int rep) Returns a specific repetition of PRDCTD (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PRDCTD.intReturns the number of existing repetitions of PRDCTDReturns "2.3"insertNK1(int rep) Inserts a specific repetition of NK1 (Next of kin)voidInserts a specific repetition of NK1 (Next of kin)insertNTE(int rep) Inserts a specific repetition of NTE (Notes and comments segment)voidInserts a specific repetition of NTE (Notes and comments segment)insertPRDCTD(int rep) Inserts a specific repetition of PRDCTD (a Group object)voidinsertPRDCTD(RQI_I01_PRDCTD structure, int rep) Inserts a specific repetition of PRDCTD (a Group object)removeNK1(int rep) Removes a specific repetition of NK1 (Next of kin)removeNTE(int rep) Removes a specific repetition of NTE (Notes and comments segment)removePRDCTD(int rep) Removes a specific repetition of PRDCTD (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
-
RQI_I01
public RQI_I01()Creates a new RQI_I01 message with DefaultModelClassFactory. -
RQI_I01
Creates a new RQI_I01 message with custom ModelClassFactory.
-
-
Method Details
-
getVersion
Returns "2.3"- Specified by:
getVersionin interfaceMessage- Overrides:
getVersionin classAbstractMessage
-
getMSH
Returns MSH (Message header segment) - creates it if necessary
-
getPRDCTD
Returns the first repetition of PRDCTD (a Group object) - creates it if necessary
-
getPRDCTD
Returns a specific repetition of PRDCTD (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.
-
getPRDCTDReps
Returns the number of existing repetitions of PRDCTD
-
getPRDCTDAll
Returns a non-modifiable List containing all current existing repetitions of PRDCTD.
Note that unlike
getPRDCTD(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPRDCTD
Inserts a specific repetition of PRDCTD (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPRDCTD
Inserts a specific repetition of PRDCTD (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePRDCTD
Removes a specific repetition of PRDCTD (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) - creates it if necessary
-
getNK1
Returns a specific repetition of NK1 (Next of kin) - 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)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertNK1
Inserts a specific repetition of NK1 (Next of kin)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeNK1
Removes a specific repetition of NK1 (Next of kin)
- Throws:
HL7Exception- See Also:
-
getGUARANTOR_INSURANCE
Returns GUARANTOR_INSURANCE (a Group object) - creates it if necessary
-
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:
-