Class RRI_I12
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
Represents a RRI_I12 message structure (see chapter 11.5.1). This structure contains the following elements:
- 1: MSH (Message Header)
- 2: SFT (Software Segment) optional repeating
- 3: MSA (Message Acknowledgment) optional
- 4: RF1 (Referral Information) optional
- 5: RRI_I12_AUTHORIZATION_CONTACT (a Group object) optional
- 6: RRI_I12_PROVIDER_CONTACT (a Group object) repeating
- 7: PID (Patient Identification)
- 8: ACC (Accident) optional
- 9: DG1 (Diagnosis) optional repeating
- 10: DRG (Diagnosis Related Group) optional repeating
- 11: AL1 (Patient Allergy Information) optional repeating
- 12: RRI_I12_PROCEDURE (a Group object) optional repeating
- 13: RRI_I12_OBSERVATION (a Group object) optional repeating
- 14: RRI_I12_PATIENT_VISIT (a Group object) optional
- 15: NTE (Notes and Comments) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionRRI_I12()Creates a new RRI_I12 message with DefaultModelClassFactory.RRI_I12(ModelClassFactory factory) Creates a new RRI_I12 message with custom ModelClassFactory. -
Method Summary
Modifier and TypeMethodDescriptiongetACC()Returns ACC (Accident) - creates it if necessarygetAL1()Returns the first repetition of AL1 (Patient Allergy Information) - creates it if necessarygetAL1(int rep) Returns a specific repetition of AL1 (Patient Allergy Information) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of AL1.intReturns the number of existing repetitions of AL1Returns AUTHORIZATION_CONTACT (a Group object) - creates it if necessarygetDG1()Returns the first repetition of DG1 (Diagnosis) - creates it if necessarygetDG1(int rep) Returns a specific repetition of DG1 (Diagnosis) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of DG1.intReturns the number of existing repetitions of DG1getDRG()Returns the first repetition of DRG (Diagnosis Related Group) - creates it if necessarygetDRG(int rep) Returns a specific repetition of DRG (Diagnosis Related Group) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of DRG.intReturns the number of existing repetitions of DRGgetMSA()Returns MSA (Message Acknowledgment) - creates it if necessarygetMSH()Returns MSH (Message Header) - creates it if necessarygetNTE()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 NTEReturns the first repetition of OBSERVATION (a Group object) - creates it if necessarygetOBSERVATION(int rep) Returns a specific repetition of OBSERVATION (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of OBSERVATION.intReturns the number of existing repetitions of OBSERVATIONReturns PATIENT_VISIT (a Group object) - creates it if necessarygetPID()Returns PID (Patient Identification) - creates it if necessaryReturns the first repetition of PROCEDURE (a Group object) - creates it if necessarygetPROCEDURE(int rep) Returns a specific repetition of PROCEDURE (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PROCEDURE.intReturns the number of existing repetitions of PROCEDUREReturns the first repetition of PROVIDER_CONTACT (a Group object) - creates it if necessarygetPROVIDER_CONTACT(int rep) Returns a specific repetition of PROVIDER_CONTACT (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of PROVIDER_CONTACT.intReturns the number of existing repetitions of PROVIDER_CONTACTgetRF1()Returns RF1 (Referral Information) - creates it if necessarygetSFT()Returns the first repetition of SFT (Software Segment) - creates it if necessarygetSFT(int rep) Returns a specific repetition of SFT (Software Segment) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of SFT.intReturns the number of existing repetitions of SFTReturns "2.5.1"insertAL1(int rep) Inserts a specific repetition of AL1 (Patient Allergy Information)voidInserts a specific repetition of AL1 (Patient Allergy Information)insertDG1(int rep) Inserts a specific repetition of DG1 (Diagnosis)voidInserts a specific repetition of DG1 (Diagnosis)insertDRG(int rep) Inserts a specific repetition of DRG (Diagnosis Related Group)voidInserts a specific repetition of DRG (Diagnosis Related Group)insertNTE(int rep) Inserts a specific repetition of NTE (Notes and Comments)voidInserts a specific repetition of NTE (Notes and Comments)insertOBSERVATION(int rep) Inserts a specific repetition of OBSERVATION (a Group object)voidinsertOBSERVATION(RRI_I12_OBSERVATION structure, int rep) Inserts a specific repetition of OBSERVATION (a Group object)insertPROCEDURE(int rep) Inserts a specific repetition of PROCEDURE (a Group object)voidinsertPROCEDURE(RRI_I12_PROCEDURE structure, int rep) Inserts a specific repetition of PROCEDURE (a Group object)insertPROVIDER_CONTACT(int rep) Inserts a specific repetition of PROVIDER_CONTACT (a Group object)voidinsertPROVIDER_CONTACT(RRI_I12_PROVIDER_CONTACT structure, int rep) Inserts a specific repetition of PROVIDER_CONTACT (a Group object)insertSFT(int rep) Inserts a specific repetition of SFT (Software Segment)voidInserts a specific repetition of SFT (Software Segment)removeAL1(int rep) Removes a specific repetition of AL1 (Patient Allergy Information)removeDG1(int rep) Removes a specific repetition of DG1 (Diagnosis)removeDRG(int rep) Removes a specific repetition of DRG (Diagnosis Related Group)removeNTE(int rep) Removes a specific repetition of NTE (Notes and Comments)removeOBSERVATION(int rep) Removes a specific repetition of OBSERVATION (a Group object)removePROCEDURE(int rep) Removes a specific repetition of PROCEDURE (a Group object)removePROVIDER_CONTACT(int rep) Removes a specific repetition of PROVIDER_CONTACT (a Group object)removeSFT(int rep) Removes a specific repetition of SFT (Software Segment)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
-
RRI_I12
public RRI_I12()Creates a new RRI_I12 message with DefaultModelClassFactory. -
RRI_I12
Creates a new RRI_I12 message with custom ModelClassFactory.
-
-
Method Details
-
getVersion
Returns "2.5.1"- Specified by:
getVersionin interfaceMessage- Overrides:
getVersionin classAbstractMessage
-
getMSH
Returns MSH (Message Header) - creates it if necessary
-
getSFT
Returns the first repetition of SFT (Software Segment) - creates it if necessary
-
getSFT
Returns a specific repetition of SFT (Software 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.
-
getSFTReps
Returns the number of existing repetitions of SFT
-
getSFTAll
Returns a non-modifiable List containing all current existing repetitions of SFT.
Note that unlike
getSFT(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertSFT
Inserts a specific repetition of SFT (Software Segment)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertSFT
Inserts a specific repetition of SFT (Software Segment)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeSFT
Removes a specific repetition of SFT (Software Segment)
- Throws:
HL7Exception- See Also:
-
getMSA
Returns MSA (Message Acknowledgment) - creates it if necessary
-
getRF1
Returns RF1 (Referral Information) - creates it if necessary
-
getAUTHORIZATION_CONTACT
Returns AUTHORIZATION_CONTACT (a Group object) - creates it if necessary
-
getPROVIDER_CONTACT
Returns the first repetition of PROVIDER_CONTACT (a Group object) - creates it if necessary
-
getPROVIDER_CONTACT
Returns a specific repetition of PROVIDER_CONTACT (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.
-
getPROVIDER_CONTACTReps
Returns the number of existing repetitions of PROVIDER_CONTACT
-
getPROVIDER_CONTACTAll
Returns a non-modifiable List containing all current existing repetitions of PROVIDER_CONTACT.
Note that unlike
getPROVIDER_CONTACT(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPROVIDER_CONTACT
Inserts a specific repetition of PROVIDER_CONTACT (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPROVIDER_CONTACT
Inserts a specific repetition of PROVIDER_CONTACT (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePROVIDER_CONTACT
Removes a specific repetition of PROVIDER_CONTACT (a Group object)
- Throws:
HL7Exception- See Also:
-
getPID
Returns PID (Patient Identification) - creates it if necessary
-
getACC
Returns ACC (Accident) - creates it if necessary
-
getDG1
Returns the first repetition of DG1 (Diagnosis) - creates it if necessary
-
getDG1
Returns a specific repetition of DG1 (Diagnosis) - 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.
-
getDG1Reps
Returns the number of existing repetitions of DG1
-
getDG1All
Returns a non-modifiable List containing all current existing repetitions of DG1.
Note that unlike
getDG1(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertDG1
Inserts a specific repetition of DG1 (Diagnosis)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertDG1
Inserts a specific repetition of DG1 (Diagnosis)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeDG1
Removes a specific repetition of DG1 (Diagnosis)
- Throws:
HL7Exception- See Also:
-
getDRG
Returns the first repetition of DRG (Diagnosis Related Group) - creates it if necessary
-
getDRG
Returns a specific repetition of DRG (Diagnosis Related Group) - 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.
-
getDRGReps
Returns the number of existing repetitions of DRG
-
getDRGAll
Returns a non-modifiable List containing all current existing repetitions of DRG.
Note that unlike
getDRG(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertDRG
Inserts a specific repetition of DRG (Diagnosis Related Group)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertDRG
Inserts a specific repetition of DRG (Diagnosis Related Group)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeDRG
Removes a specific repetition of DRG (Diagnosis Related Group)
- Throws:
HL7Exception- See Also:
-
getAL1
Returns the first repetition of AL1 (Patient Allergy Information) - creates it if necessary
-
getAL1
Returns a specific repetition of AL1 (Patient Allergy Information) - 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.
-
getAL1Reps
Returns the number of existing repetitions of AL1
-
getAL1All
Returns a non-modifiable List containing all current existing repetitions of AL1.
Note that unlike
getAL1(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertAL1
Inserts a specific repetition of AL1 (Patient Allergy Information)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertAL1
Inserts a specific repetition of AL1 (Patient Allergy Information)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeAL1
Removes a specific repetition of AL1 (Patient Allergy Information)
- Throws:
HL7Exception- See Also:
-
getPROCEDURE
Returns the first repetition of PROCEDURE (a Group object) - creates it if necessary
-
getPROCEDURE
Returns a specific repetition of PROCEDURE (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.
-
getPROCEDUREReps
Returns the number of existing repetitions of PROCEDURE
-
getPROCEDUREAll
Returns a non-modifiable List containing all current existing repetitions of PROCEDURE.
Note that unlike
getPROCEDURE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertPROCEDURE
Inserts a specific repetition of PROCEDURE (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertPROCEDURE
Inserts a specific repetition of PROCEDURE (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removePROCEDURE
Removes a specific repetition of PROCEDURE (a Group object)
- Throws:
HL7Exception- See Also:
-
getOBSERVATION
Returns the first repetition of OBSERVATION (a Group object) - creates it if necessary
-
getOBSERVATION
Returns a specific repetition of OBSERVATION (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.
-
getOBSERVATIONReps
Returns the number of existing repetitions of OBSERVATION
-
getOBSERVATIONAll
Returns a non-modifiable List containing all current existing repetitions of OBSERVATION.
Note that unlike
getOBSERVATION(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertOBSERVATION
Inserts a specific repetition of OBSERVATION (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertOBSERVATION
Inserts a specific repetition of OBSERVATION (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeOBSERVATION
Removes a specific repetition of OBSERVATION (a Group object)
- Throws:
HL7Exception- See Also:
-
getPATIENT_VISIT
Returns PATIENT_VISIT (a Group object) - creates it if necessary
-
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:
-