Class VXU_V04
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
Represents a VXU_V04 message structure (see chapter ?). This structure contains the following elements:
- 1: MSH (Message header segment)
- 2: PID (Patient Identification)
- 3: PD1 (Patient Demographic) optional
- 4: NK1 (Next of kin) optional repeating
- 5: VXU_V04_PATIENT (a Group object) optional
- 6: VXU_V04_INSURANCE (a Group object) optional repeating
- 7: VXU_V04_ORDER (a Group object) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionVXU_V04()Creates a new VXU_V04 message with DefaultModelClassFactory.VXU_V04(ModelClassFactory factory) Creates a new VXU_V04 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 INSURANCEgetMSH()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 (a Group object) - creates it if necessarygetPD1()Returns PD1 (Patient Demographic) - creates it if necessarygetPID()Returns PID (Patient Identification) - creates it if necessaryReturns "2.3"insertINSURANCE(int rep) Inserts a specific repetition of INSURANCE (a Group object)voidinsertINSURANCE(VXU_V04_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(VXU_V04_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
-
VXU_V04
public VXU_V04()Creates a new VXU_V04 message with DefaultModelClassFactory. -
VXU_V04
Creates a new VXU_V04 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
-
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
Returns PATIENT (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:
-