Class VXR_V03
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
Represents a VXR_V03 message structure (see chapter ?). This structure contains the following elements:
- 1: MSH (Message header segment)
- 2: MSA (Message acknowledgement segment)
- 3: QRD (Query definition segment)
- 4: QRF (Query filter segment) optional
- 5: PID (Patient Identification)
- 6: PD1 (Patient Demographic) optional
- 7: NK1 (Next of kin) optional repeating
- 8: VXR_V03_PATIENT_VISIT (a Group object) optional
- 9: VXR_V03_INSURANCE (a Group object) optional repeating
- 10: VXR_V03_ORDER (a Group object) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionVXR_V03()Creates a new VXR_V03 message with DefaultModelClassFactory.VXR_V03(ModelClassFactory factory) Creates a new VXR_V03 message with custom ModelClassFactory. -
Method Summary
Modifier and TypeMethodDescriptionReturns the first repetition of INSURANCE (a Group object) - creates it if necessarygetINSURANCE(int rep) Returns a specific repetition of INSURANCE (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of INSURANCE.intReturns the number of existing repetitions of INSURANCEgetMSA()Returns MSA (Message acknowledgement segment) - 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 NK1getORDER()Returns the first repetition of ORDER (a Group object) - creates it if necessarygetORDER(int rep) Returns a specific repetition of ORDER (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of ORDER.intReturns the number of existing repetitions of ORDERReturns PATIENT_VISIT (a Group object) - creates it if necessarygetPD1()Returns PD1 (Patient Demographic) - creates it if necessarygetPID()Returns PID (Patient Identification) - creates it if necessarygetQRD()Returns QRD (Query definition segment) - creates it if necessarygetQRF()Returns QRF (Query filter segment) - creates it if necessaryReturns "2.3"insertINSURANCE(int rep) Inserts a specific repetition of INSURANCE (a Group object)voidinsertINSURANCE(VXR_V03_INSURANCE structure, int rep) Inserts a specific repetition of INSURANCE (a Group object)insertNK1(int rep) Inserts a specific repetition of NK1 (Next of kin)voidInserts a specific repetition of NK1 (Next of kin)insertORDER(int rep) Inserts a specific repetition of ORDER (a Group object)voidinsertORDER(VXR_V03_ORDER structure, int rep) Inserts a specific repetition of ORDER (a Group object)removeINSURANCE(int rep) Removes a specific repetition of INSURANCE (a Group object)removeNK1(int rep) Removes a specific repetition of NK1 (Next of kin)removeORDER(int rep) Removes a specific repetition of ORDER (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
-
VXR_V03
public VXR_V03()Creates a new VXR_V03 message with DefaultModelClassFactory. -
VXR_V03
Creates a new VXR_V03 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
-
getMSA
Returns MSA (Message acknowledgement 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
-
getPID
Returns PID (Patient Identification) - creates it if necessary
-
getPD1
Returns PD1 (Patient Demographic) - 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:
-
getPATIENT_VISIT
Returns PATIENT_VISIT (a Group object) - creates it if necessary
-
getINSURANCE
Returns the first repetition of INSURANCE (a Group object) - creates it if necessary
-
getINSURANCE
Returns a specific repetition of INSURANCE (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.
-
getINSURANCEReps
Returns the number of existing repetitions of INSURANCE
-
getINSURANCEAll
Returns a non-modifiable List containing all current existing repetitions of INSURANCE.
Note that unlike
getINSURANCE(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertINSURANCE
Inserts a specific repetition of INSURANCE (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertINSURANCE
Inserts a specific repetition of INSURANCE (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeINSURANCE
Removes a specific repetition of INSURANCE (a Group object)
- Throws:
HL7Exception- See Also:
-
getORDER
Returns the first repetition of ORDER (a Group object) - creates it if necessary
-
getORDER
Returns a specific repetition of ORDER (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.
-
getORDERReps
Returns the number of existing repetitions of ORDER
-
getORDERAll
Returns a non-modifiable List containing all current existing repetitions of ORDER.
Note that unlike
getORDER(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertORDER
Inserts a specific repetition of ORDER (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertORDER
Inserts a specific repetition of ORDER (a Group object)
- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeORDER
Removes a specific repetition of ORDER (a Group object)
- Throws:
HL7Exception- See Also:
-