Class IAM

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class IAM extends AbstractSegment

Represents an HL7 IAM message segment (Patient Adverse Reaction Information). This segment has the following fields:

  • IAM-1: Set ID - IAM (SI)
  • IAM-2: Allergen Type Code (CE) optional
  • IAM-3: Allergen Code/Mnemonic/Description (CE)
  • IAM-4: Allergy Severity Code (CE) optional
  • IAM-5: Allergy Reaction Code (ST) optional repeating
  • IAM-6: Allergy Action Code (CNE)
  • IAM-7: Allergy Unique Identifier (EI) optional
  • IAM-8: Action Reason (ST) optional
  • IAM-9: Sensitivity to Causative Agent Code (CE) optional
  • IAM-10: Allergen Group Code/Mnemonic/Description (CE) optional
  • IAM-11: Onset Date (DT) optional
  • IAM-12: Onset Date Text (ST) optional
  • IAM-13: Reported Date/Time (TS) optional
  • IAM-14: Reported By (XPN) optional
  • IAM-15: Relationship to Patient Code (CE) optional
  • IAM-16: Alert Device Code (CE) optional
  • IAM-17: Allergy Clinical Status Code (CE) optional
  • IAM-18: Statused by Person (XCN) optional
  • IAM-19: Statused by Organization (XON) optional
  • IAM-20: Statused at Date/Time (TS) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDIAM

      public SI getSetIDIAM()
      Returns IAM-1: "Set ID - IAM" - creates it if necessary
    • getIam1_SetIDIAM

      public SI getIam1_SetIDIAM()
      Returns IAM-1: "Set ID - IAM" - creates it if necessary
    • getAllergenTypeCode

      Returns IAM-2: "Allergen Type Code" - creates it if necessary
    • getIam2_AllergenTypeCode

      Returns IAM-2: "Allergen Type Code" - creates it if necessary
    • getAllergenCodeMnemonicDescription

      Returns IAM-3: "Allergen Code/Mnemonic/Description" - creates it if necessary
    • getIam3_AllergenCodeMnemonicDescription

      Returns IAM-3: "Allergen Code/Mnemonic/Description" - creates it if necessary
    • getAllergySeverityCode

      Returns IAM-4: "Allergy Severity Code" - creates it if necessary
    • getIam4_AllergySeverityCode

      Returns IAM-4: "Allergy Severity Code" - creates it if necessary
    • getAllergyReactionCode

      Returns all repetitions of Allergy Reaction Code (IAM-5).
    • getIam5_AllergyReactionCode

      Returns all repetitions of Allergy Reaction Code (IAM-5).
    • getAllergyReactionCodeReps

      Returns a count of the current number of repetitions of Allergy Reaction Code (IAM-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 IAM-5: "Allergy Reaction Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIam5_AllergyReactionCode

      public ST getIam5_AllergyReactionCode(int rep)
      Returns a specific repetition of IAM-5: "Allergy Reaction Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getIam5_AllergyReactionCodeReps

      Returns a count of the current number of repetitions of Allergy Reaction Code (IAM-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 IAM-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)
    • insertIam5_AllergyReactionCode

      Inserts a repetition of IAM-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 IAM-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)
    • removeIam5_AllergyReactionCode

      Removes a repetition of IAM-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)
    • getAllergyActionCode

      Returns IAM-6: "Allergy Action Code" - creates it if necessary
    • getIam6_AllergyActionCode

      Returns IAM-6: "Allergy Action Code" - creates it if necessary
    • getAllergyUniqueIdentifier

      Returns IAM-7: "Allergy Unique Identifier" - creates it if necessary
    • getIam7_AllergyUniqueIdentifier

      Returns IAM-7: "Allergy Unique Identifier" - creates it if necessary
    • getActionReason

      public ST getActionReason()
      Returns IAM-8: "Action Reason" - creates it if necessary
    • getIam8_ActionReason

      Returns IAM-8: "Action Reason" - creates it if necessary
    • getSensitivityToCausativeAgentCode

      Returns IAM-9: "Sensitivity to Causative Agent Code" - creates it if necessary
    • getIam9_SensitivityToCausativeAgentCode

      Returns IAM-9: "Sensitivity to Causative Agent Code" - creates it if necessary
    • getAllergenGroupCodeMnemonicDescription

      Returns IAM-10: "Allergen Group Code/Mnemonic/Description" - creates it if necessary
    • getIam10_AllergenGroupCodeMnemonicDescription

      Returns IAM-10: "Allergen Group Code/Mnemonic/Description" - creates it if necessary
    • getOnsetDate

      public DT getOnsetDate()
      Returns IAM-11: "Onset Date" - creates it if necessary
    • getIam11_OnsetDate

      Returns IAM-11: "Onset Date" - creates it if necessary
    • getOnsetDateText

      public ST getOnsetDateText()
      Returns IAM-12: "Onset Date Text" - creates it if necessary
    • getIam12_OnsetDateText

      Returns IAM-12: "Onset Date Text" - creates it if necessary
    • getReportedDateTime

      Returns IAM-13: "Reported Date/Time" - creates it if necessary
    • getIam13_ReportedDateTime

      Returns IAM-13: "Reported Date/Time" - creates it if necessary
    • getReportedBy

      public XPN getReportedBy()
      Returns IAM-14: "Reported By" - creates it if necessary
    • getIam14_ReportedBy

      Returns IAM-14: "Reported By" - creates it if necessary
    • getRelationshipToPatientCode

      Returns IAM-15: "Relationship to Patient Code" - creates it if necessary
    • getIam15_RelationshipToPatientCode

      Returns IAM-15: "Relationship to Patient Code" - creates it if necessary
    • getAlertDeviceCode

      Returns IAM-16: "Alert Device Code" - creates it if necessary
    • getIam16_AlertDeviceCode

      Returns IAM-16: "Alert Device Code" - creates it if necessary
    • getAllergyClinicalStatusCode

      Returns IAM-17: "Allergy Clinical Status Code" - creates it if necessary
    • getIam17_AllergyClinicalStatusCode

      Returns IAM-17: "Allergy Clinical Status Code" - creates it if necessary
    • getStatusedByPerson

      Returns IAM-18: "Statused by Person" - creates it if necessary
    • getIam18_StatusedByPerson

      Returns IAM-18: "Statused by Person" - creates it if necessary
    • getStatusedByOrganization

      Returns IAM-19: "Statused by Organization" - creates it if necessary
    • getIam19_StatusedByOrganization

      Returns IAM-19: "Statused by Organization" - creates it if necessary
    • getStatusedAtDateTime

      Returns IAM-20: "Statused at Date/Time" - creates it if necessary
    • getIam20_StatusedAtDateTime

      Returns IAM-20: "Statused at Date/Time" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment