Class RQC_I06
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
Represents a RQC_I06 message structure (see chapter ?). This structure contains the following elements:
- 1: MSH (Message header segment)
- 2: QRD (Query definition segment)
- 3: QRF (Query filter segment) optional
- 4: RQC_I06_PROVIDER (a Group object) repeating
- 5: PID (Patient Identification)
- 6: NK1 (Next of kin) optional repeating
- 7: GT1 (Guarantor) optional
- 8: NTE (Notes and comments segment) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionRQC_I06()Creates a new RQC_I06 message with DefaultModelClassFactory.RQC_I06(ModelClassFactory factory) Creates a new RQC_I06 message with custom ModelClassFactory. -
Method Summary
Modifier and TypeMethodDescriptiongetGT1()Returns GT1 (Guarantor) - 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 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 PROVIDERgetQRD()Returns QRD (Query definition segment) - creates it if necessarygetQRF()Returns QRF (Query filter segment) - creates it if necessaryReturns "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)insertPROVIDER(int rep) Inserts a specific repetition of PROVIDER (a Group object)voidinsertPROVIDER(RQC_I06_PROVIDER structure, int rep) Inserts a specific repetition of PROVIDER (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)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
-
RQC_I06
public RQC_I06()Creates a new RQC_I06 message with DefaultModelClassFactory. -
RQC_I06
Creates a new RQC_I06 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
-
getQRD
Returns QRD (Query definition segment) - creates it if necessary
-
getQRF
Returns QRF (Query filter segment) - 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) - 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:
-
getGT1
Returns GT1 (Guarantor) - 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:
-