Class MFN_M05_MF_LOCATION
- All Implemented Interfaces:
Group,Structure,Visitable,Serializable
Represents a MFN_M05_MF_LOCATION 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: MFE (Master File Entry)
- 2: LOC (Location Identification)
- 3: LCH (Location Characteristic) optional repeating
- 4: LRL (Location Relationship) optional repeating
- 5: MFN_M05_MF_LOC_DEPT (a Group object) repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
ConstructorsConstructorDescriptionMFN_M05_MF_LOCATION(Group parent, ModelClassFactory factory) Creates a new MFN_M05_MF_LOCATION group -
Method Summary
Modifier and TypeMethodDescriptiongetLCH()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 LCHgetLOC()Returns LOC (Location Identification) - creates it if necessarygetLRL()Returns the first repetition of LRL (Location Relationship) - creates it if necessarygetLRL(int rep) Returns a specific repetition of LRL (Location Relationship) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of LRL.intReturns the number of existing repetitions of LRLReturns the first repetition of MF_LOC_DEPT (a Group object) - creates it if necessarygetMF_LOC_DEPT(int rep) Returns a specific repetition of MF_LOC_DEPT (a Group object) - creates it if necessaryReturns a non-modifiable List containing all current existing repetitions of MF_LOC_DEPT.intReturns the number of existing repetitions of MF_LOC_DEPTgetMFE()Returns MFE (Master File Entry) - creates it if necessaryReturns "2.4"insertLCH(int rep) Inserts a specific repetition of LCH (Location Characteristic)voidInserts a specific repetition of LCH (Location Characteristic)insertLRL(int rep) Inserts a specific repetition of LRL (Location Relationship)voidInserts a specific repetition of LRL (Location Relationship)insertMF_LOC_DEPT(int rep) Inserts a specific repetition of MF_LOC_DEPT (a Group object)voidinsertMF_LOC_DEPT(MFN_M05_MF_LOC_DEPT structure, int rep) Inserts a specific repetition of MF_LOC_DEPT (a Group object)removeLCH(int rep) Removes a specific repetition of LCH (Location Characteristic)removeLRL(int rep) Removes a specific repetition of LRL (Location Relationship)removeMF_LOC_DEPT(int rep) Removes a specific repetition of MF_LOC_DEPT (a Group object)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_LOCATION
Creates a new MFN_M05_MF_LOCATION group
-
-
Method Details
-
getVersion
Returns "2.4" -
getMFE
Returns MFE (Master File Entry) - creates it if necessary -
getLOC
Returns LOC (Location Identification) - 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:
-
getLRL
Returns the first repetition of LRL (Location Relationship) - creates it if necessary -
getLRL
Returns a specific repetition of LRL (Location Relationship) - 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.
-
getLRLReps
Returns the number of existing repetitions of LRL -
getLRLAll
Returns a non-modifiable List containing all current existing repetitions of LRL.
Note that unlike
getLRL(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertLRL
Inserts a specific repetition of LRL (Location Relationship)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertLRL
Inserts a specific repetition of LRL (Location Relationship)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeLRL
Removes a specific repetition of LRL (Location Relationship)- Throws:
HL7Exception- See Also:
-
getMF_LOC_DEPT
Returns the first repetition of MF_LOC_DEPT (a Group object) - creates it if necessary -
getMF_LOC_DEPT
Returns a specific repetition of MF_LOC_DEPT (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.
-
getMF_LOC_DEPTReps
Returns the number of existing repetitions of MF_LOC_DEPT -
getMF_LOC_DEPTAll
Returns a non-modifiable List containing all current existing repetitions of MF_LOC_DEPT.
Note that unlike
getMF_LOC_DEPT(), this method will not create any reps if none are already present, so an empty list may be returned.- Throws:
HL7Exception
-
insertMF_LOC_DEPT
Inserts a specific repetition of MF_LOC_DEPT (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
insertMF_LOC_DEPT
Inserts a specific repetition of MF_LOC_DEPT (a Group object)- Throws:
HL7Exception- See Also:
-
AbstractGroup#insertRepetition(Structure, int)
-
removeMF_LOC_DEPT
Removes a specific repetition of MF_LOC_DEPT (a Group object)- Throws:
HL7Exception- See Also:
-