Package ca.uhn.hl7v2.model.v24.segment
Class AL1
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v24.segment.AL1
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 AL1 message segment (Patient allergy information). This segment has the following fields:
- AL1-1: Set ID - AL1 (CE)
- AL1-2: Allergen Type Code (CE) optional
- AL1-3: Allergen Code/Mnemonic/Description (CE)
- AL1-4: Allergy Severity Code (CE) optional
- AL1-5: Allergy Reaction Code (ST) optional repeating
- AL1-6: Identification Date (DT) 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) Returns AL1-1: "Set ID - AL1" - creates it if necessaryReturns AL1-2: "Allergen Type Code" - creates it if necessaryReturns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessaryReturns AL1-4: "Allergy Severity Code" - creates it if necessaryST[]Returns all repetitions of Allergy Reaction Code (AL1-5).getAl15_AllergyReactionCode(int rep) Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessaryintReturns a count of the current number of repetitions of Allergy Reaction Code (AL1-5).Returns AL1-6: "Identification Date" - creates it if necessaryReturns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessaryReturns AL1-2: "Allergen Type Code" - creates it if necessaryST[]Returns all repetitions of Allergy Reaction Code (AL1-5).getAllergyReactionCode(int rep) Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessaryintReturns a count of the current number of repetitions of Allergy Reaction Code (AL1-5).Returns AL1-4: "Allergy Severity Code" - creates it if necessaryReturns AL1-6: "Identification Date" - creates it if necessaryReturns AL1-1: "Set ID - AL1" - creates it if necessaryinsertAl15_AllergyReactionCode(int rep) Inserts a repetition of AL1-5: "Allergy Reaction Code" at a specific indexinsertAllergyReactionCode(int rep) Inserts a repetition of AL1-5: "Allergy Reaction Code" at a specific indexremoveAl15_AllergyReactionCode(int rep) Removes a repetition of AL1-5: "Allergy Reaction Code" at a specific indexremoveAllergyReactionCode(int rep) Removes a repetition of AL1-5: "Allergy Reaction Code" 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
-
AL1
Creates a new AL1 segment
-
-
Method Details
-
getSetIDAL1
Returns AL1-1: "Set ID - AL1" - creates it if necessary -
getAl11_SetIDAL1
Returns AL1-1: "Set ID - AL1" - creates it if necessary -
getAllergenTypeCode
Returns AL1-2: "Allergen Type Code" - creates it if necessary -
getAl12_AllergenTypeCode
Returns AL1-2: "Allergen Type Code" - creates it if necessary -
getAllergenCodeMnemonicDescription
Returns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary -
getAl13_AllergenCodeMnemonicDescription
Returns AL1-3: "Allergen Code/Mnemonic/Description" - creates it if necessary -
getAllergySeverityCode
Returns AL1-4: "Allergy Severity Code" - creates it if necessary -
getAl14_AllergySeverityCode
Returns AL1-4: "Allergy Severity Code" - creates it if necessary -
getAllergyReactionCode
Returns all repetitions of Allergy Reaction Code (AL1-5). -
getAl15_AllergyReactionCode
Returns all repetitions of Allergy Reaction Code (AL1-5). -
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
Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getAl15_AllergyReactionCode
Returns a specific repetition of AL1-5: "Allergy Reaction Code" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
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
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
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
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
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
Returns AL1-6: "Identification Date" - creates it if necessary -
getAl16_IdentificationDate
Returns AL1-6: "Identification Date" - creates it if necessary -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-