Package ca.uhn.hl7v2.model.v23.group
Class MFN_M05_MF_LOC_DEPT
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.v23.group.MFN_M05_MF_LOC_DEPT
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a MFN_M05_MF_LOC_DEPT group structure (a Group object). A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. This Group contains the following elements:
- 1: LDP (Location Department)
- 2: LCH (Location Characteristic) optional repeating
- 3: LCC (Location Charge Code) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionMFN_M05_MF_LOC_DEPT(Group parent, ModelClassFactory factory) Creates a new MFN_M05_MF_LOC_DEPT group -
Method Summary
Modifier and TypeMethodDescriptiongetLCC()Returns the first repetition of LCC (Location Charge Code) - creates it if necessarygetLCC(int rep) Returns a specific repetition of LCC (Location Charge Code) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of LCC.intReturns the number of existing repetitions of LCCgetLCH()Returns the first repetition of LCH (Location Characteristic) - creates it if necessarygetLCH(int rep) Returns a specific repetition of LCH (Location Characteristic) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of LCH.intReturns the number of existing repetitions of LCHgetLDP()Returns LDP (Location Department) - creates it if necessaryReturns "2.3"insertLCC(int rep) Inserts a specific repetition of LCC (Location Charge Code)voidInserts a specific repetition of LCC (Location Charge Code)insertLCH(int rep) Inserts a specific repetition of LCH (Location Characteristic)voidInserts a specific repetition of LCH (Location Characteristic)removeLCC(int rep) Removes a specific repetition of LCC (Location Charge Code)removeLCH(int rep) Removes a specific repetition of LCH (Location Characteristic)Methods inherited from class ca.uhn.hl7v2.model.AbstractGroup
accept, 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 ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
MFN_M05_MF_LOC_DEPT
Creates a new MFN_M05_MF_LOC_DEPT group
-
-
Method Details
-
getVersion
Returns "2.3" -
getLDP
Returns LDP (Location Department) - creates it if necessary -
getLCH
Returns the first repetition of LCH (Location Characteristic) - creates it if necessary -
getLCH
Returns a specific repetition of LCH (Location Characteristic) - 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.
-
getLCHReps
Returns the number of existing repetitions of LCH -
getLCHAll
Returns a non-modifiable List containing all current existing repetitions of LCH.
Note that unlike
getLCH(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertLCH
Inserts a specific repetition of LCH (Location Characteristic)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertLCH
Inserts a specific repetition of LCH (Location Characteristic)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeLCH
Removes a specific repetition of LCH (Location Characteristic)- Throws:
HL7Exception- See Also:
-
getLCC
Returns the first repetition of LCC (Location Charge Code) - creates it if necessary -
getLCC
Returns a specific repetition of LCC (Location Charge Code) - 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.
-
getLCCReps
Returns the number of existing repetitions of LCC -
getLCCAll
Returns a non-modifiable List containing all current existing repetitions of LCC.
Note that unlike
getLCC(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertLCC
Inserts a specific repetition of LCC (Location Charge Code)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertLCC
Inserts a specific repetition of LCC (Location Charge Code)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeLCC
Removes a specific repetition of LCC (Location Charge Code)- Throws:
HL7Exception- See Also:
-