ca.uhn.hl7v2.model.v24.segment
Class QRI

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractSegment
      extended by ca.uhn.hl7v2.model.v24.segment.QRI
All Implemented Interfaces:
Segment, Structure, Serializable

public class QRI
extends AbstractSegment

Represents an HL7 QRI message segment (Query Response Instance). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
QRI(Group parent, ModelClassFactory factory)
          Creates a new QRI segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 CE getAlgorithmDescriptor()
          Returns QRI-3: "Algorithm Descriptor" - creates it if necessary
 NM getCandidateConfidence()
          Returns QRI-1: "Candidate Confidence" - creates it if necessary
 IS[] getMatchReasonCode()
          Returns all repetitions of Match Reason Code (QRI-2).
 IS getMatchReasonCode(int rep)
          Returns a specific repetition of QRI-2: "Match Reason Code" - creates it if necessary
 int getMatchReasonCodeReps()
          Returns a count of the current number of repetitions of Match Reason Code (QRI-2).
 NM getQri1_CandidateConfidence()
          Returns QRI-1: "Candidate Confidence" - creates it if necessary
 IS getQri2_MatchReasonCode(int rep)
          Returns a specific repetition of QRI-2: "Match Reason Code" - creates it if necessary
 int getQri2_MatchReasonCodeReps()
          Returns a count of the current number of repetitions of Match Reason Code (QRI-2).
 CE getQri3_AlgorithmDescriptor()
          Returns QRI-3: "Algorithm Descriptor" - creates it if necessary
 IS insertMatchReasonCode(int rep)
          Inserts a repetition of QRI-2: "Match Reason Code" at a specific index
 IS insertQri2_MatchReasonCode(int rep)
          Inserts a repetition of QRI-2: "Match Reason Code" at a specific index
 IS removeMatchReasonCode(int rep)
          Removes a repetition of QRI-2: "Match Reason Code" at a specific index
 IS removeQri2_MatchReasonCode(int rep)
          Removes a repetition of QRI-2: "Match Reason Code" at a specific index
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractSegment
add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getMessage, getName, getNames, getParent, insertRepetition, isRequired, main, numFields, parse, removeRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QRI

public QRI(Group parent,
           ModelClassFactory factory)
Creates a new QRI segment

Method Detail

getCandidateConfidence

public NM getCandidateConfidence()
Returns QRI-1: "Candidate Confidence" - creates it if necessary


getQri1_CandidateConfidence

public NM getQri1_CandidateConfidence()
Returns QRI-1: "Candidate Confidence" - creates it if necessary


getMatchReasonCode

public IS[] getMatchReasonCode()
Returns all repetitions of Match Reason Code (QRI-2).


getMatchReasonCodeReps

public int getMatchReasonCodeReps()
Returns a count of the current number of repetitions of Match Reason Code (QRI-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getMatchReasonCode

public IS getMatchReasonCode(int rep)
Returns a specific repetition of QRI-2: "Match Reason Code" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getQri2_MatchReasonCode

public IS getQri2_MatchReasonCode(int rep)
Returns a specific repetition of QRI-2: "Match Reason Code" - creates it if necessary

Parameters:
rep - The repetition index (0-indexed)

getQri2_MatchReasonCodeReps

public int getQri2_MatchReasonCodeReps()
Returns a count of the current number of repetitions of Match Reason Code (QRI-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertMatchReasonCode

public IS insertMatchReasonCode(int rep)
                         throws HL7Exception
Inserts a repetition of QRI-2: "Match Reason Code" 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)

insertQri2_MatchReasonCode

public IS insertQri2_MatchReasonCode(int rep)
                              throws HL7Exception
Inserts a repetition of QRI-2: "Match Reason Code" 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)

removeMatchReasonCode

public IS removeMatchReasonCode(int rep)
                         throws HL7Exception
Removes a repetition of QRI-2: "Match Reason Code" 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)

removeQri2_MatchReasonCode

public IS removeQri2_MatchReasonCode(int rep)
                              throws HL7Exception
Removes a repetition of QRI-2: "Match Reason Code" 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)

getAlgorithmDescriptor

public CE getAlgorithmDescriptor()
Returns QRI-3: "Algorithm Descriptor" - creates it if necessary


getQri3_AlgorithmDescriptor

public CE getQri3_AlgorithmDescriptor()
Returns QRI-3: "Algorithm Descriptor" - creates it if necessary


createNewTypeWithoutReflection

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


Copyright © 2001-2011 University Health Network. All Rights Reserved.