public class MRG extends AbstractSegment
Represents an HL7 MRG message segment (Merge Patient Information). This segment has the following fields:
log
Constructor and Description |
---|
MRG(Group parent,
ModelClassFactory factory)
Creates a new MRG segment
|
Modifier and Type | Method and Description |
---|---|
protected Type |
createNewTypeWithoutReflection(int field) |
CX[] |
getMrg1_PriorPatientIdentifierList()
Returns all repetitions of Prior Patient Identifier List (MRG-1).
|
CX |
getMrg1_PriorPatientIdentifierList(int rep)
Returns a specific repetition of
MRG-1: "Prior Patient Identifier List" - creates it if necessary
|
int |
getMrg1_PriorPatientIdentifierListReps()
Returns a count of the current number of repetitions of Prior Patient Identifier List (MRG-1).
|
NULLDT |
getMrg2_PriorAlternatePatientID()
Returns
MRG-2: "Prior Alternate Patient ID" - creates it if necessary
|
CX |
getMrg3_PriorPatientAccountNumber()
Returns
MRG-3: "Prior Patient Account Number" - creates it if necessary
|
NULLDT |
getMrg4_PriorPatientID()
Returns
MRG-4: "Prior Patient ID" - creates it if necessary
|
CX |
getMrg5_PriorVisitNumber()
Returns
MRG-5: "Prior Visit Number" - creates it if necessary
|
CX |
getMrg6_PriorAlternateVisitID()
Returns
MRG-6: "Prior Alternate Visit ID" - creates it if necessary
|
XPN[] |
getMrg7_PriorPatientName()
Returns all repetitions of Prior Patient Name (MRG-7).
|
XPN |
getMrg7_PriorPatientName(int rep)
Returns a specific repetition of
MRG-7: "Prior Patient Name" - creates it if necessary
|
int |
getMrg7_PriorPatientNameReps()
Returns a count of the current number of repetitions of Prior Patient Name (MRG-7).
|
NULLDT |
getPriorAlternatePatientID()
Returns
MRG-2: "Prior Alternate Patient ID" - creates it if necessary
|
CX |
getPriorAlternateVisitID()
Returns
MRG-6: "Prior Alternate Visit ID" - creates it if necessary
|
CX |
getPriorPatientAccountNumber()
Returns
MRG-3: "Prior Patient Account Number" - creates it if necessary
|
NULLDT |
getPriorPatientID()
Returns
MRG-4: "Prior Patient ID" - creates it if necessary
|
CX[] |
getPriorPatientIdentifierList()
Returns all repetitions of Prior Patient Identifier List (MRG-1).
|
CX |
getPriorPatientIdentifierList(int rep)
Returns a specific repetition of
MRG-1: "Prior Patient Identifier List" - creates it if necessary
|
int |
getPriorPatientIdentifierListReps()
Returns a count of the current number of repetitions of Prior Patient Identifier List (MRG-1).
|
XPN[] |
getPriorPatientName()
Returns all repetitions of Prior Patient Name (MRG-7).
|
XPN |
getPriorPatientName(int rep)
Returns a specific repetition of
MRG-7: "Prior Patient Name" - creates it if necessary
|
int |
getPriorPatientNameReps()
Returns a count of the current number of repetitions of Prior Patient Name (MRG-7).
|
CX |
getPriorVisitNumber()
Returns
MRG-5: "Prior Visit Number" - creates it if necessary
|
CX |
insertMrg1_PriorPatientIdentifierList(int rep)
Inserts a repetition of
MRG-1: "Prior Patient Identifier List" at a specific index
|
XPN |
insertMrg7_PriorPatientName(int rep)
Inserts a repetition of
MRG-7: "Prior Patient Name" at a specific index
|
CX |
insertPriorPatientIdentifierList(int rep)
Inserts a repetition of
MRG-1: "Prior Patient Identifier List" at a specific index
|
XPN |
insertPriorPatientName(int rep)
Inserts a repetition of
MRG-7: "Prior Patient Name" at a specific index
|
CX |
removeMrg1_PriorPatientIdentifierList(int rep)
Removes a repetition of
MRG-1: "Prior Patient Identifier List" at a specific index
|
XPN |
removeMrg7_PriorPatientName(int rep)
Removes a repetition of
MRG-7: "Prior Patient Name" at a specific index
|
CX |
removePriorPatientIdentifierList(int rep)
Removes a repetition of
MRG-1: "Prior Patient Identifier List" at a specific index
|
XPN |
removePriorPatientName(int rep)
Removes a repetition of
MRG-7: "Prior Patient Name" at a specific index
|
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetition
getMessage, getParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getParent
public MRG(Group parent, ModelClassFactory factory)
public CX[] getPriorPatientIdentifierList()
public CX[] getMrg1_PriorPatientIdentifierList()
public int getPriorPatientIdentifierListReps()
public CX getPriorPatientIdentifierList(int rep)
rep
- The repetition index (0-indexed)public CX getMrg1_PriorPatientIdentifierList(int rep)
rep
- The repetition index (0-indexed)public int getMrg1_PriorPatientIdentifierListReps()
public CX insertPriorPatientIdentifierList(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CX insertMrg1_PriorPatientIdentifierList(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CX removePriorPatientIdentifierList(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CX removeMrg1_PriorPatientIdentifierList(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public NULLDT getPriorAlternatePatientID()
public NULLDT getMrg2_PriorAlternatePatientID()
public CX getPriorPatientAccountNumber()
public CX getMrg3_PriorPatientAccountNumber()
public NULLDT getPriorPatientID()
public NULLDT getMrg4_PriorPatientID()
public CX getPriorVisitNumber()
public CX getMrg5_PriorVisitNumber()
public CX getPriorAlternateVisitID()
public CX getMrg6_PriorAlternateVisitID()
public XPN[] getPriorPatientName()
public XPN[] getMrg7_PriorPatientName()
public int getPriorPatientNameReps()
public XPN getPriorPatientName(int rep)
rep
- The repetition index (0-indexed)public XPN getMrg7_PriorPatientName(int rep)
rep
- The repetition index (0-indexed)public int getMrg7_PriorPatientNameReps()
public XPN insertPriorPatientName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XPN insertMrg7_PriorPatientName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XPN removePriorPatientName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XPN removeMrg7_PriorPatientName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)protected Type createNewTypeWithoutReflection(int field)
createNewTypeWithoutReflection
in class AbstractSegment
Copyright © 2001–2017 University Health Network. All rights reserved.