Package ca.uhn.hl7v2.model.v24.segment
Class MRG
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v24.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 Identifier List (CX) repeating
- MRG-2: Prior Alternate Patient ID (CX) optional repeating
- MRG-3: Prior Patient Account Number (CX) optional
- MRG-4: Prior Patient ID (CX) optional
- MRG-5: Prior Visit Number (CX) optional
- MRG-6: Prior Alternate Visit ID (CX) optional
- MRG-7: Prior Patient Name (XPN) optional repeating
- 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 Identifier List (MRG-1).getMrg1_PriorPatientIdentifierList(int rep) Returns a specific repetition of MRG-1: "Prior Patient Identifier List" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Patient Identifier List (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" - creates it if necessaryReturns MRG-5: "Prior Visit Number" - creates it if necessaryReturns MRG-6: "Prior Alternate Visit ID" - creates it if necessaryXPN[]Returns all repetitions of Prior Patient Name (MRG-7).getMrg7_PriorPatientName(int rep) Returns a specific repetition of MRG-7: "Prior Patient Name" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Patient Name (MRG-7).CX[]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" - creates it if necessaryCX[]Returns all repetitions of Prior Patient Identifier List (MRG-1).getPriorPatientIdentifierList(int rep) Returns a specific repetition of MRG-1: "Prior Patient Identifier List" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Patient Identifier List (MRG-1).XPN[]Returns all repetitions of Prior Patient Name (MRG-7).getPriorPatientName(int rep) Returns a specific repetition of MRG-7: "Prior Patient Name" - creates it if necessaryintReturns a count of the current number of repetitions of Prior Patient Name (MRG-7).Returns MRG-5: "Prior Visit Number" - creates it if necessaryInserts a repetition of MRG-1: "Prior Patient Identifier List" at a specific indexinsertMrg2_PriorAlternatePatientID(int rep) Inserts a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexinsertMrg7_PriorPatientName(int rep) Inserts a repetition of MRG-7: "Prior Patient Name" at a specific indexinsertPriorAlternatePatientID(int rep) Inserts a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexinsertPriorPatientIdentifierList(int rep) Inserts a repetition of MRG-1: "Prior Patient Identifier List" at a specific indexinsertPriorPatientName(int rep) Inserts a repetition of MRG-7: "Prior Patient Name" at a specific indexRemoves a repetition of MRG-1: "Prior Patient Identifier List" at a specific indexremoveMrg2_PriorAlternatePatientID(int rep) Removes a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexremoveMrg7_PriorPatientName(int rep) Removes a repetition of MRG-7: "Prior Patient Name" at a specific indexremovePriorAlternatePatientID(int rep) Removes a repetition of MRG-2: "Prior Alternate Patient ID" at a specific indexremovePriorPatientIdentifierList(int rep) Removes a repetition of MRG-1: "Prior Patient Identifier List" at a specific indexremovePriorPatientName(int rep) Removes a repetition of MRG-7: "Prior Patient Name" 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
-
getPriorPatientIdentifierList
Returns all repetitions of Prior Patient Identifier List (MRG-1). -
getMrg1_PriorPatientIdentifierList
Returns all repetitions of Prior Patient Identifier List (MRG-1). -
getPriorPatientIdentifierListReps
Returns a count of the current number of repetitions of Prior Patient Identifier List (MRG-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPriorPatientIdentifierList
Returns a specific repetition of MRG-1: "Prior Patient Identifier List" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg1_PriorPatientIdentifierList
Returns a specific repetition of MRG-1: "Prior Patient Identifier List" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg1_PriorPatientIdentifierListReps
Returns a count of the current number of repetitions of Prior Patient Identifier List (MRG-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPriorPatientIdentifierList
Inserts a repetition of MRG-1: "Prior Patient Identifier List" 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_PriorPatientIdentifierList
Inserts a repetition of MRG-1: "Prior Patient Identifier List" 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)
-
removePriorPatientIdentifierList
Removes a repetition of MRG-1: "Prior Patient Identifier List" 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_PriorPatientIdentifierList
Removes a repetition of MRG-1: "Prior Patient Identifier List" 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 -
getPriorPatientID
Returns MRG-4: "Prior Patient ID" - creates it if necessary -
getMrg4_PriorPatientID
Returns MRG-4: "Prior Patient ID" - 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 all repetitions of Prior Patient Name (MRG-7). -
getMrg7_PriorPatientName
Returns all repetitions of Prior Patient Name (MRG-7). -
getPriorPatientNameReps
Returns a count of the current number of repetitions of Prior Patient Name (MRG-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getPriorPatientName
Returns a specific repetition of MRG-7: "Prior Patient Name" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg7_PriorPatientName
Returns a specific repetition of MRG-7: "Prior Patient Name" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMrg7_PriorPatientNameReps
Returns a count of the current number of repetitions of Prior Patient Name (MRG-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertPriorPatientName
Inserts a repetition of MRG-7: "Prior Patient Name" 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)
-
insertMrg7_PriorPatientName
Inserts a repetition of MRG-7: "Prior Patient Name" 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)
-
removePriorPatientName
Removes a repetition of MRG-7: "Prior Patient Name" 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)
-
removeMrg7_PriorPatientName
Removes a repetition of MRG-7: "Prior Patient Name" 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)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-