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

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

public class AL1
extends AbstractSegment

Represents an HL7 AL1 message segment (Patient allergy information). This segment has the following fields:

See Also:
Serialized Form

Constructor Summary
AL1(Group parent, ModelClassFactory factory)
          Creates a new AL1 segment
 
Method Summary
protected  Type createNewTypeWithoutReflection(int field)
          
 CE getAl11_SetIDAL1()
          Returns AL1-1: "Set ID - AL1" - creates it if necessary
 CE getAl12_AllergenTypeCode()
          Returns AL1-2: "Allergen Type Code" - creates it if necessary
 CE getAl13_AllergenCodeMnemonicDescription()
          Returns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary
 CE getAl14_AllergySeverityCode()
          Returns AL1-4: "Allergy Severity Code" - creates it if necessary
 ST getAl15_AllergyReactionCode(int rep)
          Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessary
 int getAl15_AllergyReactionCodeReps()
          Returns a count of the current number of repetitions of Allergy Reaction Code (AL1-5).
 DT getAl16_IdentificationDate()
          Returns AL1-6: "Identification Date" - creates it if necessary
 CE getAllergenCodeMnemonicDescription()
          Returns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary
 CE getAllergenTypeCode()
          Returns AL1-2: "Allergen Type Code" - creates it if necessary
 ST[] getAllergyReactionCode()
          Returns all repetitions of Allergy Reaction Code (AL1-5).
 ST getAllergyReactionCode(int rep)
          Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessary
 int getAllergyReactionCodeReps()
          Returns a count of the current number of repetitions of Allergy Reaction Code (AL1-5).
 CE getAllergySeverityCode()
          Returns AL1-4: "Allergy Severity Code" - creates it if necessary
 DT getIdentificationDate()
          Returns AL1-6: "Identification Date" - creates it if necessary
 CE getSetIDAL1()
          Returns AL1-1: "Set ID - AL1" - creates it if necessary
 ST insertAl15_AllergyReactionCode(int rep)
          Inserts a repetition of AL1-5: "Allergy Reaction Code" at a specific index
 ST insertAllergyReactionCode(int rep)
          Inserts a repetition of AL1-5: "Allergy Reaction Code" at a specific index
 ST removeAl15_AllergyReactionCode(int rep)
          Removes a repetition of AL1-5: "Allergy Reaction Code" at a specific index
 ST removeAllergyReactionCode(int rep)
          Removes a repetition of AL1-5: "Allergy Reaction 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

AL1

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

Method Detail

getSetIDAL1

public CE getSetIDAL1()
Returns AL1-1: "Set ID - AL1" - creates it if necessary


getAl11_SetIDAL1

public CE getAl11_SetIDAL1()
Returns AL1-1: "Set ID - AL1" - creates it if necessary


getAllergenTypeCode

public CE getAllergenTypeCode()
Returns AL1-2: "Allergen Type Code" - creates it if necessary


getAl12_AllergenTypeCode

public CE getAl12_AllergenTypeCode()
Returns AL1-2: "Allergen Type Code" - creates it if necessary


getAllergenCodeMnemonicDescription

public CE getAllergenCodeMnemonicDescription()
Returns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary


getAl13_AllergenCodeMnemonicDescription

public CE getAl13_AllergenCodeMnemonicDescription()
Returns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary


getAllergySeverityCode

public CE getAllergySeverityCode()
Returns AL1-4: "Allergy Severity Code" - creates it if necessary


getAl14_AllergySeverityCode

public CE getAl14_AllergySeverityCode()
Returns AL1-4: "Allergy Severity Code" - creates it if necessary


getAllergyReactionCode

public ST[] getAllergyReactionCode()
Returns all repetitions of Allergy Reaction Code (AL1-5).


getAllergyReactionCodeReps

public int getAllergyReactionCodeReps()
Returns a count of the current number of repetitions of Allergy Reaction Code (AL1-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


getAllergyReactionCode

public ST getAllergyReactionCode(int rep)
Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessary

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

getAl15_AllergyReactionCode

public ST getAl15_AllergyReactionCode(int rep)
Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessary

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

getAl15_AllergyReactionCodeReps

public int getAl15_AllergyReactionCodeReps()
Returns a count of the current number of repetitions of Allergy Reaction Code (AL1-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.


insertAllergyReactionCode

public ST insertAllergyReactionCode(int rep)
                             throws HL7Exception
Inserts a repetition of AL1-5: "Allergy Reaction 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)

insertAl15_AllergyReactionCode

public ST insertAl15_AllergyReactionCode(int rep)
                                  throws HL7Exception
Inserts a repetition of AL1-5: "Allergy Reaction 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)

removeAllergyReactionCode

public ST removeAllergyReactionCode(int rep)
                             throws HL7Exception
Removes a repetition of AL1-5: "Allergy Reaction 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)

removeAl15_AllergyReactionCode

public ST removeAl15_AllergyReactionCode(int rep)
                                  throws HL7Exception
Removes a repetition of AL1-5: "Allergy Reaction 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)

getIdentificationDate

public DT getIdentificationDate()
Returns AL1-6: "Identification Date" - creates it if necessary


getAl16_IdentificationDate

public DT getAl16_IdentificationDate()
Returns AL1-6: "Identification Date" - creates it if necessary


createNewTypeWithoutReflection

protected Type createNewTypeWithoutReflection(int field)

Overrides:
createNewTypeWithoutReflection in class AbstractSegment


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