Package ca.uhn.hl7v2.model.v23.segment
Class MRG
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v23.segment.MRG
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 MRG message segment (Merge patient information). This segment has the following fields:
- MRG-1: Prior Patient ID - Internal (CX) repeating
- MRG-2: Prior Alternate Patient ID (CX) optional repeating
- MRG-3: Prior Patient Account Number (CX) optional
- MRG-4: Prior Patient ID - External (CX) optional
- MRG-5: Prior Visit Number (CX) optional
- MRG-6: Prior Alternate Visit ID (CX) optional
- MRG-7: Prior Patient Name (XPN) optional
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) CX[]Returns all repetitions of Prior Patient ID - Internal (MRG-1).getMrg1_PriorPatientIDInternal(int rep) Returns a specific repetition of MRG-1: "Prior Patient ID - Internal" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Patient ID - Internal (MRG-1).CX[]Returns all repetitions of Prior Alternate Patient ID (MRG-2).getMrg2_PriorAlternatePatientID(int rep) Returns a specific repetition of MRG-2: "Prior Alternate Patient ID" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Alternate Patient ID (MRG-2).Returns MRG-3: "Prior Patient Account Number" - creates it if necessaryReturns MRG-4: "Prior Patient ID - External" - creates it if necessaryReturns MRG-5: "Prior Visit Number" - creates it if necessaryReturns MRG-6: "Prior Alternate Visit ID" - creates it if necessaryReturns MRG-7: "Prior Patient Name" - creates it if necessaryCX[]Returns all repetitions of Prior Alternate Patient ID (MRG-2).getPriorAlternatePatientID(int rep) Returns a specific repetition of MRG-2: "Prior Alternate Patient ID" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Alternate Patient ID (MRG-2).Returns MRG-6: "Prior Alternate Visit ID" - creates it if necessaryReturns MRG-3: "Prior Patient Account Number" - creates it if necessaryReturns MRG-4: "Prior Patient ID - External" - creates it if necessaryCX[]Returns all repetitions of Prior Patient ID - Internal (MRG-1).getPriorPatientIDInternal(int rep) Returns a specific repetition of MRG-1: "Prior Patient ID - Internal" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Patient ID - Internal (MRG-1).Returns MRG-7: "Prior Patient Name" - creates it if necessaryReturns MRG-5: "Prior Visit Number" - creates it if necessaryinsertMrg1_PriorPatientIDInternal(int rep) Inserts a repetition of MRG-1: "Prior Patient ID - Internal" at a specific indexinsertMrg2_PriorAlternatePatientID(int rep) Inserts a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexinsertPriorAlternatePatientID(int rep) Inserts a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexinsertPriorPatientIDInternal(int rep) Inserts a repetition of MRG-1: "Prior Patient ID - Internal" at a specific indexremoveMrg1_PriorPatientIDInternal(int rep) Removes a repetition of MRG-1: "Prior Patient ID - Internal" at a specific indexremoveMrg2_PriorAlternatePatientID(int rep) Removes a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexremovePriorAlternatePatientID(int rep) Removes a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexremovePriorPatientIDInternal(int rep) Removes a repetition of MRG-1: "Prior Patient ID - Internal" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods 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
-
MRG
Creates a new MRG segment
-
-
Method Details
-
getPriorPatientIDInternal
Returns all repetitions of Prior Patient ID - Internal (MRG-1). -
getMrg1_PriorPatientIDInternal
Returns all repetitions of Prior Patient ID - Internal (MRG-1). -
getPriorPatientIDInternalReps
Returns a count of the current number of repetitions of Prior Patient ID - Internal (MRG-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPriorPatientIDInternal
Returns a specific repetition of MRG-1: "Prior Patient ID - Internal" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg1_PriorPatientIDInternal
Returns a specific repetition of MRG-1: "Prior Patient ID - Internal" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg1_PriorPatientIDInternalReps
Returns a count of the current number of repetitions of Prior Patient ID - Internal (MRG-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPriorPatientIDInternal
Inserts a repetition of MRG-1: "Prior Patient ID - Internal" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertMrg1_PriorPatientIDInternal
Inserts a repetition of MRG-1: "Prior Patient ID - Internal" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePriorPatientIDInternal
Removes a repetition of MRG-1: "Prior Patient ID - Internal" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeMrg1_PriorPatientIDInternal
Removes a repetition of MRG-1: "Prior Patient ID - Internal" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPriorAlternatePatientID
Returns all repetitions of Prior Alternate Patient ID (MRG-2). -
getMrg2_PriorAlternatePatientID
Returns all repetitions of Prior Alternate Patient ID (MRG-2). -
getPriorAlternatePatientIDReps
Returns a count of the current number of repetitions of Prior Alternate Patient ID (MRG-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPriorAlternatePatientID
Returns a specific repetition of MRG-2: "Prior Alternate Patient ID" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg2_PriorAlternatePatientID
Returns a specific repetition of MRG-2: "Prior Alternate Patient ID" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg2_PriorAlternatePatientIDReps
Returns a count of the current number of repetitions of Prior Alternate Patient ID (MRG-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPriorAlternatePatientID
Inserts a repetition of MRG-2: "Prior Alternate Patient ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertMrg2_PriorAlternatePatientID
Inserts a repetition of MRG-2: "Prior Alternate Patient ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removePriorAlternatePatientID
Removes a repetition of MRG-2: "Prior Alternate Patient ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeMrg2_PriorAlternatePatientID
Removes a repetition of MRG-2: "Prior Alternate Patient ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPriorPatientAccountNumber
Returns MRG-3: "Prior Patient Account Number" - creates it if necessary -
getMrg3_PriorPatientAccountNumber
Returns MRG-3: "Prior Patient Account Number" - creates it if necessary -
getPriorPatientIDExternal
Returns MRG-4: "Prior Patient ID - External" - creates it if necessary -
getMrg4_PriorPatientIDExternal
Returns MRG-4: "Prior Patient ID - External" - creates it if necessary -
getPriorVisitNumber
Returns MRG-5: "Prior Visit Number" - creates it if necessary -
getMrg5_PriorVisitNumber
Returns MRG-5: "Prior Visit Number" - creates it if necessary -
getPriorAlternateVisitID
Returns MRG-6: "Prior Alternate Visit ID" - creates it if necessary -
getMrg6_PriorAlternateVisitID
Returns MRG-6: "Prior Alternate Visit ID" - creates it if necessary -
getPriorPatientName
Returns MRG-7: "Prior Patient Name" - creates it if necessary -
getMrg7_PriorPatientName
Returns MRG-7: "Prior Patient Name" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-